:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(34, 211, 238, 0.35);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --blue: #2563eb;
  --radius: 22px;
  --shadow: 0 24px 60px rgba(8, 145, 178, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(34, 211, 238, 0.16), transparent 28rem),
    radial-gradient(circle at 86% 4%, rgba(37, 99, 235, 0.22), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
}

body.is-locked {
  overflow: hidden;
}

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

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

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

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

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

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

.brand-text {
  font-size: 20px;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(34, 211, 238, 0.16);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.2);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.95);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: #e2e8f0;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

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

.mobile-nav .nav-link {
  display: block;
  margin-bottom: 8px;
}

.mobile-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mobile-sub-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.12);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.2), transparent 20rem),
    radial-gradient(circle at 78% 15%, rgba(37, 99, 235, 0.22), transparent 24rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0), #020617 92%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 52px;
  align-items: center;
}

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

.hero-kicker,
.section-kicker,
.crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #67e8f9;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 18px 0 20px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, #ffffff, #cffafe 45%, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.8;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.25s ease;
}

.primary-button {
  color: #00111a;
  background: linear-gradient(135deg, #67e8f9, #38bdf8);
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.26);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.secondary-button {
  color: #e0f2fe;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(15, 23, 42, 0.72);
}

.hero-panel {
  position: relative;
  min-height: 600px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.98) translateY(18px);
  transition: 0.65s ease;
  pointer-events: none;
}

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

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  border-radius: 36px;
  border: 1px solid rgba(103, 232, 249, 0.24);
  background: #0f172a;
  box-shadow: var(--shadow);
}

.hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.04), rgba(2, 6, 23, 0.92)),
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.16));
}

.hero-info {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 28px;
}

.hero-info h2 {
  margin: 12px 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.hero-info p {
  color: #dbeafe;
  font-size: 15px;
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.meta-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #a5f3fc;
  font-size: 12px;
  font-weight: 700;
  background: rgba(8, 145, 178, 0.18);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.6);
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-dot.is-active {
  width: 32px;
  background: #22d3ee;
}

.content-section {
  padding: 80px 0;
  background: rgba(2, 6, 23, 0.16);
}

.content-section.alt {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(2, 6, 23, 0.12));
}

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

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.page-hero h1,
.detail-title h1 {
  margin: 12px 0 12px;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.detail-title p,
.category-text {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.25);
  transition: 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

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

.movie-card.large .poster-link {
  aspect-ratio: 16 / 10.5;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(2, 6, 23, 0.92));
}

.category-pill,
.rank-badge,
.play-pill {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(8, 145, 178, 0.92);
  backdrop-filter: blur(8px);
}

.category-pill {
  top: 12px;
  left: 12px;
}

.rank-badge {
  top: 12px;
  right: 12px;
  color: #00111a;
  background: #67e8f9;
}

.play-pill {
  left: 50%;
  bottom: 16px;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: 0.25s ease;
}

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

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--cyan);
}

.card-body p {
  min-height: 50px;
  margin: 0 0 14px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-hero {
  padding: 72px 0 44px;
  background:
    radial-gradient(circle at 24% 20%, rgba(34, 211, 238, 0.16), transparent 24rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0));
}

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

.category-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.24), rgba(15, 23, 42, 0.8)),
    rgba(15, 23, 42, 0.72);
  transition: 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
}

.category-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.category-card p {
  color: #aab7c8;
  line-height: 1.7;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.74);
}

.search-box,
.select-box {
  display: grid;
  gap: 8px;
  color: #a5f3fc;
  font-size: 13px;
  font-weight: 800;
}

.search-box input,
.select-box select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.88);
  padding: 0 14px;
  outline: none;
}

.search-box input:focus,
.select-box select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.detail-hero {
  padding: 46px 0 36px;
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.16), transparent 22rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.48));
}

.player-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.78)),
    radial-gradient(circle at center, rgba(34, 211, 238, 0.18), transparent 24rem);
  transition: 0.22s ease;
  cursor: pointer;
}

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

.play-button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  color: #00111a;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, #67e8f9, #38bdf8);
  box-shadow: 0 18px 55px rgba(34, 211, 238, 0.34);
  cursor: pointer;
}

.play-button:hover {
  transform: scale(1.04);
}

.detail-title {
  margin-top: 30px;
}

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

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

.detail-main {
  padding: 30px;
}

.detail-side {
  padding: 22px;
  position: sticky;
  top: 96px;
}

.detail-main h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-main p {
  color: #cbd5e1;
  line-height: 1.92;
  font-size: 16px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.38);
  transition: 0.2s ease;
}

.side-item:hover {
  background: rgba(8, 145, 178, 0.16);
}

.side-item img {
  width: 82px;
  height: 106px;
  object-fit: cover;
  border-radius: 14px;
}

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

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

.crumbs {
  margin-bottom: 18px;
}

.crumbs a:hover {
  color: #ffffff;
}

.no-result {
  display: none;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.74);
}

.no-result.is-show {
  display: block;
}

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

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

.footer-inner p {
  max-width: 440px;
  color: var(--muted);
  line-height: 1.8;
}

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

.footer-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.9);
}

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

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  color: #64748b;
  font-size: 13px;
}

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

  .menu-button {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .hero-panel,
  .hero-card {
    min-height: 520px;
  }

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

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

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

  .detail-side {
    position: static;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 64px;
  }

  .brand-text {
    font-size: 17px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 38px 0 74px;
    gap: 34px;
  }

  .hero-panel,
  .hero-card {
    min-height: 460px;
  }

  .hero-info {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

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

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

  .card-body p {
    min-height: auto;
  }

  .detail-main {
    padding: 22px;
  }

  .play-button {
    width: 76px;
    height: 76px;
  }
}
