:root {
  --bg: #050816;
  --bg-soft: #0d1226;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --primary: #38bdf8;
  --primary-2: #818cf8;
  --accent: #f472b6;
  --gold: #fbbf24;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.2), transparent 30%),
    radial-gradient(circle at 90% 12%, rgba(244, 114, 182, 0.18), transparent 28%),
    linear-gradient(145deg, #050816 0%, #0b1024 50%, #111827 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

.site-nav {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2), var(--accent));
  color: white;
  box-shadow: 0 14px 38px rgba(56, 189, 248, 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link,
.nav-links a:not(.nav-link) {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-links a:not(.nav-link):hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 14px;
  padding: 9px 12px;
}

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

.hero {
  position: relative;
  min-height: 640px;
  margin: 28px auto 52px;
  border: 1px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.76));
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.1) contrast(1.05);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 22, 0.96) 0%, rgba(5, 8, 22, 0.68) 44%, rgba(5, 8, 22, 0.28) 100%),
    radial-gradient(circle at 76% 28%, rgba(56, 189, 248, 0.28), transparent 32%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 640px;
  padding: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero h1 span,
.gradient-text {
  background: linear-gradient(135deg, #e0f2fe, #a5b4fc, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.btn,
button.btn,
.filter-bar button {
  border: 0;
  border-radius: 16px;
  padding: 13px 20px;
  font-weight: 800;
  cursor: pointer;
  color: #07111f;
  background: linear-gradient(135deg, var(--primary), #a5b4fc);
  box-shadow: 0 16px 38px rgba(56, 189, 248, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.filter-bar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(129, 140, 248, 0.3);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero-panel {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.hero-panel h2 {
  margin: 6px 8px 14px;
  font-size: 18px;
}

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

.hero-mini {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-mini:hover {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.1);
}

.hero-mini img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 16px;
}

.hero-mini strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.hero-mini span,
.card-meta,
.breadcrumb,
.footer-inner p,
.rank-row p {
  color: var(--muted);
  font-size: 13px;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 74px;
  bottom: 46px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 34px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
}

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

.section {
  margin: 54px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(25px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-more {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c4b5fd;
  white-space: nowrap;
}

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

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

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(125, 211, 252, 0.42);
  background: rgba(15, 23, 42, 0.88);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.1;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(244, 114, 182, 0.12));
}

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

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

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.72));
}

.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  min-width: 44px;
  text-align: center;
  padding: 6px 9px;
  border-radius: 999px;
  font-weight: 900;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), #fed7aa);
}

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

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.card-meta a {
  color: #7dd3fc;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.28;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span,
.detail-tags span,
.category-chip {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.11);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 12px;
}

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

.category-card {
  min-height: 178px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 85% 16%, rgba(125, 211, 252, 0.22), transparent 30%),
    rgba(15, 23, 42, 0.68);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 211, 252, 0.42);
}

.category-card h3 {
  margin: 12px 0 8px;
  font-size: 20px;
}

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

.page-hero {
  margin: 28px 0 36px;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 86% 10%, rgba(244, 114, 182, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.64));
  box-shadow: var(--shadow);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px auto;
  gap: 12px;
  margin: 24px 0 30px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.74);
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.66);
  outline: none;
}

.breadcrumb {
  margin: 24px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumb a {
  color: #93c5fd;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 34px;
  align-items: stretch;
  margin-bottom: 34px;
}

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

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

.detail-info {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 8%, rgba(56, 189, 248, 0.18), transparent 30%),
    rgba(15, 23, 42, 0.74);
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #c4b5fd;
  background: rgba(129, 140, 248, 0.13);
  border: 1px solid rgba(129, 140, 248, 0.22);
}

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

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background: #020617;
  box-shadow: var(--shadow);
}

.player-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.16), rgba(2, 6, 23, 0.66));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #06101f;
  background: linear-gradient(135deg, var(--primary), #f0abfc);
  box-shadow: 0 24px 70px rgba(56, 189, 248, 0.34);
  font-size: 30px;
}

.article-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.64);
  margin: 24px 0;
}

.article-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

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

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

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

.rank-index {
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
  text-align: center;
}

.rank-row img {
  width: 92px;
  height: 124px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-row h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-row .btn {
  padding: 10px 14px;
}

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

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

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

.footer-links a {
  color: var(--muted);
  padding: 6px 9px;
}

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

@media (max-width: 1024px) {
  .hero-content,
  .detail-hero,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .site-nav {
    height: auto;
    min-height: 68px;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0 4px;
  }

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

  .nav-link,
  .nav-links a:not(.nav-link) {
    border-radius: 14px;
  }

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

  .hero-content,
  .page-hero,
  .detail-info {
    padding: 28px;
  }

  .hero-panel {
    display: none;
  }

  .hero-dots {
    left: 28px;
    bottom: 28px;
  }

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

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

  .rank-row .btn {
    grid-column: 2 / 4;
    text-align: center;
  }

  .rank-row img {
    width: 72px;
    height: 98px;
  }

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