:root {
  --amber: #d97706;
  --amber-dark: #b45309;
  --amber-soft: #fef3c7;
  --orange: #fb923c;
  --red: #ef4444;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.72);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 119, 6, 0.12);
  color: var(--amber);
  box-shadow: 0 0 0 8px rgba(217, 119, 6, 0.06);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08);
}

.brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.brand-text small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--amber);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f3f4f6;
  color: var(--ink);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 16px 18px;
  background: #ffffff;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  padding: 136px 0 82px;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 46%, #fef2f2 100%);
}

.aurora {
  position: absolute;
  width: 310px;
  height: 310px;
  border-radius: 999px;
  filter: blur(55px);
  opacity: 0.28;
  animation: pulseGlow 5s ease-in-out infinite;
}

.aurora-one {
  top: 130px;
  left: 5%;
  background: #f59e0b;
}

.aurora-two {
  top: 220px;
  right: 8%;
  background: #fb923c;
  animation-delay: 0.7s;
}

.aurora-three {
  bottom: 40px;
  left: 45%;
  background: #ef4444;
  animation-delay: 1.1s;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(0.95);
  }
  50% {
    transform: scale(1.08);
  }
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.12);
  color: var(--amber-dark);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-main h1,
.sub-hero h1,
.rank-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-main p,
.sub-hero p,
.rank-hero p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.btn,
.hero-search button,
.hero-copy a,
.text-link,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.btn {
  min-height: 52px;
  padding: 0 28px;
}

.btn.primary,
.hero-search button,
.hero-copy a {
  background: var(--amber);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.24);
}

.btn.primary:hover,
.hero-search button:hover,
.hero-copy a:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
}

.btn.ghost {
  border: 2px solid var(--amber);
  color: var(--amber);
  background: #ffffff;
}

.btn.ghost:hover {
  background: var(--amber-soft);
  transform: translateY(-2px);
}

.hero-search {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow);
  max-width: 560px;
}

.hero-search input {
  flex: 1;
  border: 0;
  outline: 0;
  min-width: 0;
  padding: 0 18px;
  color: var(--ink);
}

.hero-search button {
  border: 0;
  padding: 0 26px;
  cursor: pointer;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.quick-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #92400e;
  font-size: 13px;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
}

.hero-slides {
  position: relative;
  height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  opacity: 0;
  transform: translateX(26px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.hero-image {
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #111827, #92400e);
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.hero-copy {
  width: min(88%, 440px);
  margin: -118px auto 0;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-copy span {
  color: var(--amber-dark);
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h2 {
  margin: 8px 0 8px;
  font-size: 28px;
  line-height: 1.18;
}

.hero-copy p {
  margin: 0 0 16px;
  color: var(--muted);
}

.hero-copy a {
  min-height: 42px;
  padding: 0 18px;
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--amber);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  font-size: 24px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fcd34d;
  opacity: 0.65;
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--amber);
  opacity: 1;
}

.stats-strip {
  padding: 34px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

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

.stats-grid div {
  text-align: center;
  padding: 22px;
  border-radius: 24px;
  background: #fff7ed;
}

.stats-grid strong {
  display: block;
  color: var(--amber-dark);
  font-size: 28px;
}

.stats-grid span {
  color: var(--muted);
}

.section {
  padding: 72px 0;
  background: #ffffff;
}

.section.alt,
.page-main {
  background: #f9fafb;
}

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

.section-heading span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--amber);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

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

.category-card {
  position: relative;
  min-height: 180px;
  border-radius: 26px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.62;
  transition: transform 0.25s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card div {
  position: absolute;
  inset: auto 18px 18px 18px;
  color: #ffffff;
}

.category-card span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.9);
  font-weight: 800;
}

.category-card strong {
  display: block;
  font-size: 16px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  background: linear-gradient(135deg, #1f2937, #92400e);
}

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

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.card-meta span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
}

.movie-card h3 a:hover {
  color: var(--amber-dark);
}

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

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

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

.movie-card.compact {
  display: grid;
  grid-template-columns: 96px 1fr;
  min-height: 138px;
}

.movie-card.compact .poster-link img {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card.compact .card-body {
  padding: 14px;
}

.movie-card.compact h3 {
  font-size: 16px;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(217, 119, 6, 0.95);
  color: #ffffff;
  font-weight: 900;
}

.sub-hero,
.rank-hero {
  padding: 136px 0 58px;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 58%, #ffffff 100%);
}

.category-hero {
  background: linear-gradient(135deg, #111827 0%, #7c2d12 55%, #f59e0b 100%);
  color: #ffffff;
}

.category-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.filter-panel {
  position: sticky;
  top: 88px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.search-box span {
  color: var(--amber-dark);
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-pill {
  border: 0;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-weight: 800;
  cursor: pointer;
}

.filter-pill.is-active,
.filter-pill:hover {
  background: var(--amber);
  color: #ffffff;
}

.empty-state {
  display: none;
  margin: 36px 0 0;
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.empty-state.is-visible {
  display: block;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 20px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.overview-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.overview-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
}

.overview-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.overview-card p {
  color: var(--muted);
}

.rank-hero-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 42px;
  align-items: center;
}

.rank-feature {
  display: block;
  padding: 14px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.rank-feature img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
}

.rank-feature strong {
  display: block;
  margin-top: 12px;
  font-size: 20px;
}

.rank-feature span {
  color: var(--muted);
}

.detail-main {
  background: #f9fafb;
}

.detail-top {
  padding: 110px 0 52px;
  background: linear-gradient(135deg, #111827 0%, #431407 45%, #92400e 100%);
  color: #ffffff;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #ffffff;
}

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

.player-panel h1 {
  margin: 0 0 22px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.player-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.64));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  box-shadow: 0 18px 44px rgba(217, 119, 6, 0.34);
  font-size: 30px;
}

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

.detail-aside img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.aside-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.aside-card h2 {
  margin: 0 0 8px;
}

.aside-card p {
  color: rgba(255, 255, 255, 0.78);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.detail-meta span {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}

.content-card,
.side-rank {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.content-card h2,
.side-rank h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card h2:not(:first-child) {
  margin-top: 28px;
}

.content-card p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
}

.info-list div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  color: var(--muted);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
}

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

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

.site-footer {
  background: linear-gradient(135deg, #111827 0%, #1f2937 52%, #111827 100%);
  color: #d1d5db;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 50px 0;
}

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

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

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-layout,
  .detail-layout,
  .detail-content-grid,
  .rank-hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 520px;
  }

  .hero-slides {
    height: 520px;
  }

  .detail-aside {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
  }

  .detail-aside img {
    max-width: 220px;
  }

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

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .container {
    width: min(100% - 24px, 680px);
  }

  .nav-wrap {
    height: 66px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 104px 0 52px;
  }

  .hero-main h1,
  .sub-hero h1,
  .rank-hero h1 {
    font-size: 38px;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 22px;
    padding: 12px;
  }

  .hero-search input {
    min-height: 44px;
  }

  .hero-search button {
    min-height: 46px;
  }

  .hero-carousel,
  .hero-slides {
    min-height: 500px;
    height: 500px;
  }

  .hero-copy {
    width: calc(100% - 28px);
  }

  .stats-grid,
  .category-grid,
  .movie-grid,
  .rank-grid,
  .all-grid,
  .related-grid,
  .overview-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .filter-panel {
    position: static;
    grid-template-columns: 1fr;
  }

  .overview-card {
    grid-template-columns: 1fr;
  }

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

  .detail-aside img {
    max-width: 220px;
  }
}

@media (max-width: 520px) {
  .stats-grid,
  .category-grid,
  .movie-grid,
  .rank-grid,
  .all-grid,
  .related-grid,
  .overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .sub-hero,
  .rank-hero {
    padding-top: 104px;
  }

  .detail-top {
    padding-top: 92px;
  }
}
