/* Stream -- Athlete Streamer on a desktop, as the Stream page of the "Bytes TV
   v2" design: a dark page like Media, the picture in a rounded black set
   with its lower third, actions and live chat floating on the picture,
   alongside Coming up and Replays in a desktop rail.

   Self-contained like the other desktop pages: no phone stylesheet and no
   !important outside reduced motion. Red is the only accent on this tab -- it
   means live -- so the owner's colours are not used here. Dark is the design;
   light exists behind the MENU toggle and redefines the same tokens. */

:root, .tab-stream {
  --page: #0b0b0c;
  --bar: #0b0b0c;
  --panel: #18181b;
  --panel-2: #111113;
  --edge: #26262a;
  --line: #1f1f22;
  --ink: #f4f4f5;
  --dim: #a1a1aa;
  --faint: #6b6b72;
  --card: #141416;
  --pill-bg: #f4f4f5;
  --pill-ink: #0b0b0c;
  --live: #dc2626;
  --live-2: #ef4444;

  --set: #18181b;
  --set-edge: #26262a;

  --wide: "Archivo", "Arial Black", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --tag: "Barlow", system-ui, sans-serif;
}

:root[data-theme="light"]:where(:not(.ws-on)), :root[data-theme="light"]:where(:not(.ws-on)) .tab-stream {
  --page: #ffffff;
  --bar: #ffffff;
  --panel: #ffffff;
  --panel-2: #ffffff;
  --edge: #e6e6e6;
  --line: #e6e6e6;
  --ink: #0e0e0e;
  --dim: #111111;
  --faint: #111111;
  --card: #ffffff;
  --pill-bg: #0e0e0e;
  --pill-ink: #ffffff;
  --set: #ffffff;
  --set-edge: #e6e6e6;
}

* { box-sizing: border-box; }
html:where(:not(.ws-on)), .ws-body.tab-stream, body:where(html:not(.ws-on) *) {
  margin: 0;
  padding: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--wide);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
body:where(html:not(.ws-on) *), .ws-body.tab-stream { overflow-x: hidden; }
:where(html:not(.ws-on), .tab-stream) button, :where(html:not(.ws-on), .tab-stream) input { font: inherit; color: inherit; }

@keyframes st-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes st-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes st-msg { from { opacity: 0; transform: translateY(6px); } }
@keyframes st-rise { from { opacity: 0; transform: translateY(14px) scale(0.98); } }


/* ---------------------------------------------------------------- top bar */

.st-top {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 28px; background: var(--bar); border-bottom: 1.5px solid var(--line);
  position: relative; z-index: 20;
}
.st-id {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 5px; border-radius: 30px;
  background: transparent; border: 2px solid var(--ink);
  cursor: pointer; user-select: none;
}
.st-id:hover, .st-id[aria-expanded="true"] { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.st-id:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.st-id__avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--panel); flex: 0 0 auto; }
.st-id__name { font-size: 15px; font-weight: 800; font-stretch: 112%; white-space: nowrap; }
.st-id__word { font-size: 15px; font-weight: 500; white-space: nowrap; }
.st-id__check {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); color: var(--page);
  font-size: 10px; font-weight: 900; display: grid; place-items: center;
}
.st-id__check[hidden] { display: none; }

.st-top__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
/* The owner's one button, filled in the app's own colour. */
.st-golive {
  height: 40px; padding: 0 18px; border-radius: 20px; border: 2px solid var(--btn, var(--ink));
  background: var(--btn, var(--ink)); color: var(--on-btn, var(--page));
  font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.st-golive:hover { opacity: 0.88; }
.st-golive[hidden] { display: none; }

.st-menu-wrap { position: relative; }
.st-menu-btn {
  height: 40px; padding: 0 18px; border-radius: 20px; border: 0;
  background: var(--pill-bg); color: var(--pill-ink);
  font-size: 13px; font-weight: 800; letter-spacing: 0.06em; cursor: pointer; white-space: nowrap;
}
.st-menu-btn:hover { opacity: 0.85; }
/* The menu card keeps the page palette of a light card in both themes. */
.st-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  width: 260px; padding: 8px; border-radius: 22px;
  background: #ffffff; color: #0e0e0e; border: 1.5px solid #ececec;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  animation: st-in 0.16s ease;
}
.st-dropdown[hidden] { display: none; }
.st-dropdown__who { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; border-bottom: 1px solid #ececec; }
.st-dropdown__who img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #f4f4f4; }
.st-dropdown__who b { display: block; font-size: 15px; font-weight: 800; }
.st-dropdown__who small { display: block; font-family: var(--mono); font-size: 11px; color: #8a8a8a; }
.st-dropdown__item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 12px; margin-top: 2px; border-radius: 14px; border: 0;
  background: transparent; color: #0e0e0e; text-decoration: none;
  font-size: 16px; font-weight: 800; cursor: pointer; text-align: left;
}
.st-dropdown__item small { font-family: var(--mono); font-size: 11px; font-weight: 500; color: #8a8a8a; width: 18px; }
.st-dropdown__item:hover { background: #f4f4f4; }
.st-dropdown__item[aria-current="page"] { background: #0e0e0e; color: #ffffff; }
.st-dropdown__item[aria-current="page"] small { color: #ffffff; opacity: 0.6; }
.st-dropdown__rule { height: 1px; margin: 6px 4px; background: #ececec; }
.st-dropdown__me {
  display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 10px 12px;
  border-radius: 14px; color: #0e0e0e; text-decoration: none; font-weight: 800;
}
.st-dropdown__me:hover { background: #f4f4f4; }
.st-dropdown__me img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.st-dropdown__signin {
  display: block; width: calc(100% - 8px); margin: 8px 4px 4px; height: 42px;
  border-radius: 14px; border: 0; background: #0e0e0e; color: #ffffff;
  font-size: 14px; font-weight: 800; cursor: pointer;
}

/* ------------------------------------------------------------------- room */

.st-room { padding: 26px 28px 30px; }
.st-room__col { max-width: 1400px; margin: 0 auto; }

/* The set: the picture edge to edge in one rounded black frame, like the
   Media TV. Anything that does not fill it sits on black. */
.st-set { container: stset / inline-size; }
.st-screen {
  position: relative; width: 100%; overflow: hidden; isolation: isolate;
  height: var(--st-player-height, clamp(300px, calc(100cqw * 9 / 16), calc(var(--pane-h, 100vh) - 118px)));
  border-radius: 24px; background: #000000; color: #ffffff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.st-player { position: absolute; inset: 0; }
.st-player video,
.st-player iframe,
.st-player img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; display: block; }
.st-player img.is-cover { object-fit: cover; opacity: 0.45; filter: blur(2px); }
.st-scan {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.55);
}
.st-scan[hidden] { display: none; }

.st-corner { position: absolute; top: 18px; left: 18px; z-index: 3; display: flex; gap: 8px; pointer-events: none; }
.st-corner[hidden] { display: none; }
.st-chip {
  height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(0, 0, 0, 0.6);
  display: flex; align-items: center; font-family: var(--mono); font-size: 12px; font-weight: 700; color: #ffffff;
}
.st-chip[hidden] { display: none; }
.st-chip--replay { letter-spacing: 0.1em; }

.st-soundtab {
  position: absolute; top: 18px; right: 18px; z-index: 4;
  height: 36px; padding: 0 16px; border-radius: 18px; border: 0;
  background: #ffffff; color: #0e0e0e;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; cursor: pointer;
}
.st-soundtab.is-on { background: rgba(0, 0, 0, 0.6); color: #ffffff; }
.st-soundtab[hidden] { display: none; }

.st-status {
  position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%);
  padding: 10px 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.7);
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: #ffffff;
}
.st-status[hidden] { display: none; }

.st-off {
  position: absolute; inset: 0; z-index: 3; background: rgba(0, 0, 0, 0.72);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; padding: 24px;
}
.st-off[hidden] { display: none; }
.st-off__kicker { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: #b5b5b5; }
.st-off__title {
  font-size: clamp(34px, calc(5 * var(--pane-w, 100vw) / 100), 72px); font-weight: 900; font-stretch: 125%;
  letter-spacing: -0.04em; line-height: 0.9; text-transform: uppercase; max-width: 100%; overflow-wrap: anywhere;
}
.st-off__when { font-size: 17px; }


/* ------------------------------------------------------------------- body */

.st-main { max-width: 1456px; margin: 0 auto; padding: 10px 28px 60px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 32px; }
.st-sec__head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.st-sec__title { font-size: 24px; font-weight: 900; font-stretch: 125%; letter-spacing: -0.03em; text-transform: uppercase; }
.st-sec__note { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--dim); }
.st-sec__link { font-size: 14px; font-weight: 700; text-decoration: underline; cursor: pointer; color: var(--ink); }
.st-sec__more {
  margin-top: 14px; height: 40px; padding: 0 16px; border-radius: 20px; border: 1.5px solid var(--edge);
  background: transparent; color: var(--ink); font-size: 13px; font-weight: 800; cursor: pointer;
}
.st-sec__more[hidden] { display: none; }
.st-empty { padding: 18px 0; color: var(--dim); font-size: 15px; line-height: 1.5; margin: 0; }

.st-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.st-row__main { flex: 1; min-width: 0; }
.st-row__title { font-size: 17px; font-weight: 800; }
.st-row__meta { font-size: 14px; color: var(--dim); }
.st-row__btn {
  height: 38px; padding: 0 16px; border-radius: 19px; border: 2px solid var(--ink);
  background: transparent; color: var(--ink); font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.st-row__btn.is-set { background: var(--ink); color: var(--page); }

.st-replays { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.st-rp { cursor: pointer; display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; background: none; text-align: left; color: var(--ink); }
.st-rp__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--card); }
.st-rp__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-rp__thumb i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--faint); font-size: 22px; }
.st-rp__len {
  position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.8); color: #ffffff; font-family: var(--mono); font-size: 11px; font-weight: 700;
}
.st-rp.is-on .st-rp__thumb { box-shadow: 0 0 0 3px var(--live); }
.st-rp__title { font-size: 15px; font-weight: 800; line-height: 1.2; }
.st-rp__meta { margin-top: -4px; font-size: 13px; color: var(--dim); }

/* ----------------------------------------------------------------- modals */

.st-modal {
  position: fixed; inset: 0; z-index: 80; padding: 24px;
  background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center;
}
.st-modal[hidden] { display: none; }
.st-go__head { display: flex; justify-content: space-between; align-items: center; }
.st-go__head span { font-size: 28px; font-weight: 900; font-stretch: 125%; letter-spacing: -0.03em; text-transform: uppercase; }
.st-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f2f2f2; color: #0e0e0e; font-size: 15px; cursor: pointer; }
.st-go__link, .st-field { display: flex; flex-direction: column; gap: 6px; }
.st-go__link span, .st-field span { font-size: 14px; font-weight: 700; }
.st-go__link input, .st-field input {
  height: 48px; border-radius: 12px; border: 1.5px solid #e0e0e0; background: #ffffff; color: #0e0e0e;
  padding: 0 14px; font-size: 15px; outline: none;
}
.st-go__link input { font-family: var(--mono); font-size: 13px; }
.st-login {
  width: min(400px, 100%); background: #ffffff; color: #0e0e0e; border-radius: 22px; padding: 24px;
  display: flex; flex-direction: column; gap: 14px; animation: st-rise 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.st-login .st-go__head span { font-size: 22px; }
.st-err { margin: 0; min-height: 18px; font-size: 13px; color: var(--live); }
.st-solid { height: 48px; border-radius: 24px; border: 0; background: #0e0e0e; color: #ffffff; font-size: 15px; font-weight: 800; cursor: pointer; }

.st-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 12px);
  padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--page);
  font-size: 14px; font-weight: 700; opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.st-toast.is-up { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------ app card (shared hero-card.js) */
.cm-hero {
  position: absolute; z-index: 60; width: 500px; max-width: calc(var(--pane-w, 100vw) - 24px);
  border-radius: 26px; overflow: hidden; background: #0b0b0f; color: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38); animation: st-in 0.16s ease;
}
.cm-hero[hidden] { display: none; }
.cm-hero__photo { position: relative; height: 300px; background: #16161c; }
.cm-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11, 11, 15, 0) 45%, rgba(11, 11, 15, 0.85) 85%, #0b0b0f 100%);
}
.cm-hero__x {
  position: absolute; top: 16px; right: 16px; z-index: 2; width: 40px; height: 40px;
  border-radius: 50%; border: 0; background: #ffffff; color: #0e0e0e;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.cm-hero__caption { position: relative; z-index: 1; margin-top: -64px; padding: 0 28px 28px; }
.cm-hero__name {
  display: flex; align-items: center; gap: 10px; font-family: var(--wide); font-weight: 900;
  font-stretch: 125%; font-size: 42px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere;
}
.cm-hero__verified { color: #24c26a; font-size: 0.6em; flex: 0 0 auto; }
.cm-hero__role { margin-top: 12px; font-family: var(--tag); font-weight: 700; font-size: 19px; }
.cm-hero__org {
  margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px;
  font-family: var(--tag); font-weight: 600; font-size: 17px; color: rgba(255, 255, 255, 0.86);
}
.cm-hero__place { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, 0.7); }
.cm-hero__place i { font-size: 13px; }
.cm-hero__links { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cm-hero__social, .cm-hero__site {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.94); color: #16161c; text-decoration: none; transition: transform 0.12s ease;
}
.cm-hero__social:hover, .cm-hero__site:hover { transform: translateY(-2px); }
.cm-hero__social { width: 46px; height: 46px; border-radius: 14px; }
.cm-hero__site { width: 54px; height: 54px; border-radius: 17px; }
.cm-hero__mark { display: flex; }
.cm-hero__mark svg { width: 27px; height: 27px; display: block; }
.cm-hero__mark[data-platform="instagram"] { color: #d62976; }
.cm-hero__mark[data-platform="facebook"] { color: #2f6bff; }
.cm-hero__mark[data-platform="youtube"] { color: #ff3428; --platform-badge-bg: #16161c; }
.cm-hero__mark[data-platform="x"], .cm-hero__mark[data-platform="tiktok"] { color: #0b0b0f; }
.cm-hero__fav {
  position: relative; width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-style: normal;
  font-family: var(--mono); font-weight: 600; font-size: 14px; overflow: hidden;
}
.cm-hero__fav img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cm-hero__fav.has-icon { color: transparent; }

/* ----------------------------------------------------------------- narrow */

@media (max-width: 720px) {
  .st-top, .st-room, .st-main { padding-left: 16px; padding-right: 16px; }
  .st-replays { grid-template-columns: 1fr; }
}
/* Split View: the same, for a narrow pane. */
@container pane (max-width: 720px) {
  .st-top, .st-room, .st-main { padding-left: 16px; padding-right: 16px; }
  .st-replays { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Light mode is white and black, no grey: no shadow around the set, the
   chat box and date/replay tiles white with a thin edge, section rules and
   action pills black. Red stays the only accent. */

:root[data-theme="light"]:where(:not(.ws-on)) .st-sec__head { border-bottom-color: #0e0e0e; }

/* The phone's collect dock is not used on desktop; COLLECT CARD opens its sheet. */
body #stream-collect-bar { display: none; }
.st-cardset {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  padding: 16px; background: rgba(0, 0, 0, .58); animation: st-in 0.16s ease;
}
.st-cardset__panel {
  width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 20px; background: var(--panel); color: var(--ink);
  border: 1px solid var(--edge); border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}
.st-cardset__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .13em; }
.st-cardset__head button { width: 38px; height: 38px; border: 1px solid var(--edge); border-radius: 50%; background: transparent; font-size: 23px; cursor: pointer; color: inherit; }
.st-cardset__preview { min-height: 120px; text-align: center; }
.st-cardset__preview .sd-wallet-face { width: min(100%, 310px); min-height: 0; margin: 8px auto 0; text-align: left; }
.st-cardset__preview .sd-wallet-face * { color: var(--wallet-ink, #fff); }
.st-cardset__preview .sd-wallet-face small { color: var(--wallet-label, #d1d1d6); }
.st-cardset__meta { display: flex; justify-content: space-between; gap: 16px; padding: 15px 2px; font-size: 13px; }
.st-cardset__meta span { color: var(--dim); }
.st-cardset__edit { width: 100%; min-height: 46px; border: 0; border-radius: 12px; background: var(--ink); color: var(--panel); font: inherit; font-weight: 800; cursor: pointer; }

/* ------------------------------------------------------ owner: go live */

/* Live from this computer: End and the mic, on the picture's top right. */
.st-selfbar { position: absolute; top: 18px; right: 18px; z-index: 5; display: flex; gap: 8px; }
.st-selfbar[hidden] { display: none; }
.st-selfbtn {
  height: 38px; min-width: 38px; padding: 0 12px; border-radius: 19px; border: 0;
  background: #ffffff; color: #000000; font-size: 13px; font-weight: 800; cursor: pointer;
}
.st-selfbtn.is-muted { background: #000000; color: #ffffff; box-shadow: inset 0 0 0 2px #ffffff; }
.st-selfbtn--end { padding: 0 18px; background: var(--live); color: #ffffff; }
.st-selfbtn--end:disabled { opacity: 0.6; cursor: default; }

.st-more__item { display: inline-flex; align-items: center; gap: 2px; }
.st-more .st-dots,
.st-dots {
  width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 0;
  background: transparent; color: var(--ink); font-size: 18px; font-weight: 800; cursor: pointer;
}
.st-more .st-dots:hover,
.st-dots:hover { background: var(--line); }
.st-row .st-dots { flex: 0 0 auto; }

/* The owner's ⋯ menu. */
.sb-menu {
  position: absolute; z-index: 90; min-width: 150px; padding: 6px;
  background: var(--panel); color: var(--ink); border: 1.5px solid var(--edge); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.sb-menu button {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 9px;
  background: transparent; color: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.sb-menu button:hover { background: var(--line); }
.sb-menu button.is-danger { color: var(--live); }

/* The builder: full screen and opaque, the page never shows through. */
body.sb-open { overflow: hidden; }
.sb {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column;
  background: var(--page); color: var(--ink); animation: st-in 0.16s ease;
}
.sb[hidden] { display: none; }
.sb-bar {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 28px; border-bottom: 1.5px solid var(--line); background: var(--bar);
}
.sb-x {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--edge);
  background: transparent; color: var(--ink); font-size: 16px; cursor: pointer;
}
.sb-bar__title { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sb-bar__title strong { font-size: 18px; font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.01em; }
.sb-bar__title small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.sb-save {
  height: 42px; padding: 0 26px; border-radius: 21px; border: 0;
  background: var(--live); color: #ffffff; font-size: 14px; font-weight: 800; cursor: pointer;
}
.sb-save:disabled { opacity: 0.6; cursor: default; }
.sb-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 40px;
  padding: 32px 28px 60px; max-width: 1360px; width: 100%; margin: 0 auto;
}
.sb-form { display: flex; flex-direction: column; gap: 28px; }
.sb-sec { display: flex; flex-direction: column; gap: 14px; }
.sb-sec[hidden] { display: none; }
.sb-eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.sb-eyebrow small { margin-left: 8px; letter-spacing: 0.06em; color: var(--dim); font-weight: 500; text-transform: none; }
.sb-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sb-chip {
  height: 38px; padding: 0 16px; border-radius: 19px; border: 1.5px solid var(--edge);
  background: transparent; color: var(--ink); font-size: 13px; font-weight: 800; cursor: pointer;
}
.sb-chip[aria-pressed="true"] { background: var(--ink); color: var(--page); border-color: var(--ink); }
.sb-field { display: flex; flex-direction: column; gap: 7px; flex: 1 1 0; min-width: 0; }
.sb-field > span { font-size: 13px; font-weight: 700; color: var(--dim); }
.sb-field input,
.sb-field textarea {
  width: 100%; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--panel);
  color: var(--ink); padding: 12px 14px; font-size: 15px; font-family: inherit; outline: none; resize: vertical;
  color-scheme: inherit;
}
.sb-field input:focus,
.sb-field textarea:focus { border-color: var(--ink); }
.sb-row { display: flex; gap: 12px; flex-wrap: wrap; }
.sb-check { margin: -4px 0 0; min-height: 18px; font-size: 13px; color: var(--dim); }
.sb-check.is-bad { color: var(--live); }
.sb-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--dim); }
.sb-link { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--live); font-size: 13px; font-weight: 700; cursor: pointer; }
.sb-link[hidden] { display: none; }
.sb-btn {
  height: 40px; padding: 0 18px; border-radius: 20px; border: 2px solid var(--ink);
  background: transparent; color: var(--ink); font-size: 13px; font-weight: 800; cursor: pointer;
}
.sb-btn--danger { border-color: var(--live); color: var(--live); }
.sb-pass__link { display: block; font-family: var(--mono); font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.sb-preview { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; gap: 12px; }
.sb-stage {
  aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000000; color: #ffffff;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.sb-stage p { margin: 0; padding: 20px; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.sb-stage iframe { width: 100%; height: 100%; border: 0; display: block; }

/* The Go live module's two ways in. */
.sb-modes {
  flex: 0 0 auto; display: flex; gap: 10px; width: 100%; max-width: 1360px; margin: 0 auto;
  padding: 22px 28px 0;
}
.sb-modes[hidden] { display: none; }
.sb-mode {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 14px 18px; border-radius: 18px; border: 2px solid var(--edge);
  background: transparent; color: var(--ink); text-align: left; cursor: pointer;
}
.sb-mode b { font-size: 16px; font-weight: 900; font-stretch: 112%; }
.sb-mode small { font-size: 13px; color: var(--dim); }
.sb-mode:hover { border-color: var(--ink); }
.sb-mode.is-on { border-color: var(--ink); background: var(--ink); color: var(--page); }
.sb-mode.is-on small { color: var(--page); }
.sb-body[hidden] { display: none; }
.sb-save[hidden] { display: none; }
/* Before a pick, the two ways in are the whole module: two big cards. */
.sb.is-choosing .sb-modes { flex: 0 0 auto; align-items: stretch; max-width: 980px; padding: 12vh 28px 28px; gap: 16px; }
.sb.is-choosing .sb-mode { justify-content: flex-start; min-height: 0; padding: 28px; gap: 8px; }
.sb-mode__icon { display: none; }
.sb.is-choosing .sb-mode__icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px;
  border-radius: 50%; background: var(--live); color: #ffffff; font-size: 22px;
}
.sb.is-choosing .sb-mode b { font-size: 30px; }
.sb.is-choosing .sb-mode small { font-size: 15px; }
/* Scheduling is a choice, not the default. */
.sb-schedbtn {
  align-self: flex-start; padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--edge);
  background: transparent; color: var(--ink); font-size: 14px; font-weight: 800; cursor: pointer;
}
.sb-schedbtn:hover { border-color: var(--ink); }
.sb-schedbtn[hidden], .sb-link[hidden] { display: none; }
.sb-body--live { display: block; }
.gl { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: start; }
.gl-form { display: flex; flex-direction: column; gap: 18px; }
.sb-field select {
  width: 100%; height: 48px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--panel);
  color: var(--ink); padding: 0 12px; font-size: 14px; font-family: inherit; outline: none; color-scheme: inherit;
}
.sb-field select:focus { border-color: var(--ink); }
.sb-field select:disabled, .sb-field input:disabled { opacity: 0.6; }
.gl-meter { height: 6px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--edge); overflow: hidden; margin-top: -8px; }
.gl-meter span { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.08s linear; }
.gl-go {
  height: 64px; border-radius: 32px; border: 2px solid var(--btn, var(--ink));
  background: var(--btn, var(--ink)); color: var(--on-btn, var(--page));
  font-size: 19px; font-weight: 900; font-stretch: 112%; cursor: pointer;
}
.gl-go:hover { opacity: 0.9; }
.gl-go:disabled { opacity: 0.6; cursor: default; }
.gl-status { margin: -6px 0 0; min-height: 20px; font-size: 14px; font-weight: 700; }
.gl-status.is-bad { color: var(--live); }
.gl-cam { position: sticky; top: 0; }
.gl-stage { position: relative; }
.gl-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.gl-stage p { position: relative; }
.gl-stage p[hidden] { display: none; }
.gl-tag {
  position: absolute; top: 14px; left: 14px; height: 26px; padding: 0 10px; border-radius: 13px;
  display: flex; align-items: center; background: #000000; color: #ffffff;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
}
@media (max-width: 900px) {
  .sb-body { grid-template-columns: 1fr; }
  .sb-preview { position: static; order: -1; }
  .gl { grid-template-columns: 1fr; }
  .gl-cam { position: static; order: -1; }
}
/* Split View: the same, for a narrow pane. */
@container pane (max-width: 900px) {
  .sb-body { grid-template-columns: 1fr; }
  .sb-preview { position: static; order: -1; }
  .gl { grid-template-columns: 1fr; }
  .gl-cam { position: static; order: -1; }
}

/* ------------------------------------------------ top half: the broadcast desk
   One composition: a channel strip across the top (or one header line when
   there is a single stream), then the set -- picture on a 16:9 grid with its
   info bar and toolbar inside the same frame -- and chat beside it, the same
   height, top edges aligned. */

.st-room { padding: 22px 28px 34px; }

/* Keep the next broadcast and saved videos in view beside the set. The rail
   becomes the familiar stacked sections when the page or split pane narrows. */
.st-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, 38%);
  align-items: start; gap: 24px; width: 100%; max-width: 1760px;
  margin: 0 auto; padding: 24px 28px 56px;
}
.st-layout[hidden] { display: none; }
.st-layout .st-room { min-width: 0; padding: 0; }
.st-layout .st-room__col { max-width: none; }
.st-layout .st-main {
  position: sticky; top: 16px; min-width: 0; width: 100%; max-width: none;
  max-height: calc(var(--pane-h, 100vh) - 32px); overflow-y: auto;
  margin: 0; padding: 20px; border: 1px solid var(--edge); border-radius: 22px;
  background: var(--panel); scrollbar-width: thin;
}
.st-panel-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 24px;
  border: 1px solid var(--edge); border-radius: 14px; background: var(--card);
}
.st-panel-tab {
  min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--dim);
  font: inherit; font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.st-panel-tab:hover { color: var(--ink); }
.st-panel-tab.is-active { background: var(--ink); color: var(--pill-ink); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.st-panel-tab:focus-visible { outline: 2px solid var(--live); outline-offset: 2px; }
.st-layout .st-sec[hidden] { display: none; }
.st-layout .st-sec__head { padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.st-schedule-heading { display: flex; justify-content: space-between; gap: 12px; margin: 20px 0 12px; color: var(--dim); font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.st-schedule-date { padding: 12px 2px 8px; color: var(--dim); font-family: var(--mono); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.st-fixture { display: flex; align-items: center; gap: 10px; min-height: 68px; border-bottom: 1px solid var(--edge); background: var(--panel); overflow: hidden; }
.st-fixture__time { display: flex; flex: 0 0 72px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 9px 0; }
.st-fixture__time strong { font-size: 13px; white-space: nowrap; }
.st-fixture__time span { font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .12em; color: var(--dim); }
.st-fixture__main { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 9px 0; }
.st-fixture__thumb { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 8px; background: var(--card); color: var(--live); font-size: 18px; border: 1px solid var(--edge); }
.st-fixture__thumb { overflow: hidden; }
.st-fixture__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-fixture__eyebrow { color: var(--live); font-family: var(--mono); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.st-fixture__title { font-size: 13px; line-height: 1.2; }
.st-fixture__matchup { font-size: 11px; color: var(--dim); }
.st-fixture__location { font-size: 10px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.st-fixture__count { font-size: 12px; font-weight: 800; color: var(--dim); }
.st-fixture__acts { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; }
.st-fixture__acts .st-row__btn { height: 27px; padding: 0 9px; font-size: 10px; white-space: nowrap; }
.st-fixture__acts .st-dots { width: 24px; height: 27px; padding: 0; }
.st-fixture__acts .st-row__btn--primary { background: var(--ink); color: var(--pill-ink); }
.st-schedule-add { flex: 0 0 auto; min-height: 30px; padding: 0 9px; border: 1px solid var(--edge); border-radius: 8px; background: var(--card); color: var(--ink); font-size: 10px; font-weight: 800; cursor: pointer; }
.st-schedule-add:hover { background: var(--card); }
.st-schedule-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 30px 14px; border: 1px dashed var(--edge); border-radius: 12px; color: var(--dim); }
.st-schedule-empty i { font-size: 24px; }
.st-schedule-empty strong { color: var(--ink); font-size: 16px; }
.st-schedule-empty span { font-size: 13px; line-height: 1.4; }
#st-sched > .st-row__btn { margin-top: 16px; }
.st-layout .st-screen:fullscreen { width: 100vw; height: 100vh; max-height: none; border-radius: 0; }
.st-screen:fullscreen .st-player { inset: 0; }
.st-layout .st-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
.st-layout .st-sec__title { font-size: 20px; }
.st-layout .st-sec__note { font-size: 9px; white-space: nowrap; }
.st-layout .st-sec__link { font-size: 12px; }
.st-layout .st-poster { gap: 12px; }
.st-layout .st-poster__art { flex-basis: 100px; border-radius: 14px; padding: 10px; }
.st-layout .st-poster__date b { font-size: 38px; }
.st-layout .st-poster__count { top: 8px; left: 8px; height: 20px; padding: 0 6px; font-size: 8px; }
.st-layout .st-poster .st-row__title { font-size: 18px; line-height: 1.1; }
.st-layout .st-poster .st-row__meta { font-size: 12px; }
.st-layout .st-poster__acts { flex-wrap: wrap; }
.st-layout .st-poster .st-row__btn { height: 34px; padding: 0 12px; font-size: 11px; }
.st-layout .st-replays { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.st-layout .st-rp__thumb { border-radius: 12px; }

/* The schedule follows each app's colors; these rules define its hierarchy. */
.st-calendar { display: grid; gap: 13px; }
.st-layout .st-calendar { padding-top: 10px; }
.st-calendar__top, .st-calendar__nav, .st-calendar__modes, .st-calendar__filters { display: flex; align-items: center; gap: 8px; }
.st-calendar__top { justify-content: space-between; flex-wrap: wrap; }
.st-calendar__nav strong { min-width: 82px; text-align: center; font: 900 12px var(--mono); letter-spacing: .06em; }
.st-calendar button, .st-calendar select, .st-calendar input, .st-calendar__full { font: inherit; }
.st-calendar__nav button, .st-calendar__modes button { min-height: 34px; padding: 0 10px; border: 1px solid var(--edge); border-radius: 9px; background: var(--card); color: var(--ink); cursor: pointer; }
.st-calendar__modes { width: max-content; padding: 3px; border: 1px solid var(--edge); border-radius: 11px; }
.st-calendar__modes button { border: 0; background: transparent; font-size: 11px; font-weight: 800; }
.st-calendar__modes button[aria-pressed="true"] { background: var(--ink); color: var(--pill-ink); }
.st-calendar__days { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 5px; }
.st-calendar__day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 58px; padding: 9px 2px; border: 1px solid var(--edge); border-radius: 10px; background: var(--card); color: var(--ink); cursor: pointer; }
.st-calendar__day span { color: var(--dim); font-size: 10px; }
.st-calendar__day strong { font-size: 16px; }
.st-calendar__day.is-active { background: var(--ink); color: var(--pill-ink); }
.st-calendar__day.is-active span { color: inherit; }
.st-calendar__dot { position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--live); }
.st-calendar__filters { align-items: stretch; }
.st-calendar__filters select, .st-calendar__search { min-height: 38px; padding: 0 9px; border: 1px solid var(--edge); border-radius: 9px; background: var(--card); color: var(--ink); }
.st-calendar__filters select { max-width: 135px; }
.st-calendar__search { display: flex; align-items: center; flex: 1; gap: 7px; min-width: 0; color: var(--dim); }
.st-calendar__search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.st-calendar__full { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; margin: 0 0 0 auto; padding: 0 11px; border: 1px solid var(--edge); border-radius: 9px; background: var(--card); color: var(--ink); font-size: 11px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.st-sponsor { position: relative; display: flex; align-items: stretch; min-height: 96px; margin: 16px 0 8px; border: 1px solid var(--edge); border-radius: 12px; background: var(--card); overflow: hidden; }
.st-sponsor.is-empty { border-style: dashed; }
.st-sponsor__art { display: grid; flex: 0 0 150px; place-items: center; min-width: 0; min-height: 96px; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--live) 25%, var(--panel)), var(--panel)); color: var(--ink); text-decoration: none; }
.st-sponsor__art img { display: block; width: 100%; height: 100%; max-height: 150px; object-fit: cover; }
.st-sponsor__art.is-logo { background: #fff; }
.st-sponsor__art.is-logo img { width: 78%; height: 72px; object-fit: contain; }
.st-sponsor__art i { color: var(--live); font-size: 21px; }
.st-sponsor__art > span:not(.st-sponsor__mark) { color: var(--ink); font: 900 9px var(--mono); letter-spacing: .14em; }
.st-sponsor__mark { display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid currentColor; border-radius: 12px; color: var(--ink); font-size: 24px; font-weight: 900; }
.st-sponsor.is-empty .st-sponsor__art { flex: 0 0 88px; }
.st-sponsor__copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; min-width: 0; padding: 14px 12px 14px 18px; }
.st-sponsor__copy strong { max-width: 100%; overflow: hidden; color: var(--ink); font-size: 17px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.st-sponsor__tagline { color: var(--dim); font-size: 11px; line-height: 1.3; }
.st-sponsor__actions { display: flex; flex: 0 0 110px; flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; padding: 10px 10px 10px 0; }
.st-sponsor__link, .st-sponsor__edit { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 0 8px; border-radius: 7px; font-size: 10px; font-weight: 800; text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; }
.st-sponsor__link { border: 1px solid var(--ink); background: var(--ink); color: var(--pill-ink); }
.st-sponsor__edit { border: 1px solid var(--edge); background: var(--panel); color: var(--ink); }
.st-sponsor__count { position: absolute; bottom: 7px; left: 8px; z-index: 1; padding: 4px 7px; border-radius: 7px; background: rgba(10,10,12,.78); color: #fff; font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 540px) { .st-sponsor__art { flex-basis: 105px; } .st-sponsor__copy { padding: 10px; } .st-sponsor__copy strong { font-size: 14px; } .st-sponsor__actions { flex-basis: 90px; } .st-sponsor__link, .st-sponsor__edit { font-size: 9px; } }
.st-calendar-open { overflow: hidden; }
.st-fullcal[hidden] { display: none; }
.st-fullcal { position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: 22px; background: rgba(0,0,0,.68); backdrop-filter: blur(8px); }
.st-fullcal__dialog { display: flex; flex-direction: column; width: min(1120px, 100%); max-height: min(850px, calc(100vh - 44px)); overflow: hidden; border: 1px solid var(--edge); border-radius: 20px; background: var(--panel); color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.28); }
.st-fullcal__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 26px; border-bottom: 1px solid var(--edge); }
.st-fullcal__kicker, .st-fullcal__agenda-kicker { display: block; margin-bottom: 5px; color: var(--live); font: 800 10px var(--mono); letter-spacing: .15em; }
.st-fullcal__head h2 { margin: 0; font-size: 25px; line-height: 1.1; }
.st-fullcal__close, .st-fullcal__monthnav button, .st-fullcal__tools button { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--edge); border-radius: 9px; background: var(--card); color: var(--ink); cursor: pointer; }
.st-fullcal__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 30%); min-height: 0; overflow-y: auto; }
.st-fullcal__calendar { min-width: 0; padding: 20px 24px 24px; }
.st-fullcal__toolbar, .st-fullcal__monthnav, .st-fullcal__tools { display: flex; align-items: center; gap: 10px; }
.st-fullcal__toolbar { justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.st-fullcal__monthnav strong { min-width: 155px; text-align: center; font-size: 17px; }
.st-fullcal__tools label { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 11px; font-weight: 700; }
.st-fullcal__tools input { height: 34px; padding: 0 7px; border: 1px solid var(--edge); border-radius: 8px; background: var(--card); color: var(--ink); color-scheme: light dark; }
.st-fullcal__weekdays, .st-fullcal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.st-fullcal__weekdays { margin-bottom: 6px; color: var(--dim); text-align: center; font: 800 11px var(--mono); text-transform: uppercase; }
.st-fullcal__day { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; min-height: 73px; padding: 8px; border: 1px solid var(--edge); border-radius: 9px; background: var(--card); color: var(--ink); text-align: left; cursor: pointer; }
.st-fullcal__day:hover, .st-fullcal__day:focus-visible { border-color: var(--live); outline: none; }
.st-fullcal__day.is-outside { opacity: .48; }
.st-fullcal__day.is-picked { border: 2px solid var(--live); padding: 7px; }
.st-fullcal__number { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-size: 12px; font-weight: 900; }
.st-fullcal__day.is-today .st-fullcal__number { background: var(--ink); color: var(--pill-ink); }
.st-fullcal__event { width: 100%; overflow: hidden; padding: 3px 5px; border-radius: 5px; background: color-mix(in srgb, var(--live) 12%, var(--panel)); color: var(--ink); font-size: 9px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.st-fullcal__count { display: none; padding: 4px 6px; border-radius: 5px; background: var(--live); color: #fff; font-size: 10px; font-weight: 900; white-space: nowrap; }
.st-fullcal__event i { color: var(--live); }
.st-fullcal__more { color: var(--dim); font-size: 9px; font-weight: 800; }
.st-fullcal__agenda { display: flex; flex-direction: column; min-width: 0; padding: 22px; border-left: 1px solid var(--edge); background: var(--card); }
.st-fullcal__agenda h3 { margin: 0 0 17px; font-size: 19px; line-height: 1.2; }
.st-fullcal__agenda-row { display: grid; gap: 5px; padding: 12px 0; border-top: 1px solid var(--edge); }
.st-fullcal__agenda-row time { color: var(--live); font: 800 11px var(--mono); }
.st-fullcal__agenda-row div { display: grid; gap: 3px; }
.st-fullcal__agenda-row strong { font-size: 13px; }
.st-fullcal__agenda-row span, .st-fullcal__empty { color: var(--dim); font-size: 11px; line-height: 1.35; }
.st-fullcal__view { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 42px; margin-top: auto; padding: 0 13px; border: 0; border-radius: 9px; background: var(--ink); color: var(--pill-ink); font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }
.st-fullcal__close:focus-visible, .st-fullcal__view:focus-visible, .st-calendar__jump:focus-visible { outline: 2px solid var(--live); outline-offset: 2px; }
@media (max-width: 1000px) { .st-fullcal__event, .st-fullcal__more { display: none; } .st-fullcal__count { display: block; } }
@media (max-width: 760px) { .st-fullcal { padding: 8px; } .st-fullcal__dialog { max-height: calc(100vh - 16px); border-radius: 14px; } .st-fullcal__body { display: block; } .st-fullcal__calendar { padding: 14px; } .st-fullcal__head { padding: 14px; } .st-fullcal__toolbar { flex-wrap: wrap; } .st-fullcal__day { min-height: 48px; padding: 4px; } .st-fullcal__day.is-picked { padding: 3px; } .st-fullcal__event { display: none; } .st-fullcal__day:has(.st-fullcal__event)::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--live); } .st-fullcal__agenda { border-left: 0; border-top: 1px solid var(--edge); } }
@media (max-width: 1180px) { .st-layout { grid-template-columns: minmax(0,1fr) minmax(360px, 40%); gap: 16px; } .st-layout .st-main { padding: 14px; } }

@media (max-width: 960px) {
  .st-layout { display: block; padding: 22px 28px 56px; }
  .st-layout .st-main { position: static; max-height: none; overflow: visible; margin-top: 24px; }
  .st-layout .st-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .st-layout .st-replays { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}
@container pane (max-width: 960px) {
  .st-layout { display: block; padding: 22px 28px 56px; }
  .st-layout .st-main { position: static; max-height: none; overflow: visible; margin-top: 24px; }
  .st-layout .st-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .st-layout .st-replays { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}
@media (max-width: 720px) {
  .st-layout { padding: 16px 16px 44px; }
  .st-layout .st-grid, .st-layout .st-replays { grid-template-columns: minmax(0, 1fr); }
}
@container pane (max-width: 720px) {
  .st-layout { padding: 16px 16px 44px; }
  .st-layout .st-grid, .st-layout .st-replays { grid-template-columns: minmax(0, 1fr); }
}


/* Status badges: red and pulsing only for a real broadcast. */
.st-badge {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 7px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; white-space: nowrap;
  background: rgba(255, 255, 255, 0.12); color: var(--ink);
}
.st-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-badge.is-live { background: var(--live); color: #ffffff; }
.st-badge.is-live i { animation: st-pulse 1.2s infinite; }
.st-badge.is-on { background: #ffffff; color: #0b0b0c; }
.st-badge.is-on i { background: var(--live); }
.st-badge.is-off { background: transparent; color: var(--dim); box-shadow: inset 0 0 0 1.5px var(--edge); }
.st-badge.is-next { background: var(--ink); color: var(--page); }
.st-tile__meta .st-badge { height: 20px; padding: 0 7px; font-size: 9px; border-radius: 5px; }
.st-badge.is-next i { display: none; }

/* Several streams: a strip of channel tiles. */
.st-strip__head { display: flex; align-items: baseline; gap: 12px; margin: 0 2px 12px; }
.st-strip__label { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; }
.st-strip__count { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.06em; }
.st-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 12px;
  overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; scroll-snap-type: x proximity;
}
.st-tile {
  display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 8px; border-radius: 18px; min-width: 0;
  border: 0; background: var(--set); color: var(--ink); text-align: left; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--set-edge); scroll-snap-align: start;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.st-tile:hover { transform: translateY(-2px); }
.st-tile.is-on { box-shadow: inset 0 0 0 2.5px var(--ink); }
.st-tile__still {
  position: relative; flex: 0 0 116px; aspect-ratio: 16 / 9; border-radius: 11px; overflow: hidden; background: #000000;
  display: grid; place-items: center;
}
.st-tile__still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-tile__still img.is-43 { transform: scale(1.34); }
.st-tile__icon { font-size: 20px; color: rgba(255, 255, 255, 0.5); }
.st-tile__still .st-badge { position: absolute; top: 6px; left: 6px; z-index: 1; height: 20px; padding: 0 7px; font-size: 9px; gap: 5px; border-radius: 5px; }
.st-tile__still .st-badge i { width: 5px; height: 5px; }
.st-tile__count {
  position: absolute; right: 5px; bottom: 5px; z-index: 1; height: 24px; padding: 0 8px; border-radius: 12px;
  display: flex; align-items: center; background: rgba(0, 0, 0, 0.7); color: #ffffff;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
}
.st-tile__words { flex: 1 1 auto; display: flex; flex-direction: column; gap: 5px; min-width: 0; padding-right: 6px; }
.st-tile__title { font-size: 16px; font-weight: 900; font-stretch: 112%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-tile__meta {
  display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase; white-space: nowrap; overflow: hidden;
}
.st-tile--next .st-tile__still { background: var(--page); box-shadow: inset 0 0 0 1.5px var(--edge); }
.st-tile__when { display: flex; flex-direction: column; align-items: center; line-height: 1; color: var(--ink); }
.st-tile__when b { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--dim); }
.st-tile__when span { margin-top: 4px; font-size: 17px; font-weight: 900; font-stretch: 118%; }


/* Light: white frames, black type, no grey fills. */
:root[data-theme="light"]:where(:not(.ws-on)) .st-badge { background: #f2f2f2; }
:root[data-theme="light"]:where(:not(.ws-on)) .st-badge.is-live { background: var(--live); }
:root[data-theme="light"]:where(:not(.ws-on)) .st-badge.is-on { background: #0e0e0e; color: #ffffff; }
:root[data-theme="light"]:where(:not(.ws-on)) .st-badge.is-off { background: transparent; }
:root[data-theme="light"]:where(:not(.ws-on)) .st-tile__still .st-badge.is-on { background: #ffffff; color: #0e0e0e; }
.st-tile--next .st-tile__when { margin-top: 0; }
:root[data-theme="light"]:where(:not(.ws-on)) .st-badge.is-next { background: #0e0e0e; color: #ffffff; }

/* ============================================== the picture's own overlay
   The lower third (what is on, the actions) on a dark gradient over the
   bottom of the picture, chat floating up its right, the cube button at the
   far right. Only the controls take the pointer: the rest passes through to
   an embedded player underneath. Everything on the picture is white on dark
   whatever the page colour, as on the Media TV. */

.st-player { z-index: 0; }
.st-hud {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; align-items: flex-end; gap: 22px;
  padding: 90px 22px 20px 26px; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 38%, rgba(0, 0, 0, 0) 100%);
  color: #ffffff;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.st-screen.is-idle:not(.is-off) .st-hud,
.st-screen.is-idle:not(.is-off) .st-corner {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.st-screen.is-idle:not(.is-off)::after {
  content: ''; position: absolute; inset: 0; z-index: 5;
}
.st-screen.is-idle:fullscreen { cursor: none; }
.st-screen.is-off .st-hud { background: none; }
.st-hud button, .st-hud input, .st-hud a, .st-msg { pointer-events: auto; }
.st-hud__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; animation: st-rise 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.st-hud__tags { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.st-hud .st-badge { height: 26px; }
.st-hud .st-badge.is-off { color: #ffffff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); background: rgba(0, 0, 0, 0.3); }
.st-hud__src, .st-hud__watch {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.85);
}
.st-hud__src i { font-size: 13px; }
.st-hud__src:empty { display: none; }
.st-hud__watch { height: 26px; padding: 0 10px; border-radius: 13px; background: rgba(0, 0, 0, 0.45); color: #ffffff; letter-spacing: 0.04em; }
.st-hud__watch i { width: 7px; height: 7px; border-radius: 50%; background: var(--live-2); animation: st-pulse 1.6s infinite; }
.st-hud__watch[hidden] { display: none; }
.st-hud__title {
  font-size: clamp(26px, calc(3.4 * var(--pane-w, 100vw) / 100), 52px); font-weight: 900; font-stretch: 122%;
  letter-spacing: -0.03em; line-height: 0.95; text-transform: uppercase;
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.st-hud__meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.78); text-transform: uppercase; }
.st-hud__meta:empty { display: none; }
.st-hud__desc {
  max-width: 62ch; font-family: var(--tag); font-size: 17px; font-weight: 600; line-height: 1.3; color: rgba(255, 255, 255, 0.92);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.st-hud__desc[hidden] { display: none; }
.st-hud__tools { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* Actions on the picture: glass pills; Collect card is the primary, in the
   app's own button colour. */
.st-tool {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 21px;
  border: 0; background: rgba(255, 255, 255, 0.16); color: #ffffff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap;
  transition: background 0.14s ease, transform 0.14s ease;
}
.st-tool:hover { background: rgba(255, 255, 255, 0.26); }
.st-tool:active { transform: scale(0.96); }
.st-tool[hidden] { display: none; }
.st-tool--card { background: var(--btn, #ffffff); color: var(--on-btn, #0b0b0c); padding-left: 18px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
.st-tool--card:hover { background: var(--btn, #ffffff); opacity: 0.9; }
.st-tool--card.has-art { padding-left: 6px; }
.st-tool--card.has-art > i { display: none; }
.st-tool--dots, .st-tool--icon { width: 42px; padding: 0; justify-content: center; font-size: 17px; }
.st-tool--icon span { display: none; }
.st-tool--icon[aria-pressed="false"] { background: rgba(0, 0, 0, 0.45); }

/* A small real card on the Collect button: the pass colour and picture. */
.st-cardart {
  position: relative; flex: 0 0 auto; width: 24px; height: 32px; border-radius: 5px; overflow: hidden;
  background: #18181b; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.7), 0 3px 8px rgba(0, 0, 0, 0.35);
  display: grid; place-items: center; transform: rotate(-6deg);
}
.st-cardart[hidden] { display: none; }
.st-cardart img { width: 70%; height: auto; margin-top: -4px; border-radius: 3px; }
.st-cardart span {
  position: absolute; left: 0; right: 0; bottom: 1px; text-align: center;
  font-family: var(--mono); font-size: 6px; font-weight: 700; color: #ffffff; line-height: 1;
}
.st-tool--card.has-art:hover .st-cardart { transform: rotate(0deg) translateY(-2px); }
.st-cardart { transition: transform 0.2s ease; }

/* ---------------------------------------------------------- floating chat */

.st-float {
  flex: 0 0 340px; width: 340px; min-width: 0; display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.st-float__list {
  max-height: min(360px, calc(var(--pane-h, 100vh) * 0.42)); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 6px; padding-top: 40px; scrollbar-width: none;
  /* Older messages fade out as they rise. */
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, #000 55%, transparent 100%);
}
.st-float__list::-webkit-scrollbar { display: none; }
.st-float.is-empty .st-float__list { display: none; }
.st-msg {
  position: relative; align-self: flex-start; max-width: 100%;
  display: flex; align-items: flex-start; gap: 9px; padding: 6px 12px 7px 6px; border-radius: 20px;
  background: rgba(0, 0, 0, 0.42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; color: #ffffff;
  animation: st-float-in 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.st-msg.is-quiet { animation: none; }
.st-msg.is-going { opacity: 0.4; }
@keyframes st-float-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
.st-av {
  position: relative; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.22);
  font-size: 12px; font-weight: 900; color: #ffffff;
}
.st-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #1f1f22; }
.st-msg__words { min-width: 0; padding-top: 1px; }
.st-msg__words b { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; font-weight: 900; }
.st-msg__words span { color: rgba(255, 255, 255, 0.94); }
.st-msg__host {
  padding: 1px 5px; border-radius: 4px; background: var(--live); color: #ffffff;
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
}
.st-msg.is-me { background: rgba(255, 255, 255, 0.2); }
.st-msg__del {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0;
  background: #ffffff; color: #0b0b0c; font-size: 11px; cursor: pointer; display: none; place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.st-msg:hover .st-msg__del, .st-msg__del:focus-visible { display: grid; }
.st-msg__del:hover { background: var(--live); color: #ffffff; }

/* Chat rules: a pinned pill at the top of the chat; folds to one line. */
.st-rules {
  align-self: stretch; display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #ffffff; font: inherit; font-size: 13px; line-height: 1.35; text-align: left; cursor: pointer; pointer-events: auto;
}
.st-rules__pin { flex: none; font-size: 13px; }
.st-rules__words { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.st-rules__words b { font-weight: 900; margin-right: 6px; }
.st-rules__words b::after { content: ":"; }
.st-rules__text { color: rgba(255, 255, 255, 0.92); }
.st-rules__chev { flex: none; margin-top: 3px; font-size: 11px; opacity: 0.75; transition: transform 0.15s ease; }
.st-rules.is-folded .st-rules__words { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-rules.is-folded .st-rules__chev { transform: rotate(180deg); }
.st-rules:hover { border-color: rgba(255, 255, 255, 0.45); }
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off .st-rules {
  background: rgba(255, 255, 255, 0.92); color: #17181b; border-color: #cdd1d8;
}
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off .st-rules__text { color: #343942; }
.st-float__form { display: flex; gap: 8px; pointer-events: auto; }
.st-float__form[hidden] { display: none; }
.st-float__form input {
  flex: 1; min-width: 0; height: 44px; border-radius: 22px; border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #ffffff; padding: 0 16px; font-size: 14px; outline: none;
}
.st-float__form input::placeholder { color: rgba(255, 255, 255, 0.7); }
.st-float__form input:focus { border-color: rgba(255, 255, 255, 0.8); }
.st-float__form button {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #ffffff; color: #0b0b0c; font-size: 15px; cursor: pointer;
}
.st-float__form button:hover { transform: scale(1.05); }
.st-float__login {
  align-self: stretch; height: 44px; border-radius: 22px; border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #ffffff; font-size: 14px; font-weight: 800; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.st-float__login:hover { background: rgba(0, 0, 0, 0.6); border-color: rgba(255, 255, 255, 0.6); }
.st-float__login[hidden] { display: none; }
.st-screen.chat-off .st-float { display: none; }
/* Nothing on and nobody chatting: the picture keeps the space. */
.st-screen.is-off:not(.chat-on) .st-float.is-empty { display: none; }
.st-hud__title:empty { display: none; }

/* ------------------------------------------------ flip between streams */

.st-flip {
  flex: 0 0 auto; display: flex; align-items: center; gap: 2px; height: 44px; padding: 0 4px; border-radius: 22px;
  background: rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #ffffff;
}
.st-flip[hidden] { display: none; }
.st-flip__btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: #ffffff;
  font-size: 13px; cursor: pointer;
}
.st-flip__btn:hover { background: rgba(255, 255, 255, 0.2); }
.st-flip__n { min-width: 44px; text-align: center; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }

/* Top corners stay above the lower third. */
.st-corner, .st-selfbar, .st-soundtab { z-index: 6; }
.st-off { z-index: 3; padding-bottom: 150px; }
.st-status { z-index: 5; }

/* A stream link's own player: the lower third sits above the player's own
   control bar, which stays clickable through the overlay. */
.st-screen.is-embed .st-hud { padding-top: 70px; padding-bottom: 58px; }
@container stset (max-width: 820px) {
  .st-screen.is-embed .st-hud { padding-bottom: 50px; }
  .st-screen.is-embed.chat-on .st-float { bottom: 50px; }
}

/* Several streams: every channel as a tile under the picture. */
.st-channels { margin-top: 18px; }
.st-channels[hidden] { display: none; }
.st-strip__head { display: flex; align-items: baseline; gap: 12px; }
.st-channels .st-strip {
  grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); grid-auto-columns: auto; overflow: visible;
}
.st-channels .st-tile { flex-direction: column; align-items: stretch; gap: 10px; padding: 8px 8px 12px; }
.st-channels .st-tile__still { flex: 0 0 auto; width: 100%; }
.st-channels .st-tile__words { padding: 0 4px; }
.st-channels .st-tile.is-on { box-shadow: inset 0 0 0 3px var(--hl, var(--ink)); }
.st-tile__now {
  position: absolute; right: 6px; top: 6px; z-index: 1; height: 20px; padding: 0 7px; border-radius: 5px;
  display: flex; align-items: center; background: #ffffff; color: #0b0b0c;
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.12em;
}

/* ---------------------------------------------- Coming up and Replays tiles */

.st-poster { display: flex; gap: 18px; align-items: stretch; margin-top: 16px; }
.st-poster__art {
  position: relative; flex: 0 0 min(260px, 46%); aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, var(--btn, #27272a), #0b0b0c); color: #ffffff;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
}
.st-poster__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.st-poster__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0) 65%); }
.st-poster__date { position: relative; z-index: 1; display: flex; flex-direction: column; line-height: 1; }
.st-poster__date small { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; }
.st-poster__date b { font-size: 64px; font-weight: 900; font-stretch: 125%; letter-spacing: -0.04em; margin: 2px 0; }
.st-poster__count {
  position: absolute; top: 14px; left: 14px; z-index: 1; height: 26px; padding: 0 10px; border-radius: 13px;
  display: flex; align-items: center; background: #ffffff; color: #0b0b0c;
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
}
.st-poster .st-row__main { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding-bottom: 4px; }
.st-poster .st-row__title { font-size: 26px; font-weight: 900; font-stretch: 118%; line-height: 1; text-transform: uppercase; letter-spacing: -0.02em; }
.st-poster__acts { display: flex; align-items: center; gap: 6px; margin-top: 10px; }

.st-rp__thumb { border-radius: 18px; background: #111113; }
.st-rp__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 60%); pointer-events: none; }
.st-rp__cap { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; display: flex; flex-direction: column; gap: 3px; color: #ffffff; }
.st-rp__cap .st-rp__title { font-size: 16px; font-weight: 900; text-transform: uppercase; line-height: 1.05; }
.st-rp__cap .st-rp__meta { margin: 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.8); text-transform: uppercase; }
.st-rp__len { top: 8px; bottom: auto; z-index: 1; }
.st-rp__play {
  position: absolute; left: 50%; top: 45%; z-index: 1; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); opacity: 0; transform: scale(0.8); transition: opacity 0.15s ease, transform 0.15s ease;
}
.st-rp__play::before { content: ""; position: absolute; left: 18px; top: 14px; border-left: 14px solid #0b0b0c; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.st-rp:hover .st-rp__play { opacity: 1; transform: scale(1); }
.st-rp { transition: transform 0.16s ease; }
.st-rp:hover { transform: translateY(-3px); }

/* ------------------------------------------------------------- narrow set
   A narrow picture (a small window or a Split View pane): chat folds away
   behind the chat button and opens over the right when asked. */
@container stset (max-width: 820px) {
  .st-hud { padding: 60px 14px 14px 16px; gap: 12px; }
  .st-float { display: none; }
  .st-screen.chat-on .st-float {
    display: flex; position: absolute; right: 74px; bottom: 14px; width: min(300px, calc(100% - 100px));
  }
  .st-screen.chat-on .st-hud__info { visibility: hidden; }
  .st-hud__desc { display: none; }
  .st-hud__title { font-size: 26px; -webkit-line-clamp: 1; }
  .st-tool > span:not(.st-cardart) { display: none; }
  .st-tool { width: 42px; padding: 0; justify-content: center; }
  .st-tool--card.has-art { width: auto; padding: 0 8px; }
  .st-float__list { max-height: 180px; }
  .st-off { padding-bottom: 110px; }
  .st-off__title { font-size: 40px; }
}
@container stset (min-width: 821px) {
  .st-screen.chat-on .st-float { display: flex; }
}
@media (max-width: 720px) {
  .st-poster { flex-direction: column; }
  .st-poster__art { flex-basis: auto; aspect-ratio: 16 / 9; }
}
@container pane (max-width: 720px) {
  .st-poster { flex-direction: column; }
  .st-poster__art { flex-basis: auto; aspect-ratio: 16 / 9; }
}

:root[data-theme="light"]:where(:not(.ws-on)) .st-screen { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14); }
/* The chat field sits on the picture: page-colors.css paints every field
   the page colour, so this one is named by id to stay glass on video. */
#st-chat #st-chat-input {
  background: rgba(0, 0, 0, 0.4); color: #ffffff; border: 1.5px solid rgba(255, 255, 255, 0.28);
}
#st-chat #st-chat-input:focus { border-color: rgba(255, 255, 255, 0.8); }
#st-chat #st-chat-input::placeholder { color: rgba(255, 255, 255, 0.7); }
#st-replays-all[hidden]{display:none!important}

/* The owner's replay controls: ⋯ on the tile, a badge when it is not public,
   headings and the current choice inside the ⋯ menu. */
.sb-menu__head { padding: 8px 12px 4px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.sb-menu button.is-checked::after { content: "\2713"; float: right; margin-left: 14px; }
.sb-menu__head ~ button:not(.is-danger) { padding-left: 16px; }
.sb-menu button.is-danger { margin-top: 4px; box-shadow: 0 -1px 0 var(--line); border-radius: 0 0 9px 9px; }
.st-rp__dots {
  position: absolute; top: 8px; left: 8px; z-index: 2; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, 0.62); color: #ffffff; font-size: 16px; font-weight: 900; line-height: 30px; text-align: center; cursor: pointer;
  opacity: 0; transition: opacity 0.15s ease;
}
.st-rp:hover .st-rp__dots, .st-rp:focus-within .st-rp__dots, .st-rp__dots:focus-visible { opacity: 1; }
.st-rp__dots:hover { background: rgba(0, 0, 0, 0.85); }
.st-rp__vis {
  position: absolute; top: 8px; left: 44px; z-index: 1; display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.72); color: #ffffff;
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.st-rp__vis i { position: static; transform: none; color: inherit; font-size: 9px; }
.st-rp:not(:hover):not(:focus-within) .st-rp__vis { left: 8px; }
.st-rp:focus-visible { outline: 2px solid var(--live); outline-offset: 3px; border-radius: 18px; }

/* A playing video keeps its black letterbox. The off-air set follows the
   viewer's light theme, including its guide, controls and optional chat. */
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off {
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #f5f6f8 55%, #eef0f3 100%);
  color: #17181b;
  border: 1px solid #dfe2e7;
}
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off .st-player img.is-cover { opacity: 0.08; filter: blur(8px); }
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off .st-scan {
  background: none;
  box-shadow: inset 0 0 90px rgba(37, 44, 56, 0.05);
}
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off .st-off { background: rgba(247, 248, 250, 0.88); }
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off .st-off__kicker { color: #626873; }
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off .st-hud { color: #17181b; }
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off .st-hud__title { text-shadow: none; }
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off :is(.st-hud__src, .st-hud__meta, .st-hud__desc) { color: #464b55; }
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off .st-hud .st-badge.is-off {
  color: #252932; background: #ffffff; box-shadow: inset 0 0 0 1.5px #9ca3ae;
}
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off .st-tool {
  color: #20232a; background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px #cdd1d8;
}
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off .st-tool:hover { background: #ffffff; }
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off .st-tool--card {
  color: #ffffff; background: #17181b; box-shadow: none;
}
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off .st-tool--card:hover { background: #30333a; }
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off .st-msg {
  background: rgba(255, 255, 255, 0.9); color: #17181b; box-shadow: 0 3px 14px rgba(31, 37, 48, 0.1);
}
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off .st-msg__words span { color: #343942; }
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off :is(.st-float__form input, .st-float__login) {
  background: rgba(255, 255, 255, 0.92); color: #17181b; border-color: #cdd1d8;
}
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off #st-chat #st-chat-input {
  background: rgba(255, 255, 255, 0.92); color: #17181b; border-color: #cdd1d8;
}
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off #st-chat #st-chat-input:focus { border-color: #555c68; }
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off .st-float__form input::placeholder { color: #606672; }
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off #st-chat #st-chat-input::placeholder { color: #606672; }
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off .st-float__form button { background: #17181b; color: #ffffff; }

.st-off .nst-es.nst-es {
  --es-ink: #ffffff; --es-dim: rgba(255, 255, 255, 0.7); --es-soft: rgba(255, 255, 255, 0.08);
  --es-line: rgba(255, 255, 255, 0.18); --es-btn: #ffffff; --es-on-btn: #111114; --es-glow: rgba(0, 0, 0, 0.3);
}
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off .st-off .nst-es.nst-es {
  --es-ink: #17181b; --es-dim: #555c68; --es-soft: #ffffff;
  --es-line: #cdd1d8; --es-btn: #17181b; --es-on-btn: #ffffff; --es-glow: rgba(31, 37, 48, 0.1);
}

/* ----------------------------------------------------------- site brands */
/* The app's site names the product (stream.html sets data-stream-brand from
   stream_brand_for): NIL Sports Tech apps stream on Athlete Streamer, whose
   Go live is red; memes2apps apps on Meme Streamer, lime with dark type.
   BlocTap and every other site carry no attribute and keep the page above. */
:root[data-stream-brand="athlete"] {
  --brand-go: var(--live); --brand-on-go: #ffffff;
}
:root[data-stream-brand="meme"],
:root[data-stream-brand="meme"] .tab-stream {
  --live: #c6f432; --live-2: #d8ff35;
  --brand-go: #c6f432; --brand-on-go: #0b0b0c;
}
/* The Go live CTA: the header pill, the builder's start button, the
   dashboard's Go live, and the empty-state primary (page and dashboard). */
:root[data-stream-brand] .st-golive,
:root[data-stream-brand] .gl-go,
:root[data-stream-brand] .sd .sd-brand-go {
  border-color: var(--brand-go); background: var(--brand-go); color: var(--brand-on-go);
}
:root[data-stream-brand] :is(.tab-stream, .sd) .nst-es .nst-es__btn--primary,
:root[data-stream-brand] :is(.tab-stream, .sd) .nst-es .nst-es__btn--primary * {
  --es-btn: var(--brand-go); --es-on-btn: var(--brand-on-go);
}
/* Meme: lime fills take dark type; errors and danger stay red. */
:root[data-stream-brand="meme"] :is(.st-badge.is-live, .st-selfbtn--end, .sb-save, .sb.is-choosing .sb-mode__icon, .st-msg__host) {
  color: #0b0b0c;
}
:root[data-stream-brand="meme"] :is(.st-err, .sb-menu button.is-danger, .sb-check.is-bad, .gl-status.is-bad) { color: #dc2626; }
:root[data-stream-brand="meme"] .sb-btn--danger { border-color: #dc2626; color: #dc2626; }
:root[data-stream-brand="meme"][data-theme="light"] .sb-link { color: #4f6b00; }

/* The branded offline stage (stream.js paintBrandStage): the phone's Go Live
   screen (mobile-stream-empty.css, #stream-empty-golive) on the desktop set.
   The app's photo edge to edge under a dark gradient, the product name on
   top, one big round Go live for the owner. Dark in both themes: it is a
   picture, not a panel. */
.st-screen.is-brandstage .st-off.st-off--brand,
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off.is-brandstage .st-off.st-off--brand {
  justify-content: space-between; gap: 18px; padding: 44px 24px 150px;
  background-color: #0a0a0c;
  background-image: linear-gradient(180deg, rgba(17, 18, 20, 0.72) 0%, rgba(17, 18, 20, 0.5) 45%, rgba(17, 18, 20, 0.92) 100%), var(--bs-photo, none);
  background-size: cover; background-position: center 28%;
  color: #ffffff;
}
.st-off--brand .st-bs { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.st-off--brand .st-bs__brand { text-align: center; }
.st-off--brand .st-bs__eyebrow {
  font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase;
  color: #ffffff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}
.st-off--brand .st-bs__tagline {
  margin-top: 8px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.72);
}
.st-off--brand .st-bs__action { position: relative; display: flex; flex-direction: column; align-items: center; margin: auto 0; }
/* Two rings, offset in time, expanding out from the button and fading. */
.st-off--brand .st-bs__action::before,
.st-off--brand .st-bs__action::after {
  content: ''; position: absolute; top: 0; left: 50%; width: 168px; height: 168px; margin-left: -84px;
  border-radius: 50%; border: 1.5px solid var(--bs-ring, rgba(255, 122, 105, 0.8)); pointer-events: none;
  animation: st-bs-ring 2.6s cubic-bezier(.16, .84, .32, 1) infinite;
}
.st-off--brand .st-bs__action::after { animation-delay: 1.3s; }
@keyframes st-bs-ring {
  0% { transform: scale(0.94); opacity: 0.55; }
  70% { opacity: 0.12; }
  100% { transform: scale(1.5); opacity: 0; }
}
#st-bs-go {
  --bs-glow: rgba(233, 39, 27, 0.55); --bs-glow-hi: rgba(233, 39, 27, 0.75);
  position: relative; width: 168px; height: 168px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 32%),
    var(--bs-fill, radial-gradient(circle at 50% 46%, #FF6A5A 0%, #EE2E1E 55%, #B4140C 100%));
  color: var(--bs-on, #ffffff);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; transform-origin: 50% 50%;
  animation: st-bs-pulse 2.6s cubic-bezier(.45, 0, .2, 1) infinite;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.45), inset 0 -10px 18px rgba(0, 0, 0, 0.28), 0 0 34px 4px var(--bs-glow), 0 20px 44px -16px rgba(0, 0, 0, 0.75);
}
#st-bs-go::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.5); pointer-events: none; }
#st-bs-go i { position: relative; font-size: 29px; color: var(--bs-on, #ffffff); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25)); }
#st-bs-go span {
  position: relative; font-size: 18px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--bs-on, #ffffff); text-shadow: var(--bs-shadow, 0 2px 4px rgba(0, 0, 0, 0.3));
}
#st-bs-go:focus-visible { outline: 3px solid #ffffff; outline-offset: 6px; }
@keyframes st-bs-pulse {
  0%, 100% { transform: scale(1); box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.45), inset 0 -10px 18px rgba(0, 0, 0, 0.28), 0 0 34px 4px var(--bs-glow), 0 20px 44px -16px rgba(0, 0, 0, 0.75); }
  45% { transform: scale(1.045); box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.45), inset 0 -10px 18px rgba(0, 0, 0, 0.28), 0 0 52px 10px var(--bs-glow-hi), 0 20px 44px -16px rgba(0, 0, 0, 0.75); }
  70% { transform: scale(1.015); }
}
.st-off--brand .st-bs__next {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78); text-align: center;
}
.st-off--brand .st-bs__next[hidden] { display: none; }
/* The phone's foot line: centered at the bottom of the stage, above the
   lower third's badge and tools. */
.st-off--brand .st-bs__as {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65); text-align: center;
}
.st-off--brand .st-off__kicker[hidden], .st-off--brand .st-off__title[hidden], .st-off--brand .st-off__when[hidden] { display: none; }
.st-off--brand .st-off__kicker { color: rgba(255, 255, 255, 0.72); }
.st-off--brand .st-off__title, .st-off--brand .st-off__when { color: #ffffff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5); }
/* A guest's stage has no button: the words sit in the middle. */
.st-off--brand .st-bs:not(:has(.st-bs__action)) { flex: 0 0 auto; }
.st-off--brand:not(:has(.st-bs__action)) { justify-content: flex-start; }
.st-off--brand:not(:has(.st-bs__action)) .st-off__kicker { margin-top: auto; }
.st-off--brand:not(:has(.st-bs__action)) .st-off__when { margin-bottom: auto; }
/* Meme Streamer: the same button in lime, dark type. */
:root[data-stream-brand="meme"] .st-off--brand {
  --bs-fill: radial-gradient(circle at 50% 46%, #E8FF7A 0%, #C6F432 55%, #7FA300 100%);
  --bs-on: #0b0b0c; --bs-shadow: none; --bs-ring: rgba(216, 255, 53, 0.8);
}
:root[data-stream-brand="meme"] #st-bs-go { --bs-glow: rgba(198, 244, 50, 0.5); --bs-glow-hi: rgba(198, 244, 50, 0.7); }
/* Light theme: the lower third keeps white type over the photo. */
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off.is-brandstage .st-hud { color: #ffffff; }
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off.is-brandstage :is(.st-hud__src, .st-hud__meta, .st-hud__desc) { color: rgba(255, 255, 255, 0.8); }
:root[data-theme="light"]:not(.ws-on) .st-screen.is-off.is-brandstage .st-hud .st-badge.is-off { color: #ffffff; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
/* A narrow set (a small window or a split pane): a smaller button and the
   name alone, so the stage clears the lower third. */
@container stset (max-width: 820px) {
  .st-screen.is-brandstage .st-off.st-off--brand,
  :root[data-theme="light"]:not(.ws-on) .st-screen.is-off.is-brandstage .st-off.st-off--brand { padding: 22px 16px 110px; gap: 10px; }
  .st-off--brand .st-bs { gap: 12px; }
  .st-off--brand .st-bs__eyebrow { font-size: 12px; letter-spacing: 0.24em; }
  .st-off--brand .st-bs__tagline, .st-off--brand .st-bs__as { display: none; }
  .st-off--brand .st-bs__action::before, .st-off--brand .st-bs__action::after { width: 112px; height: 112px; margin-left: -56px; }
  #st-bs-go { width: 112px; height: 112px; gap: 6px; }
  #st-bs-go i { font-size: 20px; }
  #st-bs-go span { font-size: 13px; }
}
@container stset (max-width: 480px) {
  .st-off--brand .st-bs__action::before, .st-off--brand .st-bs__action::after { width: 84px; height: 84px; margin-left: -42px; }
  #st-bs-go { width: 84px; height: 84px; gap: 4px; }
  #st-bs-go i { font-size: 16px; }
  #st-bs-go span { font-size: 11px; letter-spacing: 0.06em; }
}
@media (prefers-reduced-motion: reduce) {
  #st-bs-go { animation: none; }
  .st-off--brand .st-bs__action::before, .st-off--brand .st-bs__action::after { animation: none; display: none; }
}

/* The watching count by the chat (stream.js paintOnAir): the same number as
   the lower third's, shown to guests only when the owner turns it on. */
.st-float__watch {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px;
  border-radius: 13px; background: rgba(0, 0, 0, 0.45); color: #ffffff;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap;
  pointer-events: auto;
}
.st-float__watch i { width: 7px; height: 7px; border-radius: 50%; background: var(--live-2); animation: st-pulse 1.6s infinite; }
.st-float__watch b { font-weight: 800; }
.st-float__watch[hidden] { display: none; }
