:root {
  color-scheme: light;
  --nav: #0f172a;
  --nav-soft: #1e293b;
  --gold: #f59e0b;
  --gold-dark: #d97706;
  --paper: #ffffff;
  --muted: #64748b;
  --text: #0f172a;
  --soft-bg: #f8fafc;
  --line: #e2e8f0;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body.page-body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 48%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
}

.nav-inner {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark,
.footer-logo span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(90deg, #fde68a, #fbbf24, #fff7ed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 12px;
  color: #e2e8f0;
  font-weight: 650;
  transition: 180ms ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link.active {
  color: #fff;
  background: #f59e0b;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.32);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 8px 16px 16px;
  background: #0f172a;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-nav-link {
  display: block;
  padding: 13px 16px;
  border-radius: 12px;
  color: #e2e8f0;
  font-weight: 650;
}

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

.home-container {
  padding: 48px 0 64px;
}

.hero-carousel {
  position: relative;
  height: min(74vh, 760px);
  min-height: 540px;
  overflow: hidden;
  background: #0f172a;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.54) 48%, rgba(15, 23, 42, 0.14));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 70px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  color: #fff;
}

.hero-content h1 {
  max-width: 720px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  margin: 12px 0 18px;
  text-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
}

.hero-content p {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.8;
  color: #e2e8f0;
  margin: 0 0 22px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fbbf24;
  font-weight: 800;
}

.hero-kicker span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 9px rgba(245, 158, 11, 0.18);
}

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

.hero-tags span,
.detail-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.primary-button,
.secondary-button,
.section-more,
.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  transition: 180ms ease;
}

.primary-button {
  color: #fff;
  background: #f59e0b;
  padding: 14px 26px;
  box-shadow: 0 16px 32px rgba(245, 158, 11, 0.35);
}

.primary-button:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(8px);
}

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

.hero-dot {
  width: 28px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: 180ms ease;
}

.hero-dot.active {
  width: 48px;
  background: #f59e0b;
}

.content-section,
.category-strip,
.search-box,
.detail-card,
.filter-panel {
  margin-bottom: 52px;
}

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

.section-heading h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 900;
  color: #1f2937;
}

.section-heading p {
  margin-top: 7px;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  flex: 0 0 auto;
  color: #d97706;
  background: #fff7ed;
  padding: 10px 16px;
  border: 1px solid #fed7aa;
}

.section-more:hover {
  color: #fff;
  background: #f59e0b;
}

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

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

.movie-card,
.movie-row,
.category-tile,
.category-panel {
  color: inherit;
  background: var(--paper);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.movie-card:hover,
.movie-row:hover,
.category-tile:hover,
.category-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(245, 158, 11, 0.34);
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #fbbf24 0%, #334155 38%, #0f172a 100%);
}

.poster-frame img,
.category-tile img,
.category-covers img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease, opacity 220ms ease;
}

.movie-card:hover .poster-frame img,
.category-tile:hover img,
.category-panel:hover img {
  transform: scale(1.055);
}

.image-empty {
  opacity: 0;
}

.duration-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.duration-badge {
  right: 10px;
  bottom: 10px;
  color: #fff;
  background: rgba(15, 23, 42, 0.82);
  padding: 5px 9px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.card-content {
  padding: 16px;
}

.card-meta,
.row-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-content h3,
.row-content h3 {
  margin: 9px 0 8px;
  color: #1f2937;
  font-weight: 900;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-content p,
.row-content p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-list.compact {
  margin-top: 12px;
}

.tag-list span {
  color: #92400e;
  background: #fffbeb;
}

.movie-row-list {
  display: grid;
  gap: 18px;
}

.movie-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 230px;
}

.row-poster {
  aspect-ratio: auto;
  min-height: 230px;
}

.row-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.row-content h3 {
  font-size: 22px;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  display: flex;
  align-items: end;
  background: #0f172a;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.18));
}

.category-tile img {
  position: absolute;
  inset: 0;
}

.category-tile div {
  position: relative;
  z-index: 2;
  padding: 18px;
  color: #fff;
}

.category-tile h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 7px;
}

.category-tile p {
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.65;
}

.page-hero {
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.42), transparent 32%), linear-gradient(135deg, #0f172a, #1e293b 55%, #111827);
  padding: 86px 0 76px;
  margin-bottom: 44px;
}

.page-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  margin: 8px 0 16px;
}

.page-hero p {
  max-width: 780px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.8;
}

.eyebrow {
  color: #fbbf24 !important;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quick-filters,
.search-hotwords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.quick-filters button,
.search-hotwords button {
  border-radius: 999px;
  color: #78350f;
  background: #fffbeb;
  padding: 8px 13px;
  font-weight: 800;
}

.filter-panel,
.search-box {
  background: #fff;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
}

.filter-panel label {
  display: block;
  margin-bottom: 10px;
  color: #334155;
  font-weight: 900;
}

.filter-panel input,
.search-form input {
  width: 100%;
  border: 2px solid #e2e8f0;
  border-radius: 999px;
  padding: 14px 18px;
  outline: none;
  color: #0f172a;
  background: #fff;
}

.filter-panel input:focus,
.search-form input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.category-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 64px;
}

.category-panel {
  display: block;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 150px;
  background: #0f172a;
}

.category-covers img {
  min-width: 0;
}

.category-panel-content {
  padding: 20px;
}

.category-panel-content h2 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 9px;
}

.category-panel-content p {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 14px;
}

.category-panel-content span {
  color: #d97706;
  font-weight: 900;
}

.search-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-form button {
  color: #fff;
  background: #f59e0b;
  padding: 0 24px;
}

.search-status {
  margin: 20px 0;
  color: #64748b;
  font-weight: 800;
}

.player-shell {
  background: #030712;
}

.player-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

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

.video-wrap video {
  z-index: 1;
  background: #000;
}

.player-cover {
  z-index: 2;
  cursor: pointer;
  background: #0f172a;
}

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

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.48);
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  font-size: 30px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42);
  z-index: 3;
}

.detail-container {
  padding: 28px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #64748b;
  font-weight: 700;
}

.breadcrumb a {
  color: #d97706;
}

.detail-card {
  background: #fff;
  border-radius: 22px;
  padding: clamp(22px, 4vw, 38px);
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
}

.detail-card h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.12;
  font-weight: 950;
  color: #111827;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
}

.detail-tags {
  margin: 18px 0 28px;
}

.detail-tags span {
  color: #92400e;
  background: #fffbeb;
}

.detail-card section {
  margin-top: 30px;
}

.detail-card h2 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
}

.detail-card p {
  color: #334155;
  font-size: 17px;
  line-height: 1.9;
}

.lead-text {
  color: #d97706 !important;
  font-weight: 850;
  margin-bottom: 10px;
}

.related-section {
  margin-top: 48px;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 28px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 36px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-brand p {
  max-width: 460px;
  line-height: 1.8;
  color: #94a3b8;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-weight: 700;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  text-align: center;
}

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-carousel {
    min-height: 620px;
    height: 78vh;
  }

  .hero-content {
    bottom: 68px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .section-heading,
  .search-form {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .movie-row {
    grid-template-columns: 124px minmax(0, 1fr);
    min-height: 180px;
  }

  .row-poster {
    min-height: 180px;
  }

  .row-content {
    padding: 14px;
  }

  .row-content h3 {
    font-size: 18px;
  }

  .page-hero {
    padding: 64px 0 56px;
  }

  .player-button {
    width: 66px;
    height: 66px;
    font-size: 24px;
  }
}
