:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-soft: rgba(30, 41, 59, 0.72);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.16);
  --blue: #2563eb;
  --purple: #7c3aed;
  --pink: #e879f9;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.18), transparent 32rem),
    radial-gradient(circle at 88% 10%, rgba(124, 58, 237, 0.2), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(22px);
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #00111a;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), #67e8f9 35%, var(--pink));
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.24);
}

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

.brand-text strong {
  font-size: 1.28rem;
}

.brand-text small {
  margin-top: 4px;
  color: rgba(103, 232, 249, 0.78);
  font-size: 0.76rem;
}

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

.desktop-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 0.94rem;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: var(--cyan-soft);
  transform: translateY(-1px);
}

.nav-link-soft {
  color: var(--muted);
}

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

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

.mobile-nav {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto 12px;
  display: none;
  flex-wrap: wrap;
  padding: 8px 0 14px;
}

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

main {
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: 720px;
  padding: 84px 0 42px;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.62;
}

.hero-glow-one {
  width: 340px;
  height: 340px;
  top: 90px;
  right: 12%;
  background: rgba(34, 211, 238, 0.22);
}

.hero-glow-two {
  width: 420px;
  height: 420px;
  bottom: 0;
  left: 6%;
  background: rgba(124, 58, 237, 0.18);
}

.hero-shell,
.content-section,
.detail-layout,
.footer-shell,
.sub-hero {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 44px;
  align-items: center;
}

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

.eyebrow,
.section-kicker,
.hero-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(8, 145, 178, 0.12);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.sub-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero-copy p,
.sub-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted-strong);
  font-size: 1.08rem;
}

.hero-search,
.wide-search {
  margin-top: 30px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.hero-search form,
.wide-search {
  display: flex;
  gap: 8px;
}

.hero-search input,
.wide-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  color: #fff;
  background: transparent;
  padding: 12px 14px;
}

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

.hero-search button,
.wide-search button,
.btn {
  border: 0;
  border-radius: 16px;
  padding: 12px 18px;
  color: #00111a;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), #a5f3fc);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-search button:hover,
.wide-search button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(34, 211, 238, 0.2);
}

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

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.64);
}

.quick-links,
.hero-actions,
.sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.quick-links a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.52);
}

.quick-links a:hover {
  color: #fff;
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(34, 211, 238, 0.12);
}

.hero-stage {
  position: relative;
  min-height: 570px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(140deg, rgba(15, 23, 42, 0.98), rgba(8, 47, 73, 0.72)),
    radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.18), transparent 30rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-stage::before {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  content: "";
  background: rgba(34, 211, 238, 0.18);
  filter: blur(16px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 32px;
  opacity: 0;
  transform: translateX(22px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-poster,
.poster,
.side-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.24), rgba(124, 58, 237, 0.28)),
    linear-gradient(180deg, rgba(15, 23, 42, 1), rgba(2, 6, 23, 1));
}

.hero-poster {
  aspect-ratio: 3 / 4.2;
  min-height: 440px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.46);
}

.hero-image,
.poster-image,
.side-poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-fallback {
  position: absolute;
  inset: auto 16px 18px;
  display: block;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.62);
}

.hero-poster::after,
.poster::after,
.side-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, 0.82));
  pointer-events: none;
}

.hero-info {
  position: relative;
  z-index: 1;
}

.hero-info h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-info p {
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: 1.02rem;
}

.hero-tags,
.tag-row,
.detail-tags,
.genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-tags span,
.tag-row span,
.detail-tags span,
.genre-pills span {
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.6);
  font-size: 0.78rem;
}

.hero-controls {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

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

.hero-dot {
  width: 10px !important;
  height: 10px !important;
  padding: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.5) !important;
}

.hero-dot.is-active {
  width: 28px !important;
  background: var(--cyan) !important;
}

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

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

.section-head h2,
.side-panel h2,
.detail-content h1,
.detail-content h2,
.side-info-card h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.section-head h2,
.side-panel h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.section-head p,
.side-panel p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  flex: none;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.6);
}

.section-more:hover {
  color: #fff;
  border-color: rgba(34, 211, 238, 0.36);
}

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

.movie-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.36);
  background: rgba(15, 23, 42, 0.86);
}

.poster {
  display: block;
  aspect-ratio: 2 / 2.88;
  border-radius: 0 0 22px 22px;
}

.poster em {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(2, 6, 23, 0.72);
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 800;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #00111a;
  background: linear-gradient(135deg, var(--cyan), #a5f3fc);
  font-size: 0.86rem;
}

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

.movie-card-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

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

.meta-line,
.movie-brief {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  -webkit-box-orient: vertical;
}

.meta-line {
  -webkit-line-clamp: 1;
}

.movie-brief {
  min-height: 2.8em;
  -webkit-line-clamp: 2;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.side-panel,
.side-info-card,
.player-card,
.detail-content,
.category-card,
.sitemap-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18);
}

.side-panel {
  position: sticky;
  top: 100px;
  padding: 22px;
}

.side-category-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.side-category-list a {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.32);
}

.side-category-list strong,
.side-category-list span {
  display: block;
}

.side-category-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

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

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

.category-card {
  padding: 20px;
}

.category-main span {
  display: block;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
}

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

.category-mini-links {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.category-mini-links a {
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--muted-strong);
  background: rgba(2, 6, 23, 0.34);
  font-size: 0.9rem;
}

.category-mini-links a:hover {
  color: #67e8f9;
}

.sub-hero {
  padding: 84px 0 30px;
}

.sub-hero h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.wide-search {
  max-width: 760px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  padding: 46px 0 12px;
}

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

.breadcrumb a:hover {
  color: #67e8f9;
}

.player-card {
  padding: 12px;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
}

.video-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 50% 45%, rgba(34, 211, 238, 0.24), transparent 18rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.78));
  cursor: pointer;
}

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

.play-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #00111a;
  background: linear-gradient(135deg, var(--cyan), #a5f3fc);
  box-shadow: 0 18px 50px rgba(34, 211, 238, 0.28);
  font-size: 1.8rem;
}

.detail-content {
  margin-top: 18px;
  padding: 28px;
}

.detail-content h1 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.05;
}

.detail-intro {
  color: var(--muted-strong);
  font-size: 1.1rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.34);
}

.detail-content h2 {
  margin-top: 26px;
  font-size: 1.42rem;
}

.detail-content p {
  color: var(--muted-strong);
}

.detail-side {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 16px;
}

.side-poster {
  aspect-ratio: 2 / 2.88;
  box-shadow: var(--shadow);
}

.side-info-card {
  padding: 20px;
}

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

.sitemap-list {
  display: grid;
  gap: 18px;
}

.sitemap-group {
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sitemap-group a {
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted-strong);
  background: rgba(2, 6, 23, 0.38);
}

.sitemap-group a:hover {
  color: #67e8f9;
}

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

.footer-shell {
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
}

.footer-shell p {
  max-width: 720px;
  color: var(--muted);
}

.footer-links,
.footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a,
.footer-cats a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.7);
}

.footer-cats {
  grid-column: 1 / -1;
}

.is-filter-hidden {
  display: none !important;
}

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

  .hero-shell,
  .detail-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .side-panel,
  .detail-side {
    position: static;
  }

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

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

  .menu-toggle {
    display: block;
  }

  .hero-slider {
    padding-top: 46px;
    min-height: auto;
  }

  .hero-stage {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 22px;
  }

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

  .section-head,
  .footer-shell {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 14px;
  }

  .footer-links,
  .footer-cats {
    justify-content: flex-start;
    margin-top: 18px;
  }
}

@media (max-width: 640px) {
  .header-shell,
  .hero-shell,
  .content-section,
  .detail-layout,
  .footer-shell,
  .sub-hero {
    width: min(100% - 22px, 1440px);
  }

  .brand-text strong {
    font-size: 1.05rem;
  }

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

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

  .movie-brief,
  .tag-row {
    display: none;
  }

  .hero-search form,
  .wide-search {
    display: grid;
  }

  .detail-content {
    padding: 20px;
  }

  .sub-hero {
    padding-top: 46px;
  }
}
