
:root {
  --bg: #07111f;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.84);
  --panel-2: rgba(17, 24, 39, 0.72);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e5eefc;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --purple: #a855f7;
  --teal: #14b8a6;
  --green: #22c55e;
  --orange: #f97316;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(168, 85, 247, 0.14), transparent 22%),
    radial-gradient(circle at 80% 0%, rgba(6, 182, 212, 0.12), transparent 24%),
    linear-gradient(180deg, #020617 0%, #07111f 28%, #0b1220 100%);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 90%);
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(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.12);
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(6,182,212,0.95), rgba(168,85,247,0.9));
  box-shadow: 0 16px 30px rgba(6,182,212,0.18);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text strong {
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.nav button,
.pill,
.chip,
.tag {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.56);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.nav a:hover,
.nav button:hover,
.pill:hover,
.chip:hover,
.tag:hover {
  transform: translateY(-1px);
  border-color: rgba(6, 182, 212, 0.42);
  background: rgba(6, 182, 212, 0.12);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 18px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.24), transparent 28%),
    radial-gradient(circle at right center, rgba(168, 85, 247, 0.20), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.82));
  box-shadow: var(--shadow);
}

.hero-shell::before,
.hero-shell::after {
  content: '';
  position: absolute;
  inset: auto auto 0 0;
  pointer-events: none;
}

.hero-shell::before {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(6,182,212,0.14), transparent 64%);
  transform: translate(-34%, 18%);
}

.hero-shell::after {
  inset: 20px 18px auto auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(168,85,247,0.16), transparent 66%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.9fr);
  gap: 22px;
  padding: 26px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #bfdbfe;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker::before {
  content: '';
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, rgba(6,182,212,0.1), rgba(6,182,212,0.95));
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.hero p {
  margin: 0;
  color: var(--muted-2);
  font-size: 1.03rem;
  max-width: 60ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.76);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.search-bar input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  padding: 14px 16px;
}

.search-bar input::placeholder {
  color: #7c8aa3;
}

.search-bar button {
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  background: linear-gradient(135deg, rgba(6,182,212,0.95), rgba(168,85,247,0.95));
  color: #fff;
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.54);
  min-height: 520px;
}

.hero-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.hero-slide {
  min-width: 100%;
  padding: 16px;
}

.hero-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 488px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(160deg, rgba(15,23,42,0.92), rgba(2,6,23,0.9));
}

.poster-hero {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  overflow: hidden;
}

.poster-hero::before,
.poster-hero::after,
.poster-card::before,
.poster-detail::before {
  content: '';
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.poster-hero::before {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transform: translate(-14%, -8%);
  filter: blur(10px);
}

.poster-hero::after {
  inset: 0;
  background: linear-gradient(180deg, transparent 10%, rgba(2,6,23,0.12) 44%, rgba(2,6,23,0.84) 100%);
}

.poster-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(255,255,255,0.1);
  color: #dbeafe;
  font-size: 0.84rem;
}

.poster-title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.05;
  max-width: 12ch;
}

.poster-sub {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #dbeafe;
  font-size: 0.95rem;
  max-width: 34ch;
}

.hero-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-info h3,
.section h2,
.panel h2,
.section-title {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.hero-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.mini-item,
.rank-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.12);
  background: rgba(15, 23, 42, 0.5);
}

.rank-num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(6,182,212,0.92), rgba(168,85,247,0.92));
}

.main {
  padding: 18px 0 54px;
}

.section {
  margin-top: 22px;
}

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

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

.grid-hero,
.grid-cards,
.grid-related,
.grid-categories {
  display: grid;
  gap: 16px;
}

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

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

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

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

.card,
.category-card,
.info-card,
.panel,
.player-card {
  border-radius: 24px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 48px rgba(0,0,0,0.18);
}

.card {
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover,
.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6,182,212,0.35);
}

.poster-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-bottom: 1px solid rgba(148,163,184,0.12);
}

.poster-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 15%, rgba(2,6,23,0.18) 45%, rgba(2,6,23,0.9) 100%);
}

.card-body,
.category-body,
.info-card,
.panel,
.player-card {
  padding: 16px;
}

.card-title,
.category-title {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.35;
}

.card-meta,
.category-meta,
.detail-meta,
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.card-desc {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 0.93rem;
}

.badges,
.chips,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge,
.chip,
.tag {
  font-size: 0.82rem;
  padding: 6px 10px;
}

.badge {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(2, 6, 23, 0.36);
  color: #dbeafe;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 18px;
  align-items: start;
}

.panel {
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 18%);
  pointer-events: none;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.toolbar input,
.toolbar select {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.16);
  background: rgba(15,23,42,0.82);
  color: var(--text);
}

.toolbar input {
  flex: 1 1 260px;
}

.toolbar select {
  min-width: 180px;
}

.detail-hero {
  margin-top: 20px;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: stretch;
}

.poster-detail {
  position: relative;
  min-height: 560px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.14);
}

.poster-detail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 12%, rgba(2,6,23,0.1) 40%, rgba(2,6,23,0.88) 100%);
}

.detail-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.06;
}

.detail-summary {
  margin: 0;
  color: #dbeafe;
  font-size: 1.02rem;
}

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

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

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

.stat span {
  color: var(--text);
}

.synopsis {
  color: #dbeafe;
  margin: 0;
}

.player-wrap {
  display: grid;
  gap: 14px;
}

.player-stage {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  border: 1px solid rgba(148,163,184,0.14);
  aspect-ratio: 16 / 9;
}

.player-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2,6,23,0.12), rgba(2,6,23,0.45));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.player-stage[data-paused='true'] .player-overlay {
  opacity: 1;
  pointer-events: auto;
}

.play-btn {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, rgba(6,182,212,0.96), rgba(168,85,247,0.96));
  box-shadow: 0 20px 40px rgba(6,182,212,0.22);
  font-size: 1.2rem;
}

.footer {
  padding: 30px 0 42px;
  color: var(--muted);
}

.footer-inner {
  border-top: 1px solid rgba(148,163,184,0.12);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-result-empty {
  display: none;
  padding: 20px;
  border-radius: 18px;
  border: 1px dashed rgba(148,163,184,0.22);
  color: var(--muted);
  text-align: center;
}

.hero-dots {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

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

.hero-dot.active {
  width: 30px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 12px;
  color: var(--muted);
}

.breadcrumb a {
  color: #dbeafe;
}

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

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

  .hero-carousel {
    min-height: 460px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    width: 100%;
    padding-top: 6px;
  }

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

  .header-inner {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-shell,
  .hero-card,
  .hero-carousel,
  .poster-detail {
    border-radius: 22px;
  }

  .hero-grid {
    padding: 18px;
  }

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

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

  .toolbar {
    align-items: stretch;
  }

  .toolbar input,
  .toolbar select,
  .toolbar .btn {
    width: 100%;
  }
}
