
:root {
  --bg: #050816;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e5eefc;
  --muted: #9fb0d1;
  --primary: #7c3aed;
  --primary-2: #2563eb;
  --accent: #22d3ee;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.20), transparent 32%),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.22), transparent 30%),
    radial-gradient(circle at 50% 20%, rgba(34, 211, 238, 0.10), transparent 36%),
    linear-gradient(180deg, #020617 0%, #07101f 35%, #050816 100%);
  color: var(--text);
  line-height: 1.7;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

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

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: 0 0 0 8px rgba(34, 211, 238, 0.08), 0 0 30px rgba(124, 58, 237, 0.35);
}

.brand span:last-child {
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  min-width: 260px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #fff;
}

.nav-search input {
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  width: 100%;
}

.nav-search input::placeholder {
  color: rgba(229, 231, 235, 0.60);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: white;
}

.hero {
  padding: 34px 0 12px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(14, 23, 42, 0.90), rgba(3, 7, 18, 0.78)),
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.20), transparent 28%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
  padding: 28px;
  min-height: 640px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 14px 10px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #dbeafe;
  font-size: 0.94rem;
}

.hero-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 11ch;
}

.hero-title strong {
  background: linear-gradient(135deg, #fff, #8be9ff 35%, #a78bfa 70%, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.02rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.18);
  color: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.stat-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.stat-card .label {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.stat-card .value {
  font-size: 1.2rem;
  font-weight: 700;
}

.hero-stage {
  display: grid;
  gap: 14px;
  align-content: center;
}

.hero-slider {
  position: relative;
  min-height: 510px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

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

.hero-feature {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  height: 100%;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.30);
}

.hero-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.hero-feature .overlay {
  position: relative;
  padding: 18px 18px 20px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.44) 18%, rgba(2, 6, 23, 0.96) 100%);
}

.hero-feature .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #dbeafe;
  font-size: 0.82rem;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-feature h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  line-height: 1.2;
}

.hero-feature p {
  margin: 0 0 14px;
  color: rgba(229, 231, 235, 0.82);
  font-size: 0.95rem;
}

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

.hero-mini-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.hero-mini-item img {
  width: 76px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.hero-mini-item h3 {
  margin: 0 0 4px;
  font-size: 0.96rem;
  line-height: 1.3;
}

.hero-mini-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.section {
  padding: 18px 0 4px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.4rem;
}

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

.section-link {
  color: #c4b5fd;
  font-weight: 600;
}

.category-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #fff;
}

.category-chip span {
  color: var(--muted);
  font-size: 0.88rem;
}

.grid {
  display: grid;
  gap: 16px;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 8px 32px rgba(2, 6, 23, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(129, 140, 248, 0.40);
  box-shadow: 0 16px 48px rgba(2, 6, 23, 0.38);
}

.movie-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.movie-body {
  padding: 12px 12px 14px;
}

.movie-title {
  margin: 0 0 6px;
  font-size: 0.98rem;
  line-height: 1.35;
  min-height: 2.7em;
}

.movie-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.movie-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(148,163,184,0.12);
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 60px 84px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(148,163,184,0.14);
}

.rank-no {
  width: 60px;
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
}

.rank-item img {
  width: 84px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
}

.rank-copy h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.rank-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.rank-meta {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.detail-wrap {
  padding: 30px 0 50px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 20px;
  align-items: start;
}

.detail-card,
.panel {
  padding: 20px;
  border-radius: 28px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(148,163,184,0.14);
  box-shadow: var(--shadow);
}

.poster {
  overflow: hidden;
}

.poster img {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0,0,0,0.32);
}

.poster .poster-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.detail-tagline {
  margin: 0 0 14px;
  color: var(--muted);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.meta-item {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.22);
  border: 1px solid rgba(148,163,184,0.12);
}

.meta-item .k {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.meta-item .v {
  font-weight: 600;
}

.story {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.story h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.story p {
  margin: 0;
  color: rgba(229, 231, 235, 0.86);
}

.player-shell {
  overflow: hidden;
  padding: 0;
}

.video-box {
  background: #020617;
  border-bottom: 1px solid rgba(148,163,184,0.12);
}

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

.player-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 20px 20px;
}

.player-note {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: #dbeafe;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.16);
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.filter-bar input::placeholder {
  color: rgba(229, 231, 235, 0.6);
}

.page-hero {
  padding: 24px 0 8px;
}

.page-hero .panel {
  display: grid;
  gap: 12px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
}

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

.category-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(148,163,184,0.14);
  display: grid;
  gap: 10px;
}

.category-card .top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.category-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

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

.category-card .count {
  color: #fff;
  font-weight: 800;
}

.footer {
  padding: 28px 0 44px;
  color: var(--muted);
}

.footer-panel {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148,163,184,0.12);
}

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

.results-empty {
  padding: 30px;
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(148,163,184,0.26);
  color: var(--muted);
  text-align: center;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.subtle {
  color: var(--muted);
}

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

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

  .hero-grid {
    min-height: unset;
  }

  .hero-slider {
    min-height: 420px;
  }
}

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-search {
    min-width: 0;
    width: 100%;
  }

  .navbar {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-tools {
    width: 100%;
  }

  .hero-grid {
    padding: 18px;
  }

  .hero-title {
    max-width: 100%;
  }

  .hero-stats,
  .meta-grid,
  .category-cards,
  .grid-3,
  .ranking-list,
  .movie-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .topbar {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .hero-shell {
    border-radius: 24px;
  }

  .hero-grid {
    padding: 14px;
  }

  .detail-card,
  .panel {
    padding: 16px;
    border-radius: 22px;
  }

  .movie-card,
  .rank-item,
  .category-card {
    border-radius: 18px;
  }
}
