
:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.74);
  --panel-solid: #0f172a;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --sky: #38bdf8;
  --blue: #2563eb;
  --violet: #7c3aed;
  --pink: #db2777;
  --gold: #f59e0b;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 5%, rgba(56, 189, 248, 0.22), transparent 28rem),
    radial-gradient(circle at 90% 0%, rgba(124, 58, 237, 0.20), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

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

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

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

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky), var(--blue), var(--violet));
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

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

.nav-link {
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--soft);
  font-size: 14px;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: rgba(56, 189, 248, 0.16);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  color: white;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 12px;
  padding: 8px 12px;
}

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

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

.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.mobile-cats a {
  color: var(--muted);
  font-size: 13px;
}

.container {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 90px 0 56px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 90px 8% auto auto;
  width: 420px;
  height: 420px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(219, 39, 119, 0.20));
  filter: blur(40px);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 34px;
  align-items: center;
}

.hero-copy {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.56));
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sky);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

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

.gradient-text {
  background: linear-gradient(90deg, #ffffff, #7dd3fc 42%, #c4b5fd 74%, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p,
.page-hero p {
  color: var(--soft);
  line-height: 1.85;
  font-size: 16px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  color: white;
  transition: 0.2s ease;
}

.btn.primary {
  border: 0;
  background: linear-gradient(135deg, var(--sky), var(--blue), var(--violet));
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.35);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.38);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font-size: 15px;
  padding: 0 10px;
}

.search-box button {
  border: 0;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  padding: 10px 18px;
  cursor: pointer;
}

.hero-showcase {
  display: grid;
  gap: 18px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  min-height: 430px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.feature-card img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  opacity: 0.76;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.88) 72%);
}

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

.feature-info h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.feature-info p {
  color: var(--soft);
  line-height: 1.7;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mini-card {
  min-height: 120px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  transition: 0.2s ease;
}

.mini-card:hover {
  transform: translateY(-3px);
  background: rgba(30, 41, 59, 0.82);
}

.mini-card span {
  color: var(--sky);
  font-size: 12px;
}

.mini-card strong {
  display: block;
  margin: 8px 0;
}

.mini-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.section {
  padding: 54px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
}

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

.more-link {
  color: var(--sky);
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 20px 42px rgba(2, 6, 23, 0.22);
  transition: 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.38);
  background: rgba(30, 41, 59, 0.82);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(37, 99, 235, 0.35));
}

.poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.36s ease;
}

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

.play-dot {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #020617;
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.32);
}

.year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.75);
  color: white;
  font-size: 12px;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.card-title:hover {
  color: var(--sky);
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.tag-row span {
  font-size: 12px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 999px;
  padding: 5px 8px;
}

.meta-line {
  color: #64748b;
  font-size: 12px;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  border-radius: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(124, 58, 237, 0.16)), rgba(15, 23, 42, 0.74);
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.16);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 8px;
}

.category-tile p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.page-hero {
  padding: 70px 0 34px;
}

.page-hero-card {
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 38px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(37, 99, 235, 0.14));
  box-shadow: var(--shadow);
}

.breadcrumb {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

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

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 22px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
}

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

.rank-poster img {
  width: 92px;
  height: 126px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-item h3 {
  margin: 0 0 8px;
}

.rank-item p {
  margin: 0 0 10px;
  color: var(--soft);
  line-height: 1.6;
}

.rank-item span {
  color: var(--muted);
  font-size: 13px;
}

.side-panel {
  position: sticky;
  top: 98px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.76);
}

.side-panel h2 {
  margin-top: 0;
}

.side-panel a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
}

.detail-hero {
  padding: 42px 0 24px;
}

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

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

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-main {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.detail-main h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 56px);
  letter-spacing: -0.04em;
}

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

.detail-meta span {
  color: #dbeafe;
  border: 1px solid rgba(96, 165, 250, 0.2);
  background: rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 13px;
}

.detail-main p {
  color: var(--soft);
  line-height: 1.9;
}

.player-wrap {
  margin-top: 26px;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: #000;
}

.video-shell {
  position: relative;
  background: #000;
}

.video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.22), rgba(2, 6, 23, 0.82));
}

.video-cover.hidden {
  display: none;
}

.play-button {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 0;
  color: #020617;
  background: rgba(255, 255, 255, 0.94);
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.5);
}

.player-note {
  min-height: 38px;
  padding: 10px 14px;
  color: var(--muted);
  background: rgba(2, 6, 23, 0.88);
  font-size: 13px;
}

.content-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  background: rgba(15, 23, 42, 0.72);
}

.content-card h2 {
  margin-top: 0;
}

.content-card p {
  color: var(--soft);
  line-height: 1.9;
}

.alpha-list {
  columns: 4 220px;
  column-gap: 28px;
}

.alpha-list a {
  display: block;
  break-inside: avoid;
  padding: 8px 0;
  color: var(--soft);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.alpha-list a:hover {
  color: var(--sky);
}

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

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

.footer-logo {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 12px;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h2 {
  font-size: 16px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

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

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

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

  .side-panel {
    position: static;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  .hero-copy,
  .page-hero-card,
  .detail-main {
    padding: 22px;
    border-radius: 24px;
  }

  .hero-grid {
    gap: 18px;
  }

  .feature-card,
  .feature-card img {
    min-height: 320px;
    height: 320px;
  }

  .hero-mini-grid,
  .movie-grid,
  .movie-grid.small,
  .category-band {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .rank-item {
    grid-template-columns: 42px 76px 1fr;
  }

  .rank-poster img {
    width: 76px;
    height: 104px;
  }

  .search-box {
    grid-template-columns: 1fr;
  }
}
