:root {
  color-scheme: dark;
  --bg: #101113;
  --surface: #17191e;
  --surface-2: #20232a;
  --surface-3: #292d35;
  --text: #f6f1e8;
  --muted: #b9b1a6;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #d9ae62;
  --red: #a93b3d;
  --green: #76d39a;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101113;
  color: var(--text);
}

body.watch-immersive {
  overflow: hidden;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 17, 19, 0.92);
  backdrop-filter: blur(18px);
}

.brand-button,
.desktop-nav button,
.search-button,
.coin-button,
.category-tabs button,
.section-title button,
.poster-card,
.continue-card {
  cursor: pointer;
}

.brand-button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--gold);
  color: #17120b;
  font-size: 13px;
}

.desktop-nav {
  display: flex;
  gap: 6px;
}

.desktop-nav button,
.search-button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav button:hover,
.desktop-nav button.active,
.search-button:hover {
  background: var(--surface-2);
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coin-button,
.primary-action,
.ghost-action {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 820;
}

.coin-button,
.primary-action {
  border: 0;
  background: var(--gold);
  color: #16110b;
}

.coin-button {
  min-height: 36px;
  padding: 0 14px;
}

.ghost-action {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.page {
  width: min(1220px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.home-hero {
  position: relative;
  height: 500px;
  min-height: 420px;
  max-height: 520px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface);
}

.home-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.12));
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 56px;
}

.back-link {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  padding: 0 13px;
  cursor: pointer;
  font-weight: 750;
}

.tag,
.eyebrow,
.meta-label,
.modal-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  width: max-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(169, 59, 61, 0.9);
  color: #fff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.home-hero h1 {
  margin: 14px 0 12px;
  font-size: 68px;
  line-height: 0.96;
  letter-spacing: 0;
}

.home-hero p {
  max-width: 480px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.52;
}

.home-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
}

.home-hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(19, 21, 26, 0.72);
  color: rgba(255, 255, 255, 0.88);
  padding: 0 11px;
  font-size: 13px;
  font-weight: 760;
}

.home-hero-controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-carousel-button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(13, 15, 18, 0.68);
  color: var(--text);
  padding: 0 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.home-hero-dots {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(13, 15, 18, 0.54);
  padding: 0 10px;
  backdrop-filter: blur(12px);
}

.home-hero-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  padding: 0;
  cursor: pointer;
}

.home-hero-dot.active {
  width: 18px;
  background: var(--gold);
}

.primary-action {
  padding: 0 18px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 20px 0 6px;
  scrollbar-width: none;
}

.mobile-category-wrap {
  position: relative;
}

.mobile-category-wrap::after,
.category-scroll-cue {
  display: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs button,
.section-title button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 750;
}

.category-tabs button {
  min-height: 36px;
  padding: 0 13px;
  white-space: nowrap;
}

.category-tabs button.active {
  background: var(--gold);
  color: #16110b;
}

.content-band {
  margin-top: 28px;
}

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

.section-title h2 {
  margin: 0;
  font-size: 22px;
}

.section-title button {
  min-height: 30px;
  padding: 0 11px;
  color: var(--muted);
  font-size: 12px;
}

.continue-card {
  width: min(620px, 100%);
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 10px;
  text-align: left;
}

.continue-card img {
  height: 78px;
  width: 78px;
  border-radius: 6px;
  object-fit: cover;
}

.continue-card strong,
.poster-card strong {
  display: block;
}

.continue-card small,
.poster-card small,
.unlock-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.continue-card em {
  color: var(--gold);
  font-style: normal;
  font-size: 13px;
  font-weight: 850;
}

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

.poster-card {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 0;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 9px;
}

.poster-card strong {
  font-size: 15px;
  line-height: 1.25;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 390px;
  gap: 28px;
  align-items: start;
}

.player-column {
  display: grid;
  justify-items: center;
}

.video-frame {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 12px;
  background: #050506;
  box-shadow: var(--shadow);
}

.episode-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #050506;
}

.episode-transition-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}

.episode-transition-video.is-visible {
  opacity: 1;
}

.shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.56) 0%, transparent 24%, rgba(0, 0, 0, 0.48) 68%, rgba(0, 0, 0, 0.92) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.26), transparent 45%);
  pointer-events: none;
  transition: opacity 180ms ease;
}

.player-top {
  position: absolute;
  top: 16px;
  left: 14px;
  right: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: opacity 180ms ease;
}

.round-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}

.player-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ad-pill {
  display: none;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  font-size: 12px;
  font-weight: 750;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 48%;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(250, 239, 221, 0.92);
  color: #181410;
  cursor: pointer;
  font-size: 0;
  z-index: 6;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.play-button::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid #17120b;
}

.play-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.video-status {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 42px;
  z-index: 3;
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(4, 5, 7, 0.78);
  color: #fff;
  backdrop-filter: blur(10px);
}

.video-status[hidden] {
  display: none;
}

.video-status strong {
  font-size: 13px;
}

.video-status span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.video-status button {
  width: max-content;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #15110b;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 850;
}

.player-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: grid;
  gap: 5px;
  padding: 0 18px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent);
}

.player-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.58);
}

.video-seek {
  --seek-progress: 0%;
  width: 100%;
  height: 22px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.video-seek:focus-visible {
  outline: 2px solid rgba(228, 181, 89, 0.72);
  outline-offset: 4px;
}

.video-seek::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) var(--seek-progress), rgba(255, 255, 255, 0.28) var(--seek-progress));
}

.video-seek::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -4.5px;
  appearance: none;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: #fff7e5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

.video-seek::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.video-seek::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
}

.video-seek::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: #fff7e5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

.episode-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 82px;
  z-index: 2;
  transition: opacity 180ms ease, transform 180ms ease;
}

.episode-copy h1 {
  margin: 7px 0 8px;
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: 0;
}

.episode-copy p:last-child {
  display: none;
}

.video-frame.is-playing .shade {
  opacity: 0.28;
}

.video-frame.is-playing .episode-copy,
.video-frame.is-playing .play-button {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

.video-frame.is-playing .play-button {
  transform: translate(-50%, -50%) scale(0.92);
}

.video-frame.is-playing .player-top {
  opacity: 0.72;
}

.details-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 20px;
}

.details-panel h2 {
  margin: 7px 0 10px;
  font-size: 30px;
  line-height: 1.05;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip-row span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.summary {
  color: var(--muted);
  line-height: 1.55;
}

.progress-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.progress-row strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
}

.completion {
  color: var(--green);
  font-size: 14px;
  font-weight: 850;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  margin: 10px 0 16px;
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #f3dca7);
  transition: width 220ms ease;
}

.episode-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.episode {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-weight: 780;
}

.episode.active {
  background: var(--gold);
  color: #16110b;
}

.episode.locked {
  color: rgba(255, 255, 255, 0.5);
  background: #15171b;
}

.episode.locked::after {
  content: "L";
  display: block;
  margin-top: -2px;
  color: var(--gold);
  font-size: 9px;
}

.episode-drawer-toggle {
  position: absolute;
  left: 50%;
  bottom: 48px;
  z-index: 8;
  display: none;
  width: 42px;
  height: 24px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.episode-drawer-toggle::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 9px solid rgba(255, 255, 255, 0.9);
}

.episode-drawer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  max-height: min(58svh, 460px);
  overflow: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(9, 10, 13, 0.94);
  padding: 16px 18px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -24px 64px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(16px);
}

.episode-drawer[hidden] {
  display: none;
}

.episode-drawer-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.episode-drawer-header strong {
  font-size: 16px;
}

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

.video-frame.is-immersive {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: 100vw;
  height: 100svh;
  max-height: none;
  border-radius: 0;
  aspect-ratio: auto;
  box-shadow: none;
  touch-action: pan-y;
}

.video-frame.is-immersive .player-top {
  top: max(14px, env(safe-area-inset-top));
  left: 14px;
  right: 14px;
}

.video-frame.is-immersive .player-bottom {
  padding: 0 14px calc(14px + env(safe-area-inset-bottom));
}

.video-frame.is-immersive .episode-copy {
  bottom: calc(96px + env(safe-area-inset-bottom));
}

.video-frame.is-immersive .episode-drawer-toggle {
  display: grid;
  place-items: center;
}

.video-frame.is-immersive.has-episode-drawer .episode-drawer-toggle::before {
  border-top: 9px solid rgba(255, 255, 255, 0.9);
  border-bottom: 0;
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 10px;
  margin-top: 16px;
}

.unlock-card {
  margin-top: 16px;
  border: 1px solid rgba(217, 174, 98, 0.38);
  border-radius: 8px;
  background: rgba(217, 174, 98, 0.09);
  padding: 14px;
}

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

.unlock-card strong {
  display: block;
  margin-top: 4px;
  color: var(--gold);
}

.comment-panel {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.comment-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-panel-head strong {
  font-size: 16px;
}

.comment-panel-head span {
  color: var(--muted);
  font-size: 12px;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.comment-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(226, 183, 96, 0.16);
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.comment-meta strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.comment-meta span,
.comment-likes {
  color: var(--muted);
  font-size: 12px;
}

.comment-body {
  margin: 0;
  color: #eee8de;
  font-size: 13px;
  line-height: 1.45;
}

.more-like-this {
  margin-top: 34px;
}

.topup-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 430px;
  gap: 28px;
  align-items: start;
  margin-top: 22px;
}

.topup-copy,
.topup-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.topup-copy {
  min-height: 430px;
  display: grid;
  align-content: center;
  padding: 46px;
}

.topup-copy h1 {
  max-width: 620px;
  margin: 10px 0 14px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

.topup-copy p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.55;
}

.balance-card {
  width: min(340px, 100%);
  margin-top: 24px;
  border: 1px solid rgba(217, 174, 98, 0.38);
  border-radius: 8px;
  background: rgba(217, 174, 98, 0.09);
  padding: 16px;
}

.balance-card span,
.balance-card small {
  display: block;
  color: var(--muted);
}

.balance-card strong {
  display: block;
  margin: 5px 0;
  color: var(--gold);
  font-size: 28px;
}

.pricing-note {
  margin-top: 14px;
  border: 1px solid rgba(217, 174, 98, 0.35);
  border-radius: 8px;
  background: rgba(217, 174, 98, 0.1);
  color: var(--text);
  padding: 13px 14px;
  line-height: 1.45;
}

.topup-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.coin-pack-list {
  display: grid;
  gap: 12px;
}

.coin-pack {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  padding: 16px;
  text-align: left;
  cursor: pointer;
}

.coin-pack.selected {
  border-color: rgba(217, 174, 98, 0.82);
  background: rgba(217, 174, 98, 0.12);
}

.coin-pack span {
  color: var(--muted);
  font-size: 12px;
}

.coin-pack strong {
  grid-column: 1;
  font-size: 24px;
}

.coin-pack em {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--gold);
  font-size: 22px;
  font-style: normal;
  font-weight: 850;
}

.coin-pack small {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.35;
}

.payment-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.payment-row span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
}

.modal[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(370px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #191b1f;
  padding: 22px;
  box-shadow: var(--shadow);
}

.modal-card h2 {
  margin: 8px 0;
  font-size: 26px;
}

.modal-card p {
  color: var(--muted);
  line-height: 1.5;
}

.paywall-pricing {
  display: grid;
  gap: 5px;
  margin: 14px 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.paywall-pricing strong {
  font-size: 15px;
}

.paywall-pricing span,
.paywall-pricing small {
  color: var(--muted);
  line-height: 1.35;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-3);
  color: #fff;
  cursor: pointer;
  font-size: 21px;
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.price-grid button {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.price-grid .recommended {
  border-color: rgba(217, 174, 98, 0.72);
  background: rgba(217, 174, 98, 0.13);
}

.price-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.price-grid strong {
  font-size: 21px;
}

.primary-action.full {
  width: 100%;
}

.event-modal-card {
  width: min(720px, calc(100vw - 32px));
}

.event-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  margin-top: 14px;
}

.event-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.event-actions .ghost-action {
  min-height: 36px;
  padding: 0 12px;
}

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

.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  color: var(--paper);
  font-size: 22px;
}

.funnel-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 1fr 72px 64px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 9px 10px;
  color: var(--muted);
  font-size: 12px;
}

.funnel-row strong {
  color: var(--paper);
  text-align: right;
}

.funnel-row em {
  color: var(--green);
  font-style: normal;
  text-align: right;
}

.campaign-breakdown {
  margin-top: 14px;
}

.campaign-breakdown h3,
.link-builder h3 {
  margin: 0 0 8px;
  color: var(--paper);
  font-size: 14px;
}

.link-builder {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.link-builder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.link-builder label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.link-builder input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--paper);
  padding: 0 10px;
  font: inherit;
}

.generated-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 9px;
}

.campaign-list {
  display: grid;
  gap: 7px;
  max-height: 220px;
  overflow: auto;
}

.campaign-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 72px 64px 76px 56px 70px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 9px 10px;
  color: var(--muted);
  font-size: 12px;
}

.campaign-row strong,
.campaign-row small {
  display: block;
}

.campaign-row strong {
  color: var(--paper);
}

.campaign-row em {
  font-style: normal;
  text-align: right;
}

.campaign-row b {
  color: var(--gold);
  text-align: right;
}

.campaign-row.empty {
  display: block;
  color: var(--muted);
}

.event-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px;
}

.event-row strong {
  color: var(--gold);
  font-size: 13px;
}

.event-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 920px) {
  .site-header {
    height: 56px;
    grid-template-columns: 1fr auto;
    padding: 0 14px;
  }

  .desktop-nav,
  .search-button {
    display: none;
  }

  .debug-mode #openEvents {
    display: inline-flex;
  }

  .brand-button {
    width: max-content;
  }

  .brand-button span:last-child {
    font-size: 14px;
  }

  .page {
    width: 100%;
    padding: 0 0 28px;
  }

  .home-page {
    padding: 12px 14px 28px;
  }

  .home-hero {
    height: 360px;
    min-height: 360px;
    border-radius: 10px;
  }

  .home-hero::after {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.88));
  }

  .home-hero-copy {
    display: grid;
    align-content: end;
    min-height: 360px;
    padding: 18px;
  }

  .home-hero-controls {
    top: 14px;
    right: 14px;
    bottom: auto;
  }

  .hero-carousel-button {
    width: 34px;
    min-height: 34px;
    overflow: hidden;
    padding: 0;
    font-size: 0;
  }

  #homeHeroPrev::before {
    content: "<";
    font-size: 14px;
  }

  #homeHeroNext::before {
    content: ">";
    font-size: 14px;
  }

  .home-hero h1 {
    font-size: 38px;
  }

  .mobile-category-wrap {
    margin-top: 2px;
    padding-right: 46px;
  }

  .mobile-category-wrap::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 34px;
    bottom: 4px;
    display: block;
    width: 42px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(16, 17, 19, 0), var(--bg) 74%);
  }

  .category-scroll-cue {
    position: absolute;
    right: 0;
    top: 22px;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border: 1px solid rgba(226, 183, 96, 0.36);
    border-radius: 999px;
    background: rgba(16, 17, 19, 0.92);
    color: var(--gold);
    padding: 0 7px;
    font-size: 10px;
    font-weight: 850;
    pointer-events: none;
  }

  .category-scroll-cue::after {
    content: ">";
    margin-left: 4px;
  }

  .category-tabs {
    padding-right: 8px;
  }

  .content-band {
    padding: 0 14px;
  }

  .home-page .content-band {
    padding: 0;
  }

  .continue-card {
    grid-template-columns: 64px 1fr;
  }

  .continue-card em {
    display: none;
  }

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

  .topup-page {
    padding: 14px;
  }

  .topup-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .topup-copy {
    min-height: 0;
    padding: 24px 18px;
  }

  .topup-copy h1 {
    font-size: 38px;
  }

  .watch-layout {
    display: block;
  }

  .player-column {
    display: block;
  }

  .video-frame {
    width: 100%;
    max-height: 68svh;
    border-radius: 0;
    box-shadow: none;
  }

  .player-top {
    top: 14px;
  }

  .player-bottom {
    padding: 0 14px 10px;
  }

  .player-time {
    display: none;
  }

  .video-seek::-webkit-slider-runnable-track {
    height: 4px;
  }

  .video-seek::-moz-range-track,
  .video-seek::-moz-range-progress {
    height: 4px;
  }

  .details-panel {
    border: 0;
    border-radius: 0;
    background: var(--surface);
    padding: 16px 14px 18px;
  }

  .details-panel h2 {
    font-size: 24px;
  }

  .summary {
    font-size: 14px;
  }

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

  .more-like-this {
    padding: 0 14px;
  }
}

@media (max-width: 760px) {
  .metrics-panel {
    grid-template-columns: 1fr;
  }

  .link-builder-grid,
  .generated-link-row {
    grid-template-columns: 1fr;
  }

  .campaign-row {
    grid-template-columns: 1fr 64px 64px;
  }

  .campaign-row em:nth-of-type(3),
  .campaign-row em:nth-of-type(4) {
    display: none;
  }
}

@media (max-width: 480px) {
  .coin-button {
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  .video-frame {
    max-height: none;
    aspect-ratio: 9 / 14.5;
  }

  .episode-copy h1 {
    font-size: 25px;
  }

  .episode-copy p:last-child {
    font-size: 13px;
  }

  .cta-row {
    grid-template-columns: 1fr 84px;
  }

  .poster-card strong {
    font-size: 14px;
  }
}

.wallet-debug-panel {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  width: min(420px, calc(100vw - 28px));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(14, 16, 21, 0.92);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.34);
  color: #f7f1e6;
  padding: 10px 12px;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.wallet-debug-panel strong {
  display: block;
  font-size: 12px;
}

.wallet-debug-panel [data-wallet-debug="guest"] {
  display: block;
  color: rgba(247, 241, 230, 0.72);
}

.wallet-debug-panel [data-wallet-debug="attribution"] {
  display: block;
  margin-top: 2px;
  color: rgba(247, 241, 230, 0.58);
}

.wallet-debug-metrics {
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
  color: rgba(247, 241, 230, 0.82);
}

.wallet-debug-metrics span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.06);
}

.wallet-debug-actions {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  gap: 6px;
}

.wallet-debug-panel button {
  border: 0;
  border-radius: 6px;
  background: var(--gold);
  color: #171717;
  font-weight: 800;
  padding: 7px 10px;
  cursor: pointer;
}

.checkout-notice {
  position: fixed;
  left: 50%;
  top: 76px;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(560px, calc(100vw - 28px));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(16, 18, 24, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
  color: #f8f3e8;
  padding: 12px 14px;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.checkout-notice[hidden] {
  display: none;
}

.checkout-notice[data-tone="success"] {
  border-color: rgba(126, 231, 161, 0.46);
}

.checkout-notice[data-tone="warn"] {
  border-color: rgba(232, 190, 94, 0.5);
}

.checkout-notice strong {
  display: block;
  font-size: 14px;
}

.checkout-notice span {
  display: block;
  margin-top: 3px;
  color: rgba(248, 243, 232, 0.74);
  font-size: 12px;
}

.checkout-notice button {
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8f3e8;
  font-weight: 800;
  padding: 8px 10px;
  cursor: pointer;
}

.site-footer {
  width: min(1220px, calc(100vw - 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--text);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.site-footer a,
.legal-page a {
  color: var(--gold);
  text-decoration: none;
}

.site-footer a:hover,
.legal-page a:hover {
  text-decoration: underline;
}

.legal-page {
  width: min(900px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.legal-page .brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
}

.legal-page h1 {
  margin: 34px 0 10px;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: 0;
  line-height: 1;
}

.legal-page .updated {
  color: var(--muted);
  margin-bottom: 32px;
}

.legal-section {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 22px;
}

.legal-section h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  line-height: 1.65;
}

.legal-section ul {
  padding-left: 20px;
}

.preview-device-switcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(13, 15, 18, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(14px);
}

.preview-device-switcher span {
  color: var(--muted);
  padding: 0 4px;
}

.preview-device-switcher button {
  min-width: 72px;
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.preview-device-switcher button.active {
  background: var(--gold);
  color: #0d0f12;
}

@media (min-width: 921px) {
  body[data-preview-device="mobile"] {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.05)),
      #050506;
  }

  body[data-preview-device="mobile"] .site-header,
  body[data-preview-device="mobile"] main,
  body[data-preview-device="mobile"] .site-footer {
    width: min(430px, calc(100vw - 32px));
    margin-inline: auto;
  }

  body[data-preview-device="mobile"] .site-header {
    height: 56px;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 0 14px;
    border-inline: 1px solid var(--line);
  }

  body[data-preview-device="mobile"] main {
    min-height: calc(100vh - 56px);
    border-inline: 1px solid rgba(255, 255, 255, 0.08);
    background: #101113;
  }

  body[data-preview-device="mobile"] .desktop-nav,
  body[data-preview-device="mobile"] .search-button {
    display: none;
  }

  body[data-preview-device="mobile"] .brand-button {
    width: max-content;
  }

  body[data-preview-device="mobile"] .brand-button span:last-child {
    font-size: 14px;
  }

  body[data-preview-device="mobile"] .page {
    width: 100%;
    padding: 0 0 28px;
  }

  body[data-preview-device="mobile"] .home-page {
    padding: 12px 14px 28px;
  }

  body[data-preview-device="mobile"] .home-hero {
    height: 360px;
    min-height: 360px;
    border-radius: 10px;
  }

  body[data-preview-device="mobile"] .home-hero::after {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.88));
  }

  body[data-preview-device="mobile"] .home-hero-copy {
    display: grid;
    align-content: end;
    min-height: 360px;
    padding: 18px;
  }

  body[data-preview-device="mobile"] .home-hero h1 {
    font-size: 38px;
  }

  body[data-preview-device="mobile"] .home-hero-controls {
    top: 14px;
    right: 14px;
    bottom: auto;
  }

  body[data-preview-device="mobile"] .hero-carousel-button {
    width: 34px;
    min-height: 34px;
    overflow: hidden;
    padding: 0;
    font-size: 0;
  }

  body[data-preview-device="mobile"] #homeHeroPrev::before {
    content: "<";
    font-size: 14px;
  }

  body[data-preview-device="mobile"] #homeHeroNext::before {
    content: ">";
    font-size: 14px;
  }

  body[data-preview-device="mobile"] .content-band {
    padding: 0;
  }

  body[data-preview-device="mobile"] .continue-card {
    grid-template-columns: 64px 1fr;
  }

  body[data-preview-device="mobile"] .continue-card em {
    display: none;
  }

  body[data-preview-device="mobile"] .poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body[data-preview-device="mobile"] .watch-layout {
    display: block;
  }

  body[data-preview-device="mobile"] .player-column {
    display: block;
  }

  body[data-preview-device="mobile"] .video-frame {
    width: 100%;
    max-height: 68svh;
    border-radius: 0;
    box-shadow: none;
  }

  body[data-preview-device="mobile"] .details-panel {
    border: 0;
    border-radius: 0;
    padding: 16px 14px 18px;
  }
}

@media (max-width: 560px) {
  .wallet-debug-panel {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
  }

  .checkout-notice {
    top: 66px;
    align-items: flex-start;
  }

  .site-footer {
    width: calc(100vw - 28px);
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 26px;
  }

  .legal-page {
    width: calc(100vw - 28px);
    padding-top: 30px;
  }

  .preview-device-switcher {
    right: 10px;
    bottom: 10px;
    max-width: calc(100vw - 20px);
  }
}
