:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-solid: #111827;
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --gold: #facc15;
  --gold-strong: #f59e0b;
  --orange: #fb923c;
  --rose: #fb7185;
  --blue: #38bdf8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(250, 204, 21, 0.16), transparent 28rem),
    radial-gradient(circle at 85% 10%, rgba(251, 113, 133, 0.14), transparent 30rem),
    linear-gradient(135deg, #020617 0%, #0f172a 46%, #111827 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 10px 28px rgba(250, 204, 21, 0.26);
}

.brand-text {
  font-size: 1.2rem;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(248, 250, 252, 0.82);
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.8);
  color: white;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: white;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

.hero-section {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  padding: 62px 0 36px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.42;
}

.hero-glow-one {
  top: 80px;
  left: -120px;
  background: var(--gold);
}

.hero-glow-two {
  right: -140px;
  bottom: 80px;
  background: var(--rose);
}

.hero-slider {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 36px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
  gap: 36px;
  align-items: center;
  padding: 72px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.82) 48%, rgba(2, 6, 23, 0.62) 100%),
    var(--hero-image) center / cover;
  transform: scale(1.06);
  filter: saturate(1.1);
}

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

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(250, 204, 21, 0.36);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(250, 204, 21, 0.08);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  color: #cbd5e1;
  font-size: 1.1rem;
  line-height: 1.9;
}

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

.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
}

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

.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: 0.26s ease;
}

.primary-btn {
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.28);
}

.ghost-btn {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-tile:hover,
.overview-card:hover {
  transform: translateY(-4px);
}

.hero-poster {
  justify-self: end;
  width: min(320px, 100%);
  aspect-ratio: 3 / 4.15;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-poster img,
.movie-card img,
.detail-poster img,
.overview-posters img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-dot.is-active {
  width: 58px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.hero-category-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px 4px 0;
}

.hero-category-strip a {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: #e2e8f0;
}

.hero-category-strip .strip-highlight {
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

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

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-link {
  flex: 0 0 auto;
  color: var(--gold);
  font-weight: 800;
}

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

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

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.75);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
  transition: 0.28s ease;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.12), rgba(251, 113, 133, 0.08));
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.72), transparent 45%);
}

.movie-card img {
  transition: transform 0.45s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.78rem;
}

.year-badge {
  right: 12px;
  color: #111827;
  background: var(--gold);
}

.rank-badge {
  left: 12px;
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
}

.card-body h2 {
  margin: 0;
  color: white;
  font-size: 1.05rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  padding: 20px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.72);
  transition: 0.28s ease;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.32)),
    var(--tile-image) center / cover;
  transition: transform 0.45s ease;
}

.category-tile:hover::before {
  transform: scale(1.08);
}

.category-tile span,
.category-tile strong {
  position: relative;
  z-index: 2;
}

.category-tile span {
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 900;
}

.category-tile strong {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
}

.inner-page {
  padding-top: 0;
}

.page-hero,
.detail-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.58)),
    var(--page-image) center / cover;
  filter: saturate(1.1);
  transform: scale(1.05);
}

.page-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 150px;
  background: linear-gradient(to top, var(--bg), transparent);
}

.compact-hero {
  min-height: 360px;
}

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

.page-hero-content p {
  max-width: 760px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(140px, 0.5fr));
  gap: 12px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px);
}

.filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  outline: 0;
  color: var(--text);
  background: rgba(2, 6, 23, 0.68);
}

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

.overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
  transition: 0.28s ease;
}

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

.overview-posters img {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
}

.overview-card h2 {
  margin: 0 0 10px;
  color: var(--gold);
}

.overview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-hero {
  min-height: 610px;
  padding: 66px 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--gold);
}

.detail-info h1 {
  font-size: clamp(2.2rem, 6vw, 4.8rem);
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: -74px auto 0;
  position: relative;
  z-index: 3;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: black;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.movie-video {
  object-fit: contain;
  background: black;
}

.player-cover {
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.3), rgba(2, 6, 23, 0.78));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover.is-loading .play-orb {
  animation: pulsePlay 1s ease infinite;
}

.play-orb {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.36);
  font-size: 2.1rem;
  padding-left: 6px;
}

.player-cover strong {
  font-size: 1.2rem;
}

.player-cover em {
  color: #cbd5e1;
  font-style: normal;
}

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

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

.detail-article,
.detail-side {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
}

.article-block + .article-block {
  margin-top: 26px;
}

.article-block h2,
.detail-side h2 {
  margin: 0 0 14px;
  color: var(--gold);
}

.article-block p {
  margin: 0 0 14px;
  color: #dbeafe;
  line-height: 2;
}

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

.side-list a {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.side-list span {
  color: white;
  font-weight: 800;
}

.side-list small {
  color: var(--muted);
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.72);
}

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

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: white;
}

.footer-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

  .overview-grid,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

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

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

  .nav-toggle {
    display: block;
  }

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

  .hero-section {
    min-height: auto;
    padding-top: 24px;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px 24px;
  }

  .hero-poster {
    justify-self: start;
    width: min(260px, 88vw);
  }

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

  .movie-grid,
  .featured-grid,
  .rank-grid,
  .listing-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

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

  .detail-poster {
    width: min(280px, 76vw);
  }

  .player-section {
    margin-top: -38px;
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .featured-grid,
  .rank-grid,
  .listing-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 2.35rem;
  }

  .player-shell {
    border-radius: 20px;
  }
}
