:root {
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-800: #44403c;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-500: #a8a29e;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-600: #ea580c;
  --text: #292524;
  --muted: #78716c;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(68, 64, 60, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--amber-50), var(--stone-100) 42%, #ffffff);
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff7ed;
  background: linear-gradient(90deg, var(--stone-950), var(--stone-900), var(--amber-700));
  box-shadow: 0 14px 38px rgba(28, 25, 23, 0.22);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
  box-shadow: 0 10px 26px rgba(251, 191, 36, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text em {
  margin-top: 3px;
  color: var(--amber-300);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 700;
}

.nav-link {
  color: rgba(255, 251, 235, 0.88);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.highlight {
  color: var(--amber-300);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 0;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.1);
  font-size: 24px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav.open {
  display: grid;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff7ed;
  font-weight: 700;
}

.main-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 56px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  padding: 58px 0 42px;
  color: #fff7ed;
  background: radial-gradient(circle at 18% 16%, rgba(251, 191, 36, 0.36), transparent 28%), radial-gradient(circle at 80% 24%, rgba(234, 88, 12, 0.28), transparent 28%), linear-gradient(135deg, #1c1917 0%, #292524 48%, #78350f 100%);
  border-bottom-left-radius: 42px;
  border-bottom-right-radius: 42px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0.45), rgba(28, 25, 23, 0.86));
  pointer-events: none;
}

.hero-slider {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 48px;
  align-items: center;
}

.hero-slide.active {
  display: grid;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(252, 211, 77, 0.22);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 251, 235, 0.82);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(245, 158, 11, 0.35);
}

.btn.secondary {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster {
  position: relative;
  min-height: 520px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.46);
  transform: rotate(1.5deg);
}

.hero-poster img {
  filter: saturate(1.05) contrast(1.06);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.76));
  pointer-events: none;
}

.hero-card-note {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  padding: 18px;
  border-radius: 22px;
  background: rgba(28, 25, 23, 0.68);
  backdrop-filter: blur(16px);
}

.hero-card-note strong {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

.hero-card-note span {
  color: var(--amber-300);
  font-weight: 800;
}

.hero-dots {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 22px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 44px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  cursor: pointer;
}

.hero-dots button.active {
  background: var(--amber-400);
}

.search-band {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: -34px auto 36px;
  padding: 0 22px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.search-panel input,
.search-box input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 1px solid var(--stone-200);
  border-radius: 17px;
  color: var(--stone-900);
  background: #fff;
  outline: none;
  font-size: 16px;
}

.search-panel input:focus,
.search-box input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a {
  padding: 12px 15px;
  border-radius: 16px;
  background: var(--amber-100);
  color: var(--amber-700);
  font-weight: 800;
}

.section {
  margin: 42px 0 58px;
}

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

.section-title {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

.section-desc {
  max-width: 700px;
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.more-link {
  color: var(--amber-700);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(68, 64, 60, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover,
.wide-card:hover,
.category-card:hover,
.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 68px rgba(68, 64, 60, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--stone-800), var(--amber-700));
}

.score-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 42px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--stone-950);
  background: var(--amber-300);
  font-weight: 900;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.card-body {
  padding: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--amber-700);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h2,
.wide-card h2 {
  margin: 0 0 8px;
  color: var(--stone-900);
  font-size: 17px;
  line-height: 1.35;
}

.movie-card p,
.wide-card p {
  margin: 0 0 12px;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.7;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 154px 1fr;
  gap: 18px;
  padding: 16px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(68, 64, 60, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wide-poster {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 19px;
  background: linear-gradient(135deg, var(--stone-800), var(--amber-700));
}

.dark-section {
  margin: 58px 0;
  padding: 32px;
  border-radius: 30px;
  color: #fff7ed;
  background: linear-gradient(135deg, var(--stone-950), var(--stone-800));
  box-shadow: var(--shadow);
}

.dark-section .section-title,
.dark-section .section-desc,
.dark-section h2 {
  color: #fff7ed;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 56px 74px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--stone-950);
  background: var(--amber-300);
  font-weight: 900;
}

.rank-poster {
  width: 74px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--stone-800), var(--amber-700));
}

.rank-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
}

.rank-desc {
  margin: 0;
  color: rgba(255, 251, 235, 0.72);
  line-height: 1.6;
}

.rank-score {
  color: var(--amber-300);
  font-weight: 900;
}

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

.category-card {
  min-height: 188px;
  padding: 22px;
  border-radius: 26px;
  color: #fff7ed;
  background: radial-gradient(circle at 20% 10%, rgba(252, 211, 77, 0.3), transparent 35%), linear-gradient(135deg, var(--stone-900), var(--amber-700));
  box-shadow: 0 18px 48px rgba(68, 64, 60, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.category-card p {
  margin: 0 0 18px;
  color: rgba(255, 251, 235, 0.78);
  line-height: 1.7;
}

.page-hero {
  margin: 30px 0 28px;
  padding: 36px;
  border-radius: 32px;
  color: #fff7ed;
  background: radial-gradient(circle at 12% 10%, rgba(252, 211, 77, 0.28), transparent 30%), linear-gradient(135deg, var(--stone-950), var(--stone-800), var(--amber-700));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 251, 235, 0.78);
  font-size: 17px;
  line-height: 1.85;
}

.search-box {
  margin: 22px 0 28px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(68, 64, 60, 0.12);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 16px;
  color: var(--stone-600);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--amber-700);
}

.detail-hero {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
  margin-bottom: 34px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--stone-800), var(--amber-700));
  box-shadow: var(--shadow);
}

.detail-info {
  padding: 34px;
  border-radius: 32px;
  color: #fff7ed;
  background: radial-gradient(circle at 100% 0, rgba(252, 211, 77, 0.18), transparent 32%), linear-gradient(135deg, var(--stone-950), var(--stone-800));
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.detail-info p {
  color: rgba(255, 251, 235, 0.78);
  line-height: 1.86;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.player-section,
.content-card {
  margin: 28px 0;
  padding: 24px;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(251, 191, 36, 0.2), rgba(0, 0, 0, 0.72));
  cursor: pointer;
}

.player-overlay.hidden {
  display: none;
}

.play-button {
  width: 98px;
  height: 98px;
  border: 0;
  border-radius: 999px;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
  font-size: 34px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 22px 60px rgba(245, 158, 11, 0.35);
}

.content-card h2,
.player-section h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-card p {
  color: var(--stone-700);
  line-height: 1.9;
}

.hidden-card {
  display: none !important;
}

.site-footer {
  margin-top: 56px;
  padding: 48px 22px 24px;
  color: var(--stone-300);
  background: linear-gradient(90deg, var(--stone-950), var(--stone-900));
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 38px;
}

.footer-brand {
  color: var(--amber-100);
  font-size: 22px;
}

.site-footer p {
  max-width: 420px;
  color: var(--stone-500);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--amber-100);
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: var(--stone-300);
}

.footer-links a:hover {
  color: var(--amber-300);
}

.footer-bottom {
  max-width: 1280px;
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(231, 229, 228, 0.12);
  color: var(--stone-500);
  text-align: center;
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-poster {
    max-width: 520px;
  }

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

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

@media (max-width: 820px) {
  .main-shell,
  .header-inner,
  .hero-slider,
  .hero-dots,
  .search-band {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    min-height: auto;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
  }

  .hero-slide.active {
    display: block;
  }

  .hero-poster {
    min-height: 360px;
    margin-top: 28px;
    transform: none;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .wide-grid,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .wide-card,
  .rank-item {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .rank-num,
  .rank-score {
    display: none;
  }

  .detail-poster {
    max-height: 560px;
  }

  .page-hero,
  .detail-info,
  .player-section,
  .content-card,
  .dark-section {
    padding: 22px;
    border-radius: 24px;
  }
}

@media (max-width: 520px) {
  .brand-text strong {
    font-size: 17px;
  }

  .brand-text em {
    display: none;
  }

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

  .movie-card h2 {
    font-size: 15px;
  }

  .movie-card p,
  .tag-row {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
