/* SURGE · the app shell (owner: Stream chat f6d888fd). Dark, calm, one accent, Public Sans + Ubuntu Sans Mono for numbers.
   Slots for the Wallet + Chat parts: #wallet (top bar), #chat, #coinbar, #alerts (over the player), #launch (studio), #view (/wallet). */
@font-face { font-family: 'SG Sans'; src: url('/app/fonts/sans.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'SG Mono'; src: url('/app/fonts/mono.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0f1116; --bg2: #13161c; --panel: #171a21; --raise: #1d212a; --hover: #232835; --press: #2a3040;
  --line: #242934; --line2: #2f3542;
  --tx: #e9ebf1; --tx2: #a7adbb; --tx3: #727a8c;
  --ac: #4d7cff; --ac2: #6b92ff; --ac-ink: #ffffff; --ac-soft: rgba(77, 124, 255, .14);
  --live: #eb4343; --up: #22c55e; --down: #ef4444; --warn: #f0b429;
  --r: 6px; --r2: 4px;
  --top: 52px; --rail: 236px; --rail-c: 56px; --chat: 340px;
  --sans: 'SG Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'SG Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --sb-thumb: rgba(150, 158, 178, .28); --sb-thumb-hover: rgba(170, 178, 198, .5);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
/* NO STOCK SCROLLBARS (/root/tools/larpcheck/scrollbars.css) */
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--sb-thumb, rgba(140, 140, 150, .35)); border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover, rgba(160, 160, 170, .6)); }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-corner { background: transparent; }
@supports (-moz-appearance: none) {
  * { scrollbar-width: thin; scrollbar-color: var(--sb-thumb, rgba(140, 140, 150, .35)) transparent; }
}
.no-sb { scrollbar-width: none; }
.no-sb::-webkit-scrollbar { display: none; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--tx); }
body { font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg .fill { fill: currentColor; stroke: none; }
[hidden] { display: none !important; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.dim { color: var(--tx2); } .dimmer { color: var(--tx3); }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; border-radius: var(--r2); }
::selection { background: var(--ac-soft); }

/* ---------- frame ---------- */
.app { display: grid; height: 100vh; height: 100dvh; grid-template: var(--top) 1fr / var(--rail) 1fr; grid-template-areas: "top top" "rail view"; }
.app.rail-c { grid-template-columns: var(--rail-c) 1fr; }
.app.theatre { grid-template-columns: 0 1fr; }
.top { grid-area: top; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--bg2); border-bottom: 1px solid var(--line); z-index: 20; min-width: 0; }
.rail { grid-area: rail; display: flex; flex-direction: column; background: var(--bg2); border-right: 1px solid var(--line); min-height: 0; overflow: hidden; }
.view { grid-area: view; overflow-y: auto; overflow-x: hidden; min-width: 0; min-height: 0; outline: none; position: relative; }

.brand { display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 6px 0 2px; flex: none; }
.brand-logo { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--raise); }
.brand-name { font-weight: 750; font-size: 16px; letter-spacing: -.02em; }
.top-nav { display: flex; gap: 2px; margin-left: 6px; flex: none; }
.top-nav a { padding: 7px 11px; border-radius: var(--r2); color: var(--tx2); font-weight: 600; font-size: 14px; }
.top-nav a:hover { color: var(--tx); background: var(--raise); }
.top-nav a.on { color: var(--tx); }
.top-nav a.on::after { content: ''; display: block; height: 2px; margin: 4px 0 -6px; background: var(--ac); border-radius: 1px; }
.search { flex: 1; max-width: 420px; margin: 0 auto; position: relative; display: flex; align-items: center; height: 36px; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--r); transition: border-color .15s, background .15s; }
.search:focus-within { border-color: var(--ac); background: var(--bg); }
.search svg { position: absolute; left: 10px; color: var(--tx3); }
.search input { flex: 1; height: 100%; border: 0; background: none; outline: none; padding: 0 34px 0 34px; min-width: 0; }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { position: absolute; right: 8px; font: 11px var(--mono); color: var(--tx3); border: 1px solid var(--line2); border-radius: 3px; padding: 0 5px; line-height: 17px; }
.search:focus-within kbd { display: none; }
.top-right { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.slot-wallet { min-width: 0; display: flex; align-items: center; }
.ib { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r2); color: var(--tx2); flex: none; }
.ib:hover { background: var(--raise); color: var(--tx); }
.menu-btn, .search-btn { display: none; }
.ca-chip { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 9px; border: 1px solid var(--line2); border-radius: var(--r2); font-size: 12px; color: var(--tx2); max-width: 170px; }
.ca-chip:hover { border-color: var(--tx3); color: var(--tx); }
.ca-lbl { font-weight: 700; color: var(--tx); }
.ca-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- buttons + inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: var(--r2); font-weight: 650; font-size: 13.5px; background: var(--raise); color: var(--tx); border: 1px solid transparent; white-space: nowrap; transition: background .12s, border-color .12s, color .12s; user-select: none; }
.btn:hover { background: var(--hover); }
.btn:active { background: var(--press); }
.btn[disabled] { opacity: .45; cursor: default; pointer-events: none; }
.btn-accent { background: var(--ac); color: var(--ac-ink); }
.btn-accent:hover { background: var(--ac2); }
.btn-ghost { background: none; border-color: var(--line2); }
.btn-ghost:hover { background: var(--raise); }
.btn-danger { background: var(--live); color: #fff; }
.btn-danger:hover { background: #f25c5c; }
.btn-lg { height: 42px; padding: 0 20px; font-size: 15px; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.on { background: var(--ac-soft); color: var(--ac2); border-color: rgba(77, 124, 255, .35); }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12px; font-weight: 650; color: var(--tx2); }
.input, .select, .textarea { width: 100%; height: 36px; padding: 0 11px; background: var(--bg); border: 1px solid var(--line2); border-radius: var(--r2); outline: none; transition: border-color .12s; }
.textarea { height: auto; min-height: 72px; padding: 9px 11px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ac); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tx3) 50%), linear-gradient(135deg, var(--tx3) 50%, transparent 50%); background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--tx2); cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--ac); margin: 0; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line2); border-radius: var(--r2); padding: 2px; gap: 2px; }
.seg button { height: 30px; padding: 0 12px; border-radius: 3px; color: var(--tx2); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; }
.seg button:hover { color: var(--tx); }
.seg button.on { background: var(--raise); color: var(--tx); }

/* ---------- rail ---------- */
.rail-head { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 8px 0 14px; flex: none; }
.rail-title { font-size: 11.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; color: var(--tx2); }
.rail-list { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 6px 8px; }
.rail-sec { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--tx3); padding: 12px 8px 6px; }
.rail-item { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; height: 44px; padding: 0 8px; border-radius: var(--r2); }
.rail-item:hover { background: var(--raise); }
.rail-item.on { background: var(--raise); }
.rail-item .who { min-width: 0; line-height: 1.25; }
.rail-item .nm { font-weight: 650; font-size: 13.5px; }
.rail-item .cat { font-size: 12px; color: var(--tx3); }
.rail-item .vw { display: flex; align-items: center; gap: 5px; font: 12px var(--mono); color: var(--tx2); }
.rail-item .vw::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.rail-item.off .vw { color: var(--tx3); } .rail-item.off .vw::before { display: none; }
.rail-empty { padding: 10px 10px; font-size: 12.5px; color: var(--tx3); line-height: 1.5; }
.rail-foot { padding: 10px 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--tx3); display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
.rail-foot a:hover { color: var(--tx2); }
.app.rail-c .rail-title, .app.rail-c .rail-item .who, .app.rail-c .rail-item .vw, .app.rail-c .rail-sec, .app.rail-c .rail-empty, .app.rail-c .rail-foot { display: none; }
.app.rail-c .rail-head { justify-content: center; padding: 0; }
.app.rail-c .rail-toggle svg { transform: rotate(180deg); }
.app.rail-c .rail-item { grid-template-columns: 30px; justify-content: center; padding: 0; }
.app.theatre .rail { visibility: hidden; }

.av { width: 30px; height: 30px; border-radius: 50%; background: var(--raise); object-fit: cover; flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 750; font-size: 12px; color: #fff; overflow: hidden; position: relative; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.lg { width: 56px; height: 56px; font-size: 20px; }
.av.md { width: 40px; height: 40px; font-size: 15px; }
.av.live-ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--live); }

/* ---------- pages ---------- */
.page { padding: 24px 28px 48px; max-width: 1680px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; min-height: 40px; }
.h1 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; margin: 0; line-height: 1.15; }
.h2 { font-size: 17px; font-weight: 750; letter-spacing: -.015em; margin: 0; }
.sub { color: var(--tx2); margin: 4px 0 0; font-size: 14px; }
.sec { margin-top: 30px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; min-height: 28px; }
.sec-head a { font-size: 13px; color: var(--ac2); font-weight: 600; }
.sec-head a:hover { text-decoration: underline; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--bg2); margin-bottom: 22px; }
.stat { padding: 12px 16px; min-width: 0; container-type: inline-size; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font: 600 clamp(16px, 13cqi, 22px) var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { display: block; font-size: 11.5px; color: var(--tx3); text-transform: uppercase; letter-spacing: .06em; font-weight: 650; margin-top: 2px; }

.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 18px; }
.chip { height: 30px; padding: 0 13px; border-radius: 15px; background: var(--raise); color: var(--tx2); font-weight: 600; font-size: 13px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; flex: none; }
.chip:hover { background: var(--hover); color: var(--tx); }
.chip.on { background: var(--tx); color: var(--bg); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--raise); color: var(--tx2); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.tag:hover { background: var(--hover); color: var(--tx); }
.tag.mature { background: rgba(240, 180, 41, .12); color: var(--warn); }

/* the stream grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px 16px; }
.card { display: block; min-width: 0; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); background: var(--panel); overflow: hidden; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 90% at 30% 20%, #1e2433 0%, #141821 60%); color: var(--tx3); font-weight: 750; font-size: 34px; letter-spacing: -.03em; }
.card:hover .thumb { transform: translate(4px, -4px); box-shadow: -4px 4px 0 var(--ac); }
.badge-live { position: absolute; top: 9px; left: 9px; height: 20px; padding: 0 6px; border-radius: 3px; background: var(--live); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; display: inline-flex; align-items: center; }
.badge-vw { position: absolute; bottom: 9px; left: 9px; height: 20px; padding: 0 6px; border-radius: 3px; background: rgba(8, 10, 14, .78); color: #fff; font: 12px var(--mono); display: inline-flex; align-items: center; gap: 5px; }
.badge-dur { position: absolute; bottom: 9px; right: 9px; height: 20px; padding: 0 6px; border-radius: 3px; background: rgba(8, 10, 14, .78); color: #fff; font: 12px var(--mono); display: inline-flex; align-items: center; }
.badge-coin { position: absolute; top: 9px; right: 9px; height: 20px; padding: 0 7px; border-radius: 3px; background: rgba(8, 10, 14, .78); color: #fff; font: 600 11.5px var(--mono); display: inline-flex; align-items: center; gap: 4px; }
.meta { display: grid; grid-template-columns: 40px 1fr; gap: 10px; margin-top: 10px; }
.meta .av { width: 40px; height: 40px; }
.meta .t { font-weight: 650; font-size: 14px; line-height: 1.3; }
.meta .n, .meta .c { font-size: 13px; color: var(--tx2); }
.meta .c { color: var(--tx3); }
.meta .tags { display: flex; gap: 5px; margin-top: 6px; overflow: hidden; height: 20px; flex-wrap: wrap; }

/* skeletons: the same boxes as the loaded state */
.sk { background: linear-gradient(90deg, var(--panel) 0%, var(--raise) 40%, var(--panel) 80%); background-size: 300% 100%; animation: sk 1.3s linear infinite; border-radius: var(--r2); }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -50% 0; } }
.sk-line { height: 12px; margin: 5px 0; }
.card.sk-card .thumb { animation: sk 1.3s linear infinite; background: linear-gradient(90deg, var(--panel) 0%, var(--raise) 40%, var(--panel) 80%); background-size: 300% 100%; }

/* empty states that look finished */
.empty { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg2); padding: 40px 28px; display: grid; justify-items: center; text-align: center; gap: 10px; }
.empty .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--raise); display: flex; align-items: center; justify-content: center; color: var(--tx2); margin-bottom: 4px; }
.empty .ico svg { width: 24px; height: 24px; }
.empty h3 { margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -.015em; }
.empty p { margin: 0; color: var(--tx2); max-width: 460px; }
.empty .row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.how > div { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: var(--bg2); min-width: 0; }
.how b { display: block; font-size: 14px; margin-bottom: 4px; }
.how p { margin: 0; color: var(--tx2); font-size: 13px; }
.how .k { font: 600 11px var(--mono); color: var(--ac2); letter-spacing: .06em; margin-bottom: 8px; display: block; }

/* ---------- channel ---------- */
.chan { display: grid; height: 100%; grid-template-columns: minmax(0, 1fr) var(--chat); grid-template-rows: 100%; }
.chan.chat-off { grid-template-columns: minmax(0, 1fr) 0; }
.chan-main { overflow-y: auto; overflow-x: hidden; min-width: 0; }
.chan-side { border-left: 1px solid var(--line); background: var(--bg2); display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; }
.chan.chat-off .chan-side { visibility: hidden; border: 0; }
.side-head { height: 44px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 14px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; color: var(--tx2); }
.slot-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.player-slot { position: relative; background: #000; aspect-ratio: 16 / 9; max-height: calc(100vh - var(--top) - 150px); max-height: calc(100dvh - var(--top) - 150px); width: 100%; margin: 0 auto; }
.app.theatre .player-slot { max-height: calc(100vh - var(--top) - 64px); max-height: calc(100dvh - var(--top) - 64px); }
.chan-info { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; padding: 16px 20px 14px; align-items: start; min-height: 96px; }
.chan-info .av.lg { margin-top: 2px; }
.chan-name { margin: 0; line-height: 1.25; display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; min-width: 0; }
.chan-title { font-size: 14.5px; font-weight: 600; margin-top: 3px; }
.chan-sub { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--tx2); flex-wrap: wrap; min-height: 20px; }
.chan-sub a.cat { color: var(--ac2); font-weight: 600; }
.chan-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.chan-act .row { display: flex; gap: 8px; }
.chan-nums { display: flex; gap: 14px; font: 13px var(--mono); color: var(--tx2); }
.chan-nums .live-n { color: var(--live); font-weight: 600; }
.verified { width: 16px; height: 16px; color: var(--ac2); }
.slot-coinbar { margin: 0 20px; min-height: 0; }
.slot-coinbar:empty { display: none; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 20px; margin-top: 10px; overflow-x: auto; }
.tabs button { height: 42px; padding: 0 12px; font-weight: 650; color: var(--tx2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--tx); }
.tabs button.on { color: var(--tx); border-bottom-color: var(--ac); }
.tab-body { padding: 18px 20px 40px; }
.about { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
.about-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg2); padding: 16px 18px; min-width: 0; }
.about-card h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--tx2); }
.about-card p { margin: 0; color: var(--tx); white-space: pre-wrap; word-break: break-word; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font-size: 13px; }
.kv dt { color: var(--tx3); } .kv dd { margin: 0; text-align: right; min-width: 0; }
.ph-tabs { display: none; }
.slot-launch:empty { display: none; }

/* ---------- the player ---------- */
.player { position: absolute; inset: 0; background: #000; overflow: hidden; user-select: none; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player .poster { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(14px) brightness(.45); transform: scale(1.08); }
.player .state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; color: #fff; }
.player .state b { font-size: 18px; font-weight: 750; letter-spacing: -.015em; }
.player .state span { color: rgba(255, 255, 255, .7); font-size: 14px; max-width: 420px; }
.player .spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: #fff; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player .ctl { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; padding: 0 10px; display: flex; align-items: center; gap: 4px; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); opacity: 0; transition: opacity .2s; }
.player:hover .ctl, .player.show-ctl .ctl, .player.paused .ctl { opacity: 1; }
.player .ctl .ib { color: #fff; }
.player .ctl .ib:hover { background: rgba(255, 255, 255, .14); }
.player .ctl .sp { flex: 1; }
.player .ctl .live-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 3px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; }
.player .ctl .live-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.player .ctl .live-pill.behind::before { background: #888; }
.player .vol { width: 80px; accent-color: #fff; height: 4px; }
.player .lat { font: 12px var(--mono); color: rgba(255, 255, 255, .7); margin-left: 6px; }
.player .big-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: flex; align-items: center; justify-content: center; }
.player .big-play svg { width: 28px; height: 28px; }
.slot-alerts { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.gate { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10, 12, 16, .92); backdrop-filter: blur(20px); z-index: 4; }
.gate > div { max-width: 380px; text-align: center; display: grid; gap: 10px; justify-items: center; padding: 20px; }
.gate b { font-size: 18px; } .gate p { margin: 0; color: var(--tx2); }

/* mini player */
.mini { position: fixed; left: 12px; bottom: 12px; width: 336px; z-index: 30; background: #000; border-radius: var(--r); overflow: hidden; box-shadow: 0 10px 40px rgba(0, 0, 0, .6), 0 0 0 1px var(--line2); }
.app.rail-c .mini, .app.theatre .mini { left: 68px; }
.mini-video { position: relative; aspect-ratio: 16 / 9; cursor: pointer; }
.mini-video .ctl, .mini-video .slot-alerts, .mini-video .gate { display: none; }
.dev-sel { width: 220px; max-width: 100%; flex: 0 1 220px; }
.mini-bar { display: flex; align-items: center; height: 34px; padding: 0 4px 0 12px; background: var(--panel); }
.mini-name { flex: 1; font-weight: 650; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-name:hover { color: var(--ac2); }

/* ---------- studio ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; }
.studio-preview { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.studio-preview video, .studio-preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.studio-preview .state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--tx2); text-align: center; padding: 20px; }
.studio-preview .onair { position: absolute; top: 12px; left: 12px; display: flex; gap: 8px; align-items: center; }
.studio-preview .onair .badge-live { position: static; }
.studio-preview .onair .t { font: 600 12px var(--mono); background: rgba(8, 10, 14, .78); color: #fff; padding: 2px 7px; border-radius: 3px; }
.studio-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; min-height: 42px; }
.studio-bar .sp { flex: 1; }
.panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg2); min-width: 0; }
.panel + .panel { margin-top: 14px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; color: var(--tx2); }
.panel-b { padding: 14px; display: grid; gap: 12px; }
.livestats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.livestats > div { padding: 10px 14px; min-width: 0; container-type: inline-size; }
.livestats > div + div { border-left: 1px solid var(--line); }
.livestats b { display: block; font: 600 clamp(14px, 14cqi, 19px) var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.livestats span { font-size: 11px; color: var(--tx3); text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.copyrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.copyrow .input { font: 12.5px var(--mono); }
.note { font-size: 12.5px; color: var(--tx3); line-height: 1.5; }
.meter { height: 6px; border-radius: 3px; background: var(--raise); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--up); transition: width .1s linear; }
.lrow { display: grid; grid-template-columns: 92px minmax(0, 1fr) 96px 72px; gap: 10px; align-items: center; height: 36px; padding: 0 14px; border-top: 1px solid var(--line); font-size: 13px; }
.lrow:first-child { border-top: 0; }
.lrow .k { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--tx2); }
.lrow .v { font-family: var(--mono); text-align: right; white-space: nowrap; }
.lrow a.sig { color: var(--ac2); font: 12px var(--mono); text-align: right; }
.lrow a.sig:hover { text-decoration: underline; }

/* clips */
.clip-card .thumb video { width: 100%; height: 100%; object-fit: cover; }
.clip-view { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
.clip-view video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); }

/* ledger table */
.table { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg2); overflow: hidden; }
.trow { display: grid; grid-template-columns: 130px 92px minmax(0, 1fr) 130px 110px 110px; gap: 12px; align-items: center; height: 40px; padding: 0 16px; border-top: 1px solid var(--line); font-size: 13px; }
.trow.h { border-top: 0; height: 36px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tx3); background: var(--panel); }
.trow .r { text-align: right; }
.trow a.sig { color: var(--ac2); font-family: var(--mono); font-size: 12px; }
.trow a.sig:hover { text-decoration: underline; }
.kind { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 2px 6px; border-radius: 3px; background: var(--raise); color: var(--tx2); justify-self: start; }
.kind.tip { color: var(--up); background: rgba(34, 197, 94, .1); }
.kind.buy { color: var(--ac2); background: var(--ac-soft); }
.kind.launch { color: var(--warn); background: rgba(240, 180, 41, .1); }
.kind.burn { color: #f97316; background: rgba(249, 115, 22, .1); }

/* toasts + scrim */
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 60; pointer-events: none; }
.toast { background: var(--raise); border: 1px solid var(--line2); border-radius: var(--r); padding: 10px 14px; font-size: 13px; box-shadow: 0 8px 30px rgba(0, 0, 0, .45); animation: tin .2s var(--ease); max-width: 360px; pointer-events: auto; }
.toast.err { border-color: rgba(239, 68, 68, .5); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 25; }
.nf { padding: 80px 20px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.nf b { font-size: 64px; font-weight: 800; font-family: var(--mono); color: var(--tx3); letter-spacing: -.04em; line-height: 1; }
.foot-note { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--tx3); display: flex; gap: 14px; flex-wrap: wrap; }
.foot-note a:hover { color: var(--tx2); }

/* sheets */
.sheet-wrap { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 16px; animation: tin .15s var(--ease); }
.sheet { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--r); box-shadow: 0 20px 60px rgba(0, 0, 0, .55); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 8px 0 18px; border-bottom: 1px solid var(--line); flex: none; }
.sheet-h b { font-size: 15px; }
.sheet-b { padding: 16px 18px; display: grid; gap: 12px; overflow-y: auto; }
.sheet-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); flex: none; }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.reasons label { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 1px solid var(--line2); border-radius: var(--r2); cursor: pointer; font-size: 13px; }
.reasons label:has(input:checked) { border-color: var(--ac); background: var(--ac-soft); }
.reasons input { accent-color: var(--ac); margin: 0; }

/* boot: nothing jumps while fonts + the first data land */
html.boot .view { opacity: 0; }
.view { transition: opacity .12s; }

/* ---------- laptop ---------- */
@media (max-width: 1280px) { :root { --chat: 320px; } .studio { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 1100px) { .app:not(.rail-open) { grid-template-columns: var(--rail-c) 1fr; } .app:not(.rail-open) .rail-title, .app:not(.rail-open) .rail-item .who, .app:not(.rail-open) .rail-item .vw, .app:not(.rail-open) .rail-sec, .app:not(.rail-open) .rail-empty, .app:not(.rail-open) .rail-foot { display: none; } .app:not(.rail-open) .rail-item { grid-template-columns: 30px; justify-content: center; padding: 0; } .app:not(.rail-open) .rail-head { justify-content: center; padding: 0; } .about { grid-template-columns: 1fr; } .studio { grid-template-columns: 1fr; } .clip-view { grid-template-columns: 1fr; } .trow { grid-template-columns: 110px 80px minmax(0, 1fr) 110px 100px; } .trow > :nth-child(5) { display: none; } }

/* ---------- phone: player on top, tabs Chat · About · Coin ---------- */
@media (max-width: 760px) {
  :root { --top: 50px; }
  .app, .app.rail-c, .app.theatre { grid-template: var(--top) 1fr / 1fr; grid-template-areas: "top" "view"; }
  .top { gap: 4px; padding: 0 6px; }
  .menu-btn, .search-btn { display: inline-flex; }
  .top-nav, .ca-chip, .x-link { display: none !important; }
  .search { display: none; position: absolute; left: 6px; right: 6px; top: 7px; max-width: none; z-index: 2; }
  .top.searching .search { display: flex; }
  .golive-btn span { display: none; } .golive-btn { padding: 0 10px; }
  .brand-name { font-size: 15px; }
  .rail { position: fixed; top: var(--top); bottom: 0; left: 0; width: 280px; z-index: 26; transform: translateX(-100%); transition: transform .22s var(--ease); visibility: visible !important; }
  .app.rail-open .rail { transform: none; }
  .app .rail .rail-title, .app .rail .rail-item .who, .app .rail .rail-item .vw, .app .rail .rail-sec, .app .rail .rail-empty, .app .rail .rail-foot { display: revert; }
  .app .rail .rail-item { grid-template-columns: 30px 1fr auto; padding: 0 8px; justify-content: stretch; }
  .rail-toggle { display: none; }
  .page { padding: 16px 14px 40px; }
  .h1 { font-size: 21px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .how { grid-template-columns: 1fr; }
  .chan, .chan.chat-off { display: flex; flex-direction: column; height: 100%; }
  .chan-main { overflow: visible; flex: none; display: contents; }
  .player-slot { max-height: none; flex: none; position: sticky; top: 0; z-index: 5; }
  .chan-info { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 10px 12px; min-height: 64px; gap: 10px; flex: none; }
  .chan-info .av.lg { width: 40px; height: 40px; font-size: 15px; }
  .chan-name { font-size: 15px; } .chan-title { font-size: 13px; } .chan-sub { margin-top: 3px; font-size: 12px; }
  .chan-act .chan-nums { display: none; }
  .ph-tabs { display: flex; flex: none; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); background: var(--bg2); }
  .ph-tabs button { flex: 1; height: 42px; font-weight: 650; color: var(--tx2); border-bottom: 2px solid transparent; }
  .ph-tabs button.on { color: var(--tx); border-bottom-color: var(--ac); }
  .chan .tabs, .chan .tab-body, .chan .slot-coinbar { display: none; }
  .chan-side { display: none; border: 0; flex: 1; visibility: visible !important; }
  .chan[data-ph="chat"] .chan-side { display: flex; }
  .chan[data-ph="chat"] .side-head { display: none; }
  .chan[data-ph="about"] .tab-body { display: block; flex: 1; overflow-y: auto; padding: 14px 12px 30px; }
  .chan[data-ph="coin"] .slot-coinbar { display: block; flex: 1; overflow-y: auto; margin: 0; padding: 12px; }
  .chan[data-ph="coin"] .slot-coinbar:empty::after { content: attr(data-empty); display: block; color: var(--tx3); padding: 20px 4px; text-align: center; }
  .mini { left: auto; right: 8px; bottom: 8px; width: 220px; }
  .app.rail-c .mini, .app.theatre .mini { left: auto; }
  .lrow { grid-template-columns: 70px minmax(0, 1fr) 80px; } .lrow > :nth-child(4) { display: none; }
  .trow { grid-template-columns: 70px minmax(0, 1fr) 90px 70px; gap: 8px; padding: 0 10px; } .trow > :nth-child(1), .trow > :nth-child(5) { display: none; }
  .livestats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .livestats > div:nth-child(3) { border-left: 0; } .livestats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .toasts { left: 10px; right: 10px; bottom: 10px; }
  .toast { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
