/* Generated by server/web/critical-css.js from style.css: the rules a public page's first view uses. */
:root {
    /* Fallbacks only: the Vibe theme (openvibe-shared/builtin-themes.js) sets these on <html>
       before the first paint. Kept identical to it so a no-JS page looks the same. */
    --bg-primary: #0a0f1c;
    --bg-secondary: #101828;
    --bg-tertiary: #172238;
    --bg-card: #131c2e;
    --bg-hover: #1c2a44;
    --bg-input: #0d1424;

    --text-primary: #e6edf7;
    --text-secondary: #96a7c2;
    --text-muted: #7386a3;

    --accent: #3b82f6;           /* OpenVibe blue */
    --accent-light: #60a5fa;
    --accent-dark: #1d4ed8;
    --on-accent: #ffffff; /* readable text/icon color on top of --accent; every theme sets its own */

    --live-red: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #38bdf8;

    --border: #1f2d47;
    --border-light: #2c3d5c;

    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;

    --shadow: 0 2px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);

    /* Spacing, elevation and motion tokens. New components use these rather than one-off values, so
       timing and depth stay consistent across routes and every theme inherits them. */
    --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px;
    --radius-pill: 999px;
    --elev-1: 0 1px 2px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.18);
    --elev-2: 0 6px 20px rgba(0,0,0,0.30);
    --elev-3: 0 16px 44px rgba(0,0,0,0.42);
    --focus-ring: 0 0 0 2px var(--bg-primary), 0 0 0 4px color-mix(in srgb, var(--accent) 85%, white);
    --motion-fast: 120ms;
    --motion-normal: 200ms;
    --motion-slow: 360ms;
    --ease-standard: cubic-bezier(0.2, 0, 0, 1);
    --ease-emphasized: cubic-bezier(0.2, 0.8, 0.2, 1.08);
    --ease-exit: cubic-bezier(0.4, 0, 1, 1);
    --lift-sm: -1px;
    --lift-md: -3px;
    --backdrop-modal: color-mix(in srgb, #000 58%, transparent);
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'Consolas', 'Courier New', monospace;

    --navbar-h: 56px;
    --chat-w: clamp(300px, 22vw, 400px);
    --content-max: 1440px;
    --glass: rgba(22, 22, 26, 0.78);
    --glass-strong: rgba(18, 18, 24, 0.92);
    --shadow-soft: 0 12px 40px rgba(0,0,0,0.28);
    --ring-accent: 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent), 0 18px 40px rgba(0,0,0,0.28);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    /* Theme-following page backdrop (was a hardcoded dark gradient that made every
       LIGHT theme render dark → invisible dark text). */
    background-image: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 42%);
    background-attachment: fixed;
}
body::before,
body::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.32;
    border-radius: 50%;
}
body::before {
    top: 0;
    left: 0;
    width: min(560px, 70vw);
    height: 560px;
    border-radius: 0;
    background: radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--accent) 28%, transparent) 0%, color-mix(in srgb, var(--accent) 12%, transparent) 30%, transparent 62%);
}
body::after {
    right: 0;
    top: calc(25vh - 120px);
    width: min(480px, 60vw);
    height: 480px;
    border-radius: 0;
    background: radial-gradient(circle at 92% 50%, rgba(52, 152, 219, 0.15) 0%, rgba(52, 152, 219, 0.06) 32%, transparent 62%);
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
main#app { position: relative; z-index: 1; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
html { -webkit-tap-highlight-color: transparent; }
:root { --press-scale: 0.97; --press-scale-card: 0.985; }
@media (prefers-reduced-motion: reduce) {
:root { --press-scale: 1; --press-scale-card: 1; }
}
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--navbar-h);
    background: var(--glass);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center;
    padding: 0 16px;
    gap: 16px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
    overflow: visible;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
body.ov-nav-overlay .navbar.ovnav-top {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
#page-home.page { padding-top: 0; }
#page-home .hero { padding-top: calc(var(--navbar-h) + clamp(20px, 4vw, 44px)); }
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: var(--radius);
    font-size: 0.9rem; font-weight: 500;
    border: 1px solid transparent; transition: all 0.2s; cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}
.btn-primary { background: var(--accent-strong, var(--accent, #3472d8)); color: var(--on-accent-strong, var(--on-accent, #0b0d10)); }
.btn-outline {
    background: transparent; color: var(--text-primary);
    border: 1px solid var(--border-light);
    box-shadow: none;
}
.btn-danger { background: var(--danger); color: #fff; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }
.btn-small { padding: 4px 8px; font-size: 0.8rem; }
.btn-follow { background: var(--live-red); color: #fff; }
.btn-openvibe-bucks-mini {
    flex-shrink: 0;
    padding: 6px 8px; background: transparent;
    border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--accent); font-size: 0.85rem; cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    line-height: 1;
}
.container {
    max-width: var(--content-max); margin: 0 auto;
    padding: 0 clamp(16px, 2vw, 28px);
}
.content-container {
    max-width: var(--content-max); margin: 0 auto;
    padding: 0 clamp(16px, 2vw, 28px);
}
.page { display: none; padding-top: var(--navbar-h); min-height: 100vh; padding-bottom: 32px; }
.page.active { display: block; }
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 65%);
    border-bottom: 1px solid var(--border);
    padding: clamp(48px, 8vw, 84px) 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero::before {
    width: 520px;
    height: 520px;
    top: -260px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 68%);
}
.hero::after {
    width: 300px;
    height: 300px;
    right: 8%;
    bottom: -130px;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent, var(--accent)) 14%, transparent), transparent 70%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem); color: var(--accent);
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}
.hero p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2.2vw, 1.16rem);
    margin: 0 auto 24px;
    max-width: 640px;
}
.hero .hero-tagline {
    display: block;
    text-align: center;
    line-height: 1.25;
    white-space: nowrap;
    font-size: clamp(1.5rem, 3.8vw, 2.35rem);
    font-weight: 600;
    color: var(--text);
    margin: 2px auto 22px;
}
.hero-philosophy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    color: var(--accent-light);
    font-weight: 600;
    transition: all 0.2s ease;
}
.hero-egg-titles { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; flex: 1; }
.egg-key { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-tertiary); color: var(--text-primary); font: inherit; font-weight: 800; cursor: pointer; transition: transform .1s, background .15s, border-color .15s; }
.egg-key--letter { min-width: 0; height: 30px; padding: 0; font-size: 0.8rem; text-transform: uppercase; }
.network-hub-header > i {
    font-size: 1.6rem; line-height: 1; color: var(--accent); flex-shrink: 0;
    background: color-mix(in srgb, var(--accent) 10%, transparent); padding: 12px; border-radius: 12px;
}
.network-hub-header h3 {
    font-size: 1.15rem; font-weight: 800; color: var(--text-primary); margin: 0;
    letter-spacing: -0.3px;
}
.network-hub-header p {
    font-size: 0.82rem; color: var(--text-secondary); margin: 3px 0 0;
}
.network-card-info { flex: 1; min-width: 0; }
.network-card-info strong {
    display: block; font-size: 0.85rem; font-weight: 700;
    color: var(--text-primary); margin-bottom: 2px;
}
.network-card-info span {
    display: block; font-size: 0.72rem; color: var(--text-secondary);
    line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 768px) {
.network-card-info span { white-space: normal; }
}
@media (max-width: 480px) {
.network-card-info strong { font-size: 0.8rem; }
.network-card-info span { font-size: 0.68rem; }
}
.section-header {
    display: flex; align-items: center; gap: 10px;
    margin: 24px 0 16px;
    justify-content: space-between;
    flex-wrap: wrap;
}
.section-header > * { min-width: 0; }
.section-header h2 { font-size: 1.2rem; }
.badge {
    background: var(--live-red); color: #fff;
    padding: 2px 8px; border-radius: 10px;
    font-size: 0.75rem; font-weight: 600;
}
.live-dot {
    color: var(--live-red); font-size: 0.6rem;
    animation: pulse-live 1.5s infinite;
}
.stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 18px;
    margin-bottom: 32px;
}
.stream-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: var(--shadow-soft);
    background-image: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 45%);
    color: inherit;
    text-decoration: none;
}
.stream-card-thumb {
    aspect-ratio: 16/9;
    background: var(--bg-tertiary);
    position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.stream-card-thumb i { font-size: 2rem; color: var(--text-muted); }
.stream-card-thumb img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
}
.stream-card-thumb { container-type: inline-size; }
.stream-card-viewers,
.stream-card-duration {
    --badge-ink: color-mix(in srgb, var(--accent) 16%, rgba(9, 9, 13, 0.56));
    --badge-ink-hover: color-mix(in srgb, var(--accent) 18%, rgba(9, 9, 13, 0.82));
    position: absolute; bottom: 5px;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 6px; border-radius: 7px;
    font-size: clamp(0.7rem, 4.6cqw, 0.8rem);
    font-weight: 700; line-height: 1.3;
    color: #fff;
    font-variant-numeric: tabular-nums;
    background: var(--badge-ink);
    box-shadow: 0 1px 7px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.11);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 5px rgba(0, 0, 0, 0.55);
    opacity: 0.72;
    pointer-events: none;
    transition: opacity 0.18s ease, background-color 0.18s ease;
}
.stream-card-duration { left: 5px; }
.stream-card-viewers { right: 5px; }
.stream-card-viewers i { font-size: 0.8em; opacity: 0.92; }
.stream-card-viewers b { font-weight: 800; letter-spacing: 0.01em; }
@media (hover: none) {
.stream-card-viewers, .stream-card-duration { opacity: 0.86; }
}
@container (max-width: 150px) {
.stream-card-viewers, .stream-card-duration { padding: 1px 5px; gap: 3px; bottom: 4px; border-radius: 6px; font-size: 0.68rem; }
.stream-card-duration { left: 4px; }
.stream-card-viewers { right: 4px; }
}
@supports not (container-type: inline-size) {
.stream-card-viewers, .stream-card-duration { font-size: 0.74rem; }
}
.protocol-badge {
    display: inline-block;
    padding: 2px 7px; border-radius: var(--radius-sm);
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.5px;
    text-transform: uppercase; vertical-align: middle;
}
.protocol-rtmp   { background: #f59e0b; color: #1a1a2e; }
.stream-card-info { padding: 12px; }
.stream-card-title {
    font-size: 0.98rem; font-weight: 650;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    line-height: 1.35;
}
.stream-card-streamer {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--text-secondary);
    flex-wrap: wrap;
}
.stream-card-avatar {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--accent); color: #000; font-size: 0.65rem;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; flex-shrink: 0;
}
.empty-state {
    grid-column: 1/-1;
    text-align: center; padding: 48px 20px;
    color: var(--text-muted);
}
.empty-state i { margin-bottom: 16px; opacity: 0.5; }
.muted { color: var(--text-muted); font-size: 0.9rem; }
.streamer-group-name { font-weight: 650; font-size: 0.95rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.streamer-group-stream-thumb {
    width: 72px; height: 40px; border-radius: 4px;
    overflow: hidden; background: var(--bg-tertiary);
    flex-shrink: 0; position: relative;
    display: flex; align-items: center; justify-content: center;
}
.streamer-group-stream-info { flex: 1; min-width: 0; }
.hero-rotate-wrap {
    display: inline-block;
    text-align: center;
    position: relative;
    min-width: 0;
    vertical-align: baseline;
}
.hero-rotate.visible {
    opacity: 1;
    transform: translateY(0);
}
.hero { min-height: clamp(560px, 78vh, 760px); display: flex; align-items: center; justify-content: center; }
.hero-content { position: relative; z-index: 2; }
.hero-collage {
    position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
    perspective: 1200px; perspective-origin: 50% 42%; transform-style: preserve-3d;
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-float {
    position: absolute; display: block; width: var(--w, 120px); aspect-ratio: 16 / 10;
    pointer-events: auto; text-decoration: none; transform-style: preserve-3d; transform-origin: center;
    opacity: 0; transform: translate3d(0, 12px, var(--z, 0px));
    animation: heroFloatIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--in-delay, 0s) forwards,
               heroFloat3d var(--dur, 14s) ease-in-out var(--delay, 0s) infinite alternate;
    transition: opacity 0.6s ease;
    will-change: transform, opacity;
}
.hero-float-inner {
    position: absolute; inset: 0; border-radius: 13px; overflow: hidden;
    background: color-mix(in srgb, var(--bg-secondary) 88%, #000);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(0, 0, 0, 0.22) inset;
    filter: blur(var(--blur, 0px)); opacity: 1; transform: scale(1); transform-origin: center;
    transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.55s ease, box-shadow 0.35s ease, filter 0.35s ease;
}
.hero-float img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-float-body {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 7px 8px; gap: 2px; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72) 100%);
}
.hero-float--vod .hero-float-badge { background: #5865f2; border-color: #8b93ff; }
.hero-float--clip .hero-float-badge { background: #2ecc71; border-color: #6fe0a2; color: #05130a; }
.hero-float--paste .hero-float-badge { background: var(--accent-strong, var(--accent, #3472d8)); border-color: var(--accent-light); color: var(--on-accent-strong, var(--on-accent, #0b0d10)); }
.hero-scrim {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(ellipse 62% 60% at 50% 46%, var(--bg-primary) 0%, color-mix(in srgb, var(--bg-primary) 82%, transparent) 42%, transparent 78%),
        linear-gradient(180deg, color-mix(in srgb, var(--bg-primary) 55%, transparent) 0%, transparent 22%, transparent 78%, var(--bg-primary) 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-bg-layer {
    position: absolute; inset: 0;
    background-position: center; background-size: cover; background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.8s ease;
    filter: brightness(0.5) saturate(1.2) contrast(1.03);
    transform: scale(1.08);
    will-change: opacity, transform;
}
.hero-bg-layer.active { opacity: 1; animation: heroBgKenBurns 12s ease-out both; }
@media (prefers-reduced-motion: reduce) {
.hero-bg-layer.active { animation: none; transform: scale(1.08); }
}
.hero .hero-tagline {
    white-space: normal; text-align: center; margin: 0 auto 2px; max-width: 860px;
    display: grid; place-items: center; min-height: 2.6em;
    text-wrap: balance; overflow-wrap: break-word;
}
.hero-quip.visible { opacity: 0.92; transform: translateY(0); }
.hero-content { min-width: 0; max-width: min(860px, 92vw); margin: 0 auto; }
.hero-stats {
    display: flex; flex-direction: column; gap: 10px; margin: 4px 0 26px;
    /* Break out of the 860px hero text column: a stat board wants dashboard width. */
    width: min(1240px, 94vw); position: relative; left: 50%; transform: translateX(-50%);
    /* No panel: the chips are the cards. A big translucent rectangle behind them only boxed the
       hero in and fought the background art. */
    background: none; border: 0; box-shadow: none; text-align: left;
}
.hero-latest b { color: var(--text-primary); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.pulse-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 28px; }
.pulse-kicker i { color: var(--accent); margin-right: 4px; }
.pulse-sub b { color: var(--accent); }
.pulse-act i { color: var(--accent); margin-right: 5px; }
.pulse-rank b { font-variant-numeric: tabular-nums; }
.home-digest {
    margin: 20px 0 26px; padding: 16px 18px 15px; border-radius: 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--bg-secondary)), var(--bg-secondary) 70%);
    border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.digest-title i { color: var(--accent); margin-right: 6px; }
.digest-stat i { color: var(--accent); margin-right: 3px; font-size: 0.78rem; }
.digest-stat b { color: var(--text-primary); font-weight: 800; }
.digest-chip {
    position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 7px; border-radius: 999px;
    background: var(--bg-tertiary); border: 1px solid var(--border); text-decoration: none; color: var(--text-primary);
    font-size: 0.84rem; transition: border-color 0.15s ease, transform 0.15s ease;
}
.digest-hot-line i { color: #f472b6; margin-right: 4px; font-style: normal; }
.digest-hot-line b { font-style: normal; color: var(--text-primary); font-weight: 700; }
@media (max-width: 640px) {
.home-digest { padding: 14px 14px 12px; margin: 14px 0 20px; }
}
.hero-stat {
    display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 13px; min-width: 0;
    background: color-mix(in srgb, var(--bg-secondary) 78%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px -12px rgba(0, 0, 0, 0.7);
}
.hero-stat > i { color: var(--accent); }
.hero-stat-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; min-width: 0; }
.hero-stat-label, .hero-stat-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hero-stat-num { font-size: 1.22rem; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.hero-stat-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.hero-stat-sub { font-size: 0.6rem; font-weight: 700; color: color-mix(in srgb, var(--accent, #8b5cf6) 85%, var(--text-muted)); letter-spacing: 0.02em; }
.hero-slogan-timer i { color: var(--accent); margin-right: 4px; }
.hero-slogan-timer b { color: var(--text-secondary); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
.hero { min-height: clamp(480px, 82vh, 620px); }
.hero-stat { padding: 7px 9px; gap: 7px; }
.hero-stat-num { font-size: 1.05rem; }
}
.home-cta-banner {
    position: relative;
    border-radius: 22px;
    padding: clamp(26px, 4vw, 48px) clamp(18px, 3vw, 40px);
    margin: 28px 0 36px;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(120% 90% at 50% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
        linear-gradient(180deg, rgba(24,20,15,0.96), rgba(12,11,14,0.985));
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    box-shadow: 0 30px 80px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05);
}
.home-about-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 6px auto 2px; padding: 9px 18px;
    background: color-mix(in srgb, var(--accent) 16%, rgba(255,255,255,0.04));
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    color: #f4f2ef; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.01em;
    border-radius: 999px; cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.home-about-body {
    overflow: hidden;
    max-height: 8000px; opacity: 1;
    transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, margin 0.4s ease;
}
@media (prefers-reduced-motion: reduce) {
.home-about-body { transition: opacity 0.3s ease; }
}
.cta-ambient {
    position: absolute; inset: -20%; z-index: -1; pointer-events: none;
    background:
        radial-gradient(38% 42% at 18% 22%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
        radial-gradient(34% 40% at 82% 30%, color-mix(in srgb, var(--accent-dark) 14%, transparent), transparent 60%),
        radial-gradient(46% 50% at 60% 96%, rgba(52,152,219,0.10), transparent 62%);
    /* No blur (the gradients already fade to nothing) and no drift: this layer is 140% the size
       of the banner — 4MP on desktop — and an animation, even paused off screen, keeps it
       promoted. A still glow reads the same. */
    animation: none;
}
.cta-embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cta-embers span {
    position: absolute; bottom: -12px; width: 4px; height: 4px; border-radius: 50%;
    background: radial-gradient(circle, var(--accent-light), transparent);
    opacity: 0; animation: ctaEmber 7s linear infinite;
}
.home-cta-inner { max-width: 940px; margin: 0 auto; position: relative; }
.home-cta-banner .cta-hero,
.home-cta-banner .cta-method strong,
.home-cta-banner .home-cta-feature > strong,
.home-cta-banner .cta-lede strong { color: #f4f2ef; }
.home-cta-banner .cta-method span,
.home-cta-banner .home-cta-feature > span { color: #918f8b; }
.home-cta-banner .cta-method span b { color: #d6d4d0; }
.home-cta-banner .btn-outline { color: #e8e6e3; border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: rgba(255,255,255,0.03); }
.cta-hero {
    font-size: clamp(1.8rem, 4.6vw, 3.1rem); font-weight: 900; line-height: 1.05;
    letter-spacing: -0.02em; margin: 0 0 14px; color: var(--text-primary);
}
.cta-hero-grad {
    background: linear-gradient(100deg, var(--accent-light), var(--accent) 30%, var(--accent-dark) 55%, var(--accent-light) 85%);
    background-size: 220% auto; -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: ctaShimmer 5s linear infinite;
}
.cta-lede strong { color: var(--text-primary); }
.cta-section-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--text-secondary); margin: 8px 0 14px;
}
.cta-section-label i { color: var(--accent); }
.cta-method {
    position: relative; padding: 18px 18px 16px; border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    overflow: hidden;
}
.cta-method-num { position: absolute; top: 10px; right: 14px; font-size: 1.6rem; font-weight: 900; color: color-mix(in srgb, var(--accent) 16%, transparent); letter-spacing: -0.03em; }
.cta-method strong { display: block; font-size: 0.98rem; color: var(--text-primary); margin-bottom: 5px; }
.cta-method span { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.cta-method span b { color: var(--text-secondary); }
.home-cta-feature {
    position: relative; display: flex; flex-direction: column; gap: 5px;
    padding: 16px 16px; border-radius: 13px;
    background: rgba(255,255,255,0.028);
    border: 1px solid rgba(255,255,255,0.07);
    transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
    /* `both` holds the from-state (opacity 0) for the whole animation-delay, and a subtree whose
       rendering is skipped or deferred can sit in that state indefinitely — which is how a card
       ends up as an empty outline in the middle of the list. `backwards` is not needed here: the
       card's resting style is already the end state, so without a fill mode it is simply visible
       until the animation runs, and visible after. Nothing can leave it blank. */
    animation: ctaRise .5s ease;
}
.home-cta-features .home-cta-feature:nth-child(1){ animation-delay: .02s; }
.home-cta-features .home-cta-feature:nth-child(2){ animation-delay: .06s; }
.home-cta-features .home-cta-feature:nth-child(3){ animation-delay: .10s; }
.home-cta-features .home-cta-feature:nth-child(4){ animation-delay: .14s; }
.home-cta-features .home-cta-feature:nth-child(5){ animation-delay: .18s; }
.home-cta-features .home-cta-feature:nth-child(6){ animation-delay: .22s; }
.home-cta-features .home-cta-feature:nth-child(7){ animation-delay: .26s; }
.home-cta-features .home-cta-feature:nth-child(8){ animation-delay: .30s; }
.home-cta-features .home-cta-feature:nth-child(9){ animation-delay: .34s; }
.home-cta-feature > i { font-size: 1.15rem; color: var(--accent); margin-bottom: 3px; }
.home-cta-feature > strong { font-size: 0.88rem; color: var(--text-primary); }
.home-cta-feature > span { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.cta-btn-glow { position: relative; isolation: isolate; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent-dark) 35%, transparent); }
@media (prefers-reduced-motion: reduce) {
.home-cta-banner::before, .cta-ambient, .cta-embers span, .cta-live-dot, .cta-hero-grad,
    .cta-btn-glow, .home-cta-feature {
        animation: none !important;
    }
}
.home-paste-media {
    position: relative;
    height: 150px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), rgba(52,152,219,0.08));
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.home-paste-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home-paste-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(13,13,15,0.58); display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--text-primary); flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
}
.home-paste-info { min-width: 0; flex: 1; }
.home-paste-type {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    background: rgba(13,13,15,0.78);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 640px) {
.hero-rotate-wrap { min-width: 0; }
}
.stream-layout {
    display: flex; height: calc(100vh - var(--navbar-h));
}
.video-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 0; opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
}
.video-controls {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px;
}
.vc-btn {
    background: none; border: none; color: #fff;
    font-size: 1rem; padding: 6px 8px; border-radius: var(--radius-sm);
    opacity: 0.9; transition: all 0.2s; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    min-width: 32px; min-height: 32px;
}
.vc-spacer { flex: 1; }
.vc-volume-group {
    display: flex; align-items: center; gap: 2px;
}
.vc-volume-group .volume-slider {
    /* Collapse by width only — NOT overflow:hidden, which would clip the round thumb. */
    width: 0; opacity: 0; transition: width 0.3s, opacity 0.3s;
}
.volume-slider {
    -webkit-appearance: none; appearance: none;
    height: 18px; background: transparent;
    outline: none; cursor: pointer; margin: 0;
}
.volume-slider::-webkit-slider-runnable-track {
    height: 4px; border-radius: 2px; background: rgba(255,255,255,0.3);
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--accent); cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    /* Center the thumb on the 4px track: (track - thumb) / 2 = (4 - 13) / 2. */
    margin-top: -4.5px;
    transition: transform 0.12s ease;
}
.dvr-progress-wrap {
    width: 100%; padding: 8px 12px;
    cursor: pointer;
}
.dvr-progress-bar {
    position: relative;
    height: 4px; background: rgba(255,255,255,0.2);
    border-radius: 2px; overflow: visible;
    transition: height 0.15s;
}
.dvr-progress-fill::after {
    content: '';
    position: absolute; right: -7px; top: 50%;
    transform: translateY(-50%) scale(1);
    width: 14px; height: 14px; border-radius: 50%;
    background: #e53e3e; border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.5);
    transition: transform 0.12s ease;
}
.vc-progress-wrap {
    width: 100%; padding: 8px 12px;
    cursor: pointer;
}
.vc-progress-bar {
    position: relative;
    height: 4px; background: rgba(255,255,255,0.2);
    border-radius: 2px; overflow: visible;
    transition: height 0.15s;
}
.vc-progress-fill {
    height: 100%; background: var(--accent);
    border-radius: 2px; width: 0%;
    position: relative; transition: none;
}
.vc-progress-fill::after {
    content: '';
    position: absolute; right: -7px; top: 50%;
    transform: translateY(-50%) scale(1);
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--accent); border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.5);
    transition: transform 0.12s ease;
}
.vc-progress-buffer {
    position: absolute; top: 0; left: 0;
    height: 100%; background: rgba(255,255,255,0.15);
    border-radius: 2px; width: 0%;
}
.vc-time-display {
    font-size: 0.75rem; color: rgba(255,255,255,0.85);
    font-family: var(--font-mono);
    white-space: nowrap; padding: 0 4px;
    min-width: 82px; text-align: center;
}
.vod-player-container {
    position: relative; width: 100%;
    background: #000; border-radius: 0;
    overflow: hidden;
    /* The usual shape before the video knows its own: a taller video still grows the box (aspect-ratio is a minimum
       for content), and nothing below jumps when a 16:9 one arrives. */
    aspect-ratio: 16 / 9; max-height: 70vh;
}
.vp-live-indicator {
    position: absolute; top: 12px; right: 12px;
    display: flex; align-items: center; gap: 8px;
    z-index: 10; opacity: 1; pointer-events: auto;
}
.goal-bar {
    height: 20px; background: var(--bg-primary);
    border-radius: 10px; overflow: hidden;
}
.goal-fill {
    height: 100%; background: linear-gradient(90deg, var(--accent-dark), var(--accent));
    border-radius: 10px; transition: width 0.5s ease;
}
.video-overlay { z-index: 10; }
.chat-sidebar {
    width: var(--chat-w); background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    display: flex; flex-direction: column;
    flex-shrink: 0;
    overscroll-behavior: contain;
}
.chat-header {
    padding: 10px 14px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.85rem; font-weight: 700; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.chat-header-actions { display: flex; align-items: center; gap: 2px; }
.chat-settings-btn { background: none; border: none; color: var(--text-muted); font-size: 1rem; cursor: pointer; padding: 4px 6px; border-radius: var(--radius-sm); transition: all 0.15s; }
.mobile-chat-close { display: none; background: none; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; padding: 4px 8px; border-radius: var(--radius-sm); transition: all 0.15s; }
.chat-users-panel {
    display: none; background: var(--bg-tertiary); border-bottom: 1px solid var(--border);
    max-height: 280px; overflow-y: auto; font-size: 0.82rem;
    animation: cspSlideDown 0.15s ease-out;
}
.chat-messages {
    flex: 1; overflow-y: auto;
    padding: 8px 12px;
    display: flex; flex-direction: column;
    gap: 2px;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    scrollbar-gutter: stable;
}
.chat-msg {
    font-size: 0.85rem; line-height: 1.4;
    padding: 2px 0; word-break: break-word;
    position: relative;
}
.chat-msg-hoverable .chat-reply-btn {
    display: none;
    position: absolute;
    right: 4px; top: 2px;
    padding: 2px 6px;
    font-size: 0.65rem;
    background: var(--bg-card, #1e1e2e);
    border: 1px solid var(--border, #333);
    border-radius: var(--radius-sm, 4px);
    color: var(--text-muted, #888);
    cursor: pointer;
    z-index: 5;
    line-height: 1;
    transition: color 0.15s, border-color 0.15s;
}
.chat-reply-header {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--text-muted, #888);
    padding: 1px 0 2px 0;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-left: 2px;
}
.chat-reply-header i { font-size: 0.6rem; opacity: 0.7; flex-shrink: 0; }
.chat-reply-user { font-weight: 600; color: var(--text-secondary, #aaa); flex-shrink: 0; }
.chat-reply-snippet {
    opacity: 0.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 4px;
}
.chat-msg .chat-user {
    font-weight: 600; cursor: pointer;
}
.chat-msg.system {
    color: var(--text-muted); font-style: italic;
    font-size: 0.8rem;
}
.chat-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 5px;
    margin-right: 4px; vertical-align: middle; position: relative;
    cursor: default; flex-shrink: 0;
    border: 1px solid transparent;
    transition: transform 0.12s ease;
}
.chat-badge i { font-size: 0.66rem; line-height: 1; }
.chat-badge-admin    { color: var(--warning);      background: color-mix(in srgb, var(--warning) 18%, transparent);      border-color: color-mix(in srgb, var(--warning) 40%, transparent); }
.chat-badge-streamer { color: var(--live-red);     background: color-mix(in srgb, var(--live-red) 18%, transparent);     border-color: color-mix(in srgb, var(--live-red) 40%, transparent); }
.chat-badge[data-tip]::after {
    content: attr(data-tip);
    position: absolute; bottom: calc(100% + 7px); left: 50%;
    transform: translateX(-50%) translateY(5px) scale(0.92);
    transform-origin: bottom center;
    background: var(--glass-strong, #16161a); color: var(--text-primary);
    border: 1px solid var(--border-light, var(--border));
    padding: 4px 9px; border-radius: 7px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.01em;
    white-space: nowrap; pointer-events: none;
    opacity: 0; z-index: 60;
    box-shadow: 0 8px 22px rgba(0,0,0,0.4);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: opacity 0.18s ease, transform 0.2s cubic-bezier(.2,.9,.3,1.25);
}
.chat-badge[data-tip]::before {
    content: ''; position: absolute; bottom: calc(100% + 2px); left: 50%;
    transform: translateX(-50%) translateY(5px);
    border: 5px solid transparent; border-top-color: var(--border-light, var(--border));
    opacity: 0; pointer-events: none; z-index: 60;
    transition: opacity 0.18s ease, transform 0.2s cubic-bezier(.2,.9,.3,1.25);
}
.chat-input-area {
    border-top: 1px solid var(--border);
    padding: 8px;
}
.chat-slowmode-banner {
    display: none;
    margin-bottom: 6px;
    padding: 5px 8px;
    background: color-mix(in srgb, var(--warning) 12%, var(--bg-card));
    border: 1px solid color-mix(in srgb, var(--warning) 25%, var(--border));
    border-radius: var(--radius);
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow: hidden;
    position: relative;
}
.chat-input-row {
    display: flex; gap: 0; align-items: flex-end;
    position: relative;
}
.chat-textarea {
    flex: 1; min-width: 0; padding: 8px 38px 8px 10px;
    background: var(--bg-input); color: var(--text-primary);
    border: 1px solid var(--border); border-radius: var(--radius);
    font-family: var(--font); font-size: 0.85rem; outline: none;
    transition: border-color 0.2s;
    resize: none; overflow-y: hidden;
    line-height: 1.4;
    box-sizing: border-box;
    height: 48px;
    min-height: 48px; max-height: 120px; /* JS auto-resizes after first input */
}
.chat-textarea::placeholder {
    color: var(--text-muted);
}
.chat-send-btn {
    position: absolute; right: 4px; bottom: 4px;
    padding: 6px 8px; background: var(--accent-dark);
    border: none; border-radius: var(--radius);
    color: var(--text-primary); font-size: 0.85rem;
    cursor: pointer; transition: background 0.15s;
    z-index: 1;
}
.chat-tools-row {
    display: flex; gap: 4px; align-items: center;
    padding: 4px 0 0;
    flex-wrap: wrap;
}
.chat-tts-toggle {
    flex-shrink: 0;
    padding: 6px 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.5;
}
.chat-tts-toggle.tts-active {
    color: var(--accent);
    border-color: var(--accent-dark);
    opacity: 1;
}
.chat-avatar-wrap {
    display: inline-flex; align-items: center; vertical-align: middle;
    margin-right: 4px;
}
.chat-avatar {
    width: 20px; height: 20px; border-radius: 50%;
    object-fit: cover; vertical-align: middle;
}
.chat-avatar-letter {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%;
    font-size: 0.65rem; font-weight: 700;
    color: #fff; vertical-align: middle;
    text-transform: uppercase;
}
.emote-picker-btn {
    flex-shrink: 0;
    padding: 8px 10px; background: transparent;
    border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text-muted); font-size: 1rem; cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.emote-picker {
    position: absolute; bottom: 100%; left: 0; right: 0;
    max-height: 320px; margin-bottom: 4px;
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    z-index: 100; flex-direction: column; overflow: hidden;
}
.emote-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 2px; padding: 6px; overflow-y: auto;
    max-height: 220px;
}
.chat-emote {
    display: inline-block; vertical-align: middle;
    height: calc(1.6em * var(--chat-emote-scale, 1)); width: auto; margin: -2px 1px;
    object-fit: contain;
}
.chat-emote-animated { image-rendering: auto; }
.chat-input-area { position: relative; }
.form-input {
    width: 100%; padding: 10px 12px;
    background: var(--bg-input); color: var(--text-primary);
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 0.9rem; outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
select.form-input { cursor: pointer; }
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.7); z-index: 2000;
    align-items: center; justify-content: center;
}
.toast-container {
    position: fixed;
    top: 76px;
    right: 14px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    pointer-events: none;
}
@media (max-width: 768px) {
.toast-container {
        top: 64px;
        right: 10px;
        left: 10px;
        align-items: stretch;
    }
}
@media (max-width: 1200px) {
.navbar { gap: 12px; padding: 0 12px; }
}
@media (max-width: 1024px) {
.navbar { gap: 8px; padding: 0 10px; }
}
.mobile-chat-toggle {
    display: none; /* hidden on desktop */
    position: fixed;
    bottom: 20px; right: 16px;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--accent-dark);
    color: #fff;
    border: none;
    font-size: 1.3rem;
    align-items: center; justify-content: center;
    z-index: 901;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.mobile-chat-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 20px; height: 20px;
    background: var(--live-red); color: #fff;
    font-size: 0.65rem; font-weight: 700;
    border-radius: 10px; padding: 0 5px;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
@media (max-width: 768px) {
.navbar { padding: 0 8px; gap: 6px; }
.hero h1 { font-size: 1.6rem; }
.hero { padding-left: 16px; padding-right: 16px; }
.stream-layout {
        flex-direction: column;
        height: calc(100vh - var(--navbar-h));
        height: calc(100dvh - var(--navbar-h)); /* dvh = dynamic viewport height, excludes mobile browser chrome */
        overflow: hidden;
        position: relative;
    }
.chat-sidebar {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        width: 100%; height: 55vh;
        max-height: 55vh;
        max-height: 55dvh;
        border-left: none;
        border-top: 1px solid var(--border);
        background: var(--bg-secondary);
        z-index: 1002;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 32px rgba(0,0,0,0.45);
    }
.chat-header {
        padding: 8px 14px;
        /* Add a drag handle visual */
        position: relative;
    }
.chat-sidebar .chat-header {
        position: sticky;
        top: 0;
        z-index: 1;
        background: var(--bg-secondary);
    }
.chat-sidebar .chat-header::before {
        content: '';
        display: block;
        width: 36px; height: 4px;
        background: var(--border-light);
        border-radius: 2px;
        margin: 0 auto 6px;
    }
.mobile-chat-close { display: inline-flex; align-items: center; justify-content: center; }
.mobile-chat-toggle {
        display: flex;
    }
.live-stream-tabs { height: 38px; padding: 0; }
.stream-grid { grid-template-columns: 1fr; }
.video-controls { padding: 4px 8px; gap: 3px; }
.vc-btn { min-width: 28px; min-height: 28px; padding: 4px 5px; font-size: 0.9rem; }
.emote-picker { max-height: 260px; }
.vod-player-info h2 { font-size: 1.1rem; }
.stream-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
        gap: 12px;
    }
.section-header { flex-wrap: wrap; gap: 8px; }
.section-header h2 { font-size: 1.1rem; }
}
@media (max-width: 480px) {
:root { --chat-w: 100%; }
.navbar { padding: 0 6px; gap: 4px; }
.stream-card { border-radius: 16px; }
.section-header { align-items: flex-start; }
.vc-btn { min-width: 26px; min-height: 26px; padding: 3px 4px; font-size: 0.82rem; }
.mobile-chat-toggle { width: 48px; height: 48px; font-size: 1.1rem; bottom: 16px; right: 12px; }
.section-header h2 { font-size: 1.1rem; }
.vod-player-info h2 { font-size: 1rem; }
.stream-grid { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 768px) and (orientation: portrait) {
.chat-sidebar {
        height: 50vh;
        max-height: 50vh;
    }
.btn-follow { font-size: 0.78rem; padding: 4px 10px; }
}
@media (max-width: 360px) {
.navbar { padding: 0 4px; gap: 3px; }
.hero h1 { font-size: 1.3rem; }
.hero p { font-size: 0.85rem; }
.btn-follow { font-size: 0.72rem; padding: 3px 8px; }
.mobile-chat-toggle { width: 44px; height: 44px; font-size: 1rem; }
.stream-card-info { padding: 8px; }
.stream-card-title { font-size: 0.88rem; }
.emote-picker-grid { grid-template-columns: repeat(auto-fill, minmax(32px, 1fr)); }
.chat-msg { font-size: 0.8rem; }
}
@media (max-height: 500px) and (max-width: 768px) {
.chat-sidebar { height: 70vh; max-height: none; }
.mobile-chat-toggle { bottom: 8px; right: 8px; width: 40px; height: 40px; font-size: 0.95rem; }
}
.live-stream-tabs {
    display: flex; align-items: stretch;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0;
    height: 42px;
    overflow: hidden;
    position: relative;
}
.ch-tabs {
    /* One row that scrolls sideways when it runs out of room, never a second row of one tab. */
    display: flex; gap: 2px; flex-wrap: nowrap; align-items: center; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    border-bottom: 1px solid var(--border); margin: 4px 0 18px; padding-bottom: 0;
}
.ch-tab {
    appearance: none; background: transparent; border: none; cursor: pointer;
    color: var(--text-muted); font-size: 0.9rem; font-weight: 650;
    padding: 10px 12px; border-radius: 8px 8px 0 0; position: relative; flex: none; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 7px;
    transition: color 0.15s ease, background 0.15s ease;
}
.ch-tab i { font-size: 0.85em; opacity: 0.85; }
.ch-tab.active { color: var(--accent); }
.ch-tab.active::after {
    content: ''; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2.5px;
    background: var(--accent); border-radius: 2px;
}
.ch-tab-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 6px; margin-left: 1px;
    border-radius: 9px; font-size: 0.7rem; font-weight: 700; line-height: 1;
    color: var(--text-muted); background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.ch-tab-badge[hidden] { display: none; }
.ch-tab.active .ch-tab-badge { color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.ch-tab-panel { display: none; }
.ch-tab-panel.active { display: block; animation: chTabFade 0.2s ease; }
@media (max-width: 640px) {
.ch-tab { padding: 9px 11px; font-size: 0.84rem; }
}
.ch-offline-screen {
    width: 100%; aspect-ratio: 16 / 9; max-height: 70vh;
    background: #0c0c0f; border-radius: 12px; overflow: hidden;
    position: relative; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
}
.off-cyc-title i { color: var(--accent); }
.off-top-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--bg-tertiary); overflow: hidden; }
.off-top-thumb img { width: 100%; height: 100%; object-fit: cover; }
.off-top-rank { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.05em; padding: 3px 9px; border-radius: 7px; color: #fff; background: rgba(0,0,0,.62); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.16); }
.off-top-dur { position: absolute; bottom: 8px; right: 8px; font-size: 0.66rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; color: #fff; background: rgba(0,0,0,.72); }
.ch-offline-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 0 clamp(14px, 3vh, 26px); pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.80) 0%, rgba(0,0,0,.5) 34%, rgba(0,0,0,0) 62%); }
.ch-offline-overlay > * { pointer-events: auto; }
.ch-offline-overlay-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.24); background: rgba(0,0,0,.55); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem; backdrop-filter: blur(4px); transition: background .15s, border-color .15s; z-index: 2; }
.ch-offline-reopen { position: absolute; bottom: 12px; right: 12px; display: none; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.24); background: rgba(0,0,0,.6); color: #fff; font-size: 0.78rem; font-weight: 700; cursor: pointer; backdrop-filter: blur(4px); transition: background .15s, border-color .15s; z-index: 2; }
.ch-offline-area { padding: 0; }
.ch-offline-area .ch-offline-screen { margin: 14px; width: auto; flex-shrink: 0; }
.ch-offline-header-info { flex: 1; min-width: 0; }
.ch-offline-header-info h1 { margin: 0 0 2px; font-size: 1.4rem; }
.offline-global-chat { background: var(--bg-secondary); }
.offline-global-chat .chat-header { padding: 10px 16px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em; color: var(--text-muted); }
.offline-global-chat .chat-messages { flex: 1; overflow-y: auto; padding: 8px; overscroll-behavior-y: contain; touch-action: pan-y; scrollbar-gutter: stable; }
.offline-global-chat .chat-input-area { border-top: 1px solid var(--border); }
.offline-global-chat .chat-input-row { display: flex; }
.offline-global-chat .chat-input-row input,
.offline-global-chat .chat-input-row .chat-textarea { flex: 1; background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 38px 8px 12px; font-size: 0.9rem; }
.global-chat-main {
    flex: 1; display: flex; flex-direction: column; min-height: 0;
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: 0 var(--radius) var(--radius) 0; overflow: hidden;
    overscroll-behavior: contain;
}
.global-chat-header { padding: 16px 20px 12px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; justify-content: space-between; }
.global-chat-header h2 { margin: 0 0 4px; font-size: 1.2rem; }
.global-chat-header .muted { margin: 0; font-size: 0.85rem; }
.gai-badge {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; border-radius: 999px; background: var(--accent-strong, var(--accent, #3472d8)); color: var(--on-accent-strong, var(--on-accent, #fff));
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em;
}
.gai-strip-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-chat-messages {
    flex: 1; overflow-y: auto; padding: 8px 12px;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    scrollbar-gutter: stable;
}
.global-chat-main .chat-input-area { border-top: 1px solid var(--border); }
.global-chat-main .chat-input-row { display: flex; }
.global-chat-main .chat-input-row input,
.global-chat-main .chat-input-row .chat-textarea { flex: 1; background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 40px 10px 14px; font-size: 0.9rem; }
.chat-stream-badge {
    display: inline-block; font-size: 0.7rem; padding: 1px 6px;
    background: var(--accent); color: var(--bg-primary);
    border-radius: 3px; margin-right: 4px; font-weight: 600;
    vertical-align: middle; opacity: 0.85;
}
.chat-time-inline {
    font-size: 0.7rem; color: var(--text-muted); margin-right: 4px;
}
.vod-player-info h2 { margin: 0 0 8px; }
.vod-source-info i { color: var(--accent); }
.vod-extra-details .detail-chip i { color: var(--accent); font-size: 0.75rem; }
.clip-modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
    display: flex; justify-content: center; align-items: center;
    padding: 16px; animation: fadeIn 0.2s ease;
}
.vod-player-main { flex: 1; min-width: 0; position: relative; }
.chat-replay-header h4 {
    margin: 0; font-size: 0.85rem; display: flex; align-items: center; gap: 6px;
    color: var(--text-secondary);
}
.chat-replay-empty p { margin: 0; }
.comments-header h3 {
    margin: 0 0 16px; display: flex; align-items: center; gap: 8px;
}
.comments-empty {
    text-align: center; padding: 24px; color: var(--text-muted);
}
.btn-openvibe-coins-mini {
    flex-shrink: 0;
    padding: 6px 8px; background: transparent;
    border: 1px solid #6c3fb5; border-radius: var(--radius);
    color: #b388ff; font-size: 0.85rem; cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    line-height: 1;
}
.rewards-panel {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border);
    max-height: 280px; overflow-y: auto;
}
.form-input-sm {
    padding: 6px 10px;
    font-size: 0.82rem;
    width: 100%;
    background: var(--bg-input, var(--bg-primary));
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.home-changelog-wrapper {
    position: relative;
    /* Last block on the page: the gap before the footer is the footer's job, not this card's. */
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.home-changelog-wrapper.collapsed {
    max-height: 400px;
}
.home-changelog-fade {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary, #0e0e12) 92%);
    pointer-events: none;
    border-radius: 0 0 12px 12px;
}
@media (max-width: 560px) {
.home-changelog-wrapper.collapsed { max-height: 360px; }
}
.pastes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 16px;
}
.pastes-pagination {
    display: flex;
    flex-wrap: wrap; /* many page buttons on a phone wrap instead of widening the page */
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}
.paste-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
@media (max-width: 768px) {
.pastes-grid {
        grid-template-columns: 1fr;
    }
}
.vc-sidebar-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.vc-sidebar-header h3 i {
    color: var(--accent);
    font-size: 1rem;
}
.vc-channel-body {
    flex: 1;
    min-width: 0;
}
.vc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
@media (max-width: 768px) {
.global-chat-main {
        border-radius: 0 0 var(--radius) var(--radius);
        min-height: 0;
        flex: 1;
    }
.vc-sidebar-header h3 {
        font-size: 0.85rem;
    }
.global-chat-header {
        padding: 10px 12px 8px;
        flex-wrap: wrap;
        gap: 8px;
    }
.global-chat-header h2 {
        font-size: 1rem;
    }
.global-chat-header .muted {
        display: none;
    }
.global-chat-main .chat-input-row {
        display: flex;
    }
.emote-picker {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 50vh;
        max-height: 50dvh;
        margin-bottom: 0;
        border-radius: var(--radius) var(--radius) 0 0;
        z-index: 200;
    }
}
.chat-mode-select {
    width: auto;
    min-width: 110px;
    font-size: 0.82rem;
    padding: 4px 8px;
    background: var(--bg-secondary, #1a1a2e);
    border: 1px solid var(--border, #333);
    color: var(--text, #e0e0e0);
    border-radius: var(--radius, 8px);
    cursor: pointer;
}
.chat-mode-select option:disabled {
    color: var(--text-muted, #888);
}
.floating-chat-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-strong, var(--accent, #6366f1));
    color: var(--on-accent-strong, var(--on-accent, #fff));
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, background 0.15s;
}
.fcw-unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.fab-label {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted, #888);
    white-space: nowrap;
    pointer-events: none;
}
.floating-chat-widget {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 9999;
    width: 360px;
    min-width: 260px;
    max-width: calc(100vw - 40px);
    height: 440px;
    min-height: 200px;
    max-height: calc(100vh - 120px);
    background: var(--bg-primary, #0f0f1a);
    border: 1px solid var(--border, #333);
    border-radius: var(--radius, 8px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.vc-mini-bar {
    position: fixed;
    bottom: 80px;
    left: 20px;
    z-index: 9997;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: var(--bg-secondary, #1a1a2e);
    border: 1px solid var(--border, #333);
    border-radius: var(--radius, 8px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    font-size: 0.82rem;
    color: var(--text, #e0e0e0);
}
.section-header h2 { font-size: clamp(1rem, 3vw, 1.3rem); }
.chat-messages,
.chat-replay-messages,
.global-chat-messages,
.emote-picker-grid,
.pastes-grid,
.stream-grid {
    -webkit-overflow-scrolling: touch;
}
@media (max-width: 1180px) {
.chat-sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 55vh;
        max-height: 55vh;
        max-height: 55dvh;
        border-left: none;
        border-top: 1px solid var(--border);
        background: var(--bg-secondary);
        z-index: 1002;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
    }
.mobile-chat-toggle { display: flex; }
.chat-sidebar .mobile-chat-close { display: inline-flex; }
}
@media (max-width: 1180px) and (orientation: landscape) {
.chat-sidebar {
        left: auto;
        right: 0;
        top: var(--navbar-h);
        bottom: 0;
        width: min(420px, 44vw);
        height: calc(100vh - var(--navbar-h));
        max-height: none;
        border-radius: 0 16px 16px 0;
        transform: translateX(100%);
    }
}
@media (max-width: 1180px) and (orientation: portrait) {
.chat-sidebar {
        left: 0;
        right: 0;
        width: 100%;
        height: 55vh;
        max-height: 55vh;
        border-radius: 16px 16px 0 0;
    }
}
.chat-link {
    color: var(--accent, var(--accent));
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color 0.15s, text-decoration-color 0.15s;
    word-break: break-all;
}
@media (hover: none), (pointer: coarse) {
.vc-volume-group .volume-slider { width: 84px !important; opacity: 1 !important; }
.volume-slider { height: 24px; }
.volume-slider::-webkit-slider-runnable-track { height: 6px; }
.volume-slider::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -7px; }
.vc-progress-bar, .dvr-progress-bar { height: 7px; }
.vc-progress-wrap, .dvr-progress-wrap { padding-top: 11px; padding-bottom: 11px; }
.vc-progress-fill::after, .dvr-progress-fill::after {
        transform: translateY(-50%) scale(1) !important;
        width: 18px !important; height: 18px !important; right: -9px !important;
    }
.vc-btn { min-width: 40px; min-height: 40px; font-size: 1.1rem; }
}
.vod-ai-timeline-title i { margin-right: 4px; }
.vod-ai-timeline-hint i { margin: 0; }
.vod-ai-memory-t {
    flex-shrink: 0; font-variant-numeric: tabular-nums; color: var(--accent, var(--accent));
    font-weight: 700; font-size: 0.78rem; min-width: 58px; display: inline-flex; align-items: center; gap: 5px;
}
.stream-card-avatar { overflow: hidden; }
.stream-card-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.emote-picker-btn.gif-btn { display: none !important; }
.chat-tools-row > button.chat-nickels-float,
.pc-tools-row > button.chat-nickels-float {
    margin-left: auto;
    gap: 5px;
    min-width: 44px;
    padding: 0 11px;
    font-weight: 700;
}
.chat-nickels-float .rewards-coin-balance { font-size: 0.85rem; }
.chat-tools-row > button,
.pc-tools-row > button {
    height: 34px;
    min-width: 34px;
    padding: 0 9px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: transparent;
    color: var(--accent);
    box-shadow: none;
    opacity: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chat-tools-row > button.btn-openvibe-coins-mini,
.pc-tools-row > button.btn-openvibe-coins-mini,
.chat-tools-row > button.btn-openvibe-bucks-mini,
.pc-tools-row > button.btn-openvibe-bucks-mini {
    color: var(--accent);
    border-color: var(--border);
}
.chat-tools-row > button.chat-tts-toggle { opacity: 0.5; }
.chat-tools-row > button.chat-tts-toggle.tts-active,
.pc-tools-row > button.chat-tts-toggle.tts-active {
    color: var(--accent);
    border-color: var(--accent-dark);
    opacity: 1;
}
.chat-input-row .chat-send-btn {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    height: 34px;
    min-width: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border-radius: var(--radius);
}
.chat-msg-tts-off { opacity: 0.62; }
.chat-msg-tts-off .chat-user::after {
    content: "\f6a9"; /* fa-volume-xmark */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.68em;
    margin-left: 5px;
    vertical-align: baseline;
    color: var(--text-muted);
    opacity: 0.85;
}
.stream-card-thumb img { transition: opacity 0.4s; }
.hero { position: relative; overflow: hidden; }
.hero-content { position: relative; z-index: 1; }
.hero-aurora {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(70% 50% at 50% 118%, color-mix(in srgb, var(--accent, var(--accent)) 58%, #ff7a18) 0%, transparent 70%),
        radial-gradient(40% 32% at 50% 110%, color-mix(in srgb, var(--accent-light, var(--accent, var(--accent))) 68%, #ffd479) 0%, transparent 72%);
    filter: blur(32px);
    opacity: 0.42;
    mix-blend-mode: lighten;
    will-change: opacity;
}
.hero h1 {
    background: linear-gradient(90deg, var(--accent, var(--accent)), #ffd479, var(--accent, var(--accent)));
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: heroShimmer 7s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
.hero-aurora, .hero-aurora::before, .hero-aurora::after, .hero h1 { animation: none; }
}
.media-transcript-toggle > i:first-child { color: var(--accent); }
.ts-seg {
    display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left;
    background: transparent; border: none; border-radius: 6px; cursor: pointer;
    padding: 5px 8px; color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5;
    transition: background 0.12s ease, color 0.12s ease;
}
.ts-time {
    flex-shrink: 0; font-variant-numeric: tabular-nums; font-weight: 700;
    font-size: 0.78rem; color: var(--accent); min-width: 44px;
}
.card-ai-overview {
    margin-top: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.card-ai-static { cursor: default; }
.card-ai-clamp {
    font-size: 0.75rem; color: var(--accent); line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-ai-overview { position: relative; }
.card-ai-clamp i.fa-wand-magic-sparkles { opacity: 0.85; margin-right: 2px; }
.card-ai-clamp { padding-right: 16px; }
.card-ai-toggle {
    position: absolute; right: 8px; bottom: 7px;
    cursor: pointer; font-size: 0.64rem; color: var(--accent); opacity: 0.8;
    transition: transform 0.2s ease, opacity 0.15s ease;
}
.streamer-group-card .card-ai-overview { margin: 5px 5px -2px 5px; }
.ch-goal-widget {
    flex-shrink: 0; border-bottom: 1px solid var(--border);
    background: var(--bg-tertiary); padding: 6px 8px 0;
    position: relative;
}
.ch-goal-widget:not(.cgw-multi) { padding-bottom: 0; }
.ch-panel-bar > .ch-vods-filter-bar,
.ch-panel-bar > .clips-taken-filters { margin: 0; }
.controls-dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
    padding: 0 8px calc(8px + env(safe-area-inset-bottom, 0px));
    display: flex; justify-content: center; pointer-events: none;
    animation: dockUp .2s ease;
}
.arena-container { max-width: 1180px; }
.arena-loading i { font-size: 2rem; color: var(--accent); }
.arena-note { font-size: 0.8rem; color: var(--text-muted); }
.arena-hero h1 { margin: 0 0 6px; font-size: 2rem; display: flex; align-items: center; gap: 10px; }
.arena-portrait { position: relative; border-radius: 14px; overflow: hidden; background: radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--fc, var(--accent)) 45%, #000) 0%, #0a0a0e 70%); box-shadow: 0 0 0 2px color-mix(in srgb, var(--fc, var(--accent)) 60%, transparent), 0 10px 30px rgba(0, 0, 0, 0.45); flex-shrink: 0; }
.arena-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.arena-portrait-glow { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--fc, var(--accent)) 55%, transparent)); pointer-events: none; }
.arena-portrait-xs { width: 40px; height: 40px; border-radius: 10px; font-size: 1.1rem; }
.arena-portrait-sm { width: 64px; height: 64px; font-size: 1.6rem; }
.arena-live h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin: 0 0 12px; }
.arena-live h2 small { color: var(--text-muted); font-weight: 400; font-size: 0.85rem; }
.arena-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #e74c3c; box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.25); animation: arena-pulse 1.6s infinite; }
.arena-board-head h2 { margin: 0; font-size: 1.15rem; }
.arena-board-head input { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-input); color: var(--text-primary); min-width: 220px; }
.arena-rank-1 { color: #f5c542; }
.arena-rank-2 { color: #cfd6dd; }
.arena-rank-3 { color: #d09056; }
.arena-row-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.arena-row-main strong { font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arena-power b { font-size: 1.5rem; color: var(--accent-light); }
.arena-power small { font-size: 0.6rem; letter-spacing: 0.1em; color: var(--text-muted); }
.arena-row .arena-chevron { color: var(--text-muted); transition: transform 0.15s; margin-left: 6px; }
.hero-stat-chart-hint { font-size: 0.6em; opacity: 0; margin-left: 4px; transition: opacity 0.15s; }
@media (max-width: 720px) {
.hero-stat { padding: 7px 8px; gap: 6px; }
.navbar { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: var(--bg-secondary) !important; }
.hero-bg-layer.active { animation: none !important; }
}
.arena-lvl { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 6px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; background: linear-gradient(90deg, #f97316, #fbbf24); color: #1a1006; }
.arena-beefs h2, .arena-board-head h2, .arena-ladder h2, .arena-live h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin: 0 0 12px; }
.arena-beefs h2 small, .arena-board-head h2 small, .arena-ladder h2 small { color: var(--text-muted); font-weight: 400; font-size: 0.82rem; }
.arena-beef-empty i { font-size: 1.6rem; color: var(--accent); }
.arena-beef-empty p { margin: 0; }
.arena-done summary { cursor: pointer; color: var(--text-secondary); font-weight: 600; margin-bottom: 10px; }
.arena-done summary small { color: var(--text-muted); font-weight: 400; }
.arena-rules h3 { margin: 0 0 8px; font-size: 1rem; }
.arena-rules ul, .arena-rules-list { margin: 0; padding-left: 18px; font-size: 0.86rem; color: var(--text-secondary); line-height: 1.5; }
@media (max-width: 600px) {
.arena-hero h1 { font-size: 1.5rem; }
.arena-live h2, .arena-beefs h2, .arena-board-head h2, .arena-ladder h2 { flex-wrap: wrap; }
}
.arena-mic-moment-body { min-width: 0; }
.arena-mic-moment-head small { color: var(--text-muted); margin-left: auto; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; color: var(--accent); flex: none; }
.brand-mark svg { overflow: visible; transform-origin: 50% 50%; animation: ovFloat 5s ease-in-out infinite; }
.brand-mark svg,
.brand-mark .ov-glow,
.brand-mark .ov-comet,
.brand-mark .ov-v,
.brand-mark .ov-dot,
.brand-mark .ov-spark { animation-play-state: paused; }
.brand-mark.is-awake svg,
.brand-mark.is-awake .ov-glow,
.brand-mark.is-awake .ov-comet,
.brand-mark.is-awake .ov-v,
.brand-mark.is-awake .ov-dot,
.brand-mark.is-awake .ov-spark { animation-play-state: running; }
.ov-glow { fill: currentColor; opacity: 0.1; transform-box: fill-box; transform-origin: center; animation: ovGlow 3.4s ease-in-out infinite; }
.ov-ring { fill: none; stroke: currentColor; stroke-width: 4; opacity: 0.28; }
.ov-comet { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 34 79; transform-box: fill-box; transform-origin: center; animation: ovComet 3.6s linear infinite; }
.ov-v { fill: none; stroke-width: 4.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 46; stroke-dashoffset: 0; animation: ovDraw 1.1s cubic-bezier(.2,.8,.2,1) both; }
.ov-dot { fill: #fff; transform-box: fill-box; transform-origin: center; animation: ovDot 2.4s ease-in-out infinite; }
.ov-orbit { fill: #fff; filter: drop-shadow(0 0 3px currentColor); }
.ov-orbit--tail { opacity: 0.5; }
.brand-mark.is-spin svg { animation: ovSpinIn 1.05s cubic-bezier(.16, 1.16, .3, 1) 1 both; animation-play-state: running; }
.brand-mark.is-settling svg { animation: ovSettle 0.68s cubic-bezier(.26, 1.32, .42, 1) 1 both; animation-play-state: running; }
.brand-mark--hero { width: 1.05em; height: 1.05em; vertical-align: -0.16em; color: var(--accent); margin-right: 0.08em; }
.brand-mark--hero svg { width: 100%; height: 100%; }
.ov-spark { fill: #fff; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ovSpark 3.4s ease-out infinite; }
.ov-spark--2 { animation-delay: 1.1s; animation-name: ovSpark2; }
.ov-spark--3 { animation-delay: 2.3s; animation-name: ovSpark3; }
@media (max-width: 600px) {
.brand-mark { width: 26px; height: 26px; }
.brand-mark svg { width: 25px; height: 25px; }
.brand-mark--hero svg { width: 100%; height: 100%; }
}
.rs-lite .ov-orbit, .rs-lite .ov-spark { filter: none; }
@media (prefers-reduced-motion: reduce) {
.brand-mark svg, .ov-glow, .ov-comet, .ov-v, .ov-dot, .ov-spark { animation: none !important; }
.ov-orbit, .ov-spark { display: none; }
.ov-comet { stroke-dasharray: none; opacity: 0.9; }
}
@media (max-width: 600px) {
.brand-mark { width: 26px; height: 26px; }
.brand-mark svg { width: 25px; height: 25px; }
}
.hero-stat-more i { font-size: 0.7rem; transition: transform 0.28s cubic-bezier(.2, 1, .3, 1); }
@media (prefers-reduced-motion: reduce) {
.hero-stat-more i { transition: none; }
}
#page-home .hero { padding-bottom: 14px; }
#stream-grid-live .empty-state { padding: 26px 16px; }
.section-header {
    /* Each section carries a hue so they can be told apart while scrolling. Those hues were used
       raw, which meant a fixed blue/purple/pink/teal sitting on top of whatever palette the
       reader had chosen — on a warm theme they read as foreign. --sc-on blends the section hue
       into the active accent so it stays a *variant of the theme* rather than an imported colour,
       and the title is mixed toward --text-primary so it is legible on any background the theme
       provides. Sections still differ from one another; they just belong to the page now. */
    --sc: var(--accent);
    --sc-on: color-mix(in srgb, var(--sc) 45%, var(--accent));
    display: flex; align-items: center; gap: 11px;
    margin: 34px 0 14px; justify-content: flex-start; flex-wrap: nowrap;
    position: relative;
}
.section-header h2 {
    display: flex; align-items: center; gap: 10px; flex: none;
    font-size: clamp(1.05rem, 2.6vw, 1.32rem); font-weight: 850; letter-spacing: -0.02em;
    color: color-mix(in srgb, var(--sc-on) 42%, var(--text-primary));
    margin: 0; white-space: nowrap;
}
.section-header h2 > i:first-child {
    width: 30px; height: 30px; flex: none; border-radius: 10px;
    display: grid; place-items: center; font-size: 0.82rem;
    color: var(--sc-on);
    background: color-mix(in srgb, var(--sc-on) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--sc-on) 34%, transparent);
    box-shadow: 0 0 16px color-mix(in srgb, var(--sc-on) 18%, transparent), inset 0 1px 0 rgba(255,255,255,0.06);
}
.section-header h2 > i.live-dot {
    width: auto; height: auto; background: none; border: 0; box-shadow: none;
    color: var(--live-red); font-size: 0.62rem;
}
.section-header::after {
    content: ''; flex: 1 1 auto; height: 1px; min-width: 18px; align-self: center;
    background: linear-gradient(90deg, color-mix(in srgb, var(--sc-on) 46%, transparent), transparent 88%);
}
.section-header > :not(h2) { flex: none; order: 3; margin-left: 10px; min-width: 0; }
.section-header > .badge { order: 1; margin-left: 0; }
.section-header .badge { background: var(--sc-on); }
.section-header > span:not(.badge), .section-header > p, .section-header > .muted {
    flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 0.78rem; color: var(--text-muted);
}
@media (max-width: 560px) {
.section-header { gap: 8px; margin: 26px 0 12px; }
.section-header h2 { gap: 8px; }
.section-header h2 > i:first-child { width: 26px; height: 26px; border-radius: 9px; font-size: 0.74rem; }
}
.home-load-more i { font-size: 0.74rem; transition: transform 0.25s; }
.home-load-more small { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); }
.hero-stat {
    position: relative; overflow: hidden;
    border-radius: 13px;
    background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
                color-mix(in srgb, var(--bg-card) 72%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 17%, var(--border));
    transition: transform 0.18s cubic-bezier(.2, 1, .3, 1), border-color 0.2s, background 0.2s;
}
.hero-stat > i {
    width: clamp(26px, 6.6vw, 34px); height: clamp(26px, 6.6vw, 34px); flex: none;
    border-radius: 50%;
    font-size: clamp(0.62rem, 2.6vw, 0.82rem);
    background: radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--accent) 24%, transparent), color-mix(in srgb, var(--accent) 11%, transparent));
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}
.hero-stat-delta b { font-weight: 850; }
.hero-stat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: center; gap: 3px clamp(6px, 1vw, 9px);
}
.hero-stat-meta { grid-column: 2; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hero-stat > i, .section-header h2 > i:first-child {
    line-height: 1; font-style: normal;
    display: grid; place-items: center; text-align: center;
}
.hero-stat > i::before, .section-header h2 > i:first-child::before { display: block; line-height: 1; }
#page-home { overflow-x: clip; }
.home-cta-banner, .tour { overflow: hidden; }
.navbar > * { min-width: 0; }
@media (max-width: 420px) {
.navbar { padding: 0 9px; gap: 8px; }
}
#openvibe-bell-mount { height: 32px; display: inline-flex; align-items: center; position: relative; }
.home-cta-feature > i, .home-cta-feature > strong, .home-cta-feature > span { opacity: 1; }
.section-header .ovd { order: 4; margin-left: 8px; }
@media (max-width: 420px) {
.section-header .ovd { display: none; }
}
#page-home.page { padding-bottom: 10px; }
@media (prefers-reduced-motion: reduce) {
.brand-mark.is-spin svg, .brand-mark.is-settling svg { animation: none !important; }
}
[data-fx-viewport]:not(.fx-live),
[data-fx-viewport]:not(.fx-live) *::before,
[data-fx-viewport]:not(.fx-live) *::after,
[data-fx-viewport]:not(.fx-live) * {
    animation-play-state: paused !important;
}
.openvibe-navbar.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--navbar-h); padding: 0 clamp(10px, 2vw, 16px); gap: clamp(6px, 1.2vw, 14px);
    background: var(--glass); border-bottom: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    --ovnav-h: var(--navbar-h);
}
body.ov-nav-overlay .openvibe-navbar.navbar.ovnav-top { background: transparent; border-bottom-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.openvibe-navbar.navbar .openvibe-navbar-links a.ovnav-link { font-size: 0.86rem; padding: 7px 11px; border-radius: 10px; }
.openvibe-navbar.navbar .openvibe-navbar-links a.ovnav-link.active { color: var(--text-primary); background: color-mix(in srgb, var(--accent) 16%, transparent); }
@media (max-width: 560px) {
.openvibe-navbar.navbar .ovnav-launch { display: none; }
}
@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
@keyframes heroBgKenBurns {
    from { transform: scale(1.06) translate(-1.4%, 1%); }
    to   { transform: scale(1.16) translate(1.8%, -1.8%); }
}
@keyframes heroFloatIn { to { opacity: var(--op, 0.6); } }
@keyframes heroFloat3d {
    0%   { transform: translate3d(-4px, -9px, var(--z, 0px)) rotateX(var(--rx, 5deg)) rotateY(var(--ry, -6deg)) rotate(var(--rot, -2deg)); }
    50%  { transform: translate3d(5px, 3px, var(--z, 0px)) rotateX(calc(var(--rx, 5deg) * -0.7)) rotateY(calc(var(--ry, -6deg) * 0.35)) rotate(calc(var(--rot, -2deg) * 0.3)); }
    100% { transform: translate3d(3px, 9px, var(--z, 0px)) rotateX(var(--rx, 5deg)) rotateY(calc(var(--ry, -6deg) * -0.85)) rotate(calc(var(--rot, -2deg) * -0.6)); }
}
@keyframes ctaEmber {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    12% { opacity: 0.9; }
    80% { opacity: 0.5; }
    100% { transform: translateY(-260px) scale(0.3); opacity: 0; }
}
@keyframes ctaShimmer { to { background-position: 220% center; } }
@keyframes ctaRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes cspSlideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: min(70vh, 500px); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
@keyframes chTabFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes heroShimmer { to { background-position: 200% center; } }
@keyframes dockUp { from { transform: translateY(110%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes arena-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.25); } 50% { box-shadow: 0 0 0 8px rgba(231, 76, 60, 0.08); } }
@keyframes ovFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-1px) rotate(2deg); } }
@keyframes ovGlow { 0%, 100% { opacity: 0.08; transform: scale(0.92); } 50% { opacity: 0.2; transform: scale(1.06); } }
@keyframes ovComet { to { transform: rotate(360deg); } }
@keyframes ovDraw { from { stroke-dashoffset: 46; } to { stroke-dashoffset: 0; } }
@keyframes ovDot { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.5); opacity: 1; } }
@keyframes ovSpinIn {
    0%   { transform: rotate(0deg) scale(0.86); }
    45%  { transform: rotate(228deg) scale(1.2); }
    72%  { transform: rotate(348deg) scale(0.97); }
    100% { transform: rotate(360deg) scale(1); }
}
@keyframes ovSettle {
    0%   { transform: rotate(5deg) scale(1.07); }
    55%  { transform: rotate(-2.5deg) scale(0.982); }
    100% { transform: none; }
}
@keyframes ovSpark { 0% { opacity: 0; transform: translate(0,10px) scale(0.6); } 10% { opacity: 1; } 60% { opacity: 0; transform: translate(12px,-12px) scale(1.4); } 100% { opacity: 0; } }
@keyframes ovSpark2 { 0% { opacity: 0; transform: translate(0,10px) scale(0.6); } 10% { opacity: 1; } 60% { opacity: 0; transform: translate(-13px,-8px) scale(1.3); } 100% { opacity: 0; } }
@keyframes ovSpark3 { 0% { opacity: 0; transform: translate(0,10px) scale(0.6); } 10% { opacity: 1; } 60% { opacity: 0; transform: translate(3px,16px) scale(1.2); } 100% { opacity: 0; } }
