/* 4chan TV — styles (sister of Reddit TV: same CRT look, greentext-lime identity) */
:root {
  --bg: #060807;
  --ink: #f3f7ec;
  --muted: #98a291;
  --line: rgba(255, 255, 255, .10);
  --glass: rgba(12, 16, 12, .58);
  --accent: #8ee53f;
  --accent-2: #d2ff72;
  --accent-ink: #0a1300;
  --accent-rgb: 142, 229, 63;
  --greentext: #a6dc63;
  --quote: #c9d6b8;
  --coffee: #ffdd00;
  --adult: #ff3b5c;
  --font: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); overflow: hidden; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
svg { display: block; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.fill { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: calc(14px + var(--st)) 18px 36px; background: linear-gradient(to bottom, rgba(0,0,0,.7), rgba(0,0,0,0)); pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer; }
.logo { filter: drop-shadow(0 4px 14px rgba(var(--accent-rgb), .45)); }
.wordmark { font-size: 22px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.wordmark b { color: var(--accent); font-weight: 800; }
.onair { display: inline-flex; align-items: center; gap: 6px; margin-left: 2px; padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(255,59,92,.45); background: rgba(255,59,92,.08); font: 700 10px/1 var(--mono); letter-spacing: .16em; color: #ff94a6; }
.onair i { width: 7px; height: 7px; border-radius: 50%; background: var(--adult); box-shadow: 0 0 10px var(--adult); animation: pulse 1.6s ease-in-out infinite; }
.channel { flex: 1; min-width: 0; text-align: center; font: 600 12px/1.2 var(--mono); letter-spacing: .04em; color: rgba(243,247,236,.86); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel em { font-style: normal; color: var(--accent-2); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .1); font: 700 10px/1 var(--mono); letter-spacing: .16em; color: var(--accent-2); }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font: 600 13px/1 var(--font); cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .15s; }
.pill-btn:hover { border-color: rgba(255,255,255,.28); }
.pill-btn:active { transform: scale(.95); }
.pill-btn[aria-pressed="true"] { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.coffee { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--coffee); color: #1d1600; font-size: 14px; font-weight: 750; text-decoration: none; white-space: nowrap; box-shadow: 0 8px 26px rgba(255,221,0,.22); transition: transform .2s, box-shadow .2s; }
.coffee:hover { transform: translateY(-1px) rotate(-1.5deg); box-shadow: 0 12px 32px rgba(255,221,0,.34); }
.coffee .ico { stroke-width: 2.2; }

/* ---------- Feed ---------- */
.feed { position: fixed; inset: 0; overflow-x: hidden; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior-y: contain; scrollbar-width: none; outline: none; }
.feed::-webkit-scrollbar { display: none; }
.slide { position: relative; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; background: #000; isolation: isolate; }
.slide-bg { position: absolute; top: -60px; left: -60px; width: calc(100% + 120px); height: calc(100% + 120px); object-fit: cover; filter: blur(42px) saturate(1.45) brightness(.42); z-index: -1; pointer-events: none; }
.slide-bg:not([src]) { display: none; }
.stage { position: absolute; inset: 0; z-index: 0; }
.stage video, .stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.stage .poster { transition: opacity .35s ease; }
.stage .poster:not([src]) { display: none; }
.slide.is-spoiler .poster { filter: blur(24px) brightness(.7); }
.slide.is-playing .poster { opacity: 0; }

/* stills: an image, or a text post as a card */
.stage .still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .3s ease; }
.slide.is-playing .still, .slide.is-paused .still { opacity: 1; }
.slide.is-spoiler .still { filter: blur(26px) brightness(.6); }
.slide.is-spoiler.is-revealed .still, .slide.is-spoiler.is-revealed .poster { filter: none; }
.slide.kind-text { background: radial-gradient(120% 80% at 50% 0%, #0d170a 0%, #060807 65%); }
.slide.kind-text .slide-bg { filter: blur(50px) saturate(1.2) brightness(.3); }
.slide.kind-text::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 4px); opacity: .5; }
.slide.kind-text .shield { display: none; } /* the card itself takes the taps, so long posts can be scrolled */
.slide.kind-text .stage { cursor: pointer; }
.post-card { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -54%); width: min(760px, calc(100% - 44px)); max-height: 58vh; max-height: 58dvh; padding: 24px 28px 26px; border-radius: 22px; border: 1px solid rgba(var(--accent-rgb), .22); background: rgba(8, 12, 8, .66); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; cursor: pointer; }
.post-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 14px; font: 700 11px/1 var(--mono); letter-spacing: .12em; color: var(--accent-2); }
.post-head .anon { color: rgba(243,247,236,.55); }
.post-text { font: 500 clamp(17px, 2.1vw, 24px)/1.45 var(--font); color: var(--ink); overflow-wrap: anywhere; }
.post-text[data-len="short"] { font-size: clamp(22px, 3.2vw, 36px); line-height: 1.28; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
.post-text[data-len="long"] { font-size: clamp(15px, 1.6vw, 19px); line-height: 1.5; }
.post-text p { margin: 0; min-height: 1.45em; }
.post-text .gt { color: var(--greentext); }
.post-text .ql { color: var(--quote); text-decoration: underline dotted rgba(201,214,184,.6); text-underline-offset: 3px; }
.post-file { margin-top: 14px; font: 500 12px/1.3 var(--mono); color: var(--muted); }
.slide.kind-text .center-icon { z-index: 4; }
.badge.kind { border: 1px solid rgba(255,255,255,.22); background: rgba(0,0,0,.42); color: rgba(243,247,236,.92); }
.scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.86) 0%, rgba(0,0,0,.36) 30%, transparent 54%), linear-gradient(to bottom, rgba(0,0,0,.42), transparent 18%); }
.shield { position: absolute; inset: 0; z-index: 2; cursor: pointer; }

.spinner { position: absolute; left: 50%; top: 50%; z-index: 3; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; border: 3px solid rgba(255,255,255,.14); border-top-color: var(--accent); pointer-events: none; opacity: 0; transition: opacity .2s .25s; animation: spin .8s linear infinite; }
.slide.is-loading .spinner { opacity: 1; }
.center-icon { position: absolute; left: 50%; top: 50%; z-index: 3; width: 84px; height: 84px; margin: -42px 0 0 -42px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none; opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s; }
.center-icon .ico { width: 36px; height: 36px; margin-left: 4px; color: #fff; }
.slide.is-paused .center-icon { opacity: 1; transform: none; }
.slide.is-paused .spinner { opacity: 0; }
.fail-msg { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%); max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 14px; background: rgba(0,0,0,.66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 600 13px/1.3 var(--mono); text-align: center; pointer-events: none; opacity: 0; transition: opacity .2s; }
.slide.is-failed .fail-msg, .slide.is-hidden .fail-msg { opacity: 1; }
.slide.is-failed .spinner, .slide.is-hidden .spinner { display: none; }
.slide.is-hidden .stage { filter: grayscale(1) blur(18px) brightness(.4); }

/* meta */
.meta { position: absolute; left: 0; right: 92px; bottom: calc(30px + var(--sb)); z-index: 3; padding: 0 22px; pointer-events: none; }
.meta a, .meta button, .meta .com { pointer-events: auto; }
.meta-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.board-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(var(--accent-rgb), .95); color: var(--accent-ink); font: 700 12px/1 var(--mono); letter-spacing: .02em; text-decoration: none; }
.board-chip:hover { background: var(--accent-2); }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; font: 700 10px/1 var(--mono); letter-spacing: .12em; }
.badge.op { background: rgba(255,255,255,.92); color: #0b0b0f; }
.badge.spoiler { background: #6b5bff; color: #fff; }
.badge.new-thread { border: 1px solid rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .14); color: var(--accent-2); }
.ago, .dur { font: 600 12px/1 var(--mono); color: rgba(243,247,236,.72); }
.dur:empty { display: none; }
.loops-chip { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 700 10px/1 var(--mono); letter-spacing: .1em; color: rgba(243,247,236,.86); }
.loops-dots { display: inline-flex; gap: 4px; }
.loops-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.25); }
.loops-dots i.done { background: var(--accent); }
.loops-dots i.now { background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.title { margin: 0; max-width: 760px; font-size: clamp(19px, 2.3vw, 28px); font-weight: 650; line-height: 1.16; letter-spacing: -.015em; text-wrap: balance; text-shadow: 0 2px 20px rgba(0,0,0,.55); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font: 500 12px/1.3 var(--mono); color: rgba(243,247,236,.74); }
.byline .pno { color: var(--accent-2); }
.byline .file { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.com { max-width: 680px; max-height: calc(3 * 1.5em); margin-top: 12px; overflow: hidden; font: 500 13.5px/1.5 var(--mono); color: rgba(243,247,236,.9); text-shadow: 0 1px 10px rgba(0,0,0,.7); cursor: pointer; -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); overflow-wrap: anywhere; }
.com.short { -webkit-mask-image: none; mask-image: none; cursor: default; }
.com.open { max-height: 32vh; overflow-y: auto; overscroll-behavior: contain; -webkit-mask-image: none; mask-image: none; padding-right: 6px; }
.com p { margin: 0; min-height: 1.5em; }
.com .gt { color: var(--greentext); }
.com .ql { color: var(--quote); text-decoration: underline dotted rgba(201,214,184,.6); text-underline-offset: 3px; }

/* right rail */
.rail { position: absolute; right: 16px; bottom: calc(34px + var(--sb)); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rail-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.rail-btn { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); cursor: pointer; text-decoration: none; transition: transform .15s, background .2s, border-color .2s; }
.rail-btn:hover { background: rgba(var(--accent-rgb), .26); border-color: rgba(var(--accent-rgb), .6); }
.rail-btn:active { transform: scale(.92); }
.rail-btn .ico { width: 22px; height: 22px; }
.rail-label { font: 600 10px/1 var(--mono); letter-spacing: .04em; color: rgba(243,247,236,.78); }
.rail-btn { position: relative; }
.rail-btn.on { background: rgba(var(--accent-rgb), .22); border-color: rgba(var(--accent-rgb), .7); }
.rail-btn.act-heart.on .ico { fill: var(--accent); stroke: var(--accent); }
.rail-btn.act-save.on .ico { stroke: var(--accent-2); stroke-width: 2.6; }
.rail-btn.pop { animation: pop .45s cubic-bezier(.2,.9,.3,1.4); }
.rail-btn.saving::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p, 0) * 1%), rgba(255,255,255,.12) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); }
.rail-btn.saving .ico { opacity: .6; }
.ri-heart .rail-count, .ri-comment .rail-count { font-weight: 700; color: var(--ink); }
.rail-count:empty::after { content: attr(data-word); font-weight: 600; color: rgba(243,247,236,.78); }
.sheet-comments .sheet-head h2, .sheet-actions .sheet-head h2 { font-size: 20px; line-height: 1.15; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }

/* progress */
.progress { position: absolute; left: 0; right: 0; bottom: var(--sb); z-index: 4; height: 16px; display: flex; align-items: flex-end; cursor: pointer; }
.progress::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.14); transition: height .15s; }
.progress i { position: relative; display: block; width: 0; height: 3px; background: linear-gradient(90deg, #5fd13a, var(--accent-2)); box-shadow: 0 0 14px rgba(var(--accent-rgb), .85); transition: width .25s linear, height .15s; }
.progress:hover::before, .progress:hover i { height: 6px; }

/* end of thread */
.end-slide { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #11200a, #050605 70%); }
.end-slide::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0,0,0,.35) 0 2px, transparent 2px 4px); }
.end-card { position: relative; max-width: 560px; padding: 24px; text-align: center; }
.end-card .static-kicker { margin-bottom: 14px; }
.end-card h2 { margin: 0; font-size: clamp(34px, 6vw, 58px); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.end-card p { margin: 14px 0 0; font: 500 14px/1.6 var(--mono); color: rgba(243,247,236,.72); }
.end-card .live-line { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(var(--accent-rgb), .45); background: rgba(var(--accent-rgb), .08); font: 700 11px/1 var(--mono); letter-spacing: .08em; color: var(--accent-2); }
.end-card .live-line i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.end-card .coffee { height: 54px; padding: 0 24px; font-size: 15px; }

/* ---------- Static / no-signal screen ---------- */
.static { position: fixed; inset: 0; z-index: 15; display: flex; flex-direction: column; align-items: center; justify-content: safe center; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; background: #030403; transition: opacity .45s ease, visibility .45s; }
.static.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.static canvas { position: fixed; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: .22; }
.static::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0,0,0,.42) 0 2px, transparent 2px 4px); }
.static::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,.88) 100%); }
.static-card { position: relative; z-index: 2; max-width: 660px; padding: 96px 24px 40px; text-align: center; }
.bars { display: flex; width: 220px; height: 8px; margin: 0 auto 22px; overflow: hidden; border-radius: 3px; }
.bars i { flex: 1; }
.bars i:nth-child(1) { background: #c0c0c0; } .bars i:nth-child(2) { background: #c0c000; } .bars i:nth-child(3) { background: #00c0c0; }
.bars i:nth-child(4) { background: #00c000; } .bars i:nth-child(5) { background: #c000c0; } .bars i:nth-child(6) { background: #c00000; } .bars i:nth-child(7) { background: #0000c0; }
.static-kicker { margin-bottom: 14px; font: 700 12px/1 var(--mono); letter-spacing: .24em; color: var(--accent-2); }
.static-title { margin: 0; font-size: clamp(46px, 10vw, 112px); font-weight: 800; line-height: .92; letter-spacing: -.045em; text-shadow: 3px 0 rgba(255,0,70,.65), -3px 0 rgba(0,220,255,.55); animation: jitter 4s steps(1) infinite; }
.static.is-loading .static-title::after { content: '_'; margin-left: 4px; color: var(--accent); animation: blink 1s steps(1) infinite; }
.static-sub { max-width: 540px; margin: 18px auto 0; font: 500 14px/1.65 var(--mono); color: rgba(243,247,236,.76); }
.static-sub:empty { display: none; }
.static-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.static-actions:empty { display: none; }
/* crawlable intro under the welcome card (hidden while tuning or on error screens) */
.static-intro { max-width: 600px; margin: 44px auto 0; padding: 22px 0 calc(8px + var(--sb)); border-top: 1px solid var(--line); text-align: left; }
.static-intro h2 { margin: 0 0 10px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: rgba(243,247,236,.92); }
.static-intro p { margin: 0 0 10px; font: 500 12.5px/1.65 var(--mono); color: rgba(243,247,236,.62); }
.static-intro a { color: var(--accent-2); text-decoration: none; }
.static-intro a:hover { text-decoration: underline; }
.static-intro .intro-boards a { display: inline-block; margin: 2px 8px 2px 0; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(var(--accent-rgb), .3); background: rgba(var(--accent-rgb), .07); }
.static-intro .intro-links { margin-top: 14px; font-size: 12px; }
.static.is-loading .static-intro, .static.no-intro .static-intro { display: none; }

/* ---------- Buttons ---------- */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 800 16px/1 var(--font); letter-spacing: -.01em; cursor: pointer; box-shadow: 0 12px 34px rgba(var(--accent-rgb), .34), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .15s, background .2s, opacity .2s; }
.btn-primary:hover { background: #a2f056; transform: translateY(-1px); }
.btn-primary:active { transform: scale(.97); }
.btn-primary .ico { width: 18px; height: 18px; }
.btn-primary.dim { opacity: .55; box-shadow: none; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: var(--ink); font: 700 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.wide { width: 100%; }
.wide span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Floating bits ---------- */
.unmute { position: fixed; left: 50%; top: calc(80px + var(--st)); z-index: 12; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(8,12,8,.8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font: 700 13px/1 var(--font); cursor: pointer; opacity: 0; transform: translate(-50%, -8px); pointer-events: none; transition: opacity .25s, transform .25s; }
.unmute.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; animation: nudge 2.4s ease-in-out 1s infinite; }
.toast { position: fixed; left: 50%; bottom: calc(118px + var(--sb)); z-index: 60; max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(14,18,14,.95); box-shadow: 0 10px 30px rgba(0,0,0,.45); font: 600 13px/1.3 var(--font); text-align: center; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Tuner sheet ---------- */
.backdrop { position: fixed; inset: 0; z-index: 30; display: flex; justify-content: flex-end; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.backdrop.open { opacity: 1; visibility: visible; }
.sheet { position: relative; display: flex; flex-direction: column; width: min(500px, 100%); height: 100%; border-left: 1px solid var(--line); background: linear-gradient(180deg, #111511, #090b09); box-shadow: -30px 0 80px rgba(0,0,0,.5); transform: translateX(40px); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.backdrop.open .sheet { transform: none; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: calc(24px + var(--st)) 24px 6px; }
.kicker { font: 700 11px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.sheet-head h2 { margin: 8px 0 0; font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.close-btn { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer; }
.close-btn:hover { background: rgba(255,255,255,.1); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 24px 0; padding: 5px; border-radius: 18px; border: 1px solid var(--line); background: rgba(0,0,0,.35); }
.step { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 8px 10px; border: 0; border-radius: 13px; background: transparent; text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.step:hover { background: rgba(255,255,255,.05); }
.step i { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); font: 700 11px/1 var(--mono); font-style: normal; }
.step span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.step b { font-size: 13px; font-weight: 700; line-height: 1; }
.step small { font: 500 10.5px/1.1 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step[aria-selected="true"] { background: rgba(var(--accent-rgb), .14); }
.step[aria-selected="true"] i { border-color: transparent; background: var(--accent); color: var(--accent-ink); }
.step.done:not([aria-selected="true"]) i { border-color: rgba(var(--accent-rgb), .6); color: var(--accent-2); }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 24px 24px; }
.sheet-foot { padding: 14px 24px calc(14px + var(--sb)); border-top: 1px solid var(--line); background: rgba(6,8,6,.92); }

.label { margin: 18px 0 10px; font: 700 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.label .count { letter-spacing: .04em; opacity: .7; }
.step-panel > .label:first-child { margin-top: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); font: 600 14px/1 var(--font); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.seg button:hover { border-color: rgba(255,255,255,.3); }
.seg button[aria-pressed="true"] { background: var(--ink); border-color: transparent; color: #0b0d0b; }
.seg.loops button { min-width: 64px; font-family: var(--mono); font-weight: 700; }
.hint { margin: 12px 0 0; font: 500 12px/1.5 var(--mono); color: var(--muted); }
.hint:empty { display: none; }
.hint.error { color: #ff9aac; }
.mini { height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); font: 600 11px/1 var(--mono); cursor: pointer; }
.mini:hover { border-color: var(--accent); }

/* board picker */
.search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0,0,0,.35); cursor: text; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.search .ico { color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 14px/1 var(--mono); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: rgba(243,247,236,.38); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px dashed rgba(255,255,255,.22); background: transparent; font: 700 12px/1 var(--mono); cursor: pointer; transition: border-color .15s, background .15s; }
.quick button small { font: 500 11px/1 var(--font); color: var(--muted); }
.quick button:hover { border-color: var(--accent); border-style: solid; }
.quick button[aria-pressed="true"] { border-style: solid; border-color: transparent; background: var(--accent); color: var(--accent-ink); }
.quick button[aria-pressed="true"] small { color: rgba(10,19,0,.7); }
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.board-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; min-height: 86px; padding: 11px 11px 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.035); text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.board-card:hover { border-color: rgba(255,255,255,.28); }
.board-card:active { transform: scale(.97); }
.board-card .bc-code { font: 700 15px/1 var(--mono); color: var(--accent-2); }
.board-card .bc-title { font-size: 12.5px; font-weight: 600; line-height: 1.2; color: rgba(243,247,236,.86); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.board-card .bc-badges { display: flex; gap: 4px; margin-top: auto; }
.board-card[aria-pressed="true"] { border-color: transparent; background: var(--accent); color: var(--accent-ink); }
.board-card[aria-pressed="true"] .bc-code, .board-card[aria-pressed="true"] .bc-title { color: var(--accent-ink); }
.tag { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 6px; border-radius: 5px; font: 700 9px/1 var(--mono); letter-spacing: .08em; }
.tag.sound { background: rgba(var(--accent-rgb), .16); color: var(--accent-2); }
.tag.adult { background: var(--adult); color: #fff; }
.tag .ico { width: 10px; height: 10px; stroke-width: 2.6; }
.board-card[aria-pressed="true"] .tag.sound { background: rgba(10,19,0,.18); color: var(--accent-ink); }

/* thread picker */
.thread-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.thread-board { min-width: 0; font-size: 18px; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-board code { font: 700 15px/1 var(--mono); color: var(--accent-2); }
.mix-card { display: flex; align-items: stretch; gap: 0; margin: 14px 0 12px; border-radius: 18px; border: 1px solid rgba(var(--accent-rgb), .4); background: linear-gradient(135deg, rgba(var(--accent-rgb), .14), rgba(210,255,114,.04)); overflow: hidden; }
.mix-pick { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.mix-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(var(--accent-rgb), .18); color: var(--accent-2); }
.mix-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mix-txt b { font-size: 15px; font-weight: 750; }
.mix-txt small { font: 500 11.5px/1.35 var(--mono); color: rgba(243,247,236,.7); }
.mix-n { display: flex; align-items: center; gap: 6px; padding: 0 14px; border-left: 1px solid rgba(var(--accent-rgb), .25); font: 600 12px/1 var(--mono); color: rgba(243,247,236,.8); white-space: nowrap; }
.mix-card.on { border-color: transparent; background: var(--accent); }
.mix-card.on .mix-pick, .mix-card.on .mix-n { color: var(--accent-ink); }
.mix-card.on .mix-txt small { color: rgba(10,19,0,.72); }
.mix-card.on .mix-ico { background: rgba(10,19,0,.14); color: var(--accent-ink); }
.mix-card.on .mix-n { border-left-color: rgba(10,19,0,.2); }
.thread-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.thread-card { display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.035); text-align: left; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.thread-card:hover { border-color: rgba(255,255,255,.3); }
.thread-card:active { transform: scale(.98); }
.thread-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 10px 30px rgba(var(--accent-rgb), .2); }
.tc-thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #0d120d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='m9 12 4 4-4 4M15 21h7' fill='none' stroke='%23314a22' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 44px; }
.tc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.thread-card:hover .tc-thumb img { transform: scale(1.04); }
.tc-badges { position: absolute; left: 6px; top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.tc-badges .tag { height: 20px; background: rgba(0,0,0,.72); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tc-badges .tag.video { background: var(--accent); color: var(--accent-ink); }
.tc-badges .tag.ico-tag .ico { width: 9px; height: 9px; }
.tc-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 11px 11px; min-width: 0; }
.tc-sub { font-size: 13.5px; font-weight: 650; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.tc-sub.teaser { font-weight: 500; color: rgba(243,247,236,.82); }
.tc-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 600 11px/1 var(--mono); color: var(--muted); }
.tc-meta b { color: var(--ink); font-weight: 700; }
.skeleton { aspect-ratio: 4 / 4.4; border-radius: 16px; background: linear-gradient(100deg, rgba(255,255,255,.03) 30%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.03) 70%) 0 0 / 300% 100%; animation: shimmer 1.3s linear infinite; }

/* playback */
.field { padding: 18px 0; border-bottom: 1px solid var(--line); }
.field.first { padding-top: 0; }
.field .label { margin-top: 0; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 16px; }
.switch-row.first { padding-top: 0; }
.sw-title { font-size: 15px; font-weight: 650; }
.sw-sub { margin-top: 4px; font: 500 12px/1.5 var(--mono); color: var(--muted); }
.switch { position: relative; flex: none; width: 48px; height: 28px; }
.switch input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.16); transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.switch.is-fixed input { cursor: default; }
.switch.is-fixed span { opacity: .55; }
.still-row .sw-sub { padding-right: 8px; }
select.inline { -webkit-appearance: none; appearance: none; height: 26px; margin-left: 2px; padding: 0 22px 0 9px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3f7ec' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 7px center / 10px; color: var(--ink); font: 600 12px/1 var(--mono); cursor: pointer; vertical-align: middle; }
select.inline:disabled { opacity: .45; cursor: default; }
select.inline option { background: #131813; }
.mix-card.on select.inline { border-color: rgba(10,19,0,.3); background-color: rgba(10,19,0,.12); color: var(--accent-ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1300' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.hidden-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 500 13px/1.4 var(--mono); color: rgba(243,247,236,.82); }
.keys { margin-top: 18px; font: 500 11px/2 var(--mono); color: rgba(243,247,236,.45); }
.keys kbd { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 5px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); font: inherit; line-height: 1.5; color: rgba(243,247,236,.82); text-align: center; }

/* settings: 18+ switch, install */
.btn-small { flex: none; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 800 13px/1 var(--font); cursor: pointer; transition: background .2s, transform .15s, opacity .2s; }
.btn-small:hover { background: #a2f056; }
.btn-small:active { transform: scale(.96); }
.btn-small:disabled { opacity: .5; cursor: default; }
.sw-title .tag { vertical-align: 2px; margin-left: 6px; }
.switch input:disabled + span { opacity: .55; }
.install-card .install-icon { display: block; width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 18px; box-shadow: 0 10px 30px rgba(var(--accent-rgb), .25); }
.install-steps { margin: 12px 0 22px; padding-left: 22px; text-align: left; font-size: 14px; line-height: 1.55; color: rgba(243,247,236,.84); }
.install-steps li { margin: 6px 0; }
.install-steps b { color: var(--accent-2); }

/* ---------- more / comments / downloads sheets ---------- */
.sheet-actions { height: auto; max-height: 92dvh; width: min(440px, 100%); border: 1px solid var(--line); border-radius: 26px; transform: translateY(24px); }
.backdrop:has(> .sheet-actions) { align-items: center; justify-content: center; }
.sheet-actions .sheet-body { padding-top: 12px; }
.act-list { display: flex; flex-direction: column; gap: 8px; }
.act-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.act-row:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.act-row .ico { width: 22px; height: 22px; color: var(--accent-2); }
.act-row span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.act-row b { font-size: 15px; font-weight: 650; }
.act-row small { font: 500 11.5px/1.3 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-comments .sheet-body { display: flex; flex-direction: column; }
.cmt-list { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.cmt { padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.035); }
.cmt.mine { border-color: rgba(var(--accent-rgb), .35); background: rgba(var(--accent-rgb), .07); }
.cmt-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font: 600 11.5px/1 var(--mono); color: var(--muted); }
.cmt-head b { color: var(--accent-2); font-weight: 700; }
.cmt-tag { opacity: .7; }
.cmt-when { margin-left: auto; }
.cmt-del { display: grid; place-items: center; width: 28px; height: 28px; margin: -4px -6px -4px 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.cmt-del:hover { background: rgba(255,59,92,.15); color: #ff94a6; }
.cmt-del .ico { width: 15px; height: 15px; }
.cmt-body { font: 500 14.5px/1.45 var(--font); overflow-wrap: anywhere; }
.cmt-body p { margin: 0; min-height: 1.45em; }
.cmt-body .gt { color: var(--greentext); }
.cmt-body .ql { color: var(--quote); }
.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 140px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.35); color: var(--ink); font: 500 15px/1.4 var(--font); resize: none; outline: 0; transition: border-color .2s, box-shadow .2s; }
.composer textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.composer .btn-small { height: 44px; }
.composer-sub { margin-top: 8px; font: 500 11.5px/1.4 var(--mono); color: var(--muted); }
.composer-sub b { color: var(--accent-2); font-weight: 700; }
.linkish { padding: 0; border: 0; background: none; font: inherit; color: var(--accent-2); text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.dl-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.dl-card { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.035); }
.dl-thumb { position: relative; flex: none; width: 84px; height: 62px; padding: 0; overflow: hidden; border: 0; border-radius: 10px; background: #0d120d; cursor: pointer; }
.dl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dl-thumb .tag { position: absolute; left: 5px; bottom: 5px; height: 18px; background: rgba(0,0,0,.7); color: #fff; }
.dl-body { flex: 1; min-width: 0; }
.dl-title { display: block; max-width: 100%; padding: 0; border: 0; background: none; color: inherit; font: 650 14px/1.25 var(--font); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-meta { margin-top: 4px; font: 500 11px/1.4 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-del { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.dl-del:hover { border-color: rgba(255,59,92,.5); color: #ff94a6; }
.dl-del .ico { width: 17px; height: 17px; }
.dl-foot { display: flex; align-items: center; gap: 12px; }
.dl-foot .btn-primary { flex: 1; }
.btn-primary:disabled { opacity: .45; cursor: default; transform: none; }
.nick-form { display: flex; gap: 8px; margin-top: 14px; }
.nick-form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.35); color: var(--ink); font: 500 15px/1 var(--font); outline: 0; transition: border-color .2s, box-shadow .2s; }
.nick-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.nick-form .btn-small { height: 44px; }
.you-tag { font: 600 12px/1 var(--mono); color: var(--muted); }

/* ---------- 18+ modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-card { width: min(420px, 100%); padding: 30px 26px 24px; border-radius: 26px; border: 1px solid var(--line); background: #0f130f; box-shadow: 0 30px 80px rgba(0,0,0,.6); text-align: center; }
.age-badge { width: 72px; height: 72px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--adult); color: #fff; font: 800 24px/1 var(--font); box-shadow: 0 0 0 8px rgba(255,59,92,.15); }
.modal-card h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.modal-card p { margin: 10px 0 22px; font-size: 14px; line-height: 1.55; color: rgba(243,247,236,.76); }
.modal-actions { display: grid; gap: 10px; }

/* ---------- Motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes shimmer { to { background-position: -150% 0; } }
@keyframes jitter { 0%, 92%, 100% { transform: none; } 93% { transform: translate(-3px, 1px) skewX(-4deg); } 95% { transform: translate(3px, -1px); } 97% { transform: translate(-1px, 0) skewX(3deg); } }
@keyframes nudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -3px); } }
@keyframes shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
.shake { animation: shake .4s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .onair { display: none; }
}
@media (max-width: 760px) {
  .topbar { gap: 8px; padding: calc(12px + var(--st)) 12px 34px 14px; }
  .channel { display: none; }
  .brand { margin-right: auto; }
  .wordmark { font-size: 20px; }
  .pill-btn span, .coffee span { display: none; }
  .pill-btn, .coffee { width: 40px; padding: 0; justify-content: center; }
  .live-pill { padding: 0 8px; }
  .meta { right: 74px; bottom: calc(26px + var(--sb)); padding: 0 16px; }
  .title { font-size: 18px; }
  .post-card { width: calc(100% - 28px); max-height: 56vh; max-height: 56dvh; padding: 18px 18px 20px; border-radius: 18px; transform: translate(-50%, -57%); }
  .post-head { margin-bottom: 10px; }
  .com { font-size: 12.5px; }
  .rail { right: 10px; gap: 8px; }
  .rail-item { gap: 3px; }
  .rail-btn { width: 44px; height: 44px; }
  .rail-btn .ico { width: 20px; height: 20px; }
  .rail-label { display: none; }
  .rail-label.rail-count { display: block; font-size: 10px; }
  .rail-count:empty::after { content: none; }
  .sheet-actions, .sheet-comments, .sheet-downloads { width: 100%; }
  .backdrop:has(> .sheet-actions) { align-items: flex-end; }
  .sheet-actions { border: 0; border-top: 1px solid var(--line); border-radius: 26px 26px 0 0; }
  .backdrop { align-items: flex-end; }
  .sheet { width: 100%; height: auto; max-height: 92dvh; border-left: 0; border-top: 1px solid var(--line); border-radius: 26px 26px 0 0; transform: translateY(40px); }
  .sheet::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(255,255,255,.2); }
  .sheet-head { padding: 24px 18px 4px; }
  .sheet-head h2 { font-size: 28px; }
  .steps { margin: 12px 18px 0; }
  .step { gap: 7px; padding: 8px; }
  .sheet-body { padding: 16px 18px 20px; }
  .sheet-foot { padding: 12px 18px calc(12px + var(--sb)); }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .mix-card { flex-direction: column; }
  .mix-n { padding: 10px 14px; border-left: 0; border-top: 1px solid rgba(var(--accent-rgb), .25); }
  .mix-card.on .mix-n { border-top-color: rgba(10,19,0,.2); }
  .end-card .coffee { width: auto; padding: 0 24px; }
  .end-card .coffee span { display: inline; }
}
@media (max-width: 480px) {
  .step i { display: none; }
}
@media (max-width: 380px) {
  .onair, .live-pill { display: none; }
}
