/* ═══════════════════════════════════════════════════════════════════════════
   index.css v4.1 — Radio Console Page
   Full responsive rewrite — no overflow on any screen width
═══════════════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────────────────────── */
.radio-console-page {
    --rc-red:          #ff3b3b;
    --rc-red-deep:     #b30000;
    --rc-red-vivid:    #ff2020;
    --rc-red-border:   rgba(255,75,75,0.20);
    --rc-red-subtle:   rgba(255,59,59,0.08);
    --rc-surface-0:    #050507;
    --rc-surface-2:    rgba(18,18,24,0.97);
    --rc-glass:        rgba(255,255,255,0.032);
    --rc-glass-2:      rgba(255,255,255,0.058);
    --rc-border:       rgba(255,255,255,0.065);
    --rc-text:         #f2f2f6;
    --rc-muted:        rgba(200,202,218,0.56);
    --rc-faint:        rgba(255,255,255,0.28);
    --rc-radius-xl:    30px;
    --rc-radius-lg:    22px;
    --rc-radius-md:    16px;
    --rc-radius-sm:    12px;
    --rc-radius-pill:  999px;
    --rc-shadow:       0 28px 72px rgba(0,0,0,0.60);
    --rc-shadow-sm:    0 8px 24px rgba(0,0,0,0.36);
    --rc-font-display: 'Bebas Neue','Impact',sans-serif;
    --rc-font-body:    'DM Sans','Helvetica Neue',sans-serif;
    --rc-transition:   0.20s cubic-bezier(0.4,0,0.2,1);
    --rc-spring:       0.38s cubic-bezier(0.22,1,0.36,1);
    --rc-shell-max:    880px;
}

/* Global reset within page scope */
.radio-console-page,
.radio-console-page * {
    font-family: var(--rc-font-body);
    box-sizing: border-box;
}

/* Prevent ALL overflow at the root level */
.radio-console-page {
    overflow-x: hidden;
    max-width: 100vw;
}

.radio-console-page .page-wrap {
    width: min(var(--rc-shell-max), calc(100% - 28px));
    margin-inline: auto;
    padding-top: clamp(16px, 2.8vw, 32px);
    padding-bottom: clamp(32px, 6vw, 72px);
    /* Safety net — nothing escapes horizontally */
    overflow-x: hidden;
}

/* ── Keyframes ─────────────────────────────────────────────────────────── */
@keyframes rcFadeUp {
    from { opacity: 0; transform: translateY(18px) scale(0.99); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
@keyframes rcPulse {
    0%,100% { transform: scale(1);    opacity: 1;    }
    50%     { transform: scale(0.68); opacity: 0.42; }
}
@keyframes rcSpin { to { transform: rotate(360deg); } }
@keyframes rcFloat {
    0%   { opacity: 0;   transform: translateY(0)      translateX(0)              scale(0.5); }
    10%  { opacity: 1; }
    80%  { opacity: 0.8; }
    100% { opacity: 0;   transform: translateY(-220px) translateX(var(--rx, 0px)) scale(1.2); }
}
@keyframes rcReactBurst {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.40) translateY(-5px); }
    65%  { transform: scale(0.90) translateY(1px); }
    100% { transform: scale(1) translateY(0); }
}
@keyframes rcHighlightFade {
    0%   { outline-color: #f0a500; }
    100% { outline-color: transparent; }
}
@keyframes spSlideIn {
    from { opacity: 0; transform: translateX(14px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes spBounce {
    0%   { transform: scale(0.4); opacity: 0; }
    65%  { transform: scale(1.20); }
    100% { transform: scale(1);    opacity: 1; }
}

/* ── Radio Stage ───────────────────────────────────────────────────────── */
.radio-stage {
    animation: rcFadeUp 0.60s cubic-bezier(0.22,1,0.36,1) both;
    position: relative;
    overflow: hidden;
    border-radius: var(--rc-radius-xl);
    border: 1px solid var(--rc-red-border);
    background:
        radial-gradient(ellipse 70% 50% at 0% 0%, rgba(255,50,50,0.13) 0%, transparent 55%),
        var(--rc-surface-0);
    box-shadow:
        var(--rc-shadow),
        0 0 56px rgba(255,59,59,0.18),
        0 0 100px rgba(255,40,40,0.12);
    /* Clip floaters and pseudo-elements */
    
}

/* Scanline texture */
.radio-stage::before {
    content: '';
    position: absolute; inset: 0;
    pointer-events: none; z-index: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent, transparent 3px,
        rgba(255,255,255,0.010) 3px,
        rgba(255,255,255,0.010) 4px
    );
    opacity: 0.6;
}

/* Gradient border rim */
.radio-stage::after {
    content: '';
    position: absolute; inset: 0; padding: 1px;
    border-radius: var(--rc-radius-xl);
    background: linear-gradient(
        145deg,
        rgba(255,100,100,0.45) 0%,
        rgba(255,80,80,0.08)   35%,
        rgba(120,20,20,0.12)   60%,
        rgba(255,80,80,0.32)   100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ── Floating emoji canvas ─────────────────────────────────────────────── */
.rc-floater-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: visible;
}

.rc-floater {
    position: absolute;
    bottom: 10%;
    line-height: 1;
    animation: rcFloat 2.6s cubic-bezier(0.22,1,0.36,1) forwards;
    will-change: transform, opacity;
    user-select: none;
    pointer-events: none;
}

/* ── Layout grid ───────────────────────────────────────────────────────── */
.radio-layout {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 18px;
    padding: clamp(16px, 2.8vw, 28px);
    /* Strict containment so nothing bleeds out */
    min-width: 0;
    overflow: hidden;
}

/* ── Panels ────────────────────────────────────────────────────────────── */
.rc-panel,
.rc-chat-panel {
    width: 100%;
    min-width: 0;
    display: grid;
    gap: 16px;
    padding: clamp(14px, 2.5vw, 26px);
    border-radius: var(--rc-radius-xl);
    background: var(--rc-surface-2);
    border: 1px solid var(--rc-red-border);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        inset 0 0 32px rgba(255,59,59,0.04),
        0 18px 52px rgba(0,0,0,0.36);
    /* Clip any child overflow */
    overflow: hidden;
}

/* ── Panel / chat head ─────────────────────────────────────────────────── */
.rc-panel-head,
.rc-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.rc-panel-title strong {
    display: block;
    color: var(--rc-text);
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

/* ── Live badge ────────────────────────────────────────────────────────── */
.rc-badge,
.rc-chat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: var(--rc-radius-pill);
    background: linear-gradient(135deg, rgba(255,59,59,0.16), rgba(180,0,0,0.10));
    border: 1px solid rgba(255,80,80,0.28);
    color: #ffd8d8;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 0 20px rgba(255,59,59,0.10), inset 0 1px 0 rgba(255,180,180,0.08);
    flex-shrink: 0;
}

.rc-badge__dot,
.rc-chat-badge__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--rc-red-vivid);
    box-shadow: 0 0 10px rgba(255,40,40,0.8), 0 0 20px rgba(255,40,40,0.4);
    animation: rcPulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

/* ── Now Playing card ──────────────────────────────────────────────────── */
.rc-now-playing {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: var(--rc-radius-lg);
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.018) 100%);
    border: 1px solid var(--rc-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    transition: border-color var(--rc-transition);
    min-width: 0;
    overflow: hidden;
}

.rc-now-playing:has(#trackTitle:not(:empty)) {
    border-color: rgba(255,75,75,0.18);
}

.rc-cover {
    width: 104px; height: 104px;
    border-radius: var(--rc-radius-md);
    object-fit: cover;
    background: #111;
    border: 1px solid rgba(255,255,255,0.09);
    flex-shrink: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.50);
    display: block;
}

.rc-meta {
    min-width: 0;
    overflow: hidden;
}

.rc-meta__eyebrow {
    color: var(--rc-red);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.68rem;
    font-weight: 800;
    margin-bottom: 6px;
    opacity: 0.85;
}

.rc-meta__title {
    margin: 0;
    color: var(--rc-text);
    font-family: var(--rc-font-display);
    font-size: clamp(1.3rem, 3vw, 2.2rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.rc-meta__artist {
    margin: 7px 0 0;
    color: var(--rc-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Progress bar ──────────────────────────────────────────────────────── */
.rc-progress-wrap {
    display: none;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}
.rc-progress-wrap.is-visible { display: flex; }

.rc-progress-bar {
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}

.rc-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--rc-red-vivid), #ff8080);
    border-radius: 999px;
    transition: width 0.4s ease-out;
}

.rc-progress-times {
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,0.35);
    font-size: 0.70rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
}

/* ── Reactions row ─────────────────────────────────────────────────────── */
.rc-reactions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--rc-radius-md);
    background: linear-gradient(135deg, rgba(255,59,59,0.07) 0%, rgba(255,59,59,0.03) 100%);
    border: 1px solid rgba(255,75,75,0.14);
    box-shadow: inset 0 1px 0 rgba(255,180,180,0.04);
    flex-wrap: wrap;
    min-width: 0;
}

.rc-reactions-label {
    color: var(--rc-muted);
    font-size: 0.70rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.rc-react-btns {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    min-width: 0;
    flex: 1;
}

.rc-react-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: var(--rc-radius-pill);
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.04);
    color: var(--rc-text);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1), background 0.18s ease, border-color 0.18s ease;
    touch-action: manipulation;
    user-select: none;
    white-space: nowrap;
    flex-shrink: 0;
    /* Prevent count overflow from expanding button */
    min-width: 0;
    
}

.rc-react-btn:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,75,75,0.30);
    transform: translateY(-2px) scale(1.06);
}
.rc-react-btn:active { transform: scale(0.93); }

/* REMOVED: .rc-react-btn.is-reacted red highlight — no longer applied */

.rc-react-emoji { font-size: 1rem; line-height: 1; flex-shrink: 0; transition: font-size 0.22s cubic-bezier(0.34,1.56,0.64,1); }
.rc-react-count {
    font-variant-numeric: tabular-nums;
    font-size: 0.76rem;
    min-width: 0;
    max-width: none;
    text-align: left;
    white-space: nowrap;
    flex-shrink: 1;
}
.rc-react-burst { animation: rcReactBurst 0.50s cubic-bezier(0.22,1,0.36,1) both; }

/* Soft pop-in for counts arriving from other users */
@keyframes rcCountPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.30) translateY(-2px); color: #ffdd88; }
    70%  { transform: scale(0.92); }
    100% { transform: scale(1); color: inherit; }
}
.rc-react-count.is-popping {
    animation: rcCountPop 0.42s cubic-bezier(0.22,1,0.36,1) both;
}

/* ── Hidden player ─────────────────────────────────────────────────────── */
.rc-player-wrap { display: none; }
.rc-player { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ── Actions row ───────────────────────────────────────────────────────── */
.rc-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.rc-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    padding: 13px 20px;
    border-radius: var(--rc-radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform var(--rc-transition), filter var(--rc-transition), opacity var(--rc-transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.rc-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.12) 40%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
}

.rc-btn:hover::before  { transform: translateX(120%); }
.rc-btn:hover          { transform: translateY(-2px); }
.rc-btn:active         { transform: translateY(0) scale(0.985); }
.rc-btn:focus-visible  { outline: 2px solid var(--rc-red); outline-offset: 3px; }

.rc-btn--play {
    color: #fff;
    background: linear-gradient(135deg, #ff4747 0%, #cc0000 55%, #900000 100%);
    box-shadow: 0 14px 34px rgba(180,0,0,0.30), inset 0 1px 0 rgba(255,200,200,0.20);
    flex: 1;
}
.rc-btn--play:hover { filter: brightness(1.08); }
.rc-btn--play.is-playing {
    background: linear-gradient(135deg, #3a3a3a 0%, #222 100%);
    box-shadow: 0 8px 20px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.05);
}

.rc-btn--refresh {
    color: var(--rc-faint);
    background: var(--rc-glass);
    border: 1px solid var(--rc-border);
    min-width: 52px;
    padding: 13px 14px;
}
.rc-btn--refresh:hover { color: var(--rc-text); border-color: var(--rc-red-border); background: var(--rc-glass-2); }

.rc-btn__icon { font-style: normal; font-size: 1.1em; line-height: 1; }
.is-loading .rc-btn__icon { display: inline-block; animation: rcSpin 0.75s linear infinite; }

/* ── Status bar ────────────────────────────────────────────────────────── */
.rc-status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: var(--rc-radius-md);
    background: linear-gradient(135deg, rgba(255,59,59,0.07) 0%, rgba(255,59,59,0.04) 100%);
    border: 1px solid rgba(255,75,75,0.10);
    min-height: 48px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
    flex-wrap: wrap;
}

.rc-status-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(100,100,120,0.6);
    flex-shrink: 0;
    transition: background 0.28s ease, box-shadow 0.28s ease;
}
.rc-status-dot.is-active {
    background: var(--rc-red-vivid);
    box-shadow: 0 0 10px rgba(255,40,40,0.75), 0 0 22px rgba(255,40,40,0.35);
    animation: rcPulse 1.6s ease-in-out infinite;
}
.rc-status-msg {
    color: rgba(255,240,240,0.78);
    font-size: 0.88rem;
    line-height: 1.5;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .rc-status-msg {
        white-space: normal;
        text-overflow: unset;
        font-size: 0.80rem;
        line-height: 1.45;
    }
}

/* ── Report button ─────────────────────────────────────────────────────── */
.rc-report-btn {
    margin-left: auto;
    flex-shrink: 0;
    appearance: none;
    border: 1px solid rgba(255,75,75,0.20);
    background: rgba(255,59,59,0.06);
    color: rgba(255,180,180,0.65);
    border-radius: 9px;
    padding: 5px 10px;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.rc-report-btn:hover { background: rgba(255,59,59,0.16); color: #ffb6b6; border-color: rgba(255,75,75,0.42); transform: translateY(-1px); }
.rc-report-btn:focus-visible { outline: 2px solid rgba(255,100,100,0.75); outline-offset: 2px; }

/* ═══════════════════════════════════════════════════════════════════════════
   CHAT PANEL
═══════════════════════════════════════════════════════════════════════════ */
.rc-chat-panel {
    gap: 20px;
    background: var(--rc-surface-2);
    border: 1px solid rgba(255,80,80,0.18);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        inset 0 0 40px rgba(255,59,59,0.04),
        0 20px 56px rgba(0,0,0,0.40);
}

/* ── Tab bar ───────────────────────────────────────────────────────────── */
.rc-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: var(--rc-radius-pill);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    /* Fluid — never wider than parent */
    width: 100%;
    max-width: fit-content;
    overflow: hidden;
}

.rc-tab-btn {
    appearance: none; border: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    /* Fluid padding that shrinks on tiny screens */
    padding: 7px clamp(8px, 2.5vw, 18px);
    border-radius: var(--rc-radius-pill);
    font-size: clamp(0.68rem, 1.8vw, 0.83rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--rc-muted);
    background: transparent;
    transition: color var(--rc-transition), background var(--rc-transition);
    white-space: nowrap;
    /* Allow tabs to share space evenly */
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.rc-tab-btn:hover      { color: var(--rc-text); background: rgba(255,255,255,0.06); }
.rc-tab-btn:focus-visible { outline: 2px solid var(--rc-red); outline-offset: 2px; }
.rc-tab-btn.is-active  {
    color: #fff;
    background: linear-gradient(135deg, rgba(255,59,59,0.28), rgba(180,0,0,0.20));
    box-shadow: 0 2px 12px rgba(255,59,59,0.18), inset 0 1px 0 rgba(255,180,180,0.10);
}

.rc-tab-pane           { display: none; }
.rc-tab-pane.is-active { display: block; }

.rc-tab-btn .rc-tab-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--rc-red-vivid);
    box-shadow: 0 0 8px rgba(255,40,40,0.8);
    flex-shrink: 0;
    display: none;
}
.rc-tab-btn.has-new .rc-tab-dot { display: block; }

/* ── Chat / Updates windows ────────────────────────────────────────────── */
.rc-chat-window,
.rc-updates-window {
    height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    background: #07070a;
    padding: 14px;
    scroll-behavior: smooth;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        inset 0 -1px 0 rgba(0,0,0,0.20);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,75,75,0.30) transparent;
    contain: layout paint;
}

.rc-chat-window::-webkit-scrollbar,
.rc-updates-window::-webkit-scrollbar { width: 4px; }
.rc-chat-window::-webkit-scrollbar-track,
.rc-updates-window::-webkit-scrollbar-track { background: transparent; }
.rc-chat-window::-webkit-scrollbar-thumb,
.rc-updates-window::-webkit-scrollbar-thumb { background: rgba(255,75,75,0.25); border-radius: 999px; }
.rc-chat-window::-webkit-scrollbar-thumb:hover,
.rc-updates-window::-webkit-scrollbar-thumb:hover { background: rgba(255,75,75,0.42); }

.rc-chat-list,
.rc-updates-list {
    display: grid;
    gap: 10px;
    align-content: start;
}
.rc-updates-list { gap: 12px; }

.rc-chat-empty,
.rc-updates-empty {
    padding: 24px 16px;
    border-radius: 18px;
    text-align: center;
    color: var(--rc-muted);
    font-size: 0.88rem;
    line-height: 1.7;
    border: 1px dashed rgba(255,75,75,0.16);
}

/* ── Chat message bubbles ──────────────────────────────────────────────── */
.rc-chat-msg {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255,255,255,0.052) 0%, rgba(255,255,255,0.026) 100%);
    border: 1px solid rgba(255,255,255,0.068);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.045);
    transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1), border-color var(--rc-transition);
    animation: rcFadeUp 0.28s cubic-bezier(0.22,1,0.36,1) both;
    min-width: 0;
    overflow: hidden;
}
.rc-chat-msg:hover { transform: translateY(-3px); border-color: rgba(255,75,75,0.18); }

.rc-chat-msg__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.rc-chat-msg__name-wrap { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; overflow: hidden; }
.rc-chat-msg__name {
    color: #fff; font-weight: 800; font-size: 0.91rem; line-height: 1.2;
    letter-spacing: -0.01em; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: min(160px, 45vw);
}
.rc-chat-msg__time {
    color: rgba(255,255,255,0.38); font-size: 0.70rem; white-space: nowrap; flex-shrink: 0;
    padding: 2px 8px; border-radius: 999px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
    font-variant-numeric: tabular-nums;
}
.rc-chat-msg__text {
    color: rgba(238,240,250,0.88); font-size: 0.90rem; line-height: 1.68;
    white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;
}

.rc-chat-verified {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px;
    border-radius: 999px; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.07em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(255,59,59,0.22), rgba(180,0,0,0.16));
    border: 1px solid rgba(255,75,75,0.34); color: #ffcfcf;
    white-space: nowrap; user-select: none; flex-shrink: 0;
}

.rc-chat-react-total {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    min-width: 0;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(255,75,75,0.22);
    background: linear-gradient(135deg, rgba(255,59,59,0.10), rgba(255,59,59,0.04));
    color: #ffd3d3;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.rc-chat-react-total::before {
    content: '⚡';
    font-size: 0.68rem;
    line-height: 1;
    opacity: 0.95;
    margin-right: 1px;
}

.rc-chat-react-total::after {
    content: '';
}

/* ── Chat form ─────────────────────────────────────────────────────────── */
.rc-chat-form {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(255,255,255,0.030) 0%, rgba(255,255,255,0.016) 100%);
    border: 1px solid rgba(255,255,255,0.065);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    margin-top: 12px;
    min-width: 0;
}

/* Two-column on wide, single-column on narrow — fluid breakpoint */
.rc-chat-fields {
    display: grid;
    grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
}

.rc-input,
.rc-textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.076);
    background: rgba(255,255,255,0.038);
    color: var(--rc-text);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 0.91rem;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    min-width: 0;
}
.rc-textarea { min-height: 58px; max-height: 150px; resize: vertical; }
.rc-input::placeholder,
.rc-textarea::placeholder { color: rgba(220,222,238,0.30); }
.rc-input:hover,
.rc-textarea:hover { border-color: rgba(255,255,255,0.14); background: rgba(255,255,255,0.050); }
.rc-input:focus,
.rc-textarea:focus {
    border-color: rgba(255,59,59,0.58);
    box-shadow: 0 0 0 3px rgba(255,59,59,0.12);
    background: rgba(255,255,255,0.055);
    transform: translateY(-1px);
}
.rc-input[readonly] { opacity: 0.68; cursor: not-allowed; }

.rc-chat-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
    min-width: 0;
}

.rc-chat-send {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
    /* No min-width — let it be whatever it needs */
    width: auto;
    min-height: 58px;
    padding: 12px 18px;
    color: #fff;
    background: linear-gradient(135deg, #ff4747 0%, #d10000 55%, #930000 100%);
    border: 1px solid rgba(255,150,150,0.12);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(180,0,0,0.30), inset 0 1px 0 rgba(255,220,220,0.20);
    font-size: 0.93rem; font-weight: 800; letter-spacing: 0.015em;
    cursor: pointer;
    transition: transform var(--rc-transition), filter var(--rc-transition), opacity var(--rc-transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.rc-chat-send::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.20) 40%, transparent 75%);
    transform: translateX(-130%); transition: transform 0.60s ease;
}
.rc-chat-send:hover::before { transform: translateX(130%); }
.rc-chat-send:hover  { filter: brightness(1.08); transform: translateY(-2px); }
.rc-chat-send:active { transform: translateY(0) scale(0.985); }
.rc-chat-send:disabled { opacity: 0.56; cursor: not-allowed; transform: none; filter: none; }
.rc-chat-send:disabled::before { display: none; }
.rc-chat-send:focus-visible { outline: 2px solid rgba(255,100,100,0.75); outline-offset: 3px; }

.rc-chat-meta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap; padding-top: 2px; min-width: 0;
}
.rc-chat-note,
.rc-chat-status { color: var(--rc-muted); font-size: 0.80rem; line-height: 1.5; }
.rc-chat-status {
    padding: 4px 10px; border-radius: 999px;
    background: rgba(255,255,255,0.028); border: 1px solid rgba(255,255,255,0.05);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px;
}
.rc-chat-status.is-error { background: rgba(255,59,59,0.10); border-color: rgba(255,75,75,0.18); color: #ffb0b0; }
.rc-chat-status.is-ok    { background: rgba(255,59,59,0.07); border-color: rgba(255,75,75,0.14); color: #ffd8d8; }

/* ── Updates feed ──────────────────────────────────────────────────────── */
.rc-update-card {
    display: grid; gap: 9px; padding: 14px 15px; border-radius: 18px;
    background: linear-gradient(160deg, rgba(255,255,255,0.052) 0%, rgba(255,255,255,0.026) 100%);
    border: 1px solid rgba(255,255,255,0.068);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.045);
    animation: rcFadeUp 0.30s cubic-bezier(0.22,1,0.36,1) both;
    transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1), border-color var(--rc-transition);
    min-width: 0; overflow: hidden;
}
.rc-update-card:hover { transform: translateY(-3px); border-color: rgba(255,75,75,0.18); }
.rc-update-card.is-pinned {
    border-color: rgba(255,75,75,0.30);
    background: linear-gradient(160deg, rgba(255,59,59,0.10) 0%, rgba(255,59,59,0.04) 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.20), 0 0 24px rgba(255,59,59,0.08), inset 0 1px 0 rgba(255,180,180,0.08);
}
.rc-update-card__top {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 8px; flex-wrap: wrap; min-width: 0;
}
.rc-update-card__title-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.rc-update-card__title {
    color: #fff; font-weight: 800; font-size: 0.94rem; line-height: 1.3;
    letter-spacing: -0.01em; word-break: break-word; overflow-wrap: anywhere;
}
.rc-update-card__pin {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px;
    border-radius: 999px; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
    background: linear-gradient(135deg, rgba(255,59,59,0.22), rgba(180,0,0,0.16));
    border: 1px solid rgba(255,75,75,0.34); color: #ffcfcf;
    white-space: nowrap; user-select: none; flex-shrink: 0;
}
.rc-update-card__time {
    color: rgba(255,255,255,0.38); font-size: 0.70rem; white-space: nowrap; flex-shrink: 0;
    padding: 2px 8px; border-radius: 999px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
    font-variant-numeric: tabular-nums;
}
.rc-update-card__body {
    color: rgba(238,240,250,0.88); font-size: 0.90rem; line-height: 1.70;
    white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;
}
.rc-update-share-btn {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 8px;
    padding: 4px 9px; border: 1px solid rgba(255,255,255,0.15); border-radius: 6px;
    background: transparent; color: inherit; font-size: 0.76rem; opacity: 0.6;
    cursor: pointer; transition: opacity 0.15s ease, background 0.15s ease;
}
.rc-update-share-btn:hover { opacity: 1; background: rgba(255,255,255,0.08); }
.rc-update-card.is-highlighted { outline: 2px solid #f0a500; outline-offset: 3px; animation: rcHighlightFade 3s ease forwards; }

/* ── History tab ───────────────────────────────────────────────────────── */
.rc-history-list { display: grid; gap: 8px; align-content: start; }

.rc-history-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 9px 12px;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(255,255,255,0.044) 0%, rgba(255,255,255,0.020) 100%);
    border: 1px solid rgba(255,255,255,0.060);
    box-shadow: 0 3px 12px rgba(0,0,0,0.14);
    animation: rcFadeUp 0.26s cubic-bezier(0.22,1,0.36,1) both;
    transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1), border-color 0.18s ease;
    min-width: 0; overflow: hidden;
}
.rc-history-card:hover { transform: translateX(3px); border-color: rgba(255,75,75,0.18); }
.rc-history-card.is-current {
    border-color: rgba(255,75,75,0.30);
    background: linear-gradient(160deg, rgba(255,59,59,0.09) 0%, rgba(255,59,59,0.03) 100%);
}

.rc-history-thumb { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; background: #111; border: 1px solid rgba(255,255,255,0.07); flex-shrink: 0; display: block; }
.rc-history-meta  { min-width: 0; overflow: hidden; }
.rc-history-title { color: var(--rc-text); font-size: 0.86rem; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-history-artist { color: var(--rc-muted); font-size: 0.76rem; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rc-history-badge {
    flex-shrink: 0; padding: 3px 8px; border-radius: 999px;
    font-size: 0.66rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.38); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.rc-history-card.is-current .rc-history-badge {
    background: rgba(255,59,59,0.18); border-color: rgba(255,75,75,0.36); color: #ffcfcf;
}

/* ── Toast notifications ───────────────────────────────────────────────── */
.rc-toast-area {
    position: fixed;
    bottom: clamp(16px, 3vw, 36px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    display: flex; flex-direction: column-reverse; gap: 8px; align-items: center;
    pointer-events: none;
    width: min(360px, calc(100vw - 24px));
}
.rc-toast {
    display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px;
    border-radius: var(--rc-radius-pill);
    background: rgba(12,12,18,0.97); border: 1px solid rgba(255,75,75,0.28);
    box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 24px rgba(255,59,59,0.12);
    color: var(--rc-text); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.005em;
    max-width: 100%; pointer-events: none;
    opacity: 0; transform: translateY(16px) scale(0.96);
    transition: opacity 0.32s cubic-bezier(0.22,1,0.36,1), transform 0.32s cubic-bezier(0.22,1,0.36,1);
    will-change: transform, opacity;
}
.rc-toast.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.rc-toast-icon { font-size: 1rem; flex-shrink: 0; line-height: 1; }
.rc-toast-msg  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.rc-footer {
    color: rgba(255,255,255,0.22);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.68rem;
    padding-top: 4px; padding-bottom: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SURVEY / REPORT POPUP
═══════════════════════════════════════════════════════════════════════════ */
:root {
    --sp-bg:      rgba(10,10,14,0.99);
    --sp-border:  rgba(255,75,75,0.24);
    --sp-accent:  #ff3b3b;
    --sp-accent-d:#b30000;
    --sp-text:    #f2f4f8;
    --sp-muted:   rgba(220,222,238,0.56);
    --sp-glass:   rgba(255,255,255,0.040);
    --sp-glass-h: rgba(255,255,255,0.068);
    --sp-ease:    cubic-bezier(0.22,1,0.36,1);
    --sp-w:       min(380px, calc(100vw - 24px));
}

#spSpinner[hidden] { display: none !important; }

.sp-backdrop {
    position: fixed; inset: 0; z-index: 1090;
    background: rgba(0,0,0,0.60);
    opacity: 0; transition: opacity 0.28s ease; pointer-events: none;
}
.sp-backdrop.is-visible { opacity: 1; pointer-events: auto; }

.sp-popup {
    position: fixed;
    bottom: clamp(12px, 3vw, 30px);
    right: clamp(12px, 3vw, 30px);
    z-index: 1100;
    width: var(--sp-w);
    max-height: calc(100dvh - 24px);
    overflow-y: auto; overflow-x: hidden;
    background:
        radial-gradient(ellipse 80% 50% at 4% 0%, rgba(255,50,50,0.14), transparent 52%),
        var(--sp-bg);
    border: 1px solid var(--sp-border);
    border-radius: 24px;
    box-shadow: 0 36px 90px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,150,150,0.08);
    transform: translateY(22px) scale(0.97);
    opacity: 0;
    transition: transform 0.40s var(--sp-ease), opacity 0.28s ease;
    will-change: transform, opacity;
}
.sp-popup.is-visible { transform: translateY(0) scale(1); opacity: 1; }

.sp-close {
    position: absolute; top: 14px; right: 14px; z-index: 10;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.09); border-radius: 10px;
    background: rgba(255,255,255,0.042); color: rgba(220,222,238,0.52);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    touch-action: manipulation;
}
.sp-close:hover       { background: rgba(255,255,255,0.10); color: #fff; transform: rotate(90deg); }
.sp-close:focus-visible { outline: 2px solid rgba(255,100,100,0.75); outline-offset: 2px; }

.sp-phase { padding: clamp(18px, 5vw, 28px); padding-bottom: clamp(14px, 4vw, 22px); gap: 12px; }
.sp-phase[hidden] { display: none !important; }
.sp-phase:not([hidden]) { display: grid; animation: spSlideIn 0.32s var(--sp-ease) both; }

.sp-kicker {
    display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px;
    border-radius: 999px; border: 1px solid rgba(255,75,75,0.24);
    background: rgba(255,59,59,0.10); color: #ffd4d4;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.10em; text-transform: uppercase;
    width: fit-content;
}
.sp-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--sp-accent); box-shadow: 0 0 10px rgba(255,77,77,0.75);
    flex-shrink: 0; animation: rcPulse 1.6s ease-in-out infinite;
}
.sp-heading {
    margin: 0; font-family: 'Bebas Neue','Impact',sans-serif;
    font-size: clamp(1.30rem, 5vw, 1.75rem); line-height: 1.04;
    letter-spacing: 0.025em; color: var(--sp-text); padding-right: 38px;
}
.sp-desc { margin: 0; color: var(--sp-muted); font-family: 'DM Sans','Helvetica Neue',sans-serif; font-size: 0.86rem; line-height: 1.65; }
.sp-issues { display: grid; gap: 8px; margin-top: 2px; }

.sp-issue-btn {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 11px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08);
    background: var(--sp-glass); color: var(--sp-text);
    font-family: 'DM Sans','Helvetica Neue',sans-serif; font-size: 0.86rem; font-weight: 500;
    cursor: pointer; text-align: left;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    touch-action: manipulation;
}
.sp-issue-btn:hover      { background: var(--sp-glass-h); border-color: rgba(255,75,75,0.28); transform: translateX(4px); }
.sp-issue-btn.is-selected { background: rgba(255,59,59,0.16); border-color: rgba(255,75,75,0.44); color: #fff; font-weight: 700; }
.sp-issue-btn:focus-visible { outline: 2px solid rgba(255,100,100,0.75); outline-offset: 2px; }

.sp-submit {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 50px; padding: 13px 22px; border: none; border-radius: 14px;
    background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-d));
    color: #fff; font-family: 'DM Sans','Helvetica Neue',sans-serif; font-weight: 800; font-size: 0.94rem;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(180,0,0,0.30), inset 0 1px 0 rgba(255,200,200,0.18);
    transition: transform 0.18s ease, filter 0.18s ease;
    touch-action: manipulation; margin-top: 4px; position: relative; overflow: hidden;
}
.sp-submit::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.18) 40%, transparent 80%);
    transform: translateX(-130%); transition: transform 0.55s ease;
}
.sp-submit:hover::before { transform: translateX(130%); }
.sp-submit:hover   { transform: translateY(-2px); filter: brightness(1.06); }
.sp-submit:active  { transform: translateY(0); }
.sp-submit:disabled { opacity: 0.54; cursor: not-allowed; transform: none; filter: none; }
.sp-submit:focus-visible { outline: 2px solid rgba(255,100,100,0.75); outline-offset: 3px; }

.sp-spinner { animation: rcSpin 0.80s linear infinite; flex-shrink: 0; }

.sp-phase--thanks { text-align: center; padding-block: clamp(24px, 5vw, 36px); gap: 10px; }
.sp-phase--thanks .sp-heading { padding-right: 0; }
.sp-thanks-icon { font-size: 2.6rem; line-height: 1; animation: spBounce 0.50s var(--sp-ease) both; }
.sp-thanks-bar { height: 3px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; margin-top: 8px; }
.sp-thanks-bar__fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--sp-accent), #ff8080); transform-origin: left; transform: scaleX(0); }
.sp-thanks-bar__fill.is-draining { transition: transform 2.2s linear; transform: scaleX(1); }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE  ·  Mobile-first breakpoints
   Strategy: every breakpoint only adds overrides; base styles are already
   fluid using clamp() and min-width:0 on every grid child.
═══════════════════════════════════════════════════════════════════════════ */

/* ── 860 px — tablet ───────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .radio-console-page .page-wrap {
        width: calc(100% - 20px);
        padding-top: 12px;
        padding-bottom: 36px;
    }
    .radio-stage,
    .radio-stage::after { border-radius: 24px; }
    .radio-layout  { padding: 14px; gap: 14px; }
    .rc-panel,
    .rc-chat-panel { padding: 16px; gap: 14px; }
    .rc-now-playing { grid-template-columns: 82px minmax(0, 1fr); gap: 12px; padding: 12px; }
    .rc-cover       { width: 82px; height: 82px; border-radius: var(--rc-radius-sm); }
    .rc-meta__title { font-size: clamp(1.25rem, 5.5vw, 1.9rem); }
    .rc-actions     { grid-template-columns: 1fr auto; }
    .rc-chat-window { height: 360px; }
    .rc-updates-window { height: 460px; }
}

/* ── 640 px — large phone landscape / small tablet ─────────────────────── */
@media (max-width: 640px) {
    /* Stack chat fields to single column */
    .rc-chat-fields { grid-template-columns: 1fr; }
    /* Send button full-width inside its row */
    .rc-chat-row    { grid-template-columns: 1fr; }
    .rc-chat-send   { width: 100%; min-height: 50px; }
    .rc-chat-window { height: 320px; }
    .rc-updates-window { height: 430px; }
}

/* ── 520 px — phone portrait ───────────────────────────────────────────── */
@media (max-width: 520px) {
    .radio-console-page .page-wrap { width: calc(100% - 14px); padding-top: 8px; padding-bottom: 24px; }
    .radio-stage,
    .radio-stage::after { border-radius: 18px; }
    .radio-layout   { padding: 10px; gap: 10px; }
    .rc-panel,
    .rc-chat-panel  { padding: 12px; border-radius: 20px; gap: 11px; overflow: hidden; }

    /* Panel head: stack vertically, badge takes full row */
    .rc-panel-head,
    .rc-chat-head   { flex-direction: column; align-items: stretch; gap: 8px; }
    .rc-badge,
    .rc-chat-badge  { justify-content: center; }

    /* Cover + meta */
    .rc-now-playing { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 10px; }
    .rc-cover       { width: 64px; height: 64px; border-radius: 10px; }
    .rc-meta__title { font-size: clamp(1.1rem, 7vw, 1.55rem); }
    .rc-meta__artist { font-size: 0.84rem; }

    /* Reactions — label on its own line, buttons wrap freely */
    .rc-reactions   { flex-direction: column; align-items: flex-start; gap: 8px; padding: 9px 10px; }
    .rc-react-btns  { width: 100%; }
    .rc-react-btn   { flex: 1; justify-content: center; min-width: 0; max-width: calc(20% - 5px); overflow: hidden; }
    .rc-react-count { font-size: 0.68rem; }
    .rc-react-emoji { font-size: 0.88rem; }

    /* Actions row — keep side-by-side, shrink refresh btn */
    .rc-actions     { gap: 8px; }
    .rc-btn--play   { min-height: 48px; font-size: 0.90rem; padding: 11px 16px; }
    .rc-btn--refresh { min-width: 44px; min-height: 48px; padding: 11px 12px; }

    /* Status bar — allow wrapping */
    .rc-status-bar  { min-height: auto; padding: 9px 11px; gap: 7px; }
    .rc-status-msg  { font-size: 0.82rem; }
    .rc-report-btn  { font-size: 0.66rem; padding: 4px 8px; }

    /* Tabs — full width, equal flex */
    .rc-tabs        { max-width: 100%; width: 100%; }
    .rc-tab-btn     { font-size: 0.64rem; padding: 6px 5px; letter-spacing: 0; }
    /* Truncate emoji tab labels on very tight widths */
    #tabBtnUpdates  { font-size: 0; }
    #tabBtnUpdates::after  { content: '📢 Updates'; font-size: 0.64rem; }
    #tabBtnHistory  { font-size: 0; }
    #tabBtnHistory::after  { content: '🎵 History'; font-size: 0.64rem; }

    /* Chat windows */
    /* Chat windows */
    .rc-chat-window { height: 290px; padding: 10px; border-radius: 16px; }
    .rc-updates-window { height: 420px; padding: 10px; border-radius: 16px; }

    /* Chat form */
    .rc-chat-form   { padding: 10px; gap: 9px; border-radius: 16px; }

    /* History */
    .rc-history-card { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; padding: 8px 10px; }
    .rc-history-thumb { width: 36px; height: 36px; border-radius: 8px; }
    .rc-history-title  { font-size: 0.82rem; }
    .rc-history-artist { font-size: 0.72rem; }
    .rc-history-badge  { font-size: 0.60rem; padding: 2px 6px; }
}

/* ── 380 px — very small phones ────────────────────────────────────────── */
@media (max-width: 380px) {
    .radio-console-page .page-wrap { width: calc(100% - 8px); }
    .radio-stage,
    .radio-stage::after { border-radius: 14px; }
    .radio-layout  { padding: 8px; gap: 8px; }
    .rc-panel,
    .rc-chat-panel { padding: 10px; border-radius: 16px; }

    /* Tiny cover */
    .rc-now-playing { grid-template-columns: 56px minmax(0, 1fr); gap: 8px; padding: 8px; }
    .rc-cover       { width: 56px; height: 56px; }
    .rc-meta__title { font-size: clamp(1rem, 7.5vw, 1.4rem); }

    /* Reaction buttons — 2 per row minimum */
    .rc-react-btn   { font-size: 0.72rem; padding: 4px 6px; max-width: calc(20% - 4px); overflow: hidden; }
    .rc-react-count { font-size: 0.62rem; }
    .rc-react-emoji { font-size: 0.82rem; }

    .rc-chat-window { height: 260px; }
    .rc-updates-window { height: 380px; }
    #tabBtnUpdates::after  { content: '📢'; font-size: 0.80rem; }
    #tabBtnHistory::after  { content: '🎵'; font-size: 0.80rem; }
    #tabBtnChat     { font-size: 0.64rem; }

    /* Survey popup — full-width bottom sheet */
    :root { --sp-w: 100%; }
    .sp-popup { right: 0; left: 0; bottom: 0; border-radius: 20px 20px 0 0; border-bottom: none; max-height: 88dvh; }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .radio-stage,
    .rc-badge__dot, .rc-chat-badge__dot,
    .rc-status-dot, .rc-chat-msg, .rc-update-card,
    .rc-floater, .rc-react-burst,
    .sp-popup, .sp-phase:not([hidden]),
    .sp-thanks-icon, .sp-dot, .sp-spinner,
    .sp-thanks-bar__fill, .rc-toast, .rc-history-card {
        animation: none !important;
        transition: none !important;
    }
}

.rc-react-btn.is-maxed {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.rc-react-btn.is-maxed .rc-react-count {
    opacity: 1;
}

.rc-reactions-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

/* ═══════════════════════════════════════════════════════════════════════════
   UPDATE DEEP-LINK POPUP  ·  shown when ?update=ID is in the URL
═══════════════════════════════════════════════════════════════════════════ */

/* Standalone variables and animation for the popup (lives outside .radio-console-page) */
@keyframes udlPulse {
    0%,100% { transform: scale(1);    opacity: 1;    }
    50%     { transform: scale(0.68); opacity: 0.42; }
}

.udl-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.30s ease;
    pointer-events: none;
}
.udl-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.udl-popup {
    position: fixed;
    inset-inline: 50%;
    top: 50%;
    transform: translate(-50%, -46%) scale(0.96);
    translate: none;
    /* Cleaner cross-browser centering */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    z-index: 9001;
    width: min(520px, calc(100vw - 28px));
    max-height: min(82vh, 640px);
    overflow-y: auto;
    border-radius: 24px;
    background: rgba(12,12,16,0.98);
    border: 1px solid rgba(255,75,75,0.28);
    box-shadow:
        0 32px 80px rgba(0,0,0,0.72),
        0 0 60px rgba(255,59,59,0.14),
        inset 0 1px 0 rgba(255,180,180,0.08);
    padding: clamp(20px,4vw,32px);
    display: grid;
    gap: 14px;
    opacity: 0;
    transition: opacity 0.30s ease, transform 0.30s cubic-bezier(0.22,1,0.36,1);
    pointer-events: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,75,75,0.30) transparent;
}
.udl-popup.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.udl-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.70);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    flex-shrink: 0;
}
.udl-close:hover {
    background: rgba(255,59,59,0.20);
    color: #fff;
    transform: scale(1.08);
}
.udl-close:focus-visible {
    outline: 2px solid rgba(255,100,100,0.75);
    outline-offset: 2px;
}

.udl-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--rc-red, #ff3b3b);
    font-size: 0.70rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding-right: 40px; /* avoid overlap with close btn */
}

.udl-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff2020;
    box-shadow: 0 0 10px rgba(255,40,40,0.80), 0 0 20px rgba(255,40,40,0.40);
    animation: udlPulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

.udl-title {
    margin: 0;
    color: #f2f2f6;
    font-size: clamp(1.15rem, 4vw, 1.55rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    word-break: break-word;
}

.udl-time {
    color: rgba(200,202,218,0.45);
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    margin-top: -4px;
}

.udl-body {
    color: rgba(242,242,246,0.88);
    font-size: clamp(0.90rem, 2.5vw, 1rem);
    line-height: 1.70;
    word-break: break-word;
    white-space: pre-wrap;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 12px;
}

.udl-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.udl-continue-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    padding: 11px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff4747 0%, #cc0000 55%, #900000 100%);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 8px 22px rgba(180,0,0,0.30);
    transition: filter 0.18s ease, transform 0.18s ease;
}
.udl-continue-btn:hover {
    filter: brightness(1.10);
    transform: translateY(-1px);
}
.udl-continue-btn:active { transform: scale(0.97); }
.udl-continue-btn:focus-visible {
    outline: 2px solid rgba(255,100,100,0.80);
    outline-offset: 3px;
}

/* Mobile — slide up from bottom instead of center-scale */
@media (max-width: 520px) {
    .udl-popup {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(40px) scale(0.99);
        width: 100%;
        max-height: 88dvh;
        border-radius: 24px 24px 0 0;
        border-bottom: none;
    }
    .udl-popup.is-visible {
        transform: translateY(0) scale(1);
    }
}

/* ── Fullscreen open button ────────────────────────────────────────────── */
#fsOpenBtn {
    appearance: none;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.45);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: none; /* hidden until JS confirms fullscreen is supported */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    padding: 0;
}
#fsOpenBtn:hover {
    background: rgba(255,59,59,0.14);
    color: rgba(255,180,180,0.90);
    border-color: rgba(255,75,75,0.32);
    transform: scale(1.08);
}
#fsOpenBtn:active { transform: scale(0.93); }
#fsOpenBtn:focus-visible { outline: 2px solid rgba(255,100,100,0.75); outline-offset: 2px; }
#fsOpenBtn svg { display: block; pointer-events: none; }

/* ── Requests gate (logged-out state) ─────────────────────────── */
.rc-requests-wrap {
    padding: 8px 0;
}

.rc-requests-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 48px 24px;
    text-align: center;
}

.rc-requests-gate__icon {
    font-size: 2.4rem;
    line-height: 1;
}

.rc-requests-gate__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--rc-text, #fff);
}

.rc-requests-gate__desc {
    margin: 0;
    font-size: 0.85rem;
    color: var(--rc-text-muted, rgba(255,255,255,0.55));
}

.rc-requests-gate__btn {
    display: inline-block;
    margin-top: 6px;
    padding: 9px 22px;
    border-radius: 8px;
    background: var(--rc-accent, #e63946);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.18s;
}

.rc-requests-gate__btn:hover {
    opacity: 0.85;
}

/* ── Requests tab ──────────────────────────────────────────────────────── */

/* Shrink the tab label on mobile like the other tabs */
@media (max-width: 520px) {
    #tabBtnRequests { font-size: 0; }
    #tabBtnRequests::after { content: '🎧 Req'; font-size: 0.64rem; }
}
@media (max-width: 380px) {
    #tabBtnRequests::after { content: '🎧'; font-size: 0.80rem; }
}

/* ── Requests wrap — the pane container ────────────────────────────────── */
.rc-requests-wrap {
    padding: 0;
    min-width: 0;
    overflow: hidden;
}

/* ── Logged-in: iframe sits flush inside the pane ─────────────────────── */
.rc-requests-wrap iframe {
    display: block;
    width: 100%;
    min-height: 820px;
    border: 0;
    border-radius: 20px;
    background: #07070a;
    /* Subtle border matching .rc-chat-window */
    outline: 1px solid rgba(255,255,255,0.06);
}

/* ── Logged-out gate card ──────────────────────────────────────────────── */
.rc-requests-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: clamp(36px, 8vw, 64px) 24px;
    text-align: center;
    /* Glass card — same language as .rc-chat-msg */
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(255,255,255,0.044) 0%, rgba(255,255,255,0.018) 100%);
    border: 1px solid rgba(255,255,255,0.068);
    box-shadow: 0 4px 20px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.04);
    animation: rcFadeUp 0.30s cubic-bezier(0.22,1,0.36,1) both;
}

.rc-requests-gate__icon {
    font-size: 2.6rem;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(255,59,59,0.45));
}

.rc-requests-gate__kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    border-radius: var(--rc-radius-pill);
    background: rgba(255,59,59,0.10);
    border: 1px solid rgba(255,75,75,0.26);
    color: #ffd4d4;
    font-size: 0.70rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rc-requests-gate__kicker-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--rc-red-vivid);
    box-shadow: 0 0 8px rgba(255,40,40,0.75);
    flex-shrink: 0;
    animation: rcPulse 1.6s ease-in-out infinite;
}

.rc-requests-gate__title {
    margin: 0;
    font-family: var(--rc-font-display);
    font-size: clamp(1.4rem, 5vw, 2rem);
    font-weight: 400; /* Bebas Neue is bold by default */
    letter-spacing: 0.04em;
    line-height: 1.05;
    color: var(--rc-text);
}

.rc-requests-gate__desc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--rc-muted);
    max-width: 280px;
}

.rc-requests-gate__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 12px 28px;
    border-radius: var(--rc-radius-md);
    background: linear-gradient(135deg, #ff4747 0%, #cc0000 55%, #900000 100%);
    color: #fff;
    font-size: 0.93rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(180,0,0,0.32), inset 0 1px 0 rgba(255,200,200,0.18);
    transition: filter 0.18s ease, transform 0.18s ease;
    position: relative;
    overflow: hidden;
}

.rc-requests-gate__btn::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.16) 40%, transparent 80%);
    transform: translateX(-130%);
    transition: transform 0.55s ease;
}

.rc-requests-gate__btn:hover::before { transform: translateX(130%); }
.rc-requests-gate__btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}
.rc-requests-gate__btn:active { transform: scale(0.97); }
.rc-requests-gate__btn:focus-visible {
    outline: 2px solid rgba(255,100,100,0.80);
    outline-offset: 3px;
}

/* ── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .rc-requests-gate,
    .rc-requests-gate__kicker-dot,
    .rc-requests-gate__btn,
    .rc-requests-gate__btn::before {
        animation: none !important;
        transition: none !important;
    }
}

/* ── Requests loading state ────────────────────────────────────────────── */
.rc-requests-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 48px 24px;
    color: var(--rc-muted);
    font-size: 0.88rem;
}

.rc-requests-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,75,75,0.20);
    border-top-color: var(--rc-red-vivid);
    border-radius: 50%;
    animation: rcSpin 0.75s linear infinite;
    flex-shrink: 0;
}


/* ── Subscription chat badges ─────────────────────────────── */
.rc-chat-verified {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
    flex-shrink: 0;
    line-height: 1.6;
    vertical-align: middle;
}

/* Default Member (non-subscribed verified user) */
.rc-chat-verified:not(.rc-chat-sub-pro):not(.rc-chat-sub-vip):not(.rc-chat-sub-vvip) {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.60);
}

/* PRO — purple */
.rc-chat-sub-pro {
    background: rgba(140, 70, 220, .18);
    border: 1px solid rgba(160, 90, 240, .45);
    color: #d4aaff;
    text-shadow: 0 0 8px rgba(180,100,255,.40);
}

/* VIP — neon-ish red */
.rc-chat-sub-vip {
    background: rgba(255, 30, 60, .15);
    border: 1px solid rgba(255, 60, 80, .50);
    color: #ff8090;
    text-shadow: 0 0 10px rgba(255,40,60,.55), 0 0 22px rgba(255,20,50,.28);
}

/* VVIP — pure full neon red */
.rc-chat-sub-vvip {
    background: rgba(255, 0, 30, .20);
    border: 1px solid rgba(255, 20, 40, .70);
    color: #ff3355;
    text-shadow: 0 0 8px rgba(255,0,30,.90), 0 0 18px rgba(255,0,20,.70), 0 0 32px rgba(220,0,20,.50);
    box-shadow: 0 0 10px rgba(255,0,30,.25), inset 0 0 8px rgba(255,0,20,.10);
    animation: vvipPulse 2s ease-in-out infinite;
}

@keyframes vvipPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255,0,30,.25), inset 0 0 8px rgba(255,0,20,.10); }
    50%       { box-shadow: 0 0 18px rgba(255,0,30,.55), inset 0 0 12px rgba(255,0,20,.20); }
}

@media (prefers-reduced-motion: reduce) {
    .rc-chat-sub-vvip { animation: none; }
}

.rc-react-anim-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.rc-react-anim-btn:hover {
    opacity: 1;
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.28);
}
.rc-react-anim-btn.is-off {
    opacity: 0.35;
    border-color: rgba(255,255,255,0.08);
}

@media (max-width: 767px) {
    #reactAnimToggle {
        display: none !important;
    }
}