:root {
  --bg: #0d0b10;
  --bg-soft: #151019;
  --panel: #1c1524;
  --panel-deep: #120e16;
  --line: #33283e;
  --line-soft: #241c2c;
  --text: #f8f4f7;
  --muted: #b4a8ba;
  --rose: #ff4f7e;
  --rose-deep: #c92f5e;
  --gold: #f8bd55;
  --teal: #35d6c1;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

/* Top bar */

.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 36px;
  padding: 7px 14px;
  background: linear-gradient(90deg, var(--rose-deep), var(--rose));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trust-bar i {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.trust-bar span {
  white-space: nowrap;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 10px 18px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background: rgba(13, 11, 16, 0.94);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  box-shadow: 0 6px 18px rgba(255, 79, 126, 0.28);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand-name em {
  color: var(--rose);
  font-style: normal;
}

.official-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--teal);
  border: 1px solid rgba(53, 214, 193, 0.38);
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.official-link svg {
  width: 15px;
  height: 15px;
}

/* Player hero */

.player-section {
  position: relative;
  padding: 26px 0 40px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #17101d 0%, var(--bg) 44%, var(--bg) 100%);
}

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

.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 79, 126, 0.35);
  border-radius: 999px;
  color: #ffd7e2;
  background: rgba(255, 79, 126, 0.1);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.live-pill i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--rose);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 79, 126, 0.5);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(255, 79, 126, 0);
  }
}

.episode-count {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.player-stage {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #000;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.stream-player {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.player-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.2) 38%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0) 100%);
}

.player-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  pointer-events: none;
}

.ep-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #2b0911;
  background: linear-gradient(90deg, var(--gold), #ffdf9a);
  font-size: 0.7rem;
  font-weight: 800;
}

.preview-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 0.7rem;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.player-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 52px;
  z-index: 3;
  padding: 0 16px;
  text-align: left;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.show-genre {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.player-title h1 {
  margin: 0;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.player-sub {
  max-width: 330px;
  margin: 8px 0 0;
  color: #eadfe7;
  font-size: 0.82rem;
  line-height: 1.4;
}

.handoff-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 18px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(13, 9, 16, 0.72), #140b12 78%);
  backdrop-filter: blur(8px);
  animation: sheet-in 300ms ease both;
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.handoff-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.handoff-inner h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.handoff-inner > p {
  margin: 7px 0 14px;
  color: #e7dbe3;
  font-size: 0.8rem;
  line-height: 1.4;
}

.handoff-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

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

.btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  box-shadow: 0 8px 22px rgba(255, 79, 126, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(255, 79, 126, 0.42);
}

.btn-ghost {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.replay-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  margin: 12px auto 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  color: #e7dbe3;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.replay-link svg {
  width: 15px;
  height: 15px;
}

.hero-copy {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.section-label {
  margin: 0 0 8px;
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy h2,
.section-head h2,
.synopsis-copy h2,
.final-handoff h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.62rem;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Episode rail */

.episodes-section,
.synopsis-section,
.why-section,
.shows-section {
  padding: 44px 0;
}

.episodes-section {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

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

.section-head h2 {
  font-size: 1.38rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.text-link svg {
  width: 15px;
  height: 15px;
}

.episode-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 132px;
  gap: 12px;
  margin: 0 -18px;
  padding: 2px 18px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.episode-rail::-webkit-scrollbar {
  display: none;
}

.episode-card {
  min-width: 0;
  scroll-snap-align: start;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line-soft);
}

.episode-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #000;
}

.episode-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-thumb i {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 6px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
}

.episode-card-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 58px;
  padding: 10px;
}

.episode-card-copy strong {
  font-size: 0.8rem;
  line-height: 1.25;
}

.episode-card-copy small {
  color: var(--muted);
  font-size: 0.68rem;
}

.episode-card-more .episode-thumb-more img {
  filter: saturate(0.72) brightness(0.62);
}

.more-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  background: rgba(201, 47, 94, 0.2);
}

/* Synopsis */

.synopsis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.synopsis-poster {
  width: min(100%, 220px);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.synopsis-copy h2 {
  font-size: 1.42rem;
}

.synopsis-copy p:not(.section-label) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.synopsis-copy .text-link {
  margin-top: 16px;
}

/* Why section */

.why-section {
  background: var(--panel-deep);
}

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

.why-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--rose);
  background: rgba(255, 79, 126, 0.1);
  border: 1px solid rgba(255, 79, 126, 0.24);
}

.why-icon svg {
  width: 24px;
  height: 24px;
}

.why-item h3 {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.3;
}

.why-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Shows */

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

.show-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel);
}

.show-card > img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #000;
}

.show-card-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 94px;
  padding: 12px;
}

.show-card-copy strong {
  font-size: 0.86rem;
  line-height: 1.28;
}

.show-card-copy small {
  color: var(--muted);
  font-size: 0.7rem;
}

.show-card-copy i {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  color: var(--teal);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
}

.show-card-copy i svg {
  width: 14px;
  height: 14px;
}

/* Final handoff */

.final-handoff {
  padding: 52px 0 64px;
  background:
    linear-gradient(180deg, var(--bg-soft), #1a0f17 100%);
  border-top: 1px solid var(--line-soft);
}

.final-handoff-inner {
  max-width: 640px;
  text-align: center;
}

.final-handoff-inner > p:not(.section-label) {
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.final-handoff .handoff-actions {
  margin-top: 22px;
}

.btn-lg {
  min-height: 52px;
  font-size: 0.94rem;
}

/* Footer */

.site-footer {
  padding: 28px 0 110px;
  border-top: 1px solid var(--line-soft);
  background: var(--panel-deep);
}

.footer-brand {
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
}

.footer-brand em {
  color: var(--rose);
  font-style: normal;
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

/* Sticky CTA */

.sticky-cta {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 13px 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  box-shadow: 0 12px 32px rgba(255, 79, 126, 0.38);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.sticky-cta svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* Desktop */

@media (min-width: 720px) {
  .player-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
    gap: 46px;
    align-items: center;
  }

  .player-head {
    grid-column: 1 / -1;
    max-width: 420px;
    margin-left: 0;
  }

  .player-stage {
    width: 400px;
  }

  .hero-copy {
    margin: 0;
    text-align: left;
  }

  .hero-copy p:last-child {
    margin-left: 0;
  }

  .episode-rail {
    grid-auto-columns: 148px;
  }

  .synopsis-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 44px;
  }

  .synopsis-poster {
    width: 100%;
    max-width: 300px;
  }

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

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

  .show-grid {
    grid-template-columns: repeat(2, minmax(0, 420px));
    gap: 18px;
  }

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

  .final-handoff .handoff-actions {
    margin-left: auto;
    margin-right: auto;
    max-width: 480px;
  }
}

@media (max-width: 599px) {
  .player-stage {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
}

@media (min-width: 1080px) {
  .player-stage {
    width: 420px;
  }
}

@media (max-width: 359px) {
  .player-title h1 {
    font-size: 1.48rem;
  }

  .handoff-inner h2 {
    font-size: 1.16rem;
  }

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

  .show-card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .show-card > img {
    height: 100%;
    min-height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
