/* fomomrjb — broadcast guide */

:root {
  --ink: #11100e;
  --ink-2: #191815;
  --ink-3: #221f1b;
  --line: #2f2c27;
  --line-2: #3d3931;
  --paper: #f1ebdd;
  --paper-2: #e4dccb;
  --dim: #aaa293;
  --mute: #6f695f;
  --hot: #ff5b1f;
  --hot-2: #ff7a47;
  --on-hot: #170802;
  --go: #5cf07a;
  --idle: #ffc23d;
  --dnd: #ff4d5e;
  --off: #6f695f;

  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --r: 4px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: var(--line-2) var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 1rem/1.55 var(--body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 96px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--hot); text-underline-offset: 3px; }
a:hover { color: var(--hot-2); }
::selection { background: var(--hot); color: var(--on-hot); }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 2px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--hot); color: var(--on-hot); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.kicker {
  font: 600 .72rem/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hot);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.kicker a { text-decoration: none; }
.muted { color: var(--dim); }
.small { font-size: .85rem; }
.tag {
  display: inline-block;
  font: 600 .64rem/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 6px 3px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--dim);
  vertical-align: middle;
}
.tag-hot, .tag-open { color: var(--hot); border-color: color-mix(in srgb, var(--hot) 50%, transparent); }
.tag-answered { color: var(--go); border-color: color-mix(in srgb, var(--go) 40%, transparent); }
.tag-closed { color: var(--mute); }

.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); display: inline-block; animation: blink 1.6s steps(1) infinite; flex: none; }
@keyframes blink { 50% { opacity: .15; } }

/* ---- ticker -------------------------------------------------------------- */

.ticker { display: flex; align-items: stretch; background: var(--hot); color: var(--on-hot); font: 500 .85rem/1 var(--body); height: 34px; overflow: hidden; }
.ticker-label {
  flex: none; display: flex; align-items: center; padding: 0 14px;
  background: var(--on-hot); color: var(--hot); text-decoration: none;
  font: 700 .7rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
}
.ticker-label:hover { color: var(--paper); }
.ticker-track { flex: 1; overflow: hidden; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker-run { display: flex; white-space: nowrap; animation: crawl 38s linear infinite; }
.ticker-item { padding-right: 80px; }
.ticker-item b { font-weight: 700; }
.ticker-close { flex: none; width: 38px; background: none; border: 0; border-left: 1px solid rgba(0,0,0,.2); font-size: 1.2rem; cursor: pointer; color: var(--on-hot); }
@keyframes crawl { to { transform: translateX(-33.333%); } }

/* ---- masthead ------------------------------------------------------------ */

.masthead {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter);
  height: 64px;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); }
.brand-word { font: 900 1.45rem/1 var(--display); font-stretch: 70%; letter-spacing: -.01em; text-transform: uppercase; }
.brand:hover { color: var(--paper); }
.brand:hover .brand-word { color: var(--hot); }

.channels { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ch {
  position: relative;
  display: flex; align-items: baseline; gap: 6px;
  padding: 22px 10px 20px;
  text-decoration: none;
  font: 500 .92rem/1 var(--body);
  color: var(--dim);
  white-space: nowrap;
}
.ch-n { font: 600 .64rem/1 var(--mono); color: var(--mute); }
.ch:hover { color: var(--paper); }
.ch[aria-current] { color: var(--paper); }
.ch[aria-current] .ch-n { color: var(--hot); }
.ch[aria-current]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--hot); }

.masthead-end { display: flex; align-items: center; gap: 14px; flex: none; }
.presence { display: flex; align-items: center; gap: 7px; text-decoration: none; font: 500 .72rem/1 var(--mono); color: var(--dim); text-transform: lowercase; }
.presence i { width: 8px; height: 8px; border-radius: 50%; background: var(--off); }
.presence[data-s="online"] i { background: var(--go); box-shadow: 0 0 0 3px color-mix(in srgb, var(--go) 20%, transparent); }
.presence[data-s="idle"] i { background: var(--idle); }
.presence[data-s="dnd"] i { background: var(--dnd); }
.acct { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: .9rem; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--r); }
.acct:hover { border-color: var(--hot); color: var(--paper); }
.acct-in { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.acct-in:hover { background: var(--hot); border-color: var(--hot); color: var(--on-hot); }

/* ---- buttons & forms ----------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px 12px;
  border: 1px solid transparent; border-radius: var(--r);
  font: 700 .84rem/1 var(--display); font-stretch: 110%; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-hot { background: var(--hot); color: var(--on-hot); }
.btn-hot:hover { background: var(--paper); color: var(--ink); }
.btn-line { border-color: var(--line-2); color: var(--paper); background: transparent; }
.btn-line:hover { border-color: var(--paper); color: var(--paper); }
.btn-danger { border-color: color-mix(in srgb, var(--dnd) 50%, transparent); color: var(--dnd); background: transparent; }
.btn-danger:hover { background: var(--dnd); color: var(--ink); }
.btn-sm { padding: 8px 11px 7px; font-size: .72rem; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-text { background: none; border: 0; color: var(--dim); text-decoration: underline; text-decoration-color: var(--line-2); cursor: pointer; padding: 10px 0; font-size: .9rem; }
.btn-text:hover { color: var(--paper); }

.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; font: 600 .74rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.form label small { text-transform: none; letter-spacing: 0; font: 400 .8rem var(--body); color: var(--mute); }
input, textarea, select {
  width: 100%;
  font: 400 1rem/1.4 var(--body);
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 12px 13px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(-45deg, transparent 50%, var(--dim) 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--hot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hot) 22%, transparent); }
.code-input { font: 600 1.6rem/1 var(--mono); letter-spacing: .5em; text-align: center; padding: 14px 0 14px .5em; }
.form-end { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-msg { margin: 0; font-size: .9rem; color: var(--dim); min-height: 1.2em; }
.form-msg.bad { color: var(--dnd); }
.form-msg.good { color: var(--go); }

.switch { display: flex !important; align-items: center; gap: 12px; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; font: 500 .95rem var(--body) !important; color: var(--paper) !important; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 40px; height: 22px; border-radius: 22px; background: var(--line-2); position: relative; flex: none; transition: background .15s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); transition: transform .15s; }
.switch input:checked + span { background: var(--hot); }
.switch input:checked + span::after { transform: translateX(18px); background: var(--on-hot); }
.switch input:focus-visible + span { outline: 2px solid var(--hot); outline-offset: 2px; }

/* ---- page heads & sections ---------------------------------------------- */

.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.page-head-tight { padding-bottom: 24px; }
.page-head h1, .h-md {
  font: 900 clamp(3.4rem, 11vw, 8.5rem)/.84 var(--display);
  font-stretch: 62%;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin: 0 0 18px;
}
.h-md { font-size: clamp(2.4rem, 6vw, 4.5rem) !important; text-transform: none !important; line-height: .95 !important; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--dim); max-width: 58ch; margin: 0; }

.sec { padding-top: clamp(40px, 6vw, 72px); }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sec-head h2 { font: 800 clamp(1.6rem, 3vw, 2.3rem)/1 var(--display); font-stretch: 75%; text-transform: uppercase; margin: 0; letter-spacing: .005em; }
.sec-n { font: 600 .68rem/1 var(--mono); color: var(--hot); letter-spacing: .1em; }
.sec-more, .sec-hint { margin-left: auto; font: 500 .8rem/1 var(--mono); color: var(--dim); text-decoration: none; }
.sec-more:hover { color: var(--hot); }
.empty { color: var(--mute); font-style: italic; padding: 24px 0; margin: 0; }

.prose { max-width: 68ch; font-size: 1.08rem; line-height: 1.7; }
.prose p { margin: 0 0 1em; }
.prose h2, .prose h3 { font-family: var(--display); font-stretch: 80%; text-transform: uppercase; line-height: 1; margin: 1.4em 0 .5em; }
.prose blockquote { margin: 1em 0; padding-left: 16px; border-left: 2px solid var(--hot); color: var(--dim); }

/* ---- hero ---------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 56px);
}
.hero-name {
  margin: 0 0 20px;
  font: 900 clamp(5.2rem, 17vw, 14.5rem)/.8 var(--display);
  font-stretch: 62%;
  text-transform: uppercase;
  letter-spacing: -.015em;
}
.hero-name span { display: block; }
.hero-name span + span { color: var(--hot); padding-left: .42em; }
.hero-tag { font-size: clamp(1.1rem, 1.8vw, 1.35rem); max-width: 36ch; color: var(--paper-2); margin: 0 0 28px; line-height: 1.45; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.board {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px),
    var(--ink-2);
  padding: 20px 22px 18px;
}
.board-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.board-label { font: 600 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.live-pill { display: inline-flex; align-items: center; gap: 7px; font: 700 .66rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--hot); border: 1px solid color-mix(in srgb, var(--hot) 45%, transparent); padding: 5px 8px 4px; border-radius: 2px; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--hot); animation: blink 1.6s steps(1) infinite; }
.board-num { font: 900 clamp(5rem, 11vw, 8.5rem)/1 var(--display); font-stretch: 62%; letter-spacing: -.01em; margin: 6px 0 16px; font-variant-numeric: tabular-nums; }

.odo { display: inline-flex; }
.odo-d { display: inline-block; height: 1em; overflow: hidden; }
.odo-strip { display: flex; flex-direction: column; transform: translateY(calc(var(--d) * -1em)); transition: transform 1.1s cubic-bezier(.2, .9, .15, 1); }
.odo-strip span { height: 1em; line-height: 1; text-align: center; }

.goal-bar { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.goal-bar i { display: block; height: 100%; background: var(--hot); border-radius: 6px; transition: width 1s ease; }
.goal-text { display: flex; justify-content: space-between; margin-top: 9px; font: 500 .78rem/1 var(--mono); color: var(--dim); }
.goal-text b { color: var(--paper); }
.board-foot { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--line-2); font: 400 .7rem/1 var(--mono); color: var(--mute); }
.board-foot b { color: var(--dim); font-weight: 600; }

.presence-strip {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none;
  background: var(--ink-2);
  font-size: .95rem;
}
.presence-strip:hover { border-color: var(--line-2); color: var(--paper); }
.ps-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--off); flex: none; }
.presence-strip[data-s="online"] .ps-dot { background: var(--go); box-shadow: 0 0 0 4px color-mix(in srgb, var(--go) 18%, transparent); }
.presence-strip[data-s="idle"] .ps-dot { background: var(--idle); }
.presence-strip[data-s="dnd"] .ps-dot { background: var(--dnd); }
.ps-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-go { font: 500 .75rem/1 var(--mono); color: var(--dim); }

/* ---- video cards --------------------------------------------------------- */

.vcard, .scard, .chart-row { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; }
.vcard { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.vcard-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--ink-3); }
.vcard-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1), filter .3s; }
.vcard-play { position: absolute; left: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; background: var(--hot); opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s; }
.vcard-play::after { content: ''; position: absolute; left: 15px; top: 12px; border-left: 11px solid var(--on-hot); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.vcard:hover .vcard-thumb img, .vcard:focus-visible .vcard-thumb img { transform: scale(1.035); filter: brightness(.85); }
.vcard:hover .vcard-play, .vcard:focus-visible .vcard-play { opacity: 1; transform: none; }
.vcard-title { font-weight: 600; font-size: 1rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard:hover .vcard-title { color: var(--hot-2); }
.vcard-meta { font: 400 .75rem/1 var(--mono); color: var(--mute); }
.vcard-big .vcard-title { font: 800 clamp(1.5rem, 2.6vw, 2.2rem)/1.02 var(--display); font-stretch: 78%; text-transform: uppercase; }
.vcard-big .vcard-play { width: 60px; height: 60px; left: 18px; bottom: 18px; }
.vcard-big .vcard-play::after { left: 24px; top: 19px; border-left-width: 16px; border-top-width: 11px; border-bottom-width: 11px; }

.latest { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; }
.latest-rest { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; align-content: start; }
.latest-rest .vcard-title { font-size: .92rem; }
.grid-v { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 20px; }

.shorts-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 190px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.grid-s { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.scard { position: relative; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: var(--ink-3); scroll-snap-align: start; }
.scard img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.scard:hover img { transform: scale(1.05); }
.scard-cap { position: absolute; inset: auto 0 0 0; padding: 40px 12px 12px; background: linear-gradient(transparent, rgba(8, 7, 6, .92)); display: grid; gap: 6px; }
.scard-title { font-weight: 600; font-size: .86rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scard-views { font: 600 .68rem/1 var(--mono); color: var(--hot); }
.scard-views::after { content: ' views'; color: var(--dim); font-weight: 400; }

.charts { list-style: none; margin: 0; padding: 0; }
.charts li + li { border-top: 1px solid var(--line); }
.chart-row { display: grid; grid-template-columns: 54px 112px minmax(0, 1fr) auto; align-items: center; gap: 16px; width: 100%; padding: 12px 0; }
.chart-n { font: 900 2.2rem/1 var(--display); font-stretch: 62%; color: var(--mute); }
.charts li:first-child .chart-n { color: var(--hot); }
.chart-row img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; }
.chart-body { display: grid; gap: 9px; min-width: 0; }
.chart-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-row:hover .chart-title { color: var(--hot-2); }
.chart-bar { height: 3px; background: var(--line); border-radius: 3px; }
.chart-bar i { display: block; height: 100%; background: var(--paper-2); border-radius: 3px; }
.charts li:first-child .chart-bar i { background: var(--hot); }
.chart-views { font: 600 .95rem/1 var(--mono); text-align: right; display: grid; gap: 4px; }
.chart-views small { font-size: .62rem; color: var(--mute); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }

.sec-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.side-note { border: 1px solid var(--line); border-radius: var(--r); padding: 26px; margin-top: 56px; background: var(--ink-2); }
.side-title { font: 800 2rem/1 var(--display); font-stretch: 70%; text-transform: uppercase; margin: 0 0 12px; }
.side-note p { color: var(--dim); margin: 0 0 20px; }

/* ---- player -------------------------------------------------------------- */

.player { width: min(1100px, 94vw); padding: 0; border: 1px solid var(--line-2); border-radius: 6px; background: #000; color: var(--paper); overflow: hidden; }
.player.is-short { width: min(420px, 92vw); }
.player::backdrop { background: rgba(6, 5, 4, .86); backdrop-filter: blur(4px); }
.player-bar { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; background: var(--ink-2); border-bottom: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.player-bar span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar button { width: 34px; height: 34px; background: none; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; font-size: 1.2rem; line-height: 1; }
.player-bar button:hover { border-color: var(--hot); color: var(--hot); }
.player-frame { aspect-ratio: 16 / 9; }
.player.is-short .player-frame { aspect-ratio: 9 / 16; max-height: 80vh; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- about --------------------------------------------------------------- */

.about { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); padding-top: clamp(40px, 7vw, 88px); align-items: start; }
.about-card { position: sticky; top: 96px; }
.about-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); filter: grayscale(.15) contrast(1.05); }
.facts { margin: 20px 0 0; display: grid; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { font: 600 .66rem/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.facts dd { margin: 0; font-weight: 500; }
.about-title { font: 900 clamp(3rem, 8vw, 6.4rem)/.86 var(--display); font-stretch: 62%; text-transform: uppercase; margin: 0 0 32px; }
.about-body p:first-child { font-size: 1.3rem; line-height: 1.5; color: var(--paper); }
.about-body { color: var(--paper-2); }

/* ---- blocks (admin-added content) --------------------------------------- */

.blocks { display: grid; gap: 28px; }
.blocks:empty { display: none; }
.block-image { margin: 0; }
.block-image img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--r); background: var(--ink-2); }
.block-image figcaption { font: 400 .8rem/1.4 var(--mono); color: var(--mute); margin-top: 10px; }
.block-image figcaption:empty { display: none; }

/* ---- TV ------------------------------------------------------------------ */

.tv { border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; background: #000; margin-top: 8px; }
.tv-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--ink-2); border-bottom: 1px solid var(--line); font: 500 .74rem/1 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.tv-bar a { margin-left: auto; text-decoration: none; text-transform: none; letter-spacing: 0; }
.tv-screen { position: relative; height: min(82vh, 860px); min-height: 460px; }
.tv-screen iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.tv-off { display: grid; place-items: center; }
.tv-static {
  position: absolute; inset: 0; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: static .35s steps(4) infinite;
}
@keyframes static { 25% { background-position: 40px -60px; } 50% { background-position: -80px 30px; } 75% { background-position: 60px 90px; } }
.tv-off-msg { position: relative; text-align: center; max-width: 440px; padding: 24px; color: var(--dim); }
.tv-off-big { font: 900 clamp(3rem, 9vw, 5.5rem)/.9 var(--display); font-stretch: 62%; text-transform: uppercase; color: var(--paper); margin: 0 0 16px; }
.tv-off-fine { font: 400 .72rem/1.4 var(--mono); color: var(--mute); margin-top: 20px; }
body.wide main { max-width: 1600px; }

/* ---- status -------------------------------------------------------------- */

.status { padding-top: 32px; }
.status-card { border: 1px solid var(--line-2); border-radius: 6px; background: var(--ink-2); padding: clamp(22px, 4vw, 40px); display: grid; gap: 28px; --s: var(--off); }
.status-card[data-state="online"] { --s: var(--go); }
.status-card[data-state="idle"] { --s: var(--idle); }
.status-card[data-state="dnd"] { --s: var(--dnd); }
.status-who { display: flex; align-items: center; gap: clamp(18px, 3vw, 32px); }
.status-who img { width: clamp(72px, 10vw, 112px); height: auto; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 4px var(--ink-2), 0 0 0 7px var(--s); flex: none; }
.status-word { font: 900 clamp(3rem, 10vw, 7.5rem)/.85 var(--display); font-stretch: 62%; text-transform: uppercase; color: var(--s); margin: 0 0 8px; }
.status-card[data-state="loading"] .status-word, .status-card[data-state="unset"] .status-word { color: var(--mute); }
.status-name { margin: 0; font-weight: 600; font-size: 1.1rem; }
.status-custom { margin: 6px 0 0; color: var(--dim); }
.status-custom:empty { display: none; }
.status-acts { display: grid; gap: 12px; }
.status-acts:empty { display: none; }
.act { display: flex; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink); }
.act img { width: 64px; height: 64px; border-radius: 3px; flex: none; }
.act-kind { font: 600 .64rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hot); margin: 0 0 6px; }
.act-name { font-weight: 700; margin: 0; }
.act-sub { color: var(--dim); margin: 2px 0 0; font-size: .92rem; }
.act-time { margin-left: auto; font: 500 .8rem/1 var(--mono); color: var(--dim); flex: none; }
.status-foot { display: flex; justify-content: space-between; gap: 12px; margin: 0; font: 400 .72rem/1 var(--mono); color: var(--mute); flex-wrap: wrap; }
.status-help { color: var(--dim); max-width: 60ch; }
.status-help code { font-family: var(--mono); background: var(--ink); padding: 2px 5px; border-radius: 3px; }

/* ---- news ---------------------------------------------------------------- */

.news-item { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.news-item:target { background: linear-gradient(90deg, color-mix(in srgb, var(--hot) 8%, transparent), transparent); }
.news-item time { font: 500 .78rem/1.8 var(--mono); color: var(--mute); }
.news-item h2 { font: 800 clamp(1.4rem, 2.6vw, 2rem)/1.05 var(--display); font-stretch: 80%; margin: 0 0 10px; }
.news-body { color: var(--paper-2); max-width: 68ch; }

/* ---- fanmail ------------------------------------------------------------- */

.mail { display: grid; justify-items: center; }
.letter {
  width: 100%; max-width: 680px;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(24px, 5vw, 44px);
  border-radius: 3px;
  box-shadow: 0 1px 0 var(--paper-2), 0 22px 60px -30px rgba(0, 0, 0, .8);
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(17, 16, 14, .07) 31px 32px);
}
.letter label { color: #58524a; }
.letter label small { color: #7b7468; }
.letter input, .letter textarea { background: transparent; color: var(--ink); border: 0; border-bottom: 1.5px solid #c9c0ae; border-radius: 0; padding: 8px 0; }
.letter textarea { border: 1.5px solid #c9c0ae; border-radius: 2px; padding: 12px; line-height: 32px; }
.letter input:focus, .letter textarea:focus { border-color: var(--hot); box-shadow: none; }
.letter .form-msg { color: #58524a; }
.letter .form-msg.good { color: #177a2d; }
.letter .form-msg.bad { color: #b3261e; }
.letter-head { display: flex; justify-content: space-between; align-items: flex-start; font: 600 .8rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #58524a; margin-bottom: 6px; }
.stamp { border: 2px solid var(--hot); color: var(--hot); padding: 8px 10px; font: 900 .9rem/1 var(--display); font-stretch: 62%; letter-spacing: .1em; text-align: center; transform: rotate(4deg); outline: 2px dashed color-mix(in srgb, var(--hot) 40%, transparent); outline-offset: 3px; }

.wall { columns: 3 260px; column-gap: 22px; }
.note { break-inside: avoid; margin: 0 0 22px; padding: 22px 22px 18px; background: var(--paper-2); color: var(--ink); border-radius: 2px; transform: rotate(var(--tilt)); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .9); font-size: 1.02rem; }
.note p { margin: 0 0 14px; }
.note footer { font: 600 .74rem/1 var(--mono); color: #6b6458; }

/* ---- support ------------------------------------------------------------- */

.support { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.support-side { border-left: 1px solid var(--line); padding-left: 28px; }
.support-side h3 { font: 800 1.4rem/1 var(--display); font-stretch: 75%; text-transform: uppercase; margin: 0 0 16px; }
.tickets { list-style: none; padding: 0; margin: 0; }
.tickets a { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }

.thread { display: grid; gap: 14px; max-width: 760px; }
.msg { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; background: var(--ink-2); }
.msg-admin { border-color: color-mix(in srgb, var(--hot) 40%, transparent); background: color-mix(in srgb, var(--hot) 5%, var(--ink-2)); }
.msg-who { font: 500 .72rem/1 var(--mono); color: var(--mute); margin-bottom: 10px; }
.msg-admin .msg-who { color: var(--hot); }

/* ---- auth ---------------------------------------------------------------- */

.auth { display: grid; place-items: center; padding: clamp(48px, 10vw, 120px) 0; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font: 900 clamp(3rem, 9vw, 4.6rem)/.88 var(--display); font-stretch: 62%; text-transform: uppercase; margin: 0 0 28px; }
.auth-card [data-step] { display: grid; gap: 16px; }
.auth-2fa { margin: 0; color: var(--dim); }
.auth-alt { color: var(--dim); margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---- panels / settings / admin ------------------------------------------ */

.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 6px; padding: 24px; background: var(--ink-2); display: grid; gap: 14px; align-content: start; }
.panel h3 { font: 800 1.35rem/1 var(--display); font-stretch: 75%; text-transform: uppercase; margin: 0; }
.panel .muted { margin: 0; }

.admin { padding-top: 16px; }
.admin-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 28px; scrollbar-width: none; }
.admin-tabs button { background: none; border: 0; padding: 14px 14px 12px; cursor: pointer; color: var(--dim); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.admin-tabs button:hover { color: var(--paper); }
.admin-tabs button[aria-selected="true"] { color: var(--paper); border-bottom-color: var(--hot); }
.count { font: 700 .66rem/1 var(--mono); background: var(--hot); color: var(--on-hot); border-radius: 10px; padding: 3px 6px 2px; }
.count:empty { display: none; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 24px; }
.stat { background: var(--ink-2); padding: 20px; }
.stat b { display: block; font: 900 3rem/1 var(--display); font-stretch: 62%; }
.stat span { font: 500 .7rem/1 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.warn { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line-2); border-left: 3px solid var(--idle); border-radius: var(--r); margin-bottom: 10px; background: var(--ink-2); }
.warn-hot { border-left-color: var(--hot); }
.warn p { margin: 0; flex: 1; }
.tip { color: var(--dim); font-size: .92rem; max-width: 70ch; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font: 600 .66rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 14px 14px 12px; border-bottom: 1px solid var(--line); background: var(--ink-2); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td .row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--go); margin-right: 6px; }
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input { max-width: 280px; }
.filters { display: flex; gap: 4px; }
.filters button { background: none; border: 1px solid var(--line-2); border-radius: 20px; padding: 6px 12px; cursor: pointer; font-size: .82rem; color: var(--dim); }
.filters button[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.cards { display: grid; gap: 12px; }
.card { border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; background: var(--ink-2); }
.card-new { border-left: 3px solid var(--hot); }
.card-head { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; margin-bottom: 8px; }
.card-head b { font-size: 1.02rem; }
.card-meta { font: 400 .72rem/1 var(--mono); color: var(--mute); }
.card p { margin: 0 0 14px; white-space: pre-wrap; color: var(--paper-2); }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- edit mode ----------------------------------------------------------- */

.dock {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px 8px 14px;
  background: var(--paper); color: var(--ink);
  border-radius: 40px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7);
  font: 600 .82rem/1 var(--body);
}
.dock .switch { color: var(--ink) !important; font-size: .82rem !important; gap: 8px; }
.dock .switch span { background: #cfc6b3; }
.dock-hint { font: 400 .72rem/1.2 var(--mono); color: #6b6458; max-width: 240px; }
.dock-state { font: 500 .7rem/1 var(--mono); color: #6b6458; min-width: 48px; }

body.editing [data-edit], body.editing [data-block-body], body.editing [data-block-caption] {
  outline: 1px dashed color-mix(in srgb, var(--hot) 70%, transparent);
  outline-offset: 5px;
  border-radius: 2px;
  cursor: text;
  min-height: 1em;
}
body.editing [data-edit]:hover, body.editing [data-block-body]:hover { outline-style: solid; }
body.editing [data-edit]:focus, body.editing [data-block-body]:focus, body.editing [data-block-caption]:focus { outline: 2px solid var(--hot); background: color-mix(in srgb, var(--hot) 5%, transparent); }
body.editing [data-block-caption]:empty::before { content: 'Add a caption…'; color: var(--mute); }
body.editing .blocks { display: grid; min-height: 20px; }
body.editing .block { position: relative; padding-top: 34px; }
.block-tools { position: absolute; top: 0; right: 0; display: flex; gap: 4px; }
.block-tools button, .add-bar button { background: var(--ink-3); border: 1px solid var(--line-2); border-radius: var(--r); padding: 5px 9px; font: 500 .72rem/1 var(--mono); cursor: pointer; color: var(--dim); }
.block-tools button:hover, .add-bar button:hover { color: var(--paper); border-color: var(--hot); }
.add-bar { display: flex; gap: 8px; padding: 12px; border: 1px dashed var(--line-2); border-radius: var(--r); justify-content: center; }
.add-bar button { padding: 9px 14px; font-size: .78rem; }
.format-bar { position: absolute; z-index: 70; display: flex; gap: 2px; padding: 4px; background: var(--paper); border-radius: var(--r); box-shadow: 0 10px 30px -10px rgba(0,0,0,.7); }
.format-bar button { background: none; border: 0; color: var(--ink); width: 30px; height: 28px; border-radius: 3px; cursor: pointer; font: 700 .85rem/1 var(--body); }
.format-bar button:hover { background: #d9d1bf; }
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 80; background: var(--ink-3); border: 1px solid var(--line-2); padding: 12px 16px; border-radius: var(--r); font-size: .9rem; animation: rise .2s ease; }
.toast.bad { border-color: var(--dnd); }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

/* ---- footer -------------------------------------------------------------- */

.foot { border-top: 1px solid var(--line); background: var(--ink-2); }
.foot-inner { max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 40px; display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: end; }
.foot-word { font: 900 clamp(3.4rem, 9vw, 6rem)/.8 var(--display); font-stretch: 62%; text-transform: uppercase; color: var(--line-2); display: block; }
.foot-line { margin: 12px 0 0; color: var(--dim); }
.foot-links { display: flex; gap: 8px 22px; flex-wrap: wrap; justify-content: flex-end; }
.foot-links a { text-decoration: none; color: var(--dim); font-size: .92rem; }
.foot-links a:hover { color: var(--hot); }
.foot-fine { grid-column: 1 / -1; margin: 0; font: 400 .7rem/1 var(--mono); color: var(--mute); }

.nf { text-align: left; }

/* ---- responsive ---------------------------------------------------------- */

@media (max-width: 1240px) {
  .masthead { flex-wrap: wrap; height: auto; padding-top: 12px; gap: 0 16px; }
  .brand { order: 1; }
  .masthead-end { order: 2; margin-left: auto; }
  .channels { order: 3; flex-basis: 100%; margin: 4px calc(var(--gutter) * -1) 0; padding: 0 calc(var(--gutter) - 10px); }
  .ch { padding: 14px 10px; }
}

@media (max-width: 900px) {
  .hero, .latest, .sec-split, .support, .about { grid-template-columns: 1fr; }
  .hero { align-items: start; }
  .about-card { position: static; max-width: 340px; }
  .side-note { margin-top: 0; }
  .support-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .foot-inner { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .presence span { display: none; }
  .latest-rest { grid-template-columns: 1fr; }
  .chart-row { grid-template-columns: 36px 84px minmax(0, 1fr); gap: 12px; }
  .chart-row img { width: 84px; }
  .chart-views { display: none; }
  .chart-n { font-size: 1.6rem; }
  .act { flex-wrap: wrap; }
  .act-time { margin-left: 0; }
  .dock-hint { display: none; }
  .tv-screen { height: 75vh; min-height: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; }
  .ticker-run { animation: none; }
}
td:first-child { white-space: nowrap; }

/* ---- presence text in header ---- */
.presence span { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- now playing ---- */
.now-playing { display: flex; gap: clamp(16px, 3vw, 28px); align-items: center; padding: clamp(16px, 3vw, 24px); border: 1px solid color-mix(in srgb, var(--s) 45%, var(--line)); border-radius: 6px; background: linear-gradient(100deg, color-mix(in srgb, var(--s) 9%, var(--ink)), var(--ink) 60%); }
.np-art, .act-art { position: relative; flex: none; display: grid; place-items: center; overflow: visible; }
.np-art { width: clamp(84px, 14vw, 132px); aspect-ratio: 1; }
.np-art > img:first-child, .act-art > img:first-child { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.act-art { width: 64px; height: 64px; }
.art-small { position: absolute; right: -6px; bottom: -6px; width: 34%; height: 34%; border-radius: 50%; border: 3px solid var(--ink); background: var(--ink); }
.art-none { background: var(--ink-3); border-radius: 8px; font: 900 2.4rem/1 var(--display); font-stretch: 62%; color: var(--dim); }
.np-kind { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 700 .68rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--s); }
.np-kind .rec { background: var(--s); }
.np-name { margin: 0 0 6px; font: 900 clamp(2rem, 6vw, 3.6rem)/.9 var(--display); font-stretch: 70%; text-transform: uppercase; }
.np-sub { margin: 2px 0 0; color: var(--paper-2); }
.np-time { margin: 10px 0 0; font: 500 .82rem/1 var(--mono); color: var(--dim); }
.np-time span { color: var(--paper); font-variant-numeric: tabular-nums; }

/* ---- store ---- */
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 36px 24px; }
.product { display: flex; flex-direction: column; gap: 10px; }
.product-img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); margin-bottom: 4px; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.product:hover .product-img img { transform: scale(1.04); }
.product-ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; font: 900 2.2rem/.9 var(--display); font-stretch: 62%; text-transform: uppercase; color: var(--line-2); }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--hot); color: var(--on-hot); font: 700 .66rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 6px 8px 5px; border-radius: 2px; }
.product-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product-row h2 { margin: 0; font: 800 1.35rem/1.05 var(--display); font-stretch: 78%; text-transform: uppercase; }
.product-price { font: 600 1rem/1 var(--mono); color: var(--hot); flex: none; }
.product-desc { margin: 0; color: var(--dim); font-size: .95rem; flex: 1; }
.product .btn { margin-top: 6px; }
.product [aria-disabled] { opacity: .5; cursor: default; }
.shop-empty { padding: 64px 0; border: 1px dashed var(--line-2); border-radius: 6px; text-align: center; }
.shop-empty-big { font: 900 clamp(3rem, 9vw, 5rem)/.9 var(--display); font-stretch: 62%; text-transform: uppercase; color: var(--line-2); margin: 0 0 10px; }

/* ---- games ---- */
.arcade { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 32px 20px; }
.cab { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; text-decoration: none; }
.cab-screen { grid-column: 1 / -1; position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line-2); margin-bottom: 6px; }
.cab-screen img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1), filter .3s; }
.cab-ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; font: 900 2rem/.9 var(--display); font-stretch: 62%; text-transform: uppercase; color: var(--dim);
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px), radial-gradient(circle at 50% 40%, var(--ink-3), var(--ink)); }
.cab-play { position: absolute; right: 12px; bottom: 12px; background: var(--hot); color: var(--on-hot); font: 700 .74rem/1 var(--display); font-stretch: 110%; letter-spacing: .06em; text-transform: uppercase; padding: 9px 12px 8px; border-radius: var(--r); opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.cab:hover .cab-screen img { transform: scale(1.04); filter: brightness(.8); }
.cab:hover .cab-play, .cab:focus-visible .cab-play { opacity: 1; transform: none; }
.cab-n { font: 600 .7rem/1.6 var(--mono); color: var(--hot); }
.cab-title { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.cab:hover .cab-title { color: var(--hot-2); }
.cab-desc { grid-column: 2; color: var(--mute); font-size: .88rem; line-height: 1.4; }

.gp { padding-top: 28px; }
.gp-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.gp-back { font: 500 .8rem/1 var(--mono); color: var(--dim); text-decoration: none; flex: none; }
.gp-title { flex: 1; min-width: 0; margin: 0; font: 900 clamp(1.8rem, 4vw, 2.8rem)/1 var(--display); font-stretch: 65%; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-screen { height: min(78vh, 820px); min-height: 380px; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; background: #000; }
.gp-screen:fullscreen { border: 0; border-radius: 0; height: 100vh; }
.gp-screen iframe { width: 100%; height: 100%; border: 0; display: block; }
.gp-desc { color: var(--dim); max-width: 70ch; }

/* ---- admin list editors ---- */
.list-grid { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 24px; align-items: start; }
.item-card { display: flex; gap: 16px; align-items: center; }
.item-card > img, .item-ph { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r); flex: none; background: var(--ink-3); }
.item-main { flex: 1; min-width: 0; }
.item-main .card-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; display: block; }
.img-field { display: grid; gap: 7px; }
.img-label { font: 600 .74rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.img-label small { text-transform: none; letter-spacing: 0; font: 400 .8rem var(--body); color: var(--mute); }
.img-pick { display: flex; align-items: center; gap: 12px; }
.img-pick img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r); }
@media (max-width: 900px) { .list-grid { grid-template-columns: 1fr; } .now-playing { flex-wrap: wrap; } }

/* ---- discord link ---- */
.discord-link { display: flex; align-items: center; gap: 7px; color: var(--dim); text-decoration: none; font: 500 .8rem/1 var(--body); padding: 8px 10px; border-radius: var(--r); }
.discord-link:hover { color: #fff; background: #5865f2; }
@media (max-width: 700px) { .discord-link span { display: none; } }

/* ---- chat ---- */
:root { --gold: #ffd23f; }
.chat { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; height: calc(100vh - 150px); min-height: 480px; padding-top: 24px; position: relative; }
.chat-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.chat-head .kicker { margin-bottom: 8px; }
.chat-head h1 { margin: 0; font: 900 clamp(2.4rem, 6vw, 4rem)/.85 var(--display); font-stretch: 62%; text-transform: uppercase; }
.chat-online { display: flex; align-items: center; gap: 8px; font: 500 .78rem/1 var(--mono); color: var(--dim); white-space: nowrap; }
.chat-online i { width: 8px; height: 8px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 3px color-mix(in srgb, var(--go) 20%, transparent); }
.chat-online b { color: var(--paper); }
.chat-log { overflow-y: auto; padding: 14px 0; scrollbar-width: thin; overscroll-behavior: contain; }
.chat-empty { color: var(--mute); text-align: center; padding: 40px 0; margin: 0; }
.cmsg { position: relative; padding: 6px 10px; border-radius: 6px; }
.cmsg:hover { background: var(--ink-2); }
.cmsg:not(.cmsg-cont) { margin-top: 10px; }
.cmsg-head { display: flex; align-items: baseline; gap: 10px; }
.cmsg-name { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: .95rem; }
.cmsg-head time { font: 400 .68rem/1 var(--mono); color: var(--mute); }
.cmsg-body { margin: 2px 0 0; color: var(--paper-2); overflow-wrap: anywhere; white-space: pre-wrap; }
.cmsg-admin { background: color-mix(in srgb, var(--gold) 11%, transparent); box-shadow: inset 3px 0 0 var(--gold); }
.cmsg-admin:hover { background: color-mix(in srgb, var(--gold) 15%, transparent); }
.cmsg-admin .cmsg-name { color: var(--gold); text-shadow: 0 0 18px color-mix(in srgb, var(--gold) 45%, transparent); }
.cmsg-admin .cmsg-body { color: var(--paper); }
.crown { width: 17px; height: 17px; color: var(--gold); flex: none; transform: translateY(-1px); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--gold) 50%, transparent)); }
.cmsg-tools { position: absolute; top: 6px; right: 8px; display: none; gap: 4px; }
.cmsg:hover .cmsg-tools { display: flex; }
.cmsg-tools button { background: var(--ink-3); border: 1px solid var(--line-2); color: var(--dim); border-radius: 3px; font: 500 .68rem/1 var(--mono); padding: 4px 7px; cursor: pointer; }
.cmsg-tools button:hover { color: var(--dnd); border-color: var(--dnd); }
.chat-jump { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--hot); color: var(--on-hot); border: 0; border-radius: 20px; padding: 8px 14px; font: 600 .8rem/1 var(--body); cursor: pointer; box-shadow: 0 10px 24px -10px #000; }
.chat-bar { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.chat-bar input { flex: 1; min-width: 0; }
.chat-name { flex: none; display: flex; align-items: center; gap: 6px; max-width: 34%; padding: 0 12px; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r); font-weight: 600; font-size: .88rem; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-name:hover { border-color: var(--hot); }
.chat-name.is-admin { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, transparent); background: color-mix(in srgb, var(--gold) 9%, var(--ink-2)); }
.chat-msg { margin: 8px 0 0; min-height: 1.2em; font-size: .85rem; color: var(--dnd); }
.name-pick { width: min(420px, 92vw); padding: 28px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--ink-2); color: var(--paper); }
.name-pick::backdrop { background: rgba(6, 5, 4, .8); backdrop-filter: blur(3px); }
.name-pick h2 { margin: 0 0 8px; font: 900 2.4rem/.9 var(--display); font-stretch: 62%; text-transform: uppercase; }
.name-pick form { display: grid; gap: 14px; }
.name-pick p { margin: 0; }
body.chat-body .foot { display: none; }

/* ---- store extras ---- */
.product-stock { margin: 0; font: 600 .74rem/1 var(--mono); color: var(--idle); }
.thanks h1 { color: var(--go); }
button.btn-wide[data-buy] { font-size: .84rem; }
code.copy { user-select: all; word-break: break-all; }
.ok { color: var(--go); }

/* ---- code editor ---- */
.code-area { font: 400 .8rem/1.5 var(--mono); tab-size: 2; white-space: pre; min-height: 220px; }
body.chat-body .dock { display: none; }
.user-ip { font: 400 .72rem/1.8 var(--mono); color: var(--dim); }

/* ---- chat: composer, picker, attachments ---- */
.chat { grid-template-rows: auto minmax(0, 1fr) auto auto auto auto; }
.chat-input { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; background: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 4px; transition: border-color .15s, box-shadow .15s; }
.chat-input:focus-within { border-color: var(--hot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hot) 22%, transparent); }
.chat-input input { border: 0; background: transparent; box-shadow: none !important; padding: 12px 6px; flex: 1; min-width: 0; }
.chat-icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: none; border: 0; border-radius: 6px; color: var(--dim); cursor: pointer; }
.chat-icon svg { width: 21px; height: 21px; }
.chat-icon:hover, .chat-icon.on { color: var(--paper); background: var(--ink-3); }
.chat-gif { font: 800 .66rem/1 var(--mono); letter-spacing: .04em; width: auto; padding: 0 6px; }
.chat-gif::before { content: ''; }
.chat-gif { border: 1.6px solid currentColor; height: 22px; border-radius: 4px; margin: 0 4px; }
.chat-gif:hover, .chat-gif.on { background: none; color: var(--paper); }

.picker { position: absolute; right: 0; bottom: 64px; z-index: 20; width: min(440px, 100%); height: min(440px, 62vh); display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .85); overflow: hidden; }
.picker-tabs { display: flex; gap: 4px; padding: 10px 10px 0; }
.picker-tabs button { background: none; border: 0; color: var(--dim); font-weight: 600; font-size: .9rem; padding: 8px 12px; border-radius: 6px; cursor: pointer; }
.picker-tabs button[aria-selected="true"] { background: var(--ink-3); color: var(--paper); }
.picker-search { margin: 10px; width: calc(100% - 20px); padding: 9px 12px; }
.picker-cats { display: flex; gap: 2px; padding: 0 8px 6px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.picker-cats button { flex: none; width: 32px; height: 30px; background: none; border: 0; border-radius: 6px; font-size: 1.1rem; cursor: pointer; filter: grayscale(.6); }
.picker-cats button:hover { background: var(--ink-3); filter: none; }
.picker-body { overflow-y: auto; padding: 8px 10px 12px; scrollbar-width: thin; overscroll-behavior: contain; }
.picker-note { color: var(--dim); text-align: center; padding: 40px 16px; margin: 0; font-size: .92rem; }
.picker-credit { grid-column: 1 / -1; column-span: all; text-align: center; font: 500 .66rem/1 var(--mono); color: var(--mute); margin: 10px 0 0; }
.gif-grid { columns: 2; column-gap: 6px; }
.gif-cell { display: block; width: 100%; margin: 0 0 6px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--ink-3); cursor: pointer; break-inside: avoid; }
.gif-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gif-cell:hover { outline: 2px solid var(--hot); outline-offset: -2px; }
.emoji-group { font: 600 .64rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin: 12px 4px 6px; }
.emoji-group:first-child { margin-top: 4px; }
.emoji-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
.emoji-cells button { height: 38px; background: none; border: 0; border-radius: 6px; font-size: 1.45rem; line-height: 1; cursor: pointer; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.emoji-cells button:hover { background: var(--ink-3); transform: scale(1.12); }

.chat-pending { padding-top: 10px; }
.pending-card { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 8px; max-width: 420px; }
.pending-card img { width: 52px; height: 52px; object-fit: cover; border-radius: 5px; flex: none; }
.pending-info { flex: 1; min-width: 0; display: grid; gap: 3px; }
.pending-name { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pending-size { font: 400 .7rem/1 var(--mono); color: var(--mute); }
.pending-bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.pending-bar i { display: block; height: 100%; width: 0; background: var(--hot); transition: width .15s; }
.pending-bar.done i { background: var(--go); width: 100% !important; }
.pending-x { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--dim); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.pending-x:hover { color: var(--dnd); border-color: var(--dnd); }

.chat-drop { position: absolute; inset: 70px 0 0; z-index: 30; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 80%, transparent); border: 2px dashed var(--hot); border-radius: 10px; pointer-events: none; }
.chat-drop p { font: 900 2.4rem/1 var(--display); font-stretch: 62%; text-transform: uppercase; color: var(--hot); }

.cmsg-link { color: #7cc4ff; text-decoration: none; overflow-wrap: anywhere; }
.cmsg-link:hover { text-decoration: underline; color: #a8d8ff; }
.cmsg-jumbo { font-size: 2.6rem; line-height: 1.2; }
.cmsg-att { margin-top: 6px; }
.att-img, .att-gif { display: block; max-width: min(420px, 100%); max-height: 320px; width: auto; height: auto; border-radius: 8px; background: var(--ink-3); }
.att-img { cursor: zoom-in; object-fit: contain; }
.att-video { display: block; max-width: min(480px, 100%); max-height: 360px; border-radius: 8px; background: #000; }
.att-file { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; max-width: min(420px, 100%); padding: 12px 14px; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 8px; text-decoration: none; color: var(--paper); }
a.att-file:hover { border-color: var(--hot); color: var(--paper); }
.att-file-icon { width: 30px; height: 30px; color: var(--hot); flex: none; }
.att-file-text { display: grid; gap: 3px; min-width: 0; }
.att-file-name { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-file-size { font: 400 .7rem/1 var(--mono); color: var(--mute); }
.att-file audio { width: 100%; min-width: 240px; }
@media (max-width: 560px) { .picker { left: 0; right: 0; width: auto; } .chat-name { max-width: 28%; } }
