:root {
  color-scheme: dark;
  --bg: #050816;
  --bg-soft: #0b1224;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --green: #4ade80;
  --orange: #fb923c;
  --gold: #facc15;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(34, 211, 238, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(59, 130, 246, 0.18), transparent 24rem),
    linear-gradient(180deg, #050816 0%, #08111f 42%, #050816 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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;
  backdrop-filter: blur(18px);
  background: rgba(5, 8, 22, 0.76);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner,
.main-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #00111a;
  box-shadow: 0 12px 34px rgba(34, 211, 238, 0.32);
}

.brand-text,
.footer-brand {
  font-size: 1.18rem;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted-2);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ecfeff;
  background: rgba(34, 211, 238, 0.12);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

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

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

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 22, 0.95) 0%, rgba(5, 8, 22, 0.72) 42%, rgba(5, 8, 22, 0.4) 100%),
    radial-gradient(circle at 78% 36%, rgba(34, 211, 238, 0.16), transparent 28rem);
  pointer-events: none;
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 690px;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-size: cover;
  background-position: center;
  filter: saturate(1.15) contrast(1.05);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 54px;
  padding: 86px 0 54px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.14);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero h1 {
  max-width: 860px;
  margin: 18px 0 18px;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.hero-summary {
  max-width: 780px;
  color: var(--muted-2);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.hero-meta,
.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-meta {
  margin: 22px 0 28px;
}

.hero-meta span,
.card-meta span,
.detail-meta span,
.rank-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
}

.hero-actions,
.section-head,
.filter-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #00111a;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 58px rgba(34, 211, 238, 0.32);
}

.btn.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.5));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  min-height: 460px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(59, 130, 246, 0.18)),
    #0f172a;
}

.hero-poster img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.hero-poster.cover-off img {
  display: none;
}

.hero-poster .cover-title {
  position: absolute;
  inset: auto 18px 18px 18px;
  display: none;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.15;
}

.hero-poster.cover-off .cover-title {
  display: block;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.hero-dot {
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
}

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

.main-wrap {
  padding: 44px 0 72px;
}

.page-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.page-lead {
  max-width: 850px;
  color: var(--muted-2);
  font-size: 1.06rem;
}

.section {
  margin-top: 52px;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  letter-spacing: -0.035em;
}

.section-more {
  color: #a5f3fc;
  font-weight: 800;
}

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

.category-card {
  min-height: 148px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 18%, rgba(34, 211, 238, 0.16), transparent 8rem),
    rgba(15, 23, 42, 0.68);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.category-card h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.66);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

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

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(59, 130, 246, 0.18)),
    #0f172a;
}

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

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

.poster.cover-off img {
  display: none;
}

.cover-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: none;
  color: #f8fafc;
  font-weight: 900;
  line-height: 1.18;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.poster.cover-off .cover-title {
  display: block;
}

.card-body {
  padding: 14px;
}

.card-title {
  display: -webkit-box;
  min-height: 3em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.35;
}

.card-title:hover {
  color: #a5f3fc;
}

.card-meta {
  margin: 10px 0;
}

.card-meta span {
  padding: 3px 8px;
  font-size: 0.76rem;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.66);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #00111a;
  font-weight: 950;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.rank-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

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

.rank-row h2,
.rank-row h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

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

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

.breadcrumb a {
  color: #a5f3fc;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 30px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 14%, rgba(34, 211, 238, 0.14), transparent 22rem),
    rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow);
}

.detail-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

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

.detail-cover.cover-off img {
  display: none;
}

.detail-cover.cover-off .cover-title {
  display: block;
  font-size: 1.8rem;
}

.detail-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.detail-copy .one-line {
  margin: 18px 0 0;
  color: #e0f2fe;
  font-size: 1.12rem;
  font-weight: 700;
}

.detail-text {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.text-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.66);
}

.text-panel h2 {
  margin: 0 0 12px;
  font-size: 1.28rem;
}

.text-panel p {
  margin: 0;
  color: var(--muted-2);
  white-space: pre-line;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-list span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.18);
}

.player-panel {
  margin-top: 34px;
  padding: 18px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(34, 211, 238, 0.2);
  background: #020617;
  box-shadow: var(--shadow);
}

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

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #00111a;
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.24), rgba(0, 0, 0, 0.42));
  cursor: pointer;
}

.play-layer span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 2rem;
  box-shadow: 0 18px 54px rgba(34, 211, 238, 0.38);
}

.video-box.is-playing .play-layer {
  display: none;
}

.search-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.68);
}

.search-input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 18px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 22, 0.78);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 28px;
  padding: 34px 0;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.footer-links a {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.04);
}

.hide-card {
  display: none;
}

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

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

  .hero-panel {
    max-width: 520px;
  }
}

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

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(5, 8, 22, 0.96);
  }

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

  .nav-link {
    border-radius: 14px;
  }

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

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

  .rank-row {
    grid-template-columns: 42px 58px minmax(0, 1fr);
  }

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

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

  .hero-content {
    padding: 54px 0 34px;
    gap: 28px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 320px;
    height: 320px;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .footer-inner,
  .main-wrap,
  .hero-content {
    width: min(100% - 24px, 1240px);
  }

  .category-grid,
  .movie-grid {
    gap: 12px;
  }

  .card-body {
    padding: 11px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 13vw, 4rem);
  }
}
