:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(34, 211, 238, 0.20);
  --line-soft: rgba(148, 163, 184, 0.18);
  --text: #e5f5ff;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #38bdf8;
  --deep: #0f172a;
  --shadow: 0 24px 80px rgba(8, 145, 178, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.22), transparent 34rem),
    radial-gradient(circle at 85% 10%, rgba(34, 211, 238, 0.14), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #08111f 42%, #020617 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 42px rgba(8, 145, 178, 0.10);
}

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

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

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

.brand-text {
  display: grid;
  line-height: 1.16;
}

.brand-text strong,
.footer-logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #67e8f9, #38bdf8, #a5f3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: rgba(103, 232, 249, 0.68);
  font-size: 12px;
}

.desktop-nav,
.mobile-nav {
  align-items: center;
  gap: 8px;
}

.desktop-nav {
  display: flex;
}

.desktop-nav a,
.mobile-nav a {
  color: #cbd5e1;
  padding: 10px 14px;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.14);
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.12);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 14px;
  flex-direction: column;
  align-items: stretch;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  border-bottom: 1px solid var(--line);
}

.hero-slide {
  display: none;
  min-height: 650px;
  position: relative;
  isolation: isolate;
}

.hero-slide.active {
  display: block;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.02);
  opacity: 0.48;
}

.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.52) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.92));
}

.hero-content {
  width: min(1200px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.78fr;
  gap: 44px;
  align-items: center;
  padding: 64px 0;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-title {
  margin: 0;
  font-size: clamp(38px, 5.6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.hero h1 span,
.page-hero h1 span {
  display: block;
  background: linear-gradient(90deg, #67e8f9, #38bdf8 44%, #f8fafc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h2 {
  margin: 18px 0 12px;
  font-size: clamp(26px, 3.8vw, 48px);
  line-height: 1.15;
}

.hero p,
.page-hero p,
.detail-lead {
  color: #cbd5e1;
  font-size: 17px;
  max-width: 780px;
}

.hero-actions,
.filter-bar,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: #04111e;
  background: linear-gradient(135deg, #67e8f9, #38bdf8);
  box-shadow: 0 16px 38px rgba(14, 165, 233, 0.26);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(14, 165, 233, 0.30);
}

.btn.ghost {
  color: #cffafe;
  background: rgba(15, 23, 42, 0.64);
  border-color: var(--line);
  box-shadow: none;
}

.hero-panel {
  align-self: stretch;
  display: grid;
  align-content: end;
}

.focus-card {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.76), rgba(2, 6, 23, 0.95));
  box-shadow: var(--shadow);
}

.focus-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.focus-card-body {
  padding: 22px;
}

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

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.36);
  cursor: pointer;
}

.hero-dot.active {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

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

.content-section {
  padding: 72px 0 0;
}

.page-hero {
  padding: 72px 0 32px;
}

.page-hero-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 28rem),
    rgba(15, 23, 42, 0.72);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow);
}

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

.section-head h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid var(--line-soft);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 24px 60px rgba(8, 145, 178, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  background: #0f172a;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #020617);
}

.play-glow {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #05131f;
  background: rgba(103, 232, 249, 0.92);
  box-shadow: 0 12px 34px rgba(34, 211, 238, 0.32);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  color: #06121f;
  background: linear-gradient(135deg, #fef08a, #67e8f9);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
}

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

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

.movie-meta span,
.tag-row span,
.detail-meta span,
.detail-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: #f8fafc;
  line-height: 1.35;
  font-size: 17px;
}

.movie-card p {
  margin: 0 0 12px;
  color: #aebbd0;
  font-size: 14px;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: 24px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(34, 211, 238, 0.18), rgba(59, 130, 246, 0.08)),
    rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 10px;
}

.category-tile p {
  color: #b5c4d7;
  margin: 0 0 18px;
}

.filter-input,
.filter-select {
  min-height: 46px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
}

.filter-input {
  min-width: min(420px, 100%);
  flex: 1;
}

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

.detail-page {
  padding: 42px 0 76px;
}

.breadcrumbs {
  margin: 14px 0 24px;
}

.breadcrumbs a {
  color: #67e8f9;
}

.detail-hero {
  display: grid;
  grid-template-columns: 0.48fr 1fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 38px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

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

.detail-info-panel {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.13), transparent 25rem),
    rgba(15, 23, 42, 0.72);
}

.detail-title {
  font-size: clamp(32px, 5vw, 58px);
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: var(--shadow);
  margin: 42px 0;
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.82)),
    var(--poster-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #06121f;
  background: linear-gradient(135deg, #67e8f9, #38bdf8);
  box-shadow: 0 22px 52px rgba(34, 211, 238, 0.32);
  font-size: 30px;
  cursor: pointer;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 0.36fr;
  gap: 28px;
}

.article-panel,
.side-panel {
  border-radius: 24px;
  border: 1px solid var(--line-soft);
  background: rgba(15, 23, 42, 0.68);
  padding: 24px;
}

.article-panel h2,
.side-panel h2 {
  margin-top: 0;
  color: #a5f3fc;
}

.article-panel p {
  color: #cbd5e1;
  margin: 0 0 18px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.38);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

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

.side-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.side-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

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

.library-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: rgba(15, 23, 42, 0.62);
}

.library-row img {
  width: 90px;
  height: 128px;
  object-fit: cover;
  border-radius: 12px;
}

.library-row h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.library-row p {
  color: var(--muted);
  margin: 0;
}

.site-footer {
  margin-top: 78px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
}

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

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

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

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

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.is-hidden-card {
  display: none;
}

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

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

  .hero-panel {
    display: none;
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

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

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

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

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

  .library-row {
    grid-template-columns: 72px 1fr;
  }

  .library-row .btn {
    grid-column: 1 / -1;
  }
}

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

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

  .hero h1,
  .page-hero h1,
  .detail-title {
    font-size: 32px;
  }
}
