/* adventure.io TV (portal/src/tv/): the ON AIR badge, the toolbar's TV key, the game bar's ON AIR key and the
   /tv page (site/tv/index.html). Plain CSS bodies in both renderers: kit.css's gpu-paint switch makes everything
   inside a data-gpu twin (a card, the game bar) transparent, so the badges opt back in below.
   Owner: tv (design/CONTRACTS.md). */

/* ---- ON AIR badge: a danger-red sticker with a blinking cream dot (DESIGN §4: text-ink on danger 6.16:1) ---- */
.tv-onair {
  box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 28px; padding: 1px 10px 0 8px;
  border: var(--ink-small, 2.5px) solid var(--ink, #07030D); border-radius: 9px;
  background: var(--danger, #FF4D5E); color: var(--text-ink, #0B0614);
  font: 800 13px/1 var(--f-display, 'Gluten', 'Fredoka', system-ui, sans-serif); letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap; text-decoration: none; -webkit-font-smoothing: antialiased;
  box-shadow: 0 3px 0 var(--ink, #07030D);
}
.tv-onair__dot {
  box-sizing: border-box; display: inline-block; flex: none; width: 10px; height: 10px;
  border: 1.6px solid var(--ink, #07030D); border-radius: 50%; background: var(--cream, #FFF1D6);
  animation: tv-blink 1200ms steps(1, end) infinite;
}
@keyframes tv-blink { 0% { opacity: 1; } 50% { opacity: .35; } }
html[data-motion="reduce"] .tv-onair__dot { animation: none; }
@media (prefers-reduced-motion: reduce) { html:not([data-motion="full"]) .tv-onair__dot { animation: none; } }

/* on a card's window (kit.css: the live pill sits top-left, the sticker top-right, the box art over the bottom-left):
   bottom-right, over the clip */
.k-card__window > .tv-onair--card {
  position: absolute; z-index: 4; right: 14px; bottom: 14px; cursor: pointer; transform: rotate(-2deg);
}
.k-card__window > .tv-onair--card:hover { filter: brightness(1.08); }
/* the GPU paints the card from its twins and fades every child of a data-gpu twin; the badge stays CSS */
html.gpu-paint #portal-catalog .k-card[data-gpu] .tv-onair,
html.gpu-paint #portal-catalog .k-card[data-gpu] .tv-onair * {
  color: var(--text-ink, #0B0614) !important; -webkit-text-fill-color: var(--text-ink, #0B0614) !important;
  border-color: var(--ink, #07030D) !important; opacity: 1 !important; animation-play-state: running !important;
}
html.gpu-paint #portal-catalog .k-card[data-gpu] .tv-onair {
  background-color: var(--danger, #FF4D5E) !important; box-shadow: 0 3px 0 var(--ink, #07030D) !important;
}
html.gpu-paint #portal-catalog .k-card[data-gpu] .tv-onair .tv-onair__dot { background-color: var(--cream, #FFF1D6) !important; }

/* in the game bar: a key-sized badge before the free middle */
.game-bar > .tv-onair--bar { margin: 14px 0 0 16px; height: 30px; cursor: pointer; }
.game-bar > .tv-onair--bar:focus-visible { outline: 3px solid var(--goo-3, #A6FF6B); outline-offset: 3px; }
html.gpu-paint #game-bar .tv-onair, html.gpu-paint #game-bar .tv-onair * {
  color: var(--text-ink, #0B0614) !important; -webkit-text-fill-color: var(--text-ink, #0B0614) !important;
  border-color: var(--ink, #07030D) !important; opacity: 1 !important; animation-play-state: running !important;
}
html.gpu-paint #game-bar .tv-onair { background-color: var(--danger, #FF4D5E) !important; box-shadow: 0 3px 0 var(--ink, #07030D) !important; }
html.gpu-paint #game-bar .tv-onair .tv-onair__dot { background-color: var(--cream, #FFF1D6) !important; }
@media (max-width: 759.98px) { .game-bar > .tv-onair--bar { margin: 10px 0 0 10px; } }

/* ---- the toolbar's TV key (region:toolbar #tv-link): a plum word key; a red dot while something is on air ---- */
#tv-link { gap: 8px; padding: 0 16px 0 14px; font-family: var(--f-display, 'Gluten', sans-serif); font-weight: 800; font-size: 17px; letter-spacing: .02em; }
#tv-link .tv-link__dot { display: none; }
#tv-link.is-onair .tv-link__dot {
  display: inline-block; box-sizing: border-box; flex: none; width: 11px; height: 11px;
  border: 1.6px solid var(--ink, #07030D); border-radius: 50%; background: var(--danger, #FF4D5E);
  animation: tv-blink 1200ms steps(1, end) infinite;
}
html[data-motion="reduce"] #tv-link .tv-link__dot { animation: none; }
.hop-pad.is-docked #tv-link { padding: 0 13px 0 12px; font-size: 16px; }
@media (max-width: 759.98px) { #tv-link { padding: 0 13px 0 11px; } }
@media (forced-colors: active) { #tv-link.is-onair .tv-link__dot, .tv-onair__dot { forced-color-adjust: none; background: Mark; } }

/* =================================================================================================
   The /tv page, laid out like a video site's watch page: the screen with its name and keys under it and the
   comments below; on the right the chat, then what to watch or play next. Full screen is a key that shows in the
   screen's bottom right corner while the pointer is over it.
   ================================================================================================= */
.tv-body {
  min-width: 320px; min-height: 100vh; min-height: 100dvh; margin: 0; color: var(--text, #E8DDF7);
  font: 400 16px/1.5 var(--f-body, 'Fredoka', system-ui, sans-serif);
  background:
    radial-gradient(ellipse 58% 42% at 20% -6%, var(--glow-core, #2A1450), transparent 72%),
    radial-gradient(ellipse 60% 46% at 86% 104%, var(--glow-mid, #170C2B), transparent 74%),
    url(/art/css/void-stars.webp) 0 0 / 480px 480px repeat,
    var(--void-0, #0C0716);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
html:has(.tv-body) { background: var(--void-0, #0C0716); }
.tv-skip { position: absolute; left: 16px; top: 12px; z-index: 5; }

/* the page is as wide as a 16:9 screen that still fits the window's height, plus the chat */
.tv-top, .tv-main {
  --tv-pad-l: max(28px, calc(env(safe-area-inset-left, 0px) + 16px)); --tv-pad-r: max(28px, calc(env(safe-area-inset-right, 0px) + 16px));
  box-sizing: border-box; margin: 0 auto;
  max-width: clamp(760px, calc((100vh - 178px) * 16 / 9 + 476px), 1760px);
  max-width: clamp(760px, calc((100dvh - 178px) * 16 / 9 + 476px), 1760px);
}
.tv-top {
  display: flex; align-items: center; gap: 16px;
  padding: max(12px, calc(env(safe-area-inset-top, 0px) + 8px)) var(--tv-pad-r) 4px var(--tv-pad-l);
}
.tv-top__home { display: block; flex: none; line-height: 0; border-radius: 12px; }
.tv-top__home img { display: block; width: 124px; height: auto; }
.tv-top__home:focus-visible { outline: 3px solid var(--goo-3, #A6FF6B); outline-offset: 4px; }
.tv-top__title { margin: 0; color: var(--cream, #FFF1D6); font-size: 30px; line-height: 1; }
.tv-top__back { margin-left: auto; }

.tv-main {
  display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-areas: 'stage side' 'comments side'; grid-template-rows: auto 1fr; gap: 20px 24px; align-items: start;
  padding: 8px var(--tv-pad-r) max(48px, calc(env(safe-area-inset-bottom, 0px) + 24px)) var(--tv-pad-l);
}


/* the screen */
.tv-stage { grid-area: stage; min-width: 0; }
.tv-screen {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; width: 100%;
  border: var(--ink-component, 3px) solid var(--ink, #07030D); border-radius: var(--r-window, 18px);
  background: #000; isolation: isolate; box-shadow: 0 6px 0 var(--ink, #07030D), 0 0 0 1.5px var(--rim-line, #2E1D52);
}
.tv-video, .tv-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.tv-poster { z-index: 1; object-fit: cover; filter: saturate(.6) brightness(.55); }
/* a sim stream: the game page plays itself in a frame (its own bar says LIVE and has the sound key) */
.tv-frame { position: absolute; left: 0; top: 0; z-index: 2; width: 100%; height: 100%; border: 0; background: #000; }
/* the hover panel of a game stream is the game's own bar: in TV mode each game fades it in over the picture while
   the pointer is over it (style#tv-hover in the game page). Touch screens have no hover, so there it always shows. */
.tv-screen[data-kind="sim"] .tv-screen__badges { display: none; }
.tv-screen[data-state="playing"] .tv-poster, .tv-screen[data-started] .tv-poster { display: none; }
.tv-screen__badges { position: absolute; z-index: 3; right: 14px; top: 14px; display: flex; gap: 8px; pointer-events: none; }
.tv-screen[data-state="offair"] .tv-screen__badges, .tv-screen[data-state="down"] .tv-screen__badges { display: none; }
.tv-sound { position: absolute; z-index: 3; left: 14px; bottom: 12px; opacity: 0; transition: opacity 140ms linear; }
.tv-screen:hover .tv-sound, .tv-sound:focus-visible { opacity: 1; }
@media (hover: none) { .tv-sound { opacity: .9; } }
.tv-screen:not([data-state="playing"]) .tv-sound { display: none; }
.tv-screen:fullscreen { border: 0; border-radius: 0; }
/* full screen: bottom right, seen while the pointer is over the screen (always on touch screens). A game frame has
   its own bar along the bottom, so the key sits just above it there. */
.tv-screen__full { position: absolute; z-index: 4; right: 12px; bottom: 12px; opacity: 0; transition: opacity 140ms linear; }
.tv-screen[data-kind="sim"] .tv-screen__full { bottom: calc(var(--tv-bar, 0px) + 10px); }
.tv-screen:hover .tv-screen__full, .tv-screen__full:focus-visible, .tv-screen:fullscreen .tv-screen__full { opacity: 1; }
@media (hover: none) { .tv-screen__full { opacity: .9; } }
.tv-screen__full[hidden], .tv-screen:not([data-state="playing"]) .tv-screen__full { display: none; }

.tv-state {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max-content; max-width: min(440px, calc(100% - 32px)); padding: 20px 26px 22px; gap: 8px;
}
.tv-state[hidden] { display: none; }
.tv-state__title { margin: 0; font: 800 24px/1.1 var(--f-display, 'Gluten', sans-serif); color: var(--text-hi, #FFF4E0); }
.tv-state__text { margin: 0; color: var(--text-dim, #A898C8); font-size: 15px; }
.tv-state__retry { margin-top: 6px; }
.tv-state__dots { display: none; gap: 8px; height: 14px; }
.tv-screen[data-state="loading"] .tv-state__dots { display: inline-flex; }
.tv-state__dots i {
  display: block; width: 12px; height: 12px; border: 2px solid var(--ink, #07030D); border-radius: 50%;
  background: var(--goo-5, #4BEA3C); animation: tv-drop 900ms ease-in-out infinite;
}
.tv-state__dots i:nth-child(2) { animation-delay: 150ms; }
.tv-state__dots i:nth-child(3) { animation-delay: 300ms; }
@keyframes tv-drop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .tv-state__dots i { animation: none; } }

/* the bar under the screen: one line */
.tv-info { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 16px 2px 0; }
.tv-info__text { flex: 1 1 auto; min-width: 0; }
.tv-info__title {
  margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-hi, #FFF4E0);
  font: 800 30px/1.2 var(--f-display, 'Gluten', sans-serif);
}
.tv-info__viewers, .tv-info__play, .tv-acts { flex: none; }
.tv-info__viewers[hidden], .tv-info__play[hidden] { display: none; }
.tv-acts { display: flex; align-items: center; gap: 10px; }

/* the right rail: chat, then what is next */
.tv-side { grid-area: side; min-width: 0; }
.tv-chat {
  box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; min-width: 0; height: clamp(360px, 58vh, 640px); margin: 0 0 22px; padding: 12px;
  border: var(--ink-component, 3px) solid var(--ink, #07030D); border-radius: 18px; background: var(--void-2, #1D1133);
  box-shadow: inset 0 0 0 1.5px var(--void-2, #1D1133), inset 0 0 0 3.5px var(--rim-line, #2E1D52), 0 6px 0 var(--ink, #07030D);
}
.tv-chat[hidden] { display: none; }
.tv-chat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 2px; }
.tv-chat__head .tv-side__title { margin: 0; font-size: 18px; }
.tv-chat__here { color: var(--text-dim, #A898C8); font: 600 13px/1 var(--f-body, 'Fredoka', sans-serif); }
.tv-chat__log {
  box-sizing: border-box; flex: 1 1 0; min-height: 0; margin: 0; padding: 10px 12px; overflow-y: auto; overscroll-behavior: contain; list-style: none;
  border: 2.5px solid var(--ink, #07030D); border-radius: 12px; background: var(--pill, #0B0712);
  font-size: 15px; line-height: 1.35; scrollbar-width: thin; scrollbar-color: var(--void-4, #3A2566) transparent;
}
.tv-chat__log:focus-visible { outline: 3px solid var(--goo-3, #A6FF6B); outline-offset: 2px; }
.tv-line { margin: 0 0 6px; overflow-wrap: anywhere; }
.tv-line__name { font-weight: 700; color: hsl(var(--hue, 120) 85% 74%); }
.tv-line__name[data-mod]::after { content: 'MOD'; margin-left: 5px; padding: 1px 5px; border-radius: 6px; background: var(--goo-5, #4BEA3C); color: var(--text-ink, #0B0614); font-size: 10px; letter-spacing: .04em; vertical-align: 1px; }
.tv-line__text { color: var(--text, #E8DDF7); }
.tv-line[data-quick] .tv-line__text { color: var(--cream, #FFF1D6); font-weight: 600; }
.tv-line__mod { margin-left: 6px; padding: 0 6px; border: 1.5px solid var(--rim-line, #2E1D52); border-radius: 8px; background: transparent; color: var(--text-dim, #A898C8); font: 600 11px/18px var(--f-body, 'Fredoka', sans-serif); cursor: pointer; }
.tv-line__mod:hover { color: var(--danger, #FF4D5E); border-color: var(--danger, #FF4D5E); }
/* the ready-made lines: one row that scrolls sideways */
.tv-chat__quick { display: flex; flex: none; gap: 6px; margin: 0 -2px; padding: 0 2px 4px; overflow-x: auto; scrollbar-width: none; }
.tv-chat__quick::-webkit-scrollbar { display: none; }
.tv-quick__key {
  box-sizing: border-box; flex: none; min-height: 32px; padding: 0 11px; border: 2px solid var(--ink, #07030D); border-radius: 999px; cursor: pointer;
  background: var(--void-4, #3A2566); color: var(--text-hi, #FFF4E0); font: 600 13.5px/1 var(--f-body, 'Fredoka', sans-serif); white-space: nowrap;
  box-shadow: 0 2px 0 var(--ink, #07030D); transition: transform 100ms ease-out, background-color 100ms linear;
}
.tv-quick__key:hover { background: var(--void-3, #29194A); transform: translateY(-1px); }
.tv-quick__key:active { transform: translateY(1px); box-shadow: none; }
.tv-quick__key:focus-visible { outline: 3px solid var(--goo-3, #A6FF6B); outline-offset: 2px; }
.tv-chat__form { display: flex; flex: none; gap: 8px; }
.tv-chat__form[hidden] { display: none; }
.tv-chat__input, .tv-share__field {
  box-sizing: border-box; flex: 1 1 auto; min-width: 0; height: 36px; padding: 0 12px;
  border: 2.5px solid var(--ink, #07030D); border-radius: 12px; background: var(--pill, #0B0712); color: var(--text-hi, #FFF4E0);
  font: 400 16px/1 var(--f-body, 'Fredoka', sans-serif);
}
.tv-chat__input::placeholder { color: var(--text-dim, #A898C8); opacity: 1; }
.tv-chat__input:focus-visible, .tv-share__field:focus-visible { outline: 3px solid var(--goo-3, #A6FF6B); outline-offset: 1px; }
.tv-chat__note { flex: none; margin: 0; color: var(--text-dim, #A898C8); font-size: 13.5px; }
.tv-chat__note[hidden] { display: none; }
.tv-chat__note a { color: var(--goo-3, #A6FF6B); font-weight: 600; }

/* up next: a small picture on the left, the name and one line on the right */
.tv-side__title { margin: 0 0 12px; color: var(--text-hi, #FFF4E0); font: 800 20px/1 var(--f-display, 'Gluten', sans-serif); }
.tv-side__title[hidden] { display: none; }
.tv-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tv-list:focus { outline: none; }
.tv-ch { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 12px; align-items: start; padding: 4px; border-radius: 14px; color: var(--text-hi, #FFF4E0); text-decoration: none; transition: background-color 120ms linear; }
.tv-ch:hover { background: var(--void-2, #1D1133); }
.tv-ch:focus-visible { outline: 3px solid var(--goo-3, #A6FF6B); outline-offset: 1px; }
.tv-ch__thumb {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9;
  border: 2.5px solid var(--ink, #07030D); border-radius: 12px;
  background: radial-gradient(circle at 50% 40%, var(--void-4, #3A2566), var(--void-1, #140B24));
}
.tv-ch__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tv-ch__thumb > .tv-onair { position: absolute; left: 5px; bottom: 5px; }
.tv-onair--list { height: 20px; font-size: 11px; padding: 1px 6px 0 5px; gap: 4px; border-radius: 7px; box-shadow: none; }
.tv-onair--list .tv-onair__dot { width: 8px; height: 8px; }
.tv-ch__text { display: grid; gap: 4px; min-width: 0; padding-top: 4px; }
.tv-ch__title { font: 700 16px/1.25 var(--f-body, 'Fredoka', sans-serif); overflow-wrap: anywhere; }
.tv-ch__meta { color: var(--text-dim, #A898C8); font: 500 13.5px/1.3 var(--f-body, 'Fredoka', sans-serif); }

/* comments, under the screen */
.tv-comments { grid-area: comments; min-width: 0; margin-top: 8px; }
.tv-comments[hidden] { display: none; }
.tv-comments__title { margin: 0 0 14px; color: var(--text-hi, #FFF4E0); font: 800 20px/1 var(--f-display, 'Gluten', sans-serif); }
.tv-comments__form { display: flex; gap: 8px; margin: 0 0 8px; }
.tv-comments__form[hidden] { display: none; }
.tv-comments__form .tv-chat__input { height: 40px; }
.tv-comments__list { display: grid; gap: 16px; margin: 16px 0 0; padding: 0; list-style: none; }
.tv-comments__list:empty::before { content: 'No comments yet.'; color: var(--text-dim, #A898C8); font-size: 15px; }
.tv-comment { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.tv-comment__face {
  box-sizing: border-box; display: grid; place-items: center; width: 40px; height: 40px; border: 2.5px solid var(--ink, #07030D); border-radius: 50%;
  background: hsl(var(--hue, 120) 60% 62%); color: var(--text-ink, #0B0614); font: 800 18px/1 var(--f-display, 'Gluten', sans-serif);
}
.tv-comment__head { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: 14.5px; }
.tv-comment__when { color: var(--text-dim, #A898C8); font-size: 13px; }
.tv-comment__text { margin: 2px 0 0; color: var(--text, #E8DDF7); font-size: 15.5px; line-height: 1.4; overflow-wrap: anywhere; }

.tv-side__empty {
  margin: 0; padding: 16px 18px; border: 2.5px solid var(--ink, #07030D); border-radius: 18px;
  background: var(--pill, #0B0712); color: var(--text-dim, #A898C8); font-size: 15px;
}
.tv-side__empty[hidden] { display: none; }

/* the share dialog */
.tv-share {
  box-sizing: border-box; width: min(520px, calc(100vw - 32px)); padding: 22px 22px 20px; color: var(--text, #E8DDF7);
  border: var(--ink-component, 3px) solid var(--ink, #07030D); border-radius: 22px; background: var(--void-2, #1D1133);
  box-shadow: inset 0 0 0 1.5px var(--void-2, #1D1133), inset 0 0 0 3.5px var(--rim-line, #2E1D52), 0 8px 0 var(--ink, #07030D);
}
.tv-share::backdrop { background: rgba(7, 3, 13, .72); }
.tv-share__title { margin: 0 0 14px; color: var(--text-hi, #FFF4E0); font: 800 22px/1.15 var(--f-display, 'Gluten', sans-serif); overflow-wrap: anywhere; }
.tv-share__label { display: block; margin: 14px 0 6px; color: var(--text-dim, #A898C8); font: 600 14px/1.2 var(--f-body, 'Fredoka', sans-serif); }
.tv-share__row { display: flex; gap: 8px; align-items: center; }
.tv-share__native { margin-top: 12px; }
.tv-share__native[hidden] { display: none; }
.tv-share__close { display: flex; margin: 20px 0 0 auto; }

/* ?embed=1: only the screen, edge to edge, with a slim bar that leads back to adventure.io */
.tv-embed-bar { display: none; }
.tv-embed { min-width: 0; background: #000; }
.tv-embed .tv-top, .tv-embed .tv-side, .tv-embed .tv-comments, .tv-embed .tv-screen__full, .tv-embed .tv-skip, .tv-embed .tv-acts, .tv-embed .tv-info__text, .tv-embed .tv-info__viewers { display: none; }
.tv-embed .tv-main { display: block; max-width: none; padding: 0; }
.tv-embed .tv-screen { aspect-ratio: auto; height: calc(100vh - 52px); height: calc(100dvh - 52px); border: 0; border-radius: 0; box-shadow: none; }
.tv-embed .tv-info { height: 52px; min-height: 0; box-sizing: border-box; padding: 6px 10px; justify-content: flex-end; background: var(--void-0, #0C0716); }
.tv-embed .tv-info__play { --k-h: 40px; width: auto; }
.tv-embed .tv-embed-bar:not([hidden]) {
  position: absolute; z-index: 5; left: 10px; top: 10px; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 20px);
}
.tv-embed-bar__title {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 5px 10px; border: 2px solid var(--ink, #07030D); border-radius: 10px;
  background: var(--pill, #0B0712); color: var(--text-hi, #FFF4E0); font: 700 14px/1.2 var(--f-body, 'Fredoka', sans-serif);
}

/* narrow: the chat goes under the screen */
@media (max-width: 1099.98px) {
  .tv-top, .tv-main { max-width: 860px; }
  .tv-main { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'stage' 'side' 'comments'; grid-template-rows: auto; }
  .tv-chat { height: 320px; }
}
@media (max-width: 759.98px) {
  .tv-top, .tv-main { --tv-pad-l: max(12px, env(safe-area-inset-left, 0px)); --tv-pad-r: max(12px, env(safe-area-inset-right, 0px)); }
  .tv-top { gap: 10px; }
  .tv-top__home img { width: 104px; }
  .tv-top__title { font-size: 24px; }
  .tv-top__back > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tv-top__back { --k-h: 44px; width: 44px; padding: 0; }
  .tv-main { gap: 16px; padding-top: 4px; }
  .tv-screen { border-radius: 14px; }
  .tv-info { flex-wrap: wrap; gap: 10px; padding-top: 12px; }
  .tv-info__text { flex-basis: 50%; }
  .tv-info__title { font-size: 24px; }
  .tv-info__play { order: 5; width: 100%; }
  .tv-chat { height: 260px; }
  .tv-ch { grid-template-columns: 136px minmax(0, 1fr); }
  .tv-state { padding: 14px 18px 16px; }
  .tv-state__title { font-size: 20px; }
}
/* phones: the sound and share keys are icon-only (their names stay for screen readers) */
@media (max-width: 499.98px) {
  .tv-screen__badges { right: 8px; top: 8px; }
  .tv-sound { left: 8px; bottom: 8px; --k-h: 36px; width: 36px; padding: 0; justify-content: center; }
  .tv-sound > span, .tv-acts__share > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tv-acts__share { width: 44px; padding: 0; justify-content: center; }
  .tv-info__viewers { order: 4; }
}
@media (forced-colors: active) {
  .tv-onair, .tv-ch__thumb, .tv-screen, .tv-chat, .tv-chat__log, .tv-share, .tv-comment__face { border-color: CanvasText; }
}

/* under the video: the game's latest updates (a row of small cards) and a link to its public page */
.tv-updates { margin-top: 18px; min-width: 0; }
.tv-updates[hidden] { display: none; }
.tv-updates__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tv-updates__page { font-weight: 800; color: var(--goo, #8CFF4A); text-decoration: none; white-space: nowrap; }
.tv-updates__page:hover, .tv-updates__page:focus-visible { text-decoration: underline; }
.tv-updates__list { list-style: none; margin: 10px 0 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; }
.tv-update { scroll-snap-align: start; min-width: 0; }
.tv-update a { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: center; height: 100%; box-sizing: border-box; padding: 8px; border-radius: 12px; background: var(--void-2, #1E1236); color: inherit; text-decoration: none; }
.tv-update a:hover, .tv-update a:focus-visible { background: var(--void-3, #29194A); }
.tv-update img { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; background: #000; }
.tv-update__noimg { width: 72px; height: 48px; border-radius: 8px; background: var(--void-3, #29194A); }
.tv-update b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-update span { display: block; font-size: 12.5px; opacity: .7; }
