:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.76);
  --line: #1e293b;
  --text: #ffffff;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #22d3ee;
  --accent-strong: #06b6d4;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(34, 211, 238, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 8%, rgba(14, 165, 233, 0.16), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.62));
  border-bottom: 1px solid rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #001019;
  background: linear-gradient(135deg, var(--accent), #67e8f9);
  border-radius: 14px;
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.34);
}

.brand-text strong {
  display: block;
  font-size: 20px;
  letter-spacing: 0.02em;
}

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

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

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

.nav-link:hover,
.nav-link.active {
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.12);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: white;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
}

main {
  padding-top: 76px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  display: grid;
  align-items: stretch;
  border-bottom: 1px solid rgba(30, 41, 59, 0.85);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

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

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, #020617 0%, transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(720px, 100%);
  padding: 88px 0 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  font-size: 13px;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--soft);
  font-size: 17px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  color: white;
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 232, 249, 0.55);
  background: rgba(30, 41, 59, 0.96);
}

.btn-primary {
  color: #001019;
  background: linear-gradient(135deg, var(--accent), #67e8f9);
  border-color: transparent;
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #67e8f9, var(--accent));
}

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

.hero-dot {
  width: 42px;
  height: 4px;
  padding: 0;
  background: rgba(148, 163, 184, 0.45);
  border: 0;
  border-radius: 999px;
}

.hero-dot.is-active {
  background: var(--accent);
}

.section {
  padding: 70px 0;
}

.section.compact {
  padding-top: 34px;
}

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

.section-head h2,
.section-head h1 {
  margin: 0;
  font-size: clamp(24px, 4vw, 38px);
  letter-spacing: -0.03em;
}

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

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

.movie-card {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.64));
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: 0 18px 46px rgba(6, 182, 212, 0.12);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.05));
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(6, 182, 212, 0.9);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.type-badge,
.rank-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 9px;
  color: white;
  background: rgba(2, 6, 23, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 12px;
  right: auto;
  background: rgba(6, 182, 212, 0.88);
  font-weight: 800;
}

.movie-card-body {
  padding: 16px;
}

.movie-card h3 {
  min-height: 48px;
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #67e8f9;
}

.movie-card p {
  height: 44px;
  overflow: hidden;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span,
.detail-tags span {
  padding: 4px 8px;
  color: #bae6fd;
  background: rgba(8, 145, 178, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 999px;
  font-size: 12px;
}

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

.category-card {
  min-height: 190px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.14), transparent 52%),
    rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.38);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

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

.page-hero {
  padding: 120px 0 52px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
  background:
    radial-gradient(circle at 10% 40%, rgba(34, 211, 238, 0.12), transparent 28rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.48), transparent);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, 170px);
  gap: 12px;
  margin-bottom: 26px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
}

.search-box input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  color: white;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  outline: none;
}

.search-box input {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.filter-panel select {
  padding: 0 14px;
}

.detail-hero {
  padding: 118px 0 48px;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.8)),
    var(--detail-bg);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(30, 41, 59, 0.85);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(250px, 390px) 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

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

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

.detail-title p {
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 17px;
}

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

.detail-meta span {
  padding: 6px 10px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  font-size: 13px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

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

.panel {
  padding: 26px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.panel + .panel {
  margin-top: 22px;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.panel p {
  margin: 0;
  color: var(--soft);
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: black;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  color: white;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.28));
  border: 0;
  cursor: pointer;
}

.player-start span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  color: #001019;
  background: linear-gradient(135deg, var(--accent), #67e8f9);
  border-radius: 999px;
  box-shadow: 0 0 42px rgba(34, 211, 238, 0.36);
  font-size: 26px;
  font-weight: 900;
}

.player-start.is-hidden {
  display: none;
}

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

.side-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 10px;
  background: rgba(30, 41, 59, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px;
  transition: background 0.2s ease;
}

.side-item:hover {
  background: rgba(30, 41, 59, 0.8);
}

.side-item img {
  width: 112px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}

.side-item strong {
  display: block;
  line-height: 1.3;
}

.side-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.site-footer {
  margin-top: 60px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), #020617);
  border-top: 1px solid rgba(30, 41, 59, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
  padding: 44px 0;
}

.footer-brand {
  font-size: 20px;
  font-weight: 800;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--muted);
  font-size: 14px;
}

.footer-grid a {
  display: block;
  margin-top: 8px;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-grid h3 {
  margin: 0 0 10px;
}

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(30, 41, 59, 0.7);
}

.hidden-card {
  display: none !important;
}

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

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

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

@media (max-width: 780px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

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

  .brand-text small {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero-copy {
    padding-top: 70px;
  }

  .section-head {
    display: block;
  }

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

  .detail-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .detail-poster {
    max-width: 440px;
  }

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

@media (max-width: 520px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

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

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

  .btn {
    width: 100%;
  }

  .side-item {
    grid-template-columns: 96px 1fr;
  }

  .side-item img {
    width: 96px;
    height: 64px;
  }
}
