:root {
  color-scheme: light;
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.08);
  --shadow-md: 0 10px 24px rgba(28, 25, 23, 0.12);
  --shadow-lg: 0 22px 50px rgba(28, 25, 23, 0.2);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 25, 23, 0.96);
  color: var(--stone-100);
  border-bottom: 1px solid rgba(231, 229, 228, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(100% - 32px, var(--container));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  color: var(--stone-950);
  font-size: 15px;
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.28);
}

.brand-copy {
  display: grid;
  gap: 0;
}

.brand-copy strong {
  font-size: 20px;
  line-height: 1.1;
}

.brand-copy em {
  color: var(--stone-400);
  font-size: 12px;
  font-style: normal;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  font-size: 15px;
}

.nav-link {
  color: var(--stone-300);
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--stone-100);
  font-size: 26px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  background: var(--stone-950);
}

.hero-bg {
  position: absolute;
  inset: -4% 0 0 0;
  background-size: cover;
  background-position: center;
  transform: translateY(var(--hero-y, 0px)) scale(1.04);
  transition: transform 0.08s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(245, 158, 11, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(12, 10, 9, 0.16), rgba(12, 10, 9, 0.92) 78%),
    linear-gradient(90deg, rgba(12, 10, 9, 0.94), rgba(12, 10, 9, 0.28));
}

.hero-content {
  position: relative;
  width: min(100% - 32px, var(--container));
  min-height: 90vh;
  margin: 0 auto;
  padding: 120px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 40px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--amber-500);
  color: var(--stone-950);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.sub-hero h1,
.category-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  color: var(--white);
  font-size: clamp(42px, 7vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 26px;
  color: var(--stone-300);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  border: 1px solid rgba(231, 229, 228, 0.16);
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.7);
  color: var(--stone-300);
  font-size: 14px;
}

.hero-actions,
.center-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

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

.primary-button {
  background: var(--amber-500);
  color: var(--stone-950);
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.28);
}

.primary-button:hover {
  background: var(--amber-600);
  transform: translateY(-2px);
}

.ghost-button {
  border: 1px solid rgba(231, 229, 228, 0.28);
  background: rgba(28, 25, 23, 0.42);
  color: var(--stone-100);
}

.ghost-button:hover {
  border-color: var(--amber-500);
  color: var(--amber-400);
  transform: translateY(-2px);
}

.ghost-button.light {
  background: rgba(255, 255, 255, 0.08);
}

.hero-side {
  display: grid;
  gap: 14px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 10px;
  border: 1px solid rgba(231, 229, 228, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(28, 25, 23, 0.56);
  color: var(--stone-100);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.horizontal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.72);
}

.horizontal-card img {
  width: 92px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--stone-800);
}

.horizontal-card span {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
}

.horizontal-card strong,
.horizontal-card em {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.horizontal-card strong {
  -webkit-line-clamp: 1;
  font-size: 15px;
}

.horizontal-card em {
  -webkit-line-clamp: 2;
  color: var(--stone-400);
  font-size: 12px;
  font-style: normal;
}

.section {
  padding: 76px 0;
}

.section > .section-head,
.section > .movie-grid,
.section > .category-grid,
.section > .overview-grid,
.section > .filter-box,
.section > .showcase-layout,
.section > .movie-strip,
.section > .rank-grid,
.section > .empty-state,
.section > .center-action,
.detail-section > .player-shell,
.detail-section > .detail-article {
  width: min(100% - 32px, var(--container));
  margin-left: auto;
  margin-right: auto;
}

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

.section-amber {
  background: linear-gradient(135deg, var(--amber-50), var(--stone-100));
}

.section-dark {
  background: linear-gradient(135deg, var(--stone-950), var(--stone-800));
  color: var(--stone-100);
}

.section-head {
  margin-bottom: 30px;
}

.section-head span {
  color: var(--amber-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.section-head h2 {
  margin: 6px 0 8px;
  color: var(--stone-900);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

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

.dark-head h2,
.dark-head p {
  color: var(--stone-100);
}

.dark-head p {
  color: var(--stone-400);
}

.compact-head {
  text-align: center;
}

.compact-head p {
  margin-left: auto;
  margin-right: auto;
}

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

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

.movie-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 211, 209, 0.75);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: var(--shadow-lg);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--stone-800), var(--stone-950));
}

.featured-grid .poster-wrap {
  aspect-ratio: 16 / 10;
}

.movie-card.compact .poster-wrap {
  aspect-ratio: 16 / 11;
}

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

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

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  top: 12px;
  right: 12px;
  background: rgba(28, 25, 23, 0.78);
}

.rank-badge {
  left: 12px;
  top: 12px;
  background: var(--amber-500);
  color: var(--stone-950);
}

.movie-card-body {
  display: grid;
  gap: 9px;
  padding: 18px;
}

.movie-card-body h2 {
  min-height: 2.55em;
  margin: 0;
  color: var(--stone-900);
  font-size: 18px;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

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

.movie-card-body p {
  min-height: 3.1em;
  margin: 0;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--stone-100);
  color: var(--stone-600);
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile {
  min-height: 180px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 22px;
  border-radius: var(--radius);
  background-position: center;
  background-size: cover;
  color: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

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

.category-tile span {
  color: var(--stone-300);
  font-size: 14px;
}

.showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 22px;
  margin-bottom: 24px;
}

.feature-panel {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stone-900);
  box-shadow: var(--shadow-md);
}

.feature-panel img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.feature-panel:hover img {
  transform: scale(1.05);
}

.feature-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.9), rgba(12, 10, 9, 0.08));
}

.feature-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 9px;
  color: var(--white);
}

.feature-copy em {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--amber-500);
  color: var(--stone-950);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.feature-copy strong {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.feature-copy small {
  color: var(--stone-300);
  font-size: 15px;
}

.stack-list {
  display: grid;
  gap: 14px;
}

.stack-list .horizontal-card {
  background: var(--white);
  color: var(--stone-900);
  border-color: rgba(214, 211, 209, 0.9);
}

.stack-list .horizontal-card em {
  color: var(--stone-600);
}

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

.filter-box {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px;
  gap: 14px;
  margin-bottom: 26px;
}

.filter-box.wide-filter {
  grid-template-columns: minmax(260px, 1fr) 220px 220px;
}

.filter-box label {
  display: grid;
  gap: 7px;
  color: var(--stone-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-box input,
.filter-box select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  background: var(--white);
  color: var(--stone-900);
  outline: none;
  padding: 0 14px;
  box-shadow: var(--shadow-sm);
}

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

.empty-state {
  padding: 28px;
  border: 1px dashed var(--stone-300);
  border-radius: var(--radius);
  color: var(--stone-600);
  text-align: center;
}

.sub-hero,
.category-hero {
  padding: 96px 16px 70px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.22), transparent 34%),
    linear-gradient(135deg, var(--stone-950), var(--stone-800));
  color: var(--white);
}

.dark-sub-hero {
  background:
    radial-gradient(circle at 60% 20%, rgba(245, 158, 11, 0.26), transparent 32%),
    linear-gradient(135deg, var(--stone-950), #171412 70%, var(--stone-800));
}

.sub-hero h1,
.category-hero h1 {
  margin-left: auto;
  margin-right: auto;
}

.sub-hero p,
.category-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--stone-300);
  font-size: 18px;
}

.category-hero {
  min-height: 460px;
  display: grid;
  place-items: center;
  background-position: center;
  background-size: cover;
  text-align: left;
}

.category-hero > div {
  width: min(100% - 32px, var(--container));
}

.category-hero p {
  margin-left: 0;
  margin-bottom: 28px;
}

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

.overview-card {
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.overview-posters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.overview-posters img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  background: var(--stone-200);
}

.overview-card strong {
  color: var(--stone-900);
  font-size: 22px;
}

.overview-card em {
  color: var(--stone-600);
  font-style: normal;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background: var(--stone-950);
  color: var(--white);
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(10px) saturate(0.9);
  transform: scale(1.08);
  opacity: 0.5;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 9, 0.96), rgba(12, 10, 9, 0.62)),
    linear-gradient(0deg, rgba(12, 10, 9, 0.98), transparent 48%);
}

.detail-inner {
  position: relative;
  width: min(100% - 32px, var(--container));
  min-height: 680px;
  margin: 0 auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: 44px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--stone-800);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--stone-400);
  font-size: 14px;
}

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

.detail-copy h1 {
  font-size: clamp(40px, 6vw, 72px);
}

.detail-copy p {
  max-width: 820px;
  margin: 0 0 24px;
  color: var(--stone-300);
  font-size: 19px;
}

.detail-section {
  padding-top: 64px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000000;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.video-node,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-node {
  z-index: 1;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  z-index: 3;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000000;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(0.9);
}

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

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amber-500);
  color: var(--stone-950);
  font-size: 30px;
  font-weight: 900;
  transform: translate(-50%, -50%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
}

.detail-article {
  max-width: 900px;
  padding-top: 36px;
}

.detail-article h2 {
  margin: 28px 0 12px;
  color: var(--stone-900);
  font-size: 28px;
  line-height: 1.2;
}

.detail-article p {
  margin: 0;
  color: var(--stone-700);
  font-size: 17px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.detail-tags a:hover {
  background: var(--amber-100);
  color: var(--amber-700);
}

.site-footer {
  background: var(--stone-950);
  color: var(--stone-400);
  border-top: 1px solid rgba(231, 229, 228, 0.08);
}

.footer-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 54px 0 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 1fr 1fr;
  gap: 38px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--stone-100);
  font-size: 20px;
}

.footer-about p {
  max-width: 520px;
  margin: 0;
}

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

.footer-links h2 {
  margin: 0 0 8px;
  color: var(--stone-100);
  font-size: 17px;
}

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

.copyright {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(231, 229, 228, 0.08);
  text-align: center;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

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

  .hero-content {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .header-inner {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

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

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 0;
    border-top: 1px solid rgba(231, 229, 228, 0.08);
  }

  .hero-content {
    padding-top: 90px;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

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

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

  .filter-box,
  .filter-box.wide-filter {
    grid-template-columns: 1fr;
  }

  .detail-inner {
    padding-top: 42px;
  }

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

@media (max-width: 560px) {
  .brand-copy strong {
    font-size: 18px;
  }

  .section {
    padding: 54px 0;
  }

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

  .hero h1,
  .sub-hero h1,
  .category-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

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

  .horizontal-card {
    grid-template-columns: 86px 1fr;
  }

  .feature-panel,
  .feature-panel img {
    min-height: 340px;
  }

  .detail-hero,
  .detail-inner {
    min-height: auto;
  }

  .player-shell {
    border-radius: 0;
    width: 100%;
  }
}
