:root {
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-200: #fde68a;
  --amber-100: #fef3c7;
  --ink: #18181b;
  --muted: #71717a;
  --line: rgba(146, 64, 14, 0.14);
  --panel: rgba(255, 255, 255, 0.88);
  --shadow: 0 24px 70px rgba(120, 53, 15, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(253, 230, 138, 0.72), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 34rem, #fffaf0 100%);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
}

.site-header-inner {
  max-width: 1200px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--amber-500), #ea580c);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.32);
}

.logo-text {
  font-size: 24px;
  background: linear-gradient(135deg, var(--amber-700), #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
  color: #3f3f46;
}

.nav-link {
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-500), #ea580c);
  transform: scaleX(0);
  transition: transform 0.24s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-700);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--amber-100);
  padding: 11px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--amber-900);
}

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
  border-top: 1px solid var(--line);
}

.mobile-nav.is-open {
  display: grid;
  gap: 10px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
  background: rgba(254, 243, 199, 0.65);
}

.mobile-link.active {
  color: var(--amber-800);
}

.hero {
  max-width: 1280px;
  margin: 22px auto 0;
  padding: 0 24px;
}

.hero-slider {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: var(--amber-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
  padding: 70px;
  background-size: cover;
  background-position: center;
  color: white;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.7s ease;
}

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

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-200);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1,
.intro-strip h1 {
  margin: 14px 0 20px;
  font-size: clamp(36px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.07em;
}

.hero p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #78350f;
  background: rgba(254, 243, 199, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--amber-500), #ea580c);
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.34);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.primary-btn.small {
  min-height: 42px;
  padding: 0 18px;
}

.ghost-btn {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(12px);
}

.ghost-btn.dark {
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(120, 53, 15, 0.18);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, var(--amber-200), var(--amber-700));
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.56);
  font-weight: 900;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 0;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: #fcd34d;
  opacity: 0.55;
  cursor: pointer;
}

.hero-dots button.active {
  width: 34px;
  opacity: 1;
  background: var(--amber-600);
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 24px;
}

.intro-strip,
.search-panel,
.page-hero,
.detail-article,
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(120, 53, 15, 0.08);
}

.intro-strip {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
}

.intro-strip h1 {
  margin: 0 0 8px;
  color: var(--amber-950);
  font-size: clamp(30px, 4vw, 56px);
}

.intro-strip p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
}

.search-panel {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 30px;
  padding: 28px;
}

.search-panel h2 {
  margin: 0 0 8px;
  color: var(--amber-950);
  font-size: 30px;
}

.search-panel p {
  margin: 0;
  color: var(--muted);
}

.search-actions {
  display: grid;
  gap: 14px;
}

.search-box {
  display: grid;
  gap: 8px;
  font-weight: 900;
  color: var(--amber-900);
}

.search-box input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(180, 83, 9, 0.22);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--ink);
  background: white;
  outline: none;
}

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

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-row button {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--amber-900);
  background: var(--amber-100);
  font-weight: 900;
  cursor: pointer;
}

.filter-row button.is-active {
  color: white;
  background: var(--amber-600);
}

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

.section-kicker {
  color: var(--amber-600);
  font-size: 13px;
}

.section-heading h2 {
  margin: 4px 0 0;
  color: var(--amber-950);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.section-heading a {
  color: var(--amber-700);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 14px 42px rgba(120, 53, 15, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 70px rgba(120, 53, 15, 0.16);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-200), var(--amber-700));
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-badge,
.poster-score {
  position: absolute;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.58);
  font-size: 12px;
  font-weight: 900;
}

.poster-badge {
  left: 12px;
}

.poster-score {
  right: 12px;
  background: rgba(245, 158, 11, 0.92);
}

.movie-card-body {
  padding: 17px;
}

.movie-meta-line,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta-line span,
.rank-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff7ed;
}

.movie-card h2 {
  margin: 12px 0 8px;
  color: var(--amber-950);
  font-size: 18px;
  line-height: 1.28;
}

.movie-card h2 a:hover {
  color: var(--amber-700);
}

.movie-card p {
  min-height: 46px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

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

.category-tile,
.category-overview-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 16px 46px rgba(120, 53, 15, 0.08);
}

.category-tile {
  padding: 22px;
}

.category-tile > a span {
  color: var(--amber-700);
  font-weight: 900;
}

.category-tile h2 {
  margin: 10px 0 18px;
  color: var(--amber-950);
  font-size: 18px;
  line-height: 1.5;
}

.category-samples {
  display: grid;
  gap: 8px;
}

.category-samples a {
  color: var(--muted);
  font-size: 14px;
}

.category-samples a:hover {
  color: var(--amber-700);
}

.rank-grid {
  display: grid;
  gap: 18px;
}

.compact-rank {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rank-item {
  display: grid;
  grid-template-columns: 92px 58px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 14px 40px rgba(120, 53, 15, 0.07);
}

.rank-cover {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--amber-200), var(--amber-700));
}

.rank-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.rank-number {
  color: var(--amber-600);
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.rank-copy h2 {
  margin: 0 0 8px;
  color: var(--amber-950);
  font-size: 20px;
}

.rank-copy p {
  margin: 0 0 10px;
  color: var(--muted);
}

.rank-meta strong {
  color: var(--amber-700);
}

.page-hero {
  max-width: 1200px;
  margin: 34px auto 0;
  padding: 54px;
  color: white;
  background:
    radial-gradient(circle at 84% 22%, rgba(253, 230, 138, 0.4), transparent 18rem),
    linear-gradient(135deg, var(--amber-950), var(--amber-700));
}

.page-hero.slim {
  min-height: 280px;
  display: grid;
  align-items: center;
}

.page-hero.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
}

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

.category-lead-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.category-lead-card span {
  color: var(--amber-100);
  font-size: 13px;
  font-weight: 900;
}

.category-lead-card strong {
  color: white;
  font-size: 20px;
  line-height: 1.22;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 16px;
}

.category-cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--amber-200), var(--amber-700));
}

.category-cover img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.category-cover span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.58);
  font-weight: 900;
}

.category-overview-card h2 {
  margin: 6px 0 10px;
  color: var(--amber-950);
  font-size: 26px;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.detail-hero {
  max-width: 1280px;
  margin: 22px auto 0;
  padding: 28px 24px 64px;
  border-radius: 0 0 38px 38px;
  color: white;
  background-size: cover;
  background-position: center;
}

.breadcrumb {
  max-width: 1200px;
  margin: 0 auto 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: white;
}

.detail-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.detail-cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
  background: linear-gradient(135deg, var(--amber-200), var(--amber-700));
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-cover span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.56);
  font-weight: 900;
}

.detail-copy h1 {
  max-width: 860px;
}

.detail-tags {
  margin-top: 18px;
}

.player-section {
  padding-top: 54px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #050505;
  box-shadow: 0 28px 80px rgba(24, 24, 27, 0.24);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: white;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.22), transparent 18rem),
    rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), #ea580c);
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.32);
  position: relative;
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 31px;
  top: 24px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 20px solid white;
}

.player-overlay strong {
  font-size: 20px;
}

.article-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.detail-article,
.side-card {
  padding: 30px;
}

.detail-article h2,
.side-card h2 {
  margin: 0 0 14px;
  color: var(--amber-950);
  font-size: 28px;
}

.detail-article p {
  margin: 0 0 24px;
  color: #3f3f46;
  font-size: 17px;
}

.side-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.side-card dl div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.side-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.side-card dd {
  margin: 0;
  color: var(--amber-950);
  font-weight: 900;
}

.side-nav {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.side-nav a {
  padding: 12px;
  border-radius: 14px;
  color: var(--amber-900);
  background: var(--amber-100);
  font-weight: 900;
}

.empty-state {
  display: none;
  margin-top: 20px;
  padding: 24px;
  border-radius: 18px;
  color: var(--amber-900);
  background: var(--amber-100);
  font-weight: 900;
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  margin-top: 50px;
  color: var(--amber-100);
  background: linear-gradient(180deg, var(--amber-900), var(--amber-950));
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  color: white;
  font-size: 26px;
}

.footer-brand p {
  max-width: 480px;
  margin: 14px 0 0;
  color: rgba(254, 243, 199, 0.82);
}

.footer-links h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 18px;
}

.footer-grid {
  display: grid;
  gap: 10px;
}

.footer-grid a {
  color: rgba(254, 243, 199, 0.82);
}

.footer-grid a:hover {
  color: white;
}

.footer-bottom {
  padding: 18px 24px;
  border-top: 1px solid rgba(254, 243, 199, 0.16);
  text-align: center;
  color: rgba(254, 243, 199, 0.72);
}

[data-movie-card].is-hidden {
  display: none;
}

@media (max-width: 1080px) {
  .movie-grid,
  .movie-grid.dense,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-slide,
  .page-hero.category-hero,
  .article-section {
    grid-template-columns: 1fr;
  }

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

  .compact-rank,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .site-header-inner {
    height: 66px;
    padding: 0 16px;
  }

  .logo-text {
    font-size: 20px;
  }

  .hero {
    padding: 0 14px;
  }

  .hero-slider {
    min-height: 760px;
    border-radius: 24px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
    padding: 32px 22px;
  }

  .hero-poster {
    max-width: 220px;
    transform: none;
  }

  .section {
    padding: 34px 16px;
  }

  .intro-strip,
  .search-panel,
  .detail-layout,
  .footer-inner,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .intro-strip {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .movie-card-body {
    padding: 14px;
  }

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

  .movie-card p {
    font-size: 13px;
  }

  .rank-item {
    grid-template-columns: 78px 42px 1fr;
    gap: 12px;
  }

  .rank-number {
    font-size: 26px;
  }

  .rank-copy h2 {
    font-size: 17px;
  }

  .rank-copy p {
    display: none;
  }

  .page-hero,
  .detail-hero {
    margin-top: 16px;
    padding: 32px 18px;
    border-radius: 24px;
  }

  .category-leads {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    gap: 24px;
  }

  .detail-cover {
    max-width: 230px;
  }

  .detail-copy h1 {
    font-size: 40px;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .movie-grid.dense,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 820px;
  }

  .rank-item {
    grid-template-columns: 70px 1fr;
  }

  .rank-number {
    display: none;
  }
}
