:root {
  --bg: #000;
  --bg2: #0e0e10;
  --line: #26262b;
  --ink: #fff;
  --dim: #a3a3aa;
  --orange: #ff7a1a;
  --green: #33e08a;
  --red: #ff2d55;
  --display: 'Bungee', 'Arial Black', sans-serif;
  --body: 'Space Grotesk', system-ui, sans-serif;
  --osd: 'VT323', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
section { scroll-margin-top: 90px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 16px clamp(16px, 4vw, 64px);
  background: linear-gradient(#111113, #050506);
}
/* The wordmark: the "TV" sits in a cream box and wears the helmet. Sized in em so it scales anywhere. */
.logo { display: inline-flex; align-items: flex-end; gap: .14em; padding-top: .55em; font: 24px/1 var(--display); text-decoration: none; white-space: nowrap; color: #fff; }
.logo .tvbox { position: relative; padding: .14em .23em .09em; border-radius: .23em; background: #f6ecd9; color: #17142b; }
.logo .tvbox img { position: absolute; left: -9%; top: -1.18em; width: 118%; height: auto; }
.top nav { display: flex; gap: 30px; margin: 0 auto 0 26px; }
.top nav a { text-decoration: none; font-weight: 700; font-size: 15px; }
.top nav a:hover { color: var(--orange); }
.pill-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 18px;
  border: 1.5px solid #fff; border-radius: 99px;
  font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
  transition: background .12s, color .12s;
}
.pill-btn:hover { background: #fff; color: #000; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 99px; border: 0;
  background: var(--orange); color: #1a0d02;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .12s, filter .12s;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px #55555c; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }

/* ---------- player ---------- */
.watch { max-width: 1440px; margin: 0 auto; padding: clamp(16px, 3vw, 40px) 16px 32px; }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: stretch; }

/* ---------- chat ---------- */
.chat { position: relative; min-height: 0; contain: size; display: flex; flex-direction: column; background: var(--bg2); box-shadow: 0 0 0 1px #151517; }
.chat header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.viewers { color: var(--dim); }
.chat .viewers::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--red); }
/* the log takes whatever height the player has, and scrolls inside it */
#chatLog { flex: 1 1 0; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
#chatLog:empty::before { content: 'No messages yet. Say gm.'; color: var(--dim); }
#chatLog b { margin-right: 6px; font-weight: 700; }
.chat-note { margin: 0; padding: 0 14px; min-height: 0; color: var(--orange); font-size: 13px; }
.chat-note:not(:empty) { padding-bottom: 6px; }
#chatForm { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
#chatForm[hidden] { display: none; }
#chatForm input { min-width: 0; padding: 9px 10px; border-radius: 6px; border: 1.5px solid var(--line); background: #000; color: var(--ink); font: inherit; font-size: 14px; }
#chatName { grid-column: 1 / -1; color: var(--dim) !important; font-size: 12.5px !important; padding: 5px 10px !important; }
#chatForm .btn { padding: 8px 14px; font-size: 14px; }

.player { position: relative; background: #050607; overflow: hidden; box-shadow: 0 0 0 1px #151517; }
.screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  container-type: size; isolation: isolate; cursor: pointer;
}
.player:fullscreen, .player:-webkit-full-screen, .player.fs { display: grid; place-items: center; background: #000; width: 100vw; height: 100vh; height: 100dvh; }
.player:fullscreen .screen, .player:-webkit-full-screen .screen, .player.fs .screen { width: min(100vw, 177.78vh); width: min(100vw, 177.78dvh); }
.player.fs { position: fixed; inset: 0; z-index: 1000; }
html.fs-lock { overflow: hidden; }
.ch { position: absolute; inset: 0; display: none; }
.ch.on { display: block; }
.bug {
  position: absolute; top: 4cqh; right: 3cqw; z-index: 8; pointer-events: none;
  font-size: 2.1cqw; opacity: .9; filter: drop-shadow(0 .2cqw .5cqw rgba(0, 0, 0, .5));
}

.big-play {
  position: absolute; left: 50%; top: 50%; z-index: 11; translate: -50% -50%;
  width: clamp(64px, 10%, 104px); aspect-ratio: 1; border-radius: 50%; padding: 0;
  border: 2px solid #fff; background: rgba(0, 0, 0, .45);
  display: none; place-items: center; transition: background .15s, scale .15s;
}
.big-play svg { width: 46%; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; margin-left: 6%; }
.big-play:hover { background: rgba(0, 0, 0, .7); scale: 1.06; }
.player.paused .big-play { display: grid; }
.player.paused .screen::after { content: ''; position: absolute; inset: 0; z-index: 9; background: rgba(0, 0, 0, .35); }
.player.paused .ticker-track, .player.paused .anchor .eyes { animation-play-state: paused; }

.controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 12;
  padding: 36px 22px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.player.paused .controls, .player.active .controls { opacity: 1; pointer-events: auto; }
.player:not(.paused):not(.active) .screen { cursor: none; }
.bar { display: flex; align-items: center; gap: 14px; }
.bar-line { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .9); position: relative; }
.bar-line i { position: absolute; left: 0; top: 0; bottom: 0; width: 96%; border-radius: 2px; background: #2ea8e6; }
.bar-line i::after { content: ''; position: absolute; right: -6px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: #2ea8e6; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.bar-live { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; }
.ctl-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.ctl-row button { background: none; border: 0; padding: 6px; display: grid; place-items: center; border-radius: 6px; }
.ctl-row button:hover { background: rgba(255, 255, 255, .14); }
.ctl-row svg { width: 24px; height: 24px; fill: currentColor; }
.spacer { flex: 1; }
.i-pause, .i-mute { display: none; }
.player:not(.paused) .i-play, .player.muted .i-vol { display: none; }
.player:not(.paused) .i-pause, .player.muted .i-mute { display: block; }
#vol { width: 90px; accent-color: #2ea8e6; height: 4px; cursor: pointer; }

.nowbar { display: flex; align-items: center; gap: 28px; padding: 22px 26px 6px; flex-wrap: wrap; }
.now-actions { margin-left: auto; display: flex; gap: 8px; }
.now-actions .btn { padding: 8px 14px; font-size: 14px; }
.now-actions .btn:disabled { opacity: .4; cursor: default; }
#clipBtn.rec { background: var(--red); color: #fff; box-shadow: none; }
.clip-note { margin: 4px 26px 0; min-height: 18px; text-align: right; color: var(--dim); font-size: 13px; }
.nowbar .logo { font-size: clamp(26px, 4vw, 40px); }
.now-text h2 { font: 700 17px var(--body); text-transform: uppercase; letter-spacing: .3px; }
.now-text p { margin: 2px 0 0; color: var(--dim); font-size: 14px; }
.note { font-size: 12.5px; margin: 34px 0 0; }

/* ---------- news ---------- */
.ch-news { background: #16305c; }
.ch-news canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.news-top {
  position: absolute; left: 0; right: 0; top: 0; height: 12cqh;
  display: flex; align-items: center; gap: 2cqw; padding: 0 20cqw 0 3cqw;
  background: #c41624;
}
.news-logo { font: 3.2cqw var(--display); }
.news-clock { margin-left: auto; font: 3.4cqw var(--osd); }
.news-main {
  position: absolute; left: 3cqw; right: 3cqw; top: 16cqh; height: 46cqh;
  display: grid; grid-template-columns: auto 1fr; gap: 3cqw;
}
.anchor { height: 46cqh; aspect-ratio: 1; border-radius: 1cqw; overflow: hidden; box-shadow: 0 0 0 .35cqw #fff; }
.anchor svg { display: block; width: 100%; height: 100%; }
.anchor .mouth { transform-origin: 100px 136px; transform: scaleY(.25); }
.anchor.talking .mouth { animation: talk .26s ease-in-out infinite alternate; }
@keyframes talk { from { transform: scaleY(.25); } to { transform: scaleY(1.5); } }
.anchor .eyes { transform-origin: 100px 108px; animation: eyeblink 4.5s infinite; }
@keyframes eyeblink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.story { min-width: 0; display: flex; flex-direction: column; gap: 2.4cqh; }
.story-kicker {
  align-self: flex-start; padding: .3cqw 1.2cqw; background: #ffd23f; color: #111;
  font: 700 1.9cqw var(--body); letter-spacing: .15cqw;
}
.story-kicker.breaking { background: #ff2d55; color: #fff; animation: blink 1s steps(2) infinite; }
.story-row { display: flex; gap: 2cqw; align-items: flex-start; }
.story-row img { width: 10cqw; height: 10cqw; border-radius: 1.2cqw; object-fit: cover; flex: none; background: #0003; }
.story-head { font: 3.7cqw/1.1 var(--display); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 1cqw; }
.chips span { padding: .4cqw 1.3cqw; border-radius: 99px; background: rgba(255, 255, 255, .12); font: 500 1.9cqw var(--body); }
.chips .up { background: rgba(51, 224, 138, .2); color: #7dffbb; }
.chips .down { background: rgba(255, 77, 94, .22); color: #ff9aa4; }
.caption {
  position: absolute; left: 3cqw; right: 3cqw; top: 67cqh; height: 20cqh;
  display: flex; align-items: center;
  padding: 0 2cqw; background: rgba(0, 0, 0, .55); border-left: .6cqw solid #ffd23f;
  font: 500 2.3cqw/1.3 var(--body); overflow: hidden;
}
.ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 9.5cqh; background: #ffd23f; color: #111; overflow: hidden; }
.ticker-track {
  display: inline-flex; gap: 4.5cqw; height: 100%; align-items: center; white-space: nowrap; padding-left: 4.5cqw;
  font: 3.3cqw var(--osd); animation: crawl 40s linear infinite;
}
.ticker-track .up { color: #046b34; }
.ticker-track .down { color: #b00d1e; }
@keyframes crawl { to { transform: translateX(-50%); } }

/* ---------- toons ---------- */
.ch-toons canvas { width: 100%; height: 100%; display: block; }

/* ---------- ads ---------- */
.ad {
  --a1: #0c2a1a; --a2: #19c37d; --dur: 15s;
  position: absolute; inset: 0; overflow: hidden; color: #fff; font-family: var(--body);
  background: radial-gradient(120% 120% at 28% 30%, var(--a2), var(--a1) 72%);
}
.ad-rays {
  position: absolute; inset: -80%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .08) 0 9deg, transparent 9deg 18deg);
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.ad-top { position: absolute; left: 3cqw; top: 4cqh; z-index: 3; display: flex; align-items: center; gap: 1.2cqw; font: 700 1.6cqw var(--body); letter-spacing: .2cqw; }
.ad-tag { padding: .3cqw 1.1cqw; background: rgba(0, 0, 0, .65); border-radius: .5cqw; }
.ad-stage { position: absolute; inset: 11cqh 7cqw 19cqh; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 6cqw; }

.ad-art { position: relative; flex: none; width: 46cqh; height: 46cqh; display: grid; place-items: center; }
.ad-art.in { animation: artin .6s cubic-bezier(.2, 1.4, .4, 1) both, float 3.2s ease-in-out .6s infinite; }
@keyframes artin { from { transform: scale(.3) rotate(-25deg); opacity: 0; } }
@keyframes float { 50% { transform: translateY(-2.4cqh) rotate(2deg); } }
.ad-ring { position: absolute; inset: -9%; border-radius: 50%; border: .5cqw dashed rgba(255, 255, 255, .6); animation: spin 16s linear infinite; }
.ad-art img, .ad-icon {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff;
  box-shadow: 0 0 0 .7cqw #17142b, 0 2.4cqw 5cqw rgba(0, 0, 0, .45);
}
.ad-art img[hidden], .ad-icon[hidden] { display: none; }
.ad-icon { display: grid; place-items: center; font: 22cqh/1 var(--display); color: #17142b; }
.ad-icon svg { width: 62%; height: 62%; }
.ad-burst {
  position: absolute; right: -12%; top: -6%; width: 40%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; font: 2cqw/1 var(--display); color: #17142b; background: #ffe94d;
  box-shadow: 0 0 0 .45cqw #17142b; rotate: 14deg; animation: thump .5s ease-in-out infinite alternate;
}
@keyframes thump { to { scale: 1.12; } }

.ad-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2.4cqh; text-align: left; }
.ad-kicker { padding: .5cqw 1.6cqw; border-radius: 99px; background: #17142b; font: 700 1.8cqw var(--body); letter-spacing: .5cqw; text-transform: uppercase; }
.ad-line { font: 6.2cqw/1 var(--display); text-shadow: 0 .5cqw 0 rgba(0, 0, 0, .3); overflow-wrap: anywhere; }
.ad-sub { padding: .6cqw 2cqw; border-radius: 99px; background: #fff; color: #17142b; font: 700 2.6cqw var(--body); }
.ad-kicker:empty, .ad-sub:empty { display: none; }
.ad-kicker.in, .ad-sub.in { animation: rise .5s .25s both; }
@keyframes rise { from { transform: translateY(3cqh); opacity: 0; } }
.w { display: inline-block; animation: word .45s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: calc(var(--i) * 85ms); }
@keyframes word { from { opacity: 0; transform: translateY(55%) rotate(5deg) scale(.8); } }

.ad[data-scene="hook"] .ad-art, .ad[data-scene="cta"] .ad-art { display: none; }
.ad[data-scene="hook"] .ad-copy, .ad[data-scene="cta"] .ad-copy { align-items: center; text-align: center; }
.ad[data-scene="hook"] .ad-line { font-size: 7.6cqw; }
.ad[data-scene="pitch"] .ad-art { width: 32cqh; height: 32cqh; }
.ad[data-scene="pitch"] .ad-line { font-size: 4.5cqw; line-height: 1.1; }
.ad[data-scene="pitch"] .ad-burst { display: none; }
.ad[data-scene="cta"] .ad-line { font-size: 5.8cqw; }

.ad-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 12cqh; z-index: 3;
  display: flex; align-items: center; gap: 2cqw; padding: 0 4cqw;
  background: #17142b; font: 700 2cqw var(--body);
  transform: translateY(100%); transition: transform .45s cubic-bezier(.2, 1, .3, 1);
}
.ad:not([data-scene="hook"]) .ad-bar { transform: none; }
.ad-bar b { font: 400 2.5cqw var(--display); color: var(--a2); }
.ad-bar span { opacity: .75; }
.ad-prog { margin-left: auto; width: 20cqw; height: 1cqh; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .18); }
.ad-prog i { display: block; width: 0; height: 100%; background: var(--a2); }
.ad.run .ad-prog i { animation: prog var(--dur) linear forwards; }
@keyframes prog { to { width: 100%; } }
.ad-fine { position: absolute; left: 4cqw; right: 4cqw; bottom: 13.6cqh; z-index: 3; text-align: center; font: 1.4cqw var(--body); opacity: .7; }

/* infomercial */
.ad[data-vibe="info"] { background: repeating-linear-gradient(-45deg, var(--a2) 0 5cqw, color-mix(in srgb, var(--a2) 78%, #000) 5cqw 10cqw); }
.ad[data-vibe="info"] .ad-rays { display: none; }
.ad[data-vibe="info"] .ad-line { color: #ffe94d; -webkit-text-stroke: .28cqw #17142b; paint-order: stroke fill; text-shadow: .5cqw .5cqw 0 #17142b; rotate: -2deg; }
.ad[data-vibe="info"] .ad-kicker { background: #ff2d55; }
/* luxury */
.ad[data-vibe="lux"] { background: radial-gradient(90% 90% at 50% 45%, #1e1e24, #000); }
.ad[data-vibe="lux"]::before { content: ''; position: absolute; inset: 3.5cqh 2cqw; z-index: 1; border: .14cqw solid var(--a2); opacity: .55; }
.ad[data-vibe="lux"] .ad-rays, .ad[data-vibe="lux"] .ad-burst { display: none; }
.ad[data-vibe="lux"] .ad-line { font: 400 5cqw/1.12 Georgia, 'Times New Roman', serif; letter-spacing: .12cqw; color: var(--a2); text-shadow: none; }
.ad[data-vibe="lux"][data-scene="pitch"] .ad-line { font-size: 3.8cqw; }
.ad[data-vibe="lux"] .w { animation: fadeword 1.1s ease both; animation-delay: calc(var(--i) * 140ms); }
@keyframes fadeword { from { opacity: 0; filter: blur(.6cqw); } }
.ad[data-vibe="lux"] .ad-kicker, .ad[data-vibe="lux"] .ad-sub { background: none; color: #fff; box-shadow: inset 0 0 0 .14cqw var(--a2); font-weight: 400; letter-spacing: .5cqw; text-transform: uppercase; font-size: 1.7cqw; }
.ad[data-vibe="lux"] .ad-ring { border: .14cqw solid var(--a2); }
.ad[data-vibe="lux"] .ad-art img, .ad[data-vibe="lux"] .ad-icon { background: #f6ecd9; box-shadow: 0 0 0 .3cqw var(--a2), 0 0 8cqw color-mix(in srgb, var(--a2) 40%, transparent); }
.ad[data-vibe="lux"] .ad-bar { background: #000; box-shadow: 0 -.14cqw 0 color-mix(in srgb, var(--a2) 55%, transparent); }
.ad[data-vibe="lux"] .ad-bar b { font: 400 2.4cqw Georgia, serif; letter-spacing: .2cqw; }

.player.paused .ad *, .player.paused .ad-rays { animation-play-state: paused !important; }

/* ---------- sections ---------- */
.guide, .studio, .token { max-width: 1112px; margin: 0 auto; padding: 48px 16px; border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.card { padding: 22px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line); }
.card-n { font: 700 12px var(--body); color: var(--orange); letter-spacing: 1.5px; }
.card h3 { font-size: 20px; margin: 8px 0 10px; }
.card p { margin: 0; color: var(--dim); font-size: 15px; }

.lineup-title { font: 700 13px var(--body); color: var(--dim); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 40px; }
.lineup-total { margin: 6px 0 14px; color: var(--dim); font-size: 14px; }
.lineup { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lineup li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line); font-size: 14px; line-height: 1.25; }
.lineup li b { font-weight: 700; }
.lineup li i { font-style: normal; color: var(--dim); font-size: 12.5px; }
.lineup li.now { border-color: var(--orange); }
.lineup li.now i::before { content: 'ON NOW · '; color: var(--orange); font-weight: 700; }
@media (max-width: 760px) { .lineup { grid-template-columns: 1fr 1fr; } }

.studio { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.studio-copy p { color: var(--dim); }
.studio-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding: 24px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line);
}
.studio-form .wide { grid-column: 1 / -1; }
.studio-form label { display: grid; gap: 6px; font-weight: 500; font-size: 14px; min-width: 0; }
.studio-form small { color: var(--dim); font-weight: 400; }
.studio-form input:not([type="radio"]) {
  width: 100%; min-width: 0; padding: 11px 12px; border-radius: 6px;
  border: 1.5px solid var(--line); background: #000; color: var(--ink); font: inherit; font-weight: 400;
}
.studio-form input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.row { display: flex; gap: 8px; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
legend { font-weight: 500; font-size: 14px; margin-bottom: 6px; padding: 0; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: block; padding: 8px 14px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px #55555c; cursor: pointer; }
.pill input:checked + span { background: #fff; color: #000; box-shadow: none; }
.pill input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.swatches { display: flex; gap: 10px; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 0; box-shadow: 0 0 0 2px var(--bg2), 0 0 0 3.5px var(--line); }
.swatches button.on { box-shadow: 0 0 0 2px var(--bg2), 0 0 0 4px #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-msg { color: var(--green); font-size: 14px; }
.your-ads { display: grid; gap: 8px; margin-top: 20px; }
.your-ads h3 { font: 700 13px var(--body); color: var(--dim); text-transform: uppercase; letter-spacing: 1px; }
.your-ad { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line); }
.your-ad b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.your-ad button { background: none; border: 0; color: var(--dim); padding: 4px 6px; font-size: 14px; }
.your-ad button:hover { color: var(--ink); }

.token { text-align: center; }
.lede { color: var(--dim); margin: 12px 0 0; }
.ca {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  margin-top: 24px; padding: 10px 10px 10px 16px; border-radius: 6px;
  background: var(--bg2); border: 1px solid var(--line);
}
.ca-label { font: 700 13px var(--body); color: var(--orange); letter-spacing: 1px; }
.ca code { font: 15px ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; padding-right: 6px; }
.links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

footer { border-top: 1px solid var(--line); padding: 28px 16px 40px; text-align: center; }
footer p { max-width: 640px; margin: 0 auto; color: var(--dim); font-size: 13px; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .top { padding: 12px 16px; gap: 8px; }
  .top nav { display: none; }
  .logo { margin-right: auto; font-size: 20px; }
  .live-pill { display: none; }
  .watch { padding: 0 0 24px; }
  .stage { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .chat { height: 340px; }
  .now-actions { margin-left: 0; }
  .clip-note { text-align: left; margin: 4px 16px 0; }
  .controls { padding: 24px 12px 6px; }
  #vol { width: 64px; }
  .nowbar { padding: 16px 16px 0; gap: 16px; }
  .note { margin: 20px 16px 0; }
  .cards { grid-template-columns: 1fr; }
  .studio { grid-template-columns: 1fr; gap: 20px; }
  .studio-form { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ad-rays, .dot { animation: none; }
}

.credit { font-size: 12px; opacity: .6; }
.credit a { color: inherit; }

/* ---------- pages: the Ad Studio stands alone, the broadcast follows as a mini player ---------- */
body:not(.away) .studio { display: none; }
body.away .guide, body.away .token, body.away .watch > :not(.stage), body.away .chat { display: none; }
body.away .watch { padding: 0; margin: 0; min-height: 0; }
body.away .stage { display: block; }
body.away .studio { padding-top: 40px; min-height: 70vh; }
.mini-bar { display: none; }
body.away .player {
  position: fixed; z-index: 900; width: min(380px, 58vw); border-radius: 12px; cursor: grab; touch-action: none; user-select: none;
  box-shadow: 0 0 0 1px #2a2a30, 0 18px 50px rgba(0, 0, 0, .7);
}
body.away .player.dragging { cursor: grabbing; }
body.away.mini-off .player { display: none; }
body.away .mini-bar {
  display: flex; align-items: center; gap: 10px; position: absolute; left: 0; right: 0; top: 0; z-index: 14; padding: 6px 8px 14px 10px;
  font: 700 12px var(--body); color: #fff; background: linear-gradient(rgba(0, 0, 0, .8), transparent); opacity: 0; transition: opacity .2s;
}
body.away .player:hover .mini-bar, body.away .player.paused .mini-bar, body.away .player.active .mini-bar { opacity: 1; }
.mini-bar span { display: flex; align-items: center; gap: 6px; margin-right: auto; }
.mini-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; }
.mini-bar a { color: #fff; text-decoration: none; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.mini-bar a:hover { background: var(--orange); color: #111; }
.mini-bar button { all: unset; cursor: pointer; width: 24px; height: 24px; display: grid; place-items: center; font-size: 18px; border-radius: 50%; }
.mini-bar button:hover { background: rgba(255, 255, 255, .2); }
body.away .controls { padding: 18px 10px 6px; }
body.away .controls .bar-line, body.away .controls #vol, body.away .bug { display: none; }
body.away .big-play { scale: .6; }

/* the contract address, over the picture, during the launch news flash */
.launch-bar { display: none; position: absolute; z-index: 6; left: 50%; top: 1.5%; transform: translateX(-50%); max-width: 98%; align-items: center; gap: 8px; padding: 5px 8px; white-space: nowrap; background: #fff; color: #17142b; border: 3px solid #17142b; border-radius: 10px; box-shadow: 4px 4px 0 #17142b; font-size: clamp(8px, 1.15vw, 15px); }
.player.launching .launch-bar { display: flex; }
.launch-bar b { background: #ff5468; color: #fff; padding: 2px 8px; border-radius: 6px; }
.launch-bar code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; user-select: all; }
.launch-bar button { background: #17142b; color: #fff; border: 0; border-radius: 6px; padding: 3px 9px; font: inherit; font-weight: 700; cursor: pointer; }
body.away .launch-bar code { display: none; }

/* the breaking news opening titles, over everything on the screen */
.flash { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; display: block; }
.flash[hidden] { display: none; }
.player.titles .launch-bar { display: none; }

#clipBtn.armed { border-color: #ffc83d; color: #ffc83d; }
.clip-link { color: #35e08c; text-decoration: underline; cursor: pointer; }

/* buying an ad slot */
.buy { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); }
.buy h3 { margin: 0 0 6px; font-size: 17px; }
.buy p { margin: 0 0 10px; color: var(--dim); font-size: 14px; line-height: 1.5; }
.buy ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; }
.buy .row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.buy code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; padding: 8px 10px; background: #000; border-radius: 6px; user-select: all; }
.buy input { width: 100%; margin-top: 6px; }
.buy .small { font-size: 12px; margin: 10px 0 0; }
#lineup li.sold b { color: var(--orange, #ff7a1a); }

.studio-form [hidden], .buy [hidden] { display: none !important; }

.bot-tag { font: 700 9px/1 var(--body); font-style: normal; letter-spacing: .08em; padding: 2px 4px; border-radius: 3px; background: #35e08c; color: #06130c; vertical-align: 1px; }

.pay { margin-top: 14px; padding: 14px; border: 1px dashed var(--line); border-radius: 8px; }
.pay.paid { border-color: #35e08c; border-style: solid; }
.pay p { margin: 0 0 6px; }
.pay .row { margin: 0 0 12px; }
.pay code.amount { font-size: 22px; font-weight: 700; color: #35e08c; }
.buy details { margin-top: 12px; font-size: 13px; color: var(--dim); }
.buy details summary { cursor: pointer; }
.buy details p { margin: 8px 0 0; }
