* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #fffaf1;
  --paper: #ffffff;
  --paper-soft: #fff7e6;
  --ink: #2f2418;
  --muted: #7c6042;
  --amber: #d97706;
  --amber-dark: #92400e;
  --orange: #ea580c;
  --gold: #fbbf24;
  --line: rgba(146, 64, 14, 0.16);
  --shadow: 0 24px 70px rgba(99, 45, 8, 0.18);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff9ec 0%, #ffffff 45%, #fff6e2 100%);
  line-height: 1.65;
}

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;
  color: #fff;
  background: linear-gradient(90deg, #78350f 0%, #92400e 45%, #451a03 100%);
  box-shadow: 0 16px 50px rgba(69, 26, 3, 0.28);
}

.nav-bar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #fde68a, #fff7ed);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text em {
  font-size: 12px;
  color: #fde68a;
  font-style: normal;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: #fff7ed;
  font-weight: 700;
  transition: color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover {
  color: #fbbf24;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(251, 191, 36, 0.5), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(234, 88, 12, 0.35), transparent 30%),
    linear-gradient(135deg, #451a03 0%, #78350f 42%, #1c1917 100%);
}

.hero-glow {
  position: absolute;
  inset: auto -10% -35% auto;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.26);
  filter: blur(18px);
}

.hero-container {
  position: relative;
  padding: 86px 0 74px;
}

.hero-slider {
  position: relative;
  min-height: 510px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 54px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.hero-label,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 7px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  color: #78350f;
  background: linear-gradient(90deg, #fde68a, #fbbf24);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 26px;
  color: #fdebd3;
  font-size: 19px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 40px rgba(234, 88, 12, 0.32);
}

.ghost-btn {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
}

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

.hero-poster {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  min-height: 450px;
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.35), rgba(120, 53, 15, 0.75));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.45));
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

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

.hero-dots button.is-active {
  background: #fbbf24;
}

.category-strip {
  position: relative;
  margin-top: -54px;
  z-index: 5;
}

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

.category-pill,
.overview-card,
.side-card,
.detail-content,
.filter-bar {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.category-pill {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 20px;
  border-radius: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-pill strong {
  color: var(--amber-dark);
  font-size: 18px;
}

.category-pill span {
  color: var(--muted);
  font-size: 13px;
}

.category-pill:hover,
.overview-card:hover,
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 80px rgba(99, 45, 8, 0.22);
}

.page-section {
  padding: 78px 0;
}

.warm-section {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

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

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-more {
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 16px 45px rgba(99, 45, 8, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link {
  display: grid;
  height: 100%;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, #fef3c7, #92400e);
}

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

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

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

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.year-badge {
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  color: #78350f;
  background: #fde68a;
  font-size: 12px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.32);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--amber-dark);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  min-height: 2.7em;
  margin: 0;
  color: #352312;
  font-size: 18px;
  line-height: 1.35;
}

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

.sub-page {
  background: linear-gradient(180deg, #fff7ed, #fff);
}

.sub-hero {
  padding: 78px 0;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.34), transparent 30%),
    linear-gradient(135deg, #78350f, #451a03);
}

.sub-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: #fdebd3;
  font-size: 18px;
}

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

.overview-card {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 24px;
  border-radius: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.overview-icon {
  font-size: 34px;
}

.overview-card h2 {
  margin: 0;
  color: var(--amber-dark);
  font-size: 22px;
}

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

.overview-card em {
  margin-top: auto;
  color: var(--orange);
  font-style: normal;
  font-weight: 900;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 20px;
}

.expanded-filter {
  grid-template-columns: minmax(240px, 1fr) 170px 150px 150px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fffaf1;
  padding: 0 14px;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.detail-page {
  background: linear-gradient(180deg, #1c1917 0%, #451a03 420px, #fff7ed 421px, #fff 100%);
}

.player-section {
  padding: 42px 0 80px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 18px;
  color: #fde68a;
  font-size: 14px;
}

.breadcrumb strong {
  color: #fff7ed;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #0c0a09;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0c0a09;
  cursor: pointer;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.2), rgba(28, 25, 23, 0.76));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #78350f;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  font-size: 32px;
  box-shadow: 0 18px 50px rgba(245, 158, 11, 0.4);
}

.detail-content {
  margin-top: 24px;
  padding: 30px;
  border-radius: 28px;
}

.detail-content h1 {
  margin: 0 0 12px;
  color: #2f2418;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.detail-content h2 {
  margin: 28px 0 12px;
  color: var(--amber-dark);
  font-size: 24px;
}

.lead-text {
  color: var(--muted);
  font-size: 18px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-meta-grid span {
  padding: 12px;
  border-radius: 14px;
  color: #78350f;
  background: #fff7ed;
  font-weight: 700;
}

.side-panel {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 20px;
}

.side-poster {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(145deg, #fef3c7, #92400e);
  box-shadow: var(--shadow);
}

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

.side-card {
  border-radius: 24px;
  padding: 22px;
}

.side-card h2 {
  margin: 0 0 16px;
  color: var(--amber-dark);
}

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

.related-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #fff7ed;
  transition: transform 0.2s ease, background 0.2s ease;
}

.related-item:hover {
  transform: translateX(4px);
  background: #ffedd5;
}

.related-item img {
  width: 64px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(145deg, #fde68a, #78350f);
}

.related-item span {
  color: #3b2a19;
  font-weight: 800;
  line-height: 1.35;
}

.site-footer {
  padding: 46px 0;
  color: #fdebd3;
  background: linear-gradient(90deg, #451a03, #1c1917);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.site-footer strong {
  color: #fde68a;
  font-size: 22px;
}

.site-footer p {
  max-width: 520px;
  margin: 8px 0 0;
  color: #fed7aa;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: #fff7ed;
  font-weight: 700;
}

.footer-links a:hover {
  color: #fbbf24;
}

@media (max-width: 1060px) {
  .movie-grid.four-col,
  .overview-grid,
  .category-strip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .hero-poster img {
    min-height: 320px;
  }

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

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

  .side-panel {
    position: static;
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #78350f;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  }

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

  .site-nav a {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero-section {
    min-height: auto;
  }

  .hero-container {
    padding: 54px 0 64px;
  }

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

  .hero-slide {
    gap: 28px;
  }

  .category-strip {
    margin-top: 0;
    padding-top: 20px;
  }

  .category-strip-grid,
  .movie-grid.four-col,
  .movie-grid.three-col,
  .overview-grid,
  .filter-bar,
  .expanded-filter {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
  }

  .detail-meta-grid,
  .side-panel {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    display: grid;
  }
}

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

  .brand-text em {
    display: none;
  }

  .hero-copy p,
  .sub-hero p,
  .lead-text {
    font-size: 16px;
  }

  .page-section {
    padding: 54px 0;
  }

  .detail-content {
    padding: 22px;
  }
}
