:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
  --radius: 22px;
}

* {
  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 15% 10%, rgba(34, 211, 238, 0.15), transparent 28rem),
    radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.14), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  box-shadow: 0 12px 35px rgba(2, 6, 23, 0.38);
  backdrop-filter: blur(18px);
}

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

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

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

.brand-text,
.footer-brand {
  font-size: 20px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #dbeafe;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: white;
  background: rgba(51, 65, 85, 0.72);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.68);
  color: white;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: 0.2s ease;
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-panel.is-open {
  display: grid;
  gap: 8px;
}

.mobile-sub-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted-2);
  background: rgba(30, 41, 59, 0.42);
}

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

.hero-carousel {
  position: relative;
  min-height: 680px;
  padding: 64px 0 42px;
  overflow: hidden;
}

.hero-stage {
  position: relative;
  min-height: 570px;
  border: 1px solid var(--border);
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.72));
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
  padding: 44px;
  opacity: 0;
  transform: translateX(28px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-media {
  position: relative;
  height: 500px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(59, 130, 246, 0.08));
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.55);
}

.hero-media::after,
.card-poster::after,
.video-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(2, 6, 23, 0.45) 100%);
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.05;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.2vw, 46px);
}

.hero-copy p,
.page-hero p,
.hot-copy p,
.footer-grid p {
  color: var(--muted-2);
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  padding: 7px 11px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.12);
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn-primary {
  color: #06101f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 35px rgba(34, 211, 238, 0.25);
}

.btn-ghost {
  border-color: rgba(148, 163, 184, 0.22);
  color: white;
  background: rgba(30, 41, 59, 0.72);
}

.btn-soft {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.13);
}

.btn:hover,
.movie-card:hover,
.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
}

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

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

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

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(64px);
  opacity: 0.7;
  pointer-events: none;
}

.hero-glow-a {
  top: 8%;
  left: 6%;
  width: 280px;
  height: 280px;
  background: rgba(34, 211, 238, 0.12);
}

.hero-glow-b {
  right: 2%;
  bottom: 18%;
  width: 360px;
  height: 360px;
  background: rgba(59, 130, 246, 0.12);
}

.content-section,
.category-strip,
.search-panel,
.hot-entry,
.category-overview,
.page-hero,
.detail-layout,
.breadcrumb {
  margin: 34px 0;
}

.content-section,
.search-panel,
.hot-entry,
.category-overview,
.page-hero {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 16px 45px rgba(2, 6, 23, 0.2);
}

.content-section,
.search-panel,
.category-overview,
.page-hero {
  padding: 28px;
}

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

.section-heading h2,
.hot-copy h2,
.article-copy h2 {
  margin: 8px 0 0;
  font-size: clamp(25px, 3vw, 36px);
}

.section-more {
  color: var(--cyan);
  font-weight: 800;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  min-height: 128px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.86));
  transition: 0.25s ease;
}

.category-tile::before,
.category-overview-card::before,
.category-hero::before,
.ranking-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  pointer-events: none;
}

.category-tile strong,
.category-overview-card strong {
  position: relative;
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
}

.category-tile span,
.category-overview-card span {
  position: relative;
  color: var(--muted-2);
  line-height: 1.6;
  font-size: 14px;
}

.from-purple::before { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.from-pink::before { background: linear-gradient(135deg, #ec4899, #fb7185); }
.from-red::before { background: linear-gradient(135deg, #ef4444, #f97316); }
.from-orange::before { background: linear-gradient(135deg, #f97316, #facc15); }
.from-yellow::before { background: linear-gradient(135deg, #eab308, #22c55e); }
.from-green::before { background: linear-gradient(135deg, #22c55e, #14b8a6); }
.from-teal::before { background: linear-gradient(135deg, #14b8a6, #06b6d4); }
.from-indigo::before { background: linear-gradient(135deg, #6366f1, #3b82f6); }

.hot-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(59, 130, 246, 0.08)),
    rgba(15, 23, 42, 0.74);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 14px 35px rgba(2, 6, 23, 0.24);
  transition: 0.25s ease;
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 22;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.1));
}

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

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

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #06101f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.35);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #06101f;
  background: linear-gradient(135deg, #facc15, #fb7185);
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.card-body h3 {
  min-height: 54px;
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.5;
}

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

.card-body p {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.tag-row {
  margin: 14px 0 0;
}

.tag-row span {
  padding: 5px 9px;
  font-size: 12px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr 170px 150px;
  gap: 12px;
}

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

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

.search-box option {
  background: #0f172a;
}

.empty-state {
  display: none;
  margin: 18px 0 0;
  color: var(--muted-2);
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 48px;
}

.small-hero h1 {
  max-width: 850px;
}

.small-hero p {
  max-width: 720px;
  margin: 0;
}

.detail-main {
  padding-top: 34px;
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: 1.45fr 330px;
  grid-template-areas:
    "player side"
    "content side";
  gap: 24px;
}

.player-panel {
  grid-area: player;
}

.detail-side {
  grid-area: side;
}

.detail-content {
  grid-area: content;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 30px;
}

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

.video-box video,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-box video {
  z-index: 1;
  background: #000;
}

.player-cover {
  z-index: 3;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  object-fit: cover;
  opacity: 0.72;
}

.player-action {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  color: #06101f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 55px rgba(34, 211, 238, 0.38);
  cursor: pointer;
  font-size: 28px;
}

.detail-poster {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 24px;
  aspect-ratio: 16 / 22;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(59, 130, 246, 0.08));
}

.detail-meta-card {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.82);
}

.detail-meta-card span {
  color: var(--muted-2);
}

.detail-content h1 {
  margin: 12px 0;
  font-size: clamp(30px, 4vw, 52px);
}

.lead {
  color: var(--muted-2);
  font-size: 18px;
  line-height: 1.8;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.info-list div {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.32);
}

.info-list dt {
  color: var(--muted);
  font-size: 13px;
}

.info-list dd {
  margin: 6px 0 0;
  color: white;
}

.article-copy p {
  color: var(--muted-2);
  line-height: 1.9;
  text-align: justify;
}

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

.site-footer {
  margin-top: 52px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.96));
}

.footer-grid,
.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 42px 0;
}

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

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
}

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

@media (max-width: 1024px) {
  .hero-slide {
    grid-template-columns: 1fr;
    padding: 26px;
  }

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

  .hero-media {
    height: 430px;
  }

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

  .category-grid,
  .category-overview {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "player"
      "content"
      "side";
  }

  .detail-side {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: start;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .nav-wrap,
  main,
  .page-main,
  .detail-main,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1200px);
  }

  .hero-carousel {
    min-height: auto;
    padding: 26px 0;
  }

  .hero-stage {
    min-height: 780px;
    border-radius: 24px;
  }

  .hero-slide {
    gap: 22px;
    padding: 18px;
  }

  .hero-media {
    height: 360px;
    border-radius: 22px;
  }

  .hero-actions,
  .hot-entry,
  .section-heading,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-dots {
    bottom: 34px;
  }

  .movie-grid,
  .category-grid,
  .category-overview,
  .search-box,
  .footer-grid,
  .info-list {
    grid-template-columns: 1fr;
  }

  .content-section,
  .search-panel,
  .page-hero {
    padding: 20px;
  }

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

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