:root {
  color-scheme: dark;
  --bg-950: #020617;
  --bg-900: #0f172a;
  --bg-850: #111c31;
  --bg-800: #1e293b;
  --bg-700: #334155;
  --text-main: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #2563eb;
  --amber: #f59e0b;
  --red: #fb7185;
  --green: #34d399;
  --purple: #a78bfa;
  --pink: #f472b6;
  --shadow-cyan: 0 22px 70px rgba(34, 211, 238, 0.14);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(34, 211, 238, 0.13), transparent 26rem),
    radial-gradient(circle at 90% 8%, rgba(37, 99, 235, 0.16), transparent 30rem),
    linear-gradient(180deg, var(--bg-900), var(--bg-950));
  color: var(--text-main);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.3);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.25);
  color: white;
  font-weight: 900;
}

.logo-text {
  display: grid;
  line-height: 1.15;
}

.logo-title {
  font-size: 1.18rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.logo-subtitle {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

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

.nav-link {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.09);
  transform: translateY(-1px);
}

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

.nav-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
  display: none;
  padding: 10px 0 18px;
  border-top: 1px solid var(--line);
}

.mobile-nav .nav-link {
  display: block;
  margin: 4px 0;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
}

.hero-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  z-index: -3;
}

.hero-collage a {
  position: relative;
  overflow: hidden;
}

.hero-collage img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.hero-collage a:hover img {
  transform: scale(1.09);
  filter: saturate(1.12);
}

.hero-collage a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.82));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.66) 48%, rgba(2, 6, 23, 0.75)),
    linear-gradient(0deg, var(--bg-900), transparent 44%);
}

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

.hero-content {
  min-height: 600px;
  display: grid;
  align-content: center;
  max-width: 780px;
  padding: 82px 0;
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 750;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.7rem, 7vw, 5.9rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.hero h1 span {
  display: block;
  margin-top: 14px;
  font-size: clamp(1.45rem, 3vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--cyan);
}

.hero-lead {
  max-width: 680px;
  color: var(--text-soft);
  font-size: clamp(1.03rem, 1.8vw, 1.32rem);
}

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

.hero-search {
  width: min(100%, 550px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.28);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 14px;
  background: transparent;
  color: white;
}

.hero-search input::placeholder {
  color: rgba(203, 213, 225, 0.72);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  color: var(--text-muted);
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(30, 41, 59, 0.9);
  color: white;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(51, 65, 85, 0.95);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
  box-shadow: var(--shadow-cyan);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--cyan), #1d4ed8);
}

.btn-ghost {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.65);
}

.page-main {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), var(--bg-950));
}

.section-stack {
  padding: 64px 0;
}

.section-stack > * + * {
  margin-top: 72px;
}

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

.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-bar {
  width: 5px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.section-title {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-desc {
  margin: 4px 0 0;
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.5);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.22);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 24px 56px rgba(34, 211, 238, 0.12);
}

.movie-card a {
  display: block;
  height: 100%;
}

.card-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 25% 20%, rgba(34, 211, 238, 0.32), transparent 38%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.96));
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.image-missing img {
  opacity: 0;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(2, 6, 23, 0.86));
}

.play-bubble {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.play-bubble span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.92);
  color: white;
  font-size: 1.1rem;
  box-shadow: 0 14px 34px rgba(6, 182, 212, 0.32);
}

.movie-card:hover .play-bubble {
  opacity: 1;
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.78);
  color: white;
  font-size: 0.78rem;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  min-width: 42px;
  padding: 5px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--red));
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.card-body {
  padding: 18px;
}

.card-title {
  margin: 0 0 8px;
  color: white;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 850;
  transition: color 0.2s ease;
}

.movie-card:hover .card-title {
  color: var(--cyan);
}

.card-line {
  min-height: 3.1em;
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.7);
  color: var(--text-soft);
  font-size: 0.76rem;
}

.panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(30, 41, 59, 0.36);
  box-shadow: 0 22px 54px rgba(2, 6, 23, 0.2);
}

.panel-pad {
  padding: clamp(22px, 4vw, 36px);
}

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

.category-tile {
  min-height: 180px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 44%),
    rgba(30, 41, 59, 0.45);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.4);
}

.category-title {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 880;
}

.category-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.category-count {
  margin-top: 22px;
  color: var(--cyan);
  font-weight: 800;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px)) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
}

.filters input,
.filters select {
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  outline: 0;
  padding: 0 14px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text-main);
}

.filters input:focus,
.filters select:focus {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.filter-count {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: -8px 0 24px;
}

.page-hero {
  padding: 70px 0 36px;
}

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

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

.page-title {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 920;
  letter-spacing: -0.045em;
}

.page-subtitle {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 1.1rem;
}

.detail-shell {
  padding: 34px 0 80px;
}

.player-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 26px 80px rgba(2, 6, 23, 0.42);
}

.player-shell {
  position: relative;
  background: black;
}

.site-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.56)),
    transparent;
  color: white;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-start span {
  width: clamp(74px, 9vw, 104px);
  height: clamp(74px, 9vw, 104px);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
  box-shadow: 0 20px 60px rgba(34, 211, 238, 0.3);
  font-size: 2.1rem;
  padding-left: 5px;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 4;
  max-width: calc(100% - 36px);
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: rgba(248, 250, 252, 0.92);
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
}

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

.detail-main h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  font-weight: 920;
  letter-spacing: -0.04em;
}

.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.62);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.one-line {
  margin: 0 0 26px;
  color: var(--cyan);
  font-size: 1.08rem;
  font-style: italic;
}

.content-block {
  margin-top: 28px;
}

.content-block h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 860;
}

.content-block p {
  margin: 0;
  color: var(--text-soft);
}

.review-box {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.28);
}

.side-poster {
  position: sticky;
  top: 96px;
}

.side-poster .card-cover {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  aspect-ratio: 3 / 4;
}

.side-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 120px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.36);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.42);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--red));
  color: white;
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  background: rgba(51, 65, 85, 0.6);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.rank-info p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.rank-score {
  color: var(--amber);
  font-weight: 900;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.76);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 34px 0;
  color: var(--text-muted);
}

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

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

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

.empty-state {
  display: none;
  padding: 38px;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  border-radius: 22px;
  color: var(--text-muted);
  text-align: center;
}

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

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

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

  .side-poster {
    display: none;
  }
}

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

  .nav-toggle {
    display: block;
  }

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

  .hero {
    min-height: 560px;
  }

  .hero-content {
    min-height: 560px;
    padding: 60px 0;
  }

  .hero-collage {
    grid-template-columns: 1fr;
  }

  .hero-collage a:not(:first-child) {
    display: none;
  }

  .grid-featured,
  .grid-wide,
  .grid-cards,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .filters input {
    grid-column: 1 / -1;
  }

  .rank-row {
    grid-template-columns: 44px 88px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .header-inner {
    min-height: 68px;
  }

  .logo-subtitle {
    display: none;
  }

  .hero-actions,
  .hero-search {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search button,
  .hero-search input {
    width: 100%;
  }

  .grid-featured,
  .grid-wide,
  .grid-cards,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

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

  .detail-content {
    padding: 20px;
  }

  .rank-row {
    grid-template-columns: 38px 1fr;
  }

  .rank-thumb {
    display: none;
  }

  .rank-score {
    grid-column: 2;
  }
}
