:root {
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-300: #fcd34d;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --paper: #fffaf0;
  --text: #3d2510;
  --muted: #8a5a18;
  --shadow: 0 20px 45px rgba(120, 53, 15, 0.16);
  --soft-shadow: 0 12px 30px rgba(120, 53, 15, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--amber-50) 0%, #fff7dc 42%, #f8e5b7 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 251, 235, 0.92);
  border-bottom: 1px solid rgba(217, 119, 6, 0.16);
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.08);
  backdrop-filter: blur(18px);
}

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

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
  box-shadow: var(--soft-shadow);
}

.logo-text strong,
.logo-text em {
  display: block;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 20px;
  color: var(--amber-950);
}

.logo-text em {
  margin-top: 3px;
  font-size: 12px;
  color: var(--amber-700);
  font-style: normal;
}

.desktop-nav,
.mobile-nav {
  align-items: center;
  gap: 8px;
}

.desktop-nav {
  display: flex;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--amber-900);
  font-weight: 700;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--amber-950);
  background: rgba(245, 158, 11, 0.18);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 20px;
  background: white;
  box-shadow: var(--soft-shadow);
}

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

.hero-slider {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--amber-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: blur(5px) saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(252, 211, 77, 0.36), transparent 28%),
    linear-gradient(90deg, rgba(69, 26, 3, 0.95) 0%, rgba(120, 53, 15, 0.82) 48%, rgba(217, 119, 6, 0.48) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 56px;
  align-items: center;
  color: white;
}

.hero-tags,
.tag-row,
.detail-meta,
.card-meta,
.quick-filters,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--amber-950);
  background: var(--amber-300);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 20px 0 12px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 42px);
  color: var(--amber-100);
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 30px;
  color: #fff5d2;
  font-size: 19px;
  line-height: 1.85;
}

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

.primary-btn {
  color: var(--amber-950);
  background: white;
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.18);
}

.ghost-btn {
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.78);
}

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

.hero-poster {
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.22);
  border-radius: 36px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

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

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

.hero-dot {
  width: 42px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dot.is-active {
  background: white;
}

.section {
  padding: 66px 0;
}

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

.section-head.wide,
.section-head.centered {
  display: block;
  text-align: center;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--amber-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-head h2,
.page-hero h1,
.detail-content h2,
.side-rank h2 {
  margin: 0;
  color: var(--amber-950);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-head h2,
.page-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.section-head p,
.page-hero p {
  margin: 10px auto 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.text-link {
  color: var(--amber-700);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--amber-900);
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--text);
  background: white;
  outline: none;
}

.quick-filters button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--amber-900);
  font-weight: 800;
  background: var(--amber-100);
}

.quick-filters button:hover,
.quick-filters button.is-active {
  color: white;
  background: var(--amber-700);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--amber-100);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(69, 26, 3, 0.75));
}

.rating-badge,
.rank-num {
  display: inline-grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
  box-shadow: 0 10px 20px rgba(69, 26, 3, 0.18);
}

.rating-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 48px;
  height: 32px;
  border-radius: 999px;
  font-weight: 900;
}

.card-body {
  padding: 17px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: var(--amber-950);
  font-size: 18px;
  line-height: 1.35;
}

.card-body p {
  min-height: 54px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

.card-meta {
  gap: 8px;
  margin-bottom: 12px;
  color: var(--amber-800);
  font-size: 13px;
  font-weight: 800;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--amber-100);
}

.tag-row span {
  color: var(--amber-900);
  background: rgba(245, 158, 11, 0.14);
}

.category-band {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(252, 211, 77, 0.28));
}

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

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--soft-shadow);
  color: white;
}

.category-tile img,
.category-tile span {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-tile img {
  object-fit: cover;
  transition: transform .45s ease;
}

.category-tile span {
  background: linear-gradient(180deg, rgba(69, 26, 3, 0.06), rgba(69, 26, 3, 0.88));
}

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

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 22px;
  right: 22px;
}

.category-tile strong {
  bottom: 58px;
  font-size: 24px;
}

.category-tile em {
  bottom: 22px;
  color: #fff0c2;
  font-style: normal;
  line-height: 1.5;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 72px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.rank-item img {
  width: 72px;
  height: 90px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-num {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-weight: 950;
}

.rank-item strong,
.rank-item em {
  display: block;
}

.rank-item strong {
  color: var(--amber-950);
}

.rank-item em {
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  padding: 72px 0 18px;
  text-align: center;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--amber-950);
}

.detail-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(69, 26, 3, 0.96), rgba(120, 53, 15, 0.78), rgba(245, 158, 11, 0.42));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  color: white;
}

.detail-cover {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--amber-100);
  font-weight: 800;
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 760px;
  color: #fff1c8;
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta {
  margin: 22px 0;
}

.detail-meta span {
  color: var(--amber-950);
  background: var(--amber-300);
}

.detail-tags {
  margin-bottom: 26px;
}

.detail-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.18);
}

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

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #150b03;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-node {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  border: 0;
  color: white;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.24), rgba(69, 26, 3, 0.72));
  cursor: pointer;
}

.movie-player.is-playing .play-cover {
  opacity: 0;
  pointer-events: none;
}

.play-ring {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-950);
  background: white;
  font-size: 34px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}

.play-cover strong {
  font-size: 24px;
}

.side-rank {
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
}

.side-rank h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.side-rank .rank-item {
  grid-template-columns: auto 62px minmax(0, 1fr);
  margin-bottom: 12px;
  padding: 10px;
  box-shadow: none;
}

.side-rank .rank-item img {
  width: 62px;
  height: 78px;
}

.detail-content article {
  padding: 34px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-content p {
  margin: 0 0 28px;
  color: var(--text);
  font-size: 17px;
  line-height: 2;
}

.site-footer {
  margin-top: 40px;
  padding: 46px 0;
  color: #ffe9b2;
  background: linear-gradient(135deg, var(--amber-950), var(--amber-800));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 34px;
}

.footer-inner strong {
  color: white;
  font-size: 24px;
}

.footer-inner p {
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: end;
  align-content: start;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

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

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

  .hero-content,
  .detail-hero-inner,
  .player-layout,
  .footer-inner,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 28px;
    padding: 64px 0 90px;
  }

  .hero-poster,
  .detail-cover {
    width: min(320px, 100%);
    margin: 0 auto;
  }

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

  .section-head {
    display: block;
  }

  .footer-links {
    justify-content: start;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .shell {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-copy p,
  .detail-one-line {
    font-size: 16px;
  }

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

  .rank-item {
    grid-template-columns: auto 62px minmax(0, 1fr);
  }

  .rank-item img {
    width: 62px;
    height: 78px;
  }

  .detail-hero-inner {
    padding: 38px 0;
  }

  .section {
    padding: 42px 0;
  }
}
