* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f8fafc;
  color: #111827;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}

.brand:hover,
.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #d97706;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 10px 18px rgba(217, 119, 6, 0.22);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  font-weight: 650;
  color: #374151;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  background: #fff7ed;
  color: #b45309;
  padding: 9px 15px;
  font-weight: 700;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid #e5e7eb;
}

.mobile-nav a {
  display: block;
  padding: 10px 2px;
  color: #374151;
  font-weight: 700;
}

.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #b45309, #ea580c 52%, #f59e0b);
  color: #ffffff;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.23), transparent 28%), radial-gradient(circle at 78% 34%, rgba(255, 255, 255, 0.18), transparent 30%), rgba(0, 0, 0, 0.08);
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 520px;
  margin: 0 auto;
  padding: 64px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 460px);
  align-items: center;
  gap: 48px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff7ed;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 660px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.2vw, 25px);
}

.hero-actions,
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn,
.category-pills a,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-primary,
.category-pills a {
  background: #ffffff;
  color: #b45309;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.36);
}

.btn:hover,
.category-pills a:hover,
.filter-chip:hover {
  transform: translateY(-2px);
}

.hero-carousel {
  position: relative;
  min-height: 430px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.hero-feature-card {
  overflow: hidden;
  min-height: 430px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(18px);
}

.hero-feature-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.hero-feature-content {
  padding: 24px;
}

.hero-feature-content h2 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
}

.hero-feature-content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-meta span,
.card-meta span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.hero-meta span {
  background: rgba(0, 0, 0, 0.24);
  padding: 5px 10px;
}

.hero-dots {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  padding: 0;
}

.hero-dots button.is-active {
  width: 28px;
  background: #ffffff;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.content-stack {
  padding: 64px 0;
  display: grid;
  gap: 72px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: #111827;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-head p,
.page-hero p,
.detail-title p {
  margin: 8px 0 0;
  color: #6b7280;
}

.feature-band {
  margin-left: max(-24px, calc((100vw - min(1180px, calc(100vw - 32px))) / -2));
  margin-right: max(-24px, calc((100vw - min(1180px, calc(100vw - 32px))) / -2));
  padding: 42px max(24px, calc((100vw - min(1180px, calc(100vw - 32px))) / 2));
  border-radius: 32px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.movie-grid.large-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.12);
}

.poster-wrap {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b, #111827);
}

.movie-grid.large-grid .poster-wrap {
  height: 320px;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
}

.play-pill {
  left: 50%;
  top: 50%;
  padding: 10px 18px;
  background: #f59e0b;
  color: #ffffff;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.movie-card:hover .play-pill {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f59e0b;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(217, 119, 6, 0.25);
}

.card-body {
  padding: 16px;
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.card-body h2 a:hover {
  color: #d97706;
}

.card-body p {
  min-height: 46px;
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-meta {
  margin-bottom: 12px;
  color: #6b7280;
}

.card-meta span {
  background: #f3f4f6;
  padding: 4px 9px;
}

.tag-row span,
.detail-tags span {
  background: #fff7ed;
  color: #b45309;
  padding: 4px 9px;
}

.horizontal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.compact-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  overflow: hidden;
  min-height: 108px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

.compact-card img {
  width: 132px;
  height: 100%;
  object-fit: cover;
}

.compact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px;
}

.compact-info strong {
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
}

.compact-info small {
  color: #6b7280;
}

.rank-number {
  width: max-content;
  border-radius: 999px;
  padding: 2px 8px;
  background: #fef3c7;
  color: #b45309;
  font-size: 12px;
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0;
  background: linear-gradient(135deg, #fff7ed, #ffffff 54%, #ffedd5);
  border-bottom: 1px solid #fed7aa;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero .section-kicker {
  margin-bottom: 16px;
  background: #fef3c7;
  color: #b45309;
}

.toolbar {
  position: sticky;
  top: 78px;
  z-index: 8;
  margin: 32px 0;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(16px);
}

.search-input {
  flex: 1 1 260px;
  height: 46px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0 18px;
  color: #111827;
  outline: none;
  background: #ffffff;
}

.search-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.13);
}

.filter-chip {
  min-height: 40px;
  border-color: #fed7aa;
  background: #fff7ed;
  color: #b45309;
}

.filter-chip.is-active {
  background: #f59e0b;
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(217, 119, 6, 0.2);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  border: 1px solid #fed7aa;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.category-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 0 0 20px;
  color: #6b7280;
}

.category-card span {
  color: #d97706;
  font-weight: 900;
}

.detail-hero {
  padding: 42px 0 28px;
  background: linear-gradient(135deg, #111827, #7c2d12 55%, #b45309);
  color: #ffffff;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
}

.detail-cover img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.detail-title h1 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
}

.detail-title p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  padding: 7px 12px;
  color: #fff7ed;
  font-weight: 800;
}

.detail-content {
  padding: 54px 0;
}

.player-section {
  margin-bottom: 42px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 26px 50px rgba(15, 23, 42, 0.22);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.44));
  color: #ffffff;
  cursor: pointer;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f59e0b;
  font-size: 34px;
  box-shadow: 0 16px 32px rgba(245, 158, 11, 0.34);
  transform: translateZ(0);
}

.player-start.is-hidden {
  display: none;
}

.text-panel {
  display: grid;
  gap: 20px;
  margin-bottom: 46px;
}

.text-panel section {
  border-radius: 24px;
  background: #ffffff;
  padding: 26px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}

.text-panel h2,
.related-section h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 26px;
  font-weight: 900;
}

.text-panel p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.no-results {
  display: none;
  padding: 30px;
  border-radius: 18px;
  background: #fff7ed;
  color: #b45309;
  font-weight: 900;
  text-align: center;
}

.no-results.is-visible {
  display: block;
}

@media (max-width: 1040px) {
  .desktop-nav {
    gap: 12px;
    font-size: 14px;
  }

  .hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 460px;
  }

  .movie-grid,
  .movie-grid.large-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .header-inner {
    height: 60px;
  }

  .brand,
  .footer-brand {
    font-size: 19px;
  }

  .hero-inner {
    min-height: auto;
    padding: 42px 0;
    gap: 30px;
  }

  .hero-carousel {
    min-height: 420px;
  }

  .movie-grid,
  .movie-grid.large-grid,
  .category-grid,
  .horizontal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poster-wrap,
  .movie-grid.large-grid .poster-wrap {
    height: 230px;
  }

  .feature-band {
    border-radius: 24px;
  }

  .toolbar {
    position: static;
  }

  .detail-cover img {
    height: 360px;
  }
}

@media (max-width: 540px) {
  .movie-grid,
  .movie-grid.large-grid,
  .category-grid,
  .horizontal-list {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .compact-card img {
    width: 112px;
  }

  .hero-carousel {
    min-height: 440px;
  }

  .hero-feature-card img {
    height: 220px;
  }

  .detail-layout {
    gap: 22px;
  }

  .detail-cover img {
    height: 420px;
  }

  .player-start span {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
