:root {
  --earth-950: #2d1f18;
  --earth-900: #573729;
  --earth-800: #6a4130;
  --earth-700: #814e34;
  --earth-600: #9b5f3c;
  --bronze-700: #7e5d41;
  --bronze-600: #98724c;
  --bronze-500: #a68558;
  --bronze-300: #d0bd9f;
  --stone-50: #f8f7f4;
  --stone-100: #efede7;
  --stone-200: #ddd9cc;
  --stone-300: #c5bfad;
  --stone-500: #998d73;
  --stone-600: #8b7d67;
  --stone-700: #746957;
  --white: #ffffff;
  --black: #090807;
  --shadow-soft: 0 18px 45px rgba(45, 31, 24, 0.12);
  --shadow-strong: 0 30px 80px rgba(45, 31, 24, 0.22);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--earth-950);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(87, 55, 41, 0.96);
  color: var(--stone-50);
  box-shadow: 0 12px 32px rgba(45, 31, 24, 0.18);
  backdrop-filter: blur(16px);
}

.site-nav {
  min-height: 72px;
  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: 800;
  letter-spacing: -0.03em;
}

.site-logo {
  font-size: 26px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bronze-300), var(--bronze-600));
  color: var(--earth-900);
  font-size: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 650;
}

.nav-link {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  color: var(--stone-200);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--bronze-300);
  border-color: var(--bronze-300);
}

.nav-link-muted {
  font-size: 14px;
  color: var(--stone-300);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 16px 18px;
}

.mobile-menu a {
  display: block;
  padding: 10px 0;
  color: var(--stone-100);
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--earth-900), var(--bronze-700));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
  transition: opacity 0.75s ease, transform 1.2s ease;
}

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

.hero-slide img,
.detail-backdrop img,
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide img {
  position: absolute;
  inset: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(208, 189, 159, 0.2), transparent 30%),
    linear-gradient(90deg, rgba(45, 31, 24, 0.9), rgba(87, 55, 41, 0.72) 42%, rgba(45, 31, 24, 0.15));
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(208, 189, 159, 0.18);
  color: var(--bronze-300);
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-title-wrap h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-title-wrap p {
  max-width: 720px;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--stone-100);
}

.hero-meta,
.movie-meta,
.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span,
.meta-strip span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--stone-50);
  font-weight: 650;
}

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

.button-primary,
.button-ghost,
.button-soft,
.section-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  background: var(--bronze-500);
  color: var(--white);
  box-shadow: 0 15px 35px rgba(166, 133, 88, 0.35);
}

.button-primary:hover,
.button-soft:hover,
.section-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

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

.button-soft,
.section-action {
  color: var(--earth-800);
  background: var(--stone-100);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 2;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--bronze-300);
}

.content-section {
  padding: 72px 0;
}

.content-band {
  background: var(--stone-100);
}

.classic-strip {
  background: linear-gradient(90deg, #f1ebe0, #e7decf);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--earth-900);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--stone-600);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.poster-box {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(106, 65, 48, 0.86), rgba(166, 133, 88, 0.82)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 25%);
}

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

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

.poster-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: var(--white);
  font-weight: 800;
  text-align: center;
  background: linear-gradient(135deg, var(--earth-800), var(--bronze-600));
}

.poster-box.image-missing .poster-fallback {
  display: flex;
}

.poster-box.image-missing img {
  opacity: 0;
}

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

.movie-meta {
  margin-bottom: 10px;
  color: var(--bronze-700);
  font-size: 13px;
  font-weight: 750;
}

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--earth-900);
  font-size: 20px;
  line-height: 1.25;
}

.movie-card h3 a:hover {
  color: var(--bronze-600);
}

.movie-card p {
  margin: 0;
  color: var(--stone-700);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--stone-100);
  color: var(--stone-700);
  font-size: 12px;
  font-weight: 650;
}

.horizontal-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: 24px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scrollbar-width: thin;
}

.classic-list,
.rank-list,
.side-recommend-list {
  display: grid;
  gap: 16px;
}

.classic-row,
.rank-row,
.side-recommend {
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.classic-row:hover,
.rank-row:hover,
.side-recommend:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.classic-row {
  padding: 16px;
}

.classic-poster {
  width: 240px;
  min-width: 240px;
  border-radius: 16px;
}

.classic-info strong,
.rank-info strong,
.side-recommend strong {
  display: block;
  color: var(--earth-900);
  font-size: 20px;
}

.classic-info small,
.rank-info small,
.side-recommend small {
  display: block;
  color: var(--bronze-700);
  font-weight: 700;
}

.classic-info em,
.rank-info em {
  display: block;
  margin-top: 8px;
  color: var(--stone-700);
  font-style: normal;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 18px;
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(45, 31, 24, 0.86));
}

.category-tile img {
  position: absolute;
  inset: 0;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile strong,
.category-tile small {
  position: relative;
  z-index: 1;
}

.category-tile strong {
  font-size: 22px;
}

.category-tile small {
  color: var(--stone-200);
}

.rank-row {
  padding: 12px;
}

.rank-number {
  width: 54px;
  color: var(--bronze-600);
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.rank-poster {
  width: 124px;
  min-width: 124px;
  border-radius: 14px;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--bronze-500);
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-hero,
.movie-hero-detail {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(208, 189, 159, 0.22), transparent 34%),
    linear-gradient(135deg, var(--earth-900), var(--earth-700));
  color: var(--white);
}

.page-hero {
  padding: 94px 0;
}

.page-hero-compact {
  padding: 64px 0;
}

.page-hero h1,
.page-hero p {
  position: relative;
  z-index: 1;
}

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

.category-overview-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.category-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 150px;
  overflow: hidden;
}

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

.category-overview-card div {
  padding: 22px;
}

.category-overview-card h2 {
  margin: 0;
  color: var(--earth-900);
}

.category-overview-card p {
  color: var(--stone-700);
}

.category-overview-card span {
  color: var(--bronze-700);
  font-weight: 800;
}

.filter-panel,
.advanced-search-panel {
  display: flex;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.search-field,
.advanced-search-panel label {
  display: grid;
  flex: 1;
  gap: 8px;
  color: var(--earth-800);
  font-weight: 800;
}

.search-field input,
.advanced-search-panel input,
.advanced-search-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--earth-900);
  background: var(--stone-50);
  outline: none;
}

.search-field input:focus,
.advanced-search-panel input:focus,
.advanced-search-panel select:focus {
  border-color: var(--bronze-500);
  box-shadow: 0 0 0 4px rgba(166, 133, 88, 0.15);
}

.search-count {
  margin: 0 0 22px;
  color: var(--stone-600);
  font-weight: 700;
}

.ranking-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.ranking-column {
  min-width: 0;
}

.ranking-column h2 {
  color: var(--earth-900);
}

.movie-hero-detail {
  min-height: 420px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  filter: blur(3px) saturate(0.95);
  transform: scale(1.02);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(45, 31, 24, 0.95), rgba(87, 55, 41, 0.82));
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  padding: 46px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 46px;
  color: var(--stone-200);
  font-weight: 650;
}

.breadcrumb a:hover {
  color: var(--bronze-300);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 28px;
  padding: 48px 0 0;
}

.detail-main {
  min-width: 0;
}

.player-card,
.detail-card,
.sticky-card,
.plain-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  color: var(--white);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.54));
  color: var(--white);
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.video-shell.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bronze-500);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
  font-size: 34px;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: var(--stone-100);
  font-size: 13px;
  backdrop-filter: blur(8px);
}

.video-shell.is-playing .player-status {
  opacity: 0;
}

.player-controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-shell:hover .player-controls,
.video-shell.is-playing .player-controls {
  opacity: 1;
}

.player-controls button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.detail-card,
.sticky-card,
.plain-card {
  padding: 28px;
}

.detail-card h2,
.sticky-card h2,
.plain-card h2 {
  margin: 28px 0 12px;
  color: var(--earth-900);
  font-size: 26px;
}

.detail-card h2:first-child,
.sticky-card h2:first-child,
.plain-card h2:first-child {
  margin-top: 0;
}

.detail-card p,
.plain-card p {
  color: var(--stone-700);
  font-size: 17px;
  line-height: 1.9;
}

.lead-text {
  color: var(--earth-800) !important;
  font-weight: 750;
}

.meta-strip {
  margin-bottom: 26px;
}

.meta-strip span {
  background: var(--stone-100);
  color: var(--earth-800);
}

.detail-tags span {
  background: #f0e8db;
  color: var(--earth-800);
}

.detail-sidebar {
  min-width: 0;
}

.sticky-card {
  position: sticky;
  top: 96px;
}

.side-recommend {
  padding: 10px;
  box-shadow: none;
  border: 1px solid var(--stone-200);
}

.side-poster {
  width: 112px;
  min-width: 112px;
  border-radius: 14px;
}

.narrow-content {
  max-width: 880px;
}

.faq-list h2 {
  padding-top: 10px;
  border-top: 1px solid var(--stone-200);
}

.site-footer {
  margin-top: 72px;
  background: var(--earth-900);
  color: var(--stone-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 46px 0;
}

.footer-logo {
  margin: 0 0 14px;
  color: var(--bronze-300);
  font-size: 24px;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--stone-300);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

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

  .sticky-card {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

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

  .hero-carousel,
  .hero-content {
    min-height: 560px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(45, 31, 24, 0.72), rgba(45, 31, 24, 0.93));
  }

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

  .filter-panel,
  .advanced-search-panel,
  .section-heading,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .classic-row,
  .rank-row {
    align-items: flex-start;
  }

  .classic-poster {
    width: 140px;
    min-width: 140px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .site-logo {
    font-size: 22px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 620px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-title-wrap h1 {
    font-size: 40px;
  }

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

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

  .content-section {
    padding: 48px 0;
  }

  .page-hero {
    padding: 58px 0;
  }

  .category-collage {
    grid-template-columns: repeat(2, 1fr);
  }

  .classic-row,
  .rank-row,
  .side-recommend {
    gap: 12px;
  }

  .rank-number {
    width: 34px;
    font-size: 20px;
  }

  .rank-poster,
  .side-poster {
    width: 94px;
    min-width: 94px;
  }

  .player-controls {
    left: 12px;
    right: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }
}
