:root {
  --earth-50: #faf8f5;
  --earth-100: #f2ede4;
  --earth-300: #dbc5a3;
  --earth-500: #b88d55;
  --earth-600: #a47549;
  --earth-700: #8a5f3e;
  --earth-900: #5a4029;
  --canyon-500: #d96840;
  --canyon-700: #a8462e;
  --canyon-900: #6e3021;
  --stone-50: #fbfaf8;
  --stone-100: #f5f3ef;
  --stone-200: #e5e1da;
  --stone-300: #d1cac0;
  --stone-500: #91877c;
  --stone-600: #746a60;
  --stone-700: #655b52;
  --stone-800: #5c534c;
  --stone-900: #29231f;
  --moss-500: #7d8e61;
  --max-width: 1180px;
  --shadow: 0 22px 60px rgba(41, 35, 31, 0.14);
  --soft-shadow: 0 12px 28px rgba(41, 35, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--earth-100), var(--stone-200));
}

button,
input,
select {
  font: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.88);
  border-bottom: 1px solid rgba(229, 225, 218, 0.8);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--earth-900);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--earth-600), var(--canyon-500));
  box-shadow: var(--soft-shadow);
}

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

.desktop-nav,
.mobile-nav,
.footer-links,
.quick-links,
.mini-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-link,
.quick-links a,
.mini-links a,
.footer-links a {
  color: var(--stone-700);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 8px 14px;
  font-weight: 650;
}

.nav-link:hover,
.nav-link.active,
.quick-links a:hover,
.mini-links a:hover,
.footer-links a:hover {
  color: var(--earth-700);
  background: var(--earth-100);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--earth-100);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--earth-900);
}

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--earth-900), var(--stone-800) 50%, var(--canyon-900));
}

.hero-grid-layer {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.34;
}

.hero-backdrop::after,
.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(41, 35, 31, 0.9), rgba(41, 35, 31, 0.55), rgba(41, 35, 31, 0.9));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  min-height: 640px;
  margin: 0 auto;
  padding: 88px 24px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--earth-300);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.inner-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero h2 {
  margin: 18px 0 0;
  font-size: clamp(26px, 3.4vw, 44px);
  color: var(--earth-300);
}

.hero p,
.inner-hero p,
.detail-info p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-list span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.tag-list span {
  background: var(--earth-100);
  color: var(--earth-700);
  border-color: transparent;
}

.tag-list.large span {
  padding: 8px 12px;
  color: var(--earth-900);
}

.hero-actions,
.detail-actions,
.pager-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.text-btn,
.home-search button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.home-search button {
  color: #fff;
  background: linear-gradient(135deg, var(--earth-600), var(--canyon-500));
  box-shadow: 0 12px 30px rgba(164, 117, 73, 0.34);
  border: 0;
}

.primary-btn:hover,
.home-search button:hover,
.movie-card:hover,
.showcase-card:hover,
.category-chip:hover,
.category-overview-card:hover {
  transform: translateY(-3px);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.text-btn,
.section-more {
  color: var(--earth-700);
  background: var(--earth-100);
}

.hero-poster {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  background: var(--earth-100);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  z-index: 1;
}

.hero-poster span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  font-weight: 800;
  font-size: 18px;
}

.hero-poster.small {
  min-height: 330px;
}

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

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

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

.search-band {
  position: relative;
  z-index: 6;
  max-width: var(--max-width);
  margin: -42px auto 0;
  padding: 0 24px;
}

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

.home-search label {
  color: var(--earth-900);
  font-weight: 800;
}

.home-search input,
.filter-field input,
.filter-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--stone-900);
  background: #fff;
  outline: none;
}

.home-search input:focus,
.filter-field input:focus,
.filter-field select:focus {
  border-color: var(--earth-500);
  box-shadow: 0 0 0 4px rgba(184, 141, 85, 0.14);
}

.quick-links {
  margin-top: 14px;
}

.quick-links a,
.mini-links a {
  padding: 7px 12px;
  background: #fff;
  border: 1px solid var(--stone-200);
}

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

.content-section.light {
  background: var(--stone-50);
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

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

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

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

.related-grid,
.latest-list,
.rank-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--stone-200);
  box-shadow: 0 10px 28px rgba(41, 35, 31, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.movie-card.compact {
  display: grid;
  grid-template-columns: 110px 1fr;
  min-height: 158px;
}

.movie-card.compact .poster-link {
  aspect-ratio: auto;
  height: 100%;
}

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.56));
}

.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--canyon-500), var(--earth-600));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--stone-500);
  font-size: 13px;
}

.card-meta span {
  padding: 2px 7px;
  border-radius: 8px;
  background: var(--stone-100);
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.card-body h3 a:hover {
  color: var(--earth-700);
}

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

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

.showcase-card,
.category-chip,
.category-overview-card,
.story-card,
.info-card {
  overflow: hidden;
  border: 1px solid var(--stone-200);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(41, 35, 31, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.showcase-card a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  color: #fff;
}

.showcase-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.76));
}

.showcase-card span,
.showcase-card strong {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
}

.showcase-card span {
  bottom: 52px;
  color: var(--earth-300);
  font-size: 13px;
  font-weight: 800;
}

.showcase-card strong {
  bottom: 18px;
  font-size: 18px;
}

.split-grid,
.detail-text-grid,
.two-col-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 38px;
}

.rank-list,
.latest-list {
  display: grid;
  gap: 16px;
}

.inner-hero {
  color: #fff;
  background: radial-gradient(circle at top left, rgba(217, 104, 64, 0.35), transparent 35%), linear-gradient(135deg, var(--earth-900), var(--stone-800) 55%, var(--canyon-900));
  padding: 82px 0;
}

.inner-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.category-chip-grid {
  margin-top: 32px;
}

.category-chip {
  min-height: 120px;
  display: grid;
  grid-template-columns: 96px 1fr;
  color: var(--stone-900);
  background: rgba(255, 255, 255, 0.9);
}

.category-chip img {
  min-height: 120px;
}

.category-chip span {
  padding: 16px;
}

.category-chip b {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.category-chip em {
  display: block;
  color: var(--stone-600);
  font-size: 13px;
  font-style: normal;
}

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.category-cover {
  min-height: 250px;
}

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

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
  flex-wrap: wrap;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 160px;
  gap: 14px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--stone-200);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(41, 35, 31, 0.06);
}

.filter-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--stone-600);
  font-weight: 700;
  font-size: 14px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--stone-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.35;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 64px;
  padding-bottom: 64px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.player-section {
  padding-top: 56px;
  background: #100f0e;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: radial-gradient(circle, rgba(164, 117, 73, 0.1), rgba(0, 0, 0, 0.58));
}

.play-overlay.is-hidden {
  display: none;
}

.play-button {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--earth-600), var(--canyon-500));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

.detail-text-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 300px;
}

.story-card,
.info-card {
  padding: 28px;
}

.story-card.accent {
  border-left: 4px solid var(--canyon-500);
}

.story-card h2,
.info-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.story-card p {
  margin: 0;
  color: var(--stone-700);
}

.info-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px 14px;
}

.info-card dt {
  color: var(--stone-500);
  font-weight: 700;
}

.info-card dd {
  margin: 0;
  color: var(--stone-900);
}

.info-card a {
  color: var(--earth-700);
  font-weight: 750;
}

.pager-links {
  justify-content: space-between;
  margin-top: 28px;
}

.pager-links a {
  flex: 1 1 260px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--stone-200);
  background: var(--stone-50);
  color: var(--earth-700);
  font-weight: 750;
}

.site-footer {
  padding: 46px 0;
  color: var(--stone-300);
  background: var(--stone-900);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.2fr;
  gap: 28px;
}

.footer-brand {
  color: #fff;
  font-size: 22px;
}

.footer-inner p {
  margin: 12px 0 0;
  color: var(--stone-300);
}

.footer-links a {
  color: var(--stone-300);
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.06);
}

[data-filter-hidden="true"] {
  display: none !important;
}

@media (max-width: 1024px) {
  .hero-content,
  .split-grid,
  .two-col-hero,
  .detail-text-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    min-height: 360px;
  }

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

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

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

  .menu-toggle {
    display: flex;
  }

  .mobile-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 52px;
  }

  .hero-poster {
    min-height: 300px;
  }

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

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

  .movie-card.compact {
    grid-template-columns: 96px 1fr;
  }

  .showcase-grid,
  .category-chip-grid {
    grid-template-columns: 1fr;
  }

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

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container,
  .header-inner,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .movie-grid,
  .featured-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .inner-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

  .detail-layout {
    gap: 24px;
  }

  .detail-poster {
    max-width: 260px;
  }
}
