
:root {
  --bg: #07111f;
  --bg-soft: #0b1324;
  --panel: rgba(10, 17, 31, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #edf2ff;
  --muted: #a5b4c8;
  --muted-2: #7f8aa2;
  --rose: #fb7185;
  --rose-2: #be185d;
  --blue: #60a5fa;
  --purple: #a78bfa;
  --cyan: #22d3ee;
  --green: #34d399;
  --amber: #f59e0b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 24px;
  --radius-sm: 18px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(251, 113, 133, 0.16), transparent 24%),
    radial-gradient(circle at 78% 10%, rgba(96, 165, 250, 0.14), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(167, 139, 250, 0.10), transparent 24%),
    linear-gradient(180deg, #060d18 0%, #0a1322 42%, #050810 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(6, 12, 22, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--rose), var(--blue));
  box-shadow: 0 10px 32px rgba(251, 113, 133, 0.24);
}

.brand-text {
  display: grid;
}

.brand-text strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand-text small {
  color: var(--muted);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.nav-link,
.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.22s ease;
}

.nav-link:hover,
.chip-link:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.is-active {
  color: white;
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.2);
}

.header-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: white;
}

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

.hero-shell {
  padding: 34px 0 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 26px;
  align-items: stretch;
}

.hero-intro,
.hero-slider-wrap,
.category-card,
.category-overview,
.movie-card,
.panel,
.page-hero,
.search-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-intro {
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.hero-intro::before,
.hero-slider-wrap::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(34, 211, 238, 0.12), transparent 26%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.18);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.hero-intro h1,
.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  line-height: 1.02;
}

.hero-intro p,
.page-hero p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.02rem;
  max-width: 62ch;
}

.search-bar,
.search-panel {
  position: relative;
  z-index: 1;
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 28px 0 18px;
}

.search-bar input,
.search-panel input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: white;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
  outline: none;
}

.search-bar input:focus,
.search-panel input:focus {
  border-color: rgba(251, 113, 133, 0.42);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.10);
}

.search-bar button,
.btn,
.slider-btn {
  border: 0;
  border-radius: 18px;
  padding: 14px 18px;
  color: white;
  cursor: pointer;
  transition: 0.2s ease;
}

.search-bar button,
.btn-primary {
  background: linear-gradient(135deg, var(--rose), var(--blue));
  box-shadow: 0 16px 34px rgba(96, 165, 250, 0.16);
}

.btn-secondary,
.slider-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.search-bar button:hover,
.btn:hover,
.slider-btn:hover {
  transform: translateY(-2px);
}

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

.hero-stats div,
.hero-slide-card-foot,
.meta-strip,
.player-note,
.nav-pager,
.footer-grid,
.movie-kicker,
.movie-chip-row,
.chip-row,
.meta-row,
.hero-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-stats div {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  flex-direction: column;
}

.hero-stats strong {
  font-size: 1.45rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-inline-links {
  margin-top: 22px;
}

.hero-inline-links a,
.movie-chip,
.chip,
.chip-link {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}

.hero-slider-wrap {
  position: relative;
  overflow: hidden;
  padding: 20px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.55s ease;
}

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

.hero-slide-copy {
  padding: 10px 8px 10px 8px;
  align-self: center;
}

.hero-slide-copy h1 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1.04;
}

.hero-slide-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.meta-row {
  margin: 18px 0;
  color: #cbd5e1;
  font-size: 0.93rem;
}

.hero-actions,
.action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 8px;
}

.hero-slide-card {
  border-radius: 28px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.14), transparent 22%),
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.poster-glow {
  position: absolute;
  inset: auto -20% -24% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.24), transparent 70%);
  filter: blur(2px);
}

.hero-slide-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.78);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.hero-slide-card-title {
  position: relative;
  z-index: 1;
  margin: 38px 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.04;
  font-weight: 800;
}

.hero-slide-card-sub {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.78);
  line-height: 1.8;
  font-size: 0.98rem;
}

.hero-slide-card-foot {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  margin-top: 20px;
  color: rgba(255,255,255,0.82);
}

.hero-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.slider-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.24);
  border: 0;
}

.slider-dot.is-active {
  width: 26px;
  background: linear-gradient(135deg, var(--rose), var(--blue));
}

.section-block {
  padding: 26px 0 4px;
}

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

.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.section-more {
  color: #cbd5e1;
  transition: .2s ease;
}

.section-more:hover {
  color: white;
}

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

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

.movie-card,
.category-card,
.category-overview {
  overflow: hidden;
  transition: .22s ease;
}

.movie-card:hover,
.category-card:hover,
.category-overview:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.16);
}

.movie-card {
  display: flex;
  flex-direction: column;
}

.movie-card-large {
  min-height: 100%;
}

.poster {
  position: relative;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.24), transparent 24%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 78%, #ffffff 22%), color-mix(in srgb, var(--accent2) 82%, #000000 18%));
}

.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,.16), transparent 22%),
    radial-gradient(circle at 82% 74%, rgba(255,255,255,.10), transparent 24%),
    linear-gradient(calc(var(--angle) + 15deg), rgba(255,255,255,.08), transparent 48%);
  opacity: .92;
  mix-blend-mode: screen;
}

.poster-top,
.poster-bottom,
.detail-poster-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.poster-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.16);
  color: rgba(255,255,255,.92);
  font-size: 0.8rem;
  border: 1px solid rgba(255,255,255,0.16);
}

.poster-tag.alt {
  background: rgba(255,255,255,0.12);
}

.poster-letter,
.detail-poster-letter {
  position: relative;
  z-index: 1;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 10px 30px rgba(0,0,0,.24);
  color: rgba(255,255,255,.98);
  font-size: clamp(3rem, 7vw, 4.8rem);
  max-width: 8ch;
}

.movie-body {
  padding: 18px 18px 20px;
}

.movie-kicker {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.movie-body h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.movie-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  min-height: 3.4em;
}

.movie-chip-row,
.chip-row {
  margin-top: 14px;
}

.movie-chip,
.chip {
  color: #dbeafe;
  font-size: 0.83rem;
  background: rgba(255, 255, 255, 0.05);
}

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

.category-card {
  padding: 20px;
}

.category-card-head {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: white;
}

.category-card-head > * {
  position: relative;
  z-index: 1;
}

.category-card-head::before,
.overview-accent {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--a1) 32%, transparent), color-mix(in srgb, var(--a2) 28%, transparent));
  opacity: .5;
  pointer-events: none;
}

.category-card h3,
.category-overview h3 {
  margin: 0 0 10px;
}

.category-card p,
.category-overview p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.page-wrap {
  padding: 28px 0 46px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  margin-bottom: 18px;
}

.page-hero-accent {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--a1) 22%, transparent), transparent 25%),
    radial-gradient(circle at left bottom, color-mix(in srgb, var(--a2) 18%, transparent), transparent 24%),
    var(--panel);
}

.search-panel {
  padding: 18px;
  margin-bottom: 18px;
}

.overview-list {
  display: grid;
  gap: 16px;
}

.category-overview {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 118px;
}

.overview-accent {
  position: relative;
  min-height: 100%;
}

.overview-body {
  padding: 18px;
}

.overview-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: white;
}

.detail-top {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 20px;
  margin-top: 8px;
  align-items: stretch;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 30px;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.25), transparent 22%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 82%, #fff 18%), color-mix(in srgb, var(--accent2) 88%, #000 12%));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
}

.detail-poster-number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.16);
  font-size: .84rem;
}

.detail-poster-letter {
  margin-top: 180px;
}

.detail-poster-foot {
  margin-top: auto;
  justify-content: space-between;
  color: rgba(255,255,255,.88);
}

.detail-copy {
  padding: 10px 4px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 12px;
}

.detail-copy h1 {
  margin: 12px 0 12px;
  font-size: clamp(2rem, 3vw, 3.5rem);
  line-height: 1.06;
}

.meta-strip {
  margin: 10px 0 18px;
  color: #cbd5e1;
}

.meta-strip span,
.player-note span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}

.lead {
  color: #e5ebfa;
  font-size: 1.05rem;
  line-height: 1.9;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel {
  padding: 22px;
}

.panel h2 {
  margin-top: 0;
}

.panel p {
  color: var(--muted);
  line-height: 1.9;
}

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(3,8,16,.96);
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: auto auto 18px 18px;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--blue));
  box-shadow: 0 16px 28px rgba(96, 165, 250, 0.18);
  cursor: pointer;
}

.player-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 12px;
}

.nav-pager {
  justify-content: space-between;
}

.pager-link {
  max-width: 48%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: #e2e8f0;
}

.site-footer {
  margin-top: 32px;
  padding: 30px 0 42px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(4, 8, 15, .48);
}

.footer-grid {
  justify-content: space-between;
  gap: 20px;
}

.footer-grid > div {
  flex: 1;
  min-width: 220px;
}

.footer-grid h3,
.footer-grid h4 {
  margin-top: 0;
}

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

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero-grid,
  .detail-top,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    min-height: 620px;
  }

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

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

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

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
  }

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

  .site-nav {
    display: none;
    width: 100%;
    margin-left: 0;
    padding-top: 8px;
  }

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

  .brand {
    min-width: auto;
  }

  .hero-intro,
  .hero-slider-wrap,
  .page-hero,
  .panel,
  .search-panel,
  .category-card,
  .movie-body,
  .overview-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-stats,
  .search-bar,
  .hero-actions,
  .action-row,
  .nav-pager {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .card-grid,
  .card-grid-compact {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    min-height: 420px;
  }

  .detail-poster-letter {
    margin-top: 140px;
  }
}
