:root {
  --bg: #fffbeb;
  --bg-soft: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffaf0;
  --text: #451a03;
  --text-muted: #8a5a2b;
  --line: rgba(146, 64, 14, 0.16);
  --primary: #b45309;
  --primary-dark: #78350f;
  --primary-soft: #f59e0b;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.14);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 30rem),
    linear-gradient(180deg, #fffbeb 0%, #fff7ed 45%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

img.image-missing {
  opacity: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(255, 251, 235, 0.86);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #92400e);
  box-shadow: 0 10px 25px rgba(180, 83, 9, 0.25);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 16px;
  color: #6b3c12;
  font-weight: 700;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  color: #ffffff;
  background: var(--primary);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff0c2;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--primary-dark);
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #451a03, #92400e 48%, #f59e0b);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%);
  background-size: 52px 52px;
}

.hero-slider,
.hero-slide,
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(69, 26, 3, 0.96), rgba(120, 53, 15, 0.76) 44%, rgba(245, 158, 11, 0.28)),
    linear-gradient(0deg, rgba(69, 26, 3, 0.9), transparent 42%);
}

.hero-bg img {
  transform: scale(1.05);
  filter: saturate(1.1) contrast(1.05);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 150px;
}

.eyebrow,
.page-hero span,
.section-title span {
  display: inline-block;
  margin-bottom: 10px;
  color: #facc15;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 14px;
  max-width: 900px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 4vw, 46px);
  color: #ffedd5;
}

.hero p {
  max-width: 700px;
  margin: 0 0 32px;
  color: #fde68a;
  font-size: 19px;
}

.hero-actions,
.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-btn,
.ghost-btn,
.home-search button,
.filter-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
}

.primary-btn,
.home-search button,
.filter-panel button {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 14px 30px rgba(180, 83, 9, 0.28);
}

.ghost-btn {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.primary-btn:hover,
.ghost-btn:hover,
.home-search button:hover,
.filter-panel button:hover {
  transform: translateY(-2px);
}

.hero-controls {
  position: absolute;
  right: calc((100% - min(var(--max), calc(100% - 32px))) / 2);
  bottom: 130px;
  z-index: 5;
  display: flex;
  gap: 12px;
}

.hero-controls button {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 34px;
  cursor: pointer;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
}

.hero-dots button.active {
  width: 34px;
  background: #ffffff;
}

.floating-feature {
  position: relative;
  z-index: 10;
  margin-top: -56px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.stats-strip div {
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
}

.stats-strip strong {
  display: block;
  font-size: 32px;
  line-height: 1;
  color: var(--primary-dark);
}

.stats-strip span {
  color: var(--text-muted);
  font-weight: 700;
}

.section-block {
  margin-top: 76px;
}

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

.section-title h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--primary-dark);
}

.section-title a {
  color: var(--primary);
  font-weight: 900;
}

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

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

.movie-card,
.movie-list-item,
.category-card,
.category-overview-card,
.content-card,
.search-aside,
.filter-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #451a03, #f59e0b);
}

.poster img {
  transition: transform 0.35s ease;
}

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

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: rgba(180, 83, 9, 0.92);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 9px;
  color: #ffffff;
  border-radius: 999px;
  background: #dc2626;
  font-size: 12px;
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}

.card-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff7ed;
}

.movie-card h3,
.movie-list-item h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
  color: var(--primary-dark);
}

.movie-card p,
.movie-list-item p,
.category-card p,
.content-card p,
.page-hero p,
.search-aside p {
  margin: 0;
  color: #6b4a24;
}

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

.tag-row span {
  padding: 4px 9px;
  color: #92400e;
  border-radius: 999px;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 800;
}

.movie-list-item {
  position: relative;
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius);
}

.list-thumb {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #451a03, #f59e0b);
}

.list-rank {
  position: absolute;
  left: -8px;
  top: -8px;
  z-index: 4;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: #b45309;
  font-weight: 900;
}

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

.category-card {
  min-height: 220px;
  padding: 22px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

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

.category-icon {
  display: block;
  margin-bottom: 10px;
  font-size: 34px;
}

.category-card strong,
.category-card em {
  display: block;
}

.category-card strong {
  color: var(--primary-dark);
  font-size: 20px;
}

.category-card em {
  color: var(--primary);
  font-style: normal;
  font-weight: 900;
}

.category-samples {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.split-section {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 28px;
  align-items: start;
}

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

.search-aside {
  position: sticky;
  top: 96px;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fff7ed, #ffffff);
}

.search-aside h2 {
  margin: 0 0 12px;
  color: var(--primary-dark);
}

.home-search {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.home-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: #ffffff;
  outline: none;
}

.home-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--primary-soft);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.site-footer {
  margin-top: 90px;
  padding: 52px 0;
  color: #fde68a;
  background: #451a03;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

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

.footer-links strong {
  color: #ffffff;
}

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

.page-main {
  padding-top: 46px;
}

.page-hero {
  padding: 48px;
  border-radius: 32px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(69, 26, 3, 0.96), rgba(146, 64, 14, 0.88)),
    radial-gradient(circle at right top, rgba(250, 204, 21, 0.36), transparent 24rem);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  color: #ffffff;
}

.page-hero p {
  max-width: 760px;
  color: #fde68a;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 18px;
  align-items: end;
  width: min(var(--max), calc(100% - 32px));
  margin: 30px auto 0;
  padding: 18px;
  border-radius: 24px;
}

.search-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-weight: 900;
}

.filter-count {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text-muted);
  font-weight: 800;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  padding: 18px;
  border-radius: var(--radius);
}

.category-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: linear-gradient(135deg, #451a03, #f59e0b);
}

.category-cover span {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 46px;
  transform: translate(-50%, -50%);
}

.category-overview-card h2 {
  margin: 0 0 8px;
  color: var(--primary-dark);
}

.category-overview-card strong {
  display: inline-block;
  margin-top: 14px;
  color: var(--primary);
}

.detail-main {
  padding-bottom: 1px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: #451a03;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  filter: blur(2px) saturate(1.15);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(69, 26, 3, 0.96), rgba(69, 26, 3, 0.64)),
    linear-gradient(0deg, #451a03, transparent 52%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: center;
  padding-top: 76px;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 6px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: linear-gradient(135deg, #451a03, #f59e0b);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #fde68a;
  font-weight: 800;
}

.crumbs em {
  font-style: normal;
  color: #ffffff;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.one-line {
  max-width: 760px;
  margin: 0 0 22px;
  color: #ffedd5;
  font-size: 20px;
}

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

.detail-meta span {
  padding: 7px 13px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

.large-tags span {
  color: #451a03;
  background: #fef3c7;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.24), transparent 42%),
    #120904;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.big-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.big-play span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.big-play strong {
  font-size: 20px;
}

.player-shell.playing .big-play {
  display: none;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: none;
  padding: 12px 16px;
  color: #fff7ed;
  border-radius: 14px;
  background: rgba(69, 26, 3, 0.86);
}

.player-message.show {
  display: block;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.content-card {
  padding: 30px;
  border-radius: var(--radius);
}

.content-card h2 {
  margin: 0 0 16px;
  color: var(--primary-dark);
  font-size: 28px;
}

.content-card p + p {
  margin-top: 14px;
}

[data-card].is-hidden {
  display: none;
}

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

  .split-section,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero-inner {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    min-height: 640px;
  }

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

  .hero-controls {
    right: 16px;
    bottom: 96px;
  }

  .stats-strip,
  .movie-grid,
  .movie-grid.two-col,
  .category-grid,
  .category-overview-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .movie-list-item,
  .category-overview-card,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(280px, 100%);
  }

  .page-hero {
    padding: 32px 22px;
  }

  .home-search,
  .filter-selects {
    flex-direction: column;
  }
}
