/* ═══════════════════════════════════════════════════════════════════════════
   index.css — Modernized & Humanized Radio Console
   Prentzas FM · Clean Zinc/Slate Design System
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────────────────────── */
.radio-console-page {
    /* Brand Accent */
    --rc-red:             #ff3b3b;
    --rc-red-deep:        #dc2626;
    --rc-red-vivid:       #ef4444;
    --rc-red-border:      rgba(255, 59, 59, 0.28);
    --rc-red-subtle:      rgba(255, 59, 59, 0.10);

    /* Clean Zinc/Slate Surfaces */
    --rc-surface-0:       #09090b; /* Zinc-950 base */
    --rc-surface-1:       #121215; /* Zinc-900 panels */
    --rc-surface-2:       #18181b; /* Zinc-850 cards & controls */
    --rc-surface-3:       #202024; /* Elevated hover */
    --rc-surface-subtle:  #27272a; /* Zinc-700 interactive */
    --rc-glass:           rgba(255, 255, 255, 0.035);
    --rc-glass-2:         rgba(255, 255, 255, 0.06);

    /* Crisp 1px Borders */
    --rc-border:          rgba(255, 255, 255, 0.08);
    --rc-border-subtle:   rgba(255, 255, 255, 0.05);
    --rc-border-hover:    rgba(255, 255, 255, 0.15);
    --rc-border-focus:    rgba(255, 255, 255, 0.24);

    /* Text & Hierarchy */
    --rc-text:            #f4f4f5;
    --rc-muted:           rgba(228, 228, 231, 0.65);
    --rc-faint:           rgba(255, 255, 255, 0.35);

    /* Balanced 8px-12px Radii (No Bulky Pills) */
    --rc-radius-xl:       12px;
    --rc-radius-lg:       12px;
    --rc-radius-md:       10px;
    --rc-radius-sm:       8px;
    --rc-radius-xs:       6px;
    --rc-radius-pill:     8px;

    /* Crisp Deep Shadows (No Saturated Maroon Glows) */
    --rc-shadow:          0 20px 48px -12px rgba(0, 0, 0, 0.65), 0 1px 2px rgba(0, 0, 0, 0.40);
    --rc-shadow-sm:       0 4px 16px rgba(0, 0, 0, 0.30);
    --rc-shadow-btn:      0 4px 18px rgba(220, 38, 38, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.24);

    /* Fonts & Timing */
    --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;
    background-color: var(--rc-surface-0);
}

.radio-console-page .page-wrap {
    width: min(var(--rc-shell-max), calc(100% - 28px));
    margin-inline: auto;
    padding-top: clamp(16px, 2.5vw, 28px);
    padding-bottom: clamp(32px, 5vw, 64px);
    overflow-x: hidden;
}

/* ── Keyframes ─────────────────────────────────────────────────────────── */
@keyframes rcFadeUp {
    from { opacity: 0; transform: translateY(14px) scale(0.99); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
@keyframes rcPulse {
    0%, 100% { transform: scale(1);    opacity: 1;    }
    50%      { transform: scale(0.72); opacity: 0.45; }
}
@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.35) translateY(-4px); }
    65%  { transform: scale(0.92) 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(12px); }
    to   { opacity: 1; transform: translateX(0);    }
}
@keyframes spBounce {
    0%   { transform: scale(0.4); opacity: 0; }
    65%  { transform: scale(1.18); }
    100% { transform: scale(1);    opacity: 1; }
}

/* ── Radio Stage ───────────────────────────────────────────────────────── */
.radio-stage {
    animation: rcFadeUp 0.50s cubic-bezier(0.22, 1, 0.36, 1) both;
    position: relative;
    overflow: hidden;
    border-radius: var(--rc-radius-xl);
    border: 1px solid var(--rc-border);
    background: linear-gradient(180deg, #111114 0%, #0c0c0e 100%);
    box-shadow: var(--rc-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 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.008) 3px,
        rgba(255, 255, 255, 0.008) 4px
    );
    border-radius: inherit;
}

/* Subtle top edge highlight */
.radio-stage::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    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: 16px;
    padding: clamp(14px, 2.5vw, 24px);
    min-width: 0;
    overflow: hidden;
}

/* ── Panels ────────────────────────────────────────────────────────────── */
.rc-panel,
.rc-chat-panel {
    width: 100%;
    min-width: 0;
    display: grid;
    gap: 14px;
    padding: clamp(14px, 2.2vw, 22px);
    border-radius: var(--rc-radius-lg);
    background: var(--rc-surface-1);
    border: 1px solid var(--rc-border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 8px 30px rgba(0, 0, 0, 0.35);
    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-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.rc-panel-title strong {
    display: block;
    color: var(--rc-text);
    font-size: clamp(0.98rem, 2.2vw, 1.12rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

/* ── Live badge ────────────────────────────────────────────────────────── */
.rc-badge,
.rc-chat-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: var(--rc-radius-sm);
    background: rgba(255, 59, 59, 0.10);
    border: 1px solid rgba(255, 75, 75, 0.24);
    color: #ffcccc;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.rc-badge__dot,
.rc-chat-badge__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--rc-red-vivid);
    box-shadow: 0 0 8px rgba(255, 59, 59, 0.8);
    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-md);
    background: var(--rc-surface-2);
    border: 1px solid var(--rc-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: border-color var(--rc-transition);
    min-width: 0;
    overflow: hidden;
}

.rc-now-playing:has(#trackTitle:not(:empty)) {
    border-color: rgba(255, 255, 255, 0.12);
}

.rc-cover {
    width: 104px; height: 104px;
    border-radius: var(--rc-radius-sm);
    object-fit: cover;
    background: #111;
    border: 1px solid var(--rc-border);
    flex-shrink: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    display: block;
}

.rc-meta {
    min-width: 0;
    overflow: hidden;
}

.rc-meta__eyebrow {
    color: var(--rc-red);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.68rem;
    font-weight: 800;
    margin-bottom: 5px;
    opacity: 0.90;
}

.rc-meta__title {
    margin: 0;
    color: var(--rc-text);
    font-family: var(--rc-font-display);
    font-size: clamp(1.25rem, 2.8vw, 2.1rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.rc-meta__artist {
    margin: 6px 0 0;
    color: var(--rc-muted);
    font-size: 0.90rem;
    line-height: 1.45;
    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: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.rc-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--rc-red);
    border-radius: 4px;
    transition: width 0.4s ease-out;
}

.rc-progress-times {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.40);
    font-size: 0.70rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* ── Reactions row ─────────────────────────────────────────────────────── */
.rc-reactions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: var(--rc-radius-md);
    background: var(--rc-surface-2);
    border: 1px solid var(--rc-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    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: 6px;
    flex-wrap: wrap;
    min-width: 0;
    flex: 1;
}

.rc-react-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: var(--rc-radius-sm);
    border: 1px solid var(--rc-border);
    background: var(--rc-surface-1);
    color: var(--rc-text);
    font-size: 0.80rem;
    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;
    min-width: 0;
}

.rc-react-btn:hover {
    background: var(--rc-surface-subtle);
    border-color: var(--rc-border-hover);
    transform: translateY(-2px);
}
.rc-react-btn:active { transform: scale(0.95); }

.rc-react-emoji {
    font-size: 0.95rem;
    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;
    text-align: left;
    white-space: nowrap;
    flex-shrink: 1;
}
.rc-react-burst { animation: rcReactBurst 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes rcCountPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.25) translateY(-2px); color: #ffdd88; }
    70%  { transform: scale(0.94); }
    100% { transform: scale(1); color: inherit; }
}
.rc-react-count.is-popping {
    animation: rcCountPop 0.40s 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;
}

/* ── Razor-Sharp Buttons ───────────────────────────────────────────────── */
.rc-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 12px 22px;
    border-radius: var(--rc-radius-md);
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.015em;
    transition: transform var(--rc-transition), filter var(--rc-transition), background var(--rc-transition), border-color 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(-1px); }
.rc-btn:active         { transform: translateY(0) scale(0.985); }
.rc-btn:focus-visible  { outline: 2px solid var(--rc-red); outline-offset: 3px; }

/* Razor-sharp Play button */
.rc-btn--play {
    color: #fff;
    background: linear-gradient(180deg, #ff3b3b 0%, #dc2626 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 4px 18px rgba(220, 38, 38, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    flex: 1;
}
.rc-btn--play:hover {
    filter: brightness(1.08);
}
.rc-btn--play.is-playing {
    background: linear-gradient(180deg, #27272a 0%, #1f1f23 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.rc-btn--refresh {
    color: rgba(255, 255, 255, 0.65);
    background: var(--rc-surface-2);
    border: 1px solid var(--rc-border);
    min-width: 50px;
    padding: 12px 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.rc-btn--refresh:hover {
    color: var(--rc-text);
    border-color: var(--rc-border-hover);
    background: var(--rc-surface-subtle);
}

.rc-btn__icon {
    font-style: normal;
    font-size: 1.05em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.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: 9px;
    padding: 10px 14px;
    border-radius: var(--rc-radius-md);
    background: var(--rc-surface-2);
    border: 1px solid var(--rc-border);
    min-height: 46px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    flex-wrap: wrap;
}

.rc-status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(113, 113, 122, 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 8px rgba(255, 59, 59, 0.75);
    animation: rcPulse 1.6s ease-in-out infinite;
}
.rc-status-msg {
    color: rgba(244, 244, 245, 0.80);
    font-size: 0.86rem;
    line-height: 1.45;
    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;
    }
}

/* ── Report button ─────────────────────────────────────────────────────── */
.rc-report-btn {
    margin-left: auto;
    flex-shrink: 0;
    appearance: none;
    border: 1px solid var(--rc-border);
    background: var(--rc-surface-1);
    color: var(--rc-muted);
    border-radius: var(--rc-radius-sm);
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    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: var(--rc-surface-subtle);
    color: #fff;
    border-color: var(--rc-border-hover);
    transform: translateY(-1px);
}
.rc-report-btn:focus-visible { outline: 2px solid var(--rc-red); outline-offset: 2px; }

/* ═══════════════════════════════════════════════════════════════════════════
   CHAT PANEL
═══════════════════════════════════════════════════════════════════════════ */
.rc-chat-panel {
    gap: 16px;
    background: var(--rc-surface-1);
    border: 1px solid var(--rc-border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 8px 30px rgba(0, 0, 0, 0.35);
}

/* ── Tab bar ───────────────────────────────────────────────────────────── */
.rc-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: var(--rc-radius-md);
    background: var(--rc-surface-2);
    border: 1px solid var(--rc-border);
    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;
    padding: 7px clamp(8px, 2vw, 16px);
    border-radius: var(--rc-radius-sm);
    font-size: clamp(0.70rem, 1.8vw, 0.82rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--rc-muted);
    background: transparent;
    transition: color var(--rc-transition), background var(--rc-transition), border-color var(--rc-transition);
    white-space: nowrap;
    flex: 1;
    justify-content: center;
    min-width: 0;
    border: 1px solid transparent;
}

.rc-tab-btn:hover {
    color: var(--rc-text);
    background: rgba(255, 255, 255, 0.04);
}
.rc-tab-btn:focus-visible { outline: 2px solid var(--rc-red); outline-offset: 2px; }
.rc-tab-btn.is-active {
    color: #fff;
    background: var(--rc-surface-subtle);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.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 6px rgba(255, 59, 59, 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: 390px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: var(--rc-radius-md);
    border: 1px solid var(--rc-border);
    background: #0b0b0e;
    padding: 14px;
    scroll-behavior: smooth;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) 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, 255, 255, 0.16); border-radius: 4px; }
.rc-chat-window::-webkit-scrollbar-thumb:hover,
.rc-updates-window::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.28); }

.rc-chat-list,
.rc-updates-list {
    display: grid;
    gap: 8px;
    align-content: start;
}
.rc-updates-list { gap: 10px; }

.rc-chat-empty,
.rc-updates-empty {
    padding: 24px 16px;
    border-radius: var(--rc-radius-md);
    text-align: center;
    color: var(--rc-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    border: 1px dashed var(--rc-border);
    background: rgba(255, 255, 255, 0.015);
}

/* ── Chat message bubbles ──────────────────────────────────────────────── */
.rc-chat-msg {
    display: grid;
    gap: 7px;
    padding: 11px 13px;
    border-radius: var(--rc-radius-md);
    background: var(--rc-surface-2);
    border: 1px solid var(--rc-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), border-color var(--rc-transition), background 0.18s ease;
    animation: rcFadeUp 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
    min-width: 0;
    overflow: hidden;
}
.rc-chat-msg:hover {
    transform: translateY(-2px);
    border-color: var(--rc-border-hover);
    background: var(--rc-surface-3);
}

.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: 700; font-size: 0.90rem; 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.40); font-size: 0.68rem; white-space: nowrap; flex-shrink: 0;
    padding: 2px 7px; border-radius: var(--rc-radius-xs);
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--rc-border-subtle);
    font-variant-numeric: tabular-nums;
}
.rc-chat-msg__text {
    color: rgba(244, 244, 245, 0.90); font-size: 0.88rem; line-height: 1.6;
    white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;
}

.rc-chat-verified {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px;
    border-radius: var(--rc-radius-xs); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 59, 59, 0.12);
    border: 1px solid rgba(255, 75, 75, 0.28); color: #ffcccc;
    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 6px;
    border-radius: var(--rc-radius-xs);
    border: 1px solid var(--rc-border);
    background: var(--rc-surface-1);
    color: var(--rc-text);
    font-size: 0.68rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.rc-chat-reactions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding-top: 4px;
    border-top: 1px solid var(--rc-border-subtle);
}

.rc-chat-rbtn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: var(--rc-radius-xs);
    border: 1px solid var(--rc-border);
    background: var(--rc-surface-1);
    color: var(--rc-muted);
    font-size: 0.72rem;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    user-select: none;
    line-height: 1;
}
.rc-chat-rbtn:hover {
    background: var(--rc-surface-subtle);
    border-color: var(--rc-border-hover);
    color: #fff;
    transform: translateY(-1px);
}
.rc-chat-rbtn.has-count {
    color: var(--rc-text);
    border-color: rgba(255, 255, 255, 0.12);
    background: var(--rc-surface-subtle);
}

/* ── Chat form & fields ────────────────────────────────────────────────── */
.rc-chat-form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.rc-chat-fields {
    display: grid;
    grid-template-columns: minmax(130px, 180px) 1fr;
    gap: 8px;
    align-items: stretch;
}

.rc-chat-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.rc-input,
.rc-textarea {
    width: 100%;
    appearance: none;
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius-sm);
    background: var(--rc-surface-2);
    color: var(--rc-text);
    font-family: var(--rc-font-body);
    font-size: 0.88rem;
    padding: 10px 12px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rc-input:focus,
.rc-textarea:focus {
    border-color: var(--rc-border-focus);
    background: var(--rc-surface-3);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.rc-textarea {
    resize: none;
    min-height: 44px;
    height: 44px;
    line-height: 1.4;
}

.rc-chat-send {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: var(--rc-radius-sm);
    background: linear-gradient(180deg, #ff3b3b 0%, #dc2626 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.86rem;
    box-shadow: 0 3px 12px rgba(220, 38, 38, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.20);
    transition: transform var(--rc-transition), filter var(--rc-transition);
}
.rc-chat-send:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.rc-chat-send:active { transform: translateY(0); }

.rc-chat-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--rc-muted);
}
.rc-chat-note { color: var(--rc-muted); font-size: 0.78rem; }
.rc-chat-status {
    padding: 3px 8px;
    border-radius: var(--rc-radius-xs);
    background: var(--rc-surface-2);
    border: 1px solid var(--rc-border);
    font-size: 0.76rem;
    color: var(--rc-muted);
}
.rc-chat-status.is-error {
    background: rgba(255, 59, 59, 0.12);
    border-color: rgba(255, 75, 75, 0.28);
    color: #ffaaaa;
}
.rc-chat-status.is-ok {
    background: rgba(255, 59, 59, 0.08);
    border-color: rgba(255, 75, 75, 0.20);
    color: #ffd4d4;
}

/* ── Updates feed ──────────────────────────────────────────────────────── */
.rc-update-card {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border-radius: var(--rc-radius-md);
    background: var(--rc-surface-2);
    border: 1px solid var(--rc-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    animation: rcFadeUp 0.28s 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), background 0.18s ease;
    min-width: 0;
    overflow: hidden;
}
.rc-update-card:hover {
    transform: translateY(-2px);
    border-color: var(--rc-border-hover);
    background: var(--rc-surface-3);
}
.rc-update-card.is-pinned {
    border-color: rgba(255, 59, 59, 0.30);
    background: linear-gradient(180deg, #1f181c 0%, #161215 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.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: 700; font-size: 0.92rem; 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 6px;
    border-radius: var(--rc-radius-xs); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
    background: rgba(255, 59, 59, 0.15);
    border: 1px solid rgba(255, 75, 75, 0.30); color: #ffcccc;
    white-space: nowrap; user-select: none; flex-shrink: 0;
}
.rc-update-card__time {
    color: rgba(255, 255, 255, 0.40); font-size: 0.68rem; white-space: nowrap; flex-shrink: 0;
    padding: 2px 7px; border-radius: var(--rc-radius-xs);
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--rc-border-subtle);
    font-variant-numeric: tabular-nums;
}
.rc-update-card__body {
    color: rgba(244, 244, 245, 0.88); font-size: 0.88rem; line-height: 1.62;
    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: 6px;
    padding: 3px 8px; border: 1px solid var(--rc-border); border-radius: var(--rc-radius-xs);
    background: transparent; color: inherit; font-size: 0.74rem; opacity: 0.65;
    cursor: pointer; transition: opacity 0.15s ease, background 0.15s ease;
}
.rc-update-share-btn:hover { opacity: 1; background: rgba(255, 255, 255, 0.06); }
.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: 8px 11px;
    border-radius: var(--rc-radius-sm);
    background: var(--rc-surface-2);
    border: 1px solid var(--rc-border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    animation: rcFadeUp 0.25s 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, background 0.18s ease;
    min-width: 0; overflow: hidden;
}
.rc-history-card:hover { transform: translateX(2px); border-color: var(--rc-border-hover); background: var(--rc-surface-3); }
.rc-history-card.is-current {
    border-color: rgba(255, 59, 59, 0.30);
    background: linear-gradient(180deg, #1c1518 0%, #151114 100%);
}

.rc-history-thumb { width: 40px; height: 40px; border-radius: var(--rc-radius-xs); object-fit: cover; background: #111; border: 1px solid var(--rc-border); flex-shrink: 0; display: block; }
.rc-history-meta  { min-width: 0; overflow: hidden; }
.rc-history-title { color: var(--rc-text); font-size: 0.85rem; 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.75rem; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rc-history-badge {
    flex-shrink: 0; padding: 2px 7px; border-radius: var(--rc-radius-xs);
    font-size: 0.64rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--rc-border);
    color: rgba(255, 255, 255, 0.40); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.rc-history-card.is-current .rc-history-badge {
    background: rgba(255, 59, 59, 0.15); border-color: rgba(255, 75, 75, 0.30); color: #ffcccc;
}

/* ── Toast notifications ───────────────────────────────────────────────── */
.rc-toast-area {
    position: fixed;
    bottom: clamp(16px, 3vw, 32px);
    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: 9px; padding: 10px 15px;
    border-radius: var(--rc-radius-sm);
    background: var(--rc-surface-2); border: 1px solid var(--rc-border-hover);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.60);
    color: var(--rc-text); font-size: 0.84rem; font-weight: 600;
    max-width: 100%; pointer-events: none;
    opacity: 0; transform: translateY(14px) scale(0.97);
    transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s 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: 0.95rem; 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.28);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.68rem;
    padding-top: 4px; padding-bottom: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SURVEY / REPORT POPUP
═══════════════════════════════════════════════════════════════════════════ */
:root {
    --sp-bg:      #121215;
    --sp-border:  rgba(255, 255, 255, 0.10);
    --sp-accent:  #ff3b3b;
    --sp-accent-d:#dc2626;
    --sp-text:    #f4f4f5;
    --sp-muted:   rgba(228, 228, 231, 0.60);
    --sp-glass:   rgba(255, 255, 255, 0.04);
    --sp-glass-h: rgba(255, 255, 255, 0.08);
    --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.65);
    opacity: 0; transition: opacity 0.25s ease; pointer-events: none;
}
.sp-backdrop.is-visible { opacity: 1; pointer-events: auto; }

.sp-popup {
    position: fixed;
    bottom: clamp(12px, 3vw, 28px);
    right: clamp(12px, 3vw, 28px);
    z-index: 1100;
    width: var(--sp-w);
    max-height: calc(100dvh - 24px);
    overflow-y: auto; overflow-x: hidden;
    background: var(--sp-bg);
    border: 1px solid var(--sp-border);
    border-radius: var(--rc-radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(18px) scale(0.97);
    opacity: 0;
    transition: transform 0.35s var(--sp-ease), opacity 0.25s ease;
    will-change: transform, opacity;
}
.sp-popup.is-visible { transform: translateY(0) scale(1); opacity: 1; }

.sp-close {
    position: absolute; top: 12px; right: 12px; z-index: 10;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--rc-border); border-radius: var(--rc-radius-sm);
    background: var(--rc-surface-2); color: var(--sp-muted);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    touch-action: manipulation;
}
.sp-close:hover       { background: var(--rc-surface-subtle); color: #fff; transform: rotate(90deg); }
.sp-close:focus-visible { outline: 2px solid var(--sp-accent); outline-offset: 2px; }

.sp-phase { padding: clamp(16px, 4vw, 24px); gap: 11px; }
.sp-phase[hidden] { display: none !important; }
.sp-phase:not([hidden]) { display: grid; animation: spSlideIn 0.30s var(--sp-ease) both; }

.sp-kicker {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
    border-radius: var(--rc-radius-sm); border: 1px solid var(--rc-border);
    background: var(--rc-surface-2); color: var(--sp-muted);
    font-size: 0.70rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    width: fit-content;
}
.sp-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--sp-accent); box-shadow: 0 0 6px rgba(255, 59, 59, 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.25rem, 4.5vw, 1.65rem); line-height: 1.05;
    letter-spacing: 0.02em; color: var(--sp-text); padding-right: 32px;
}
.sp-desc { margin: 0; color: var(--sp-muted); font-size: 0.85rem; line-height: 1.6; }
.sp-issues { display: grid; gap: 7px; margin-top: 2px; }

.sp-issue-btn {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px 12px; border-radius: var(--rc-radius-sm); border: 1px solid var(--rc-border);
    background: var(--sp-glass); color: var(--sp-text);
    font-family: var(--rc-font-body); font-size: 0.85rem; 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: var(--rc-border-hover); transform: translateX(3px); }
.sp-issue-btn.is-selected { background: rgba(255, 59, 59, 0.14); border-color: rgba(255, 75, 75, 0.35); color: #fff; font-weight: 700; }
.sp-issue-btn:focus-visible { outline: 2px solid var(--sp-accent); outline-offset: 2px; }

.sp-submit {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 46px; padding: 11px 20px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--rc-radius-sm);
    background: linear-gradient(180deg, #ff3b3b 0%, #dc2626 100%);
    color: #fff; font-family: var(--rc-font-body); font-weight: 700; font-size: 0.90rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.20);
    transition: filter 0.18s ease, transform 0.18s ease;
}
.sp-submit:hover   { transform: translateY(-1px); filter: brightness(1.08); }
.sp-submit:active  { transform: translateY(0); }
.sp-submit:disabled { opacity: 0.50; cursor: not-allowed; transform: none; filter: none; }
.sp-submit:focus-visible { outline: 2px solid var(--sp-accent); outline-offset: 3px; }

.sp-spinner { animation: rcSpin 0.80s linear infinite; flex-shrink: 0; }

.sp-phase--thanks { text-align: center; padding-block: clamp(20px, 4vw, 32px); gap: 9px; }
.sp-phase--thanks .sp-heading { padding-right: 0; }
.sp-thanks-icon { font-size: 2.4rem; line-height: 1; animation: spBounce 0.45s var(--sp-ease) both; }
.sp-thanks-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 6px; }
.sp-thanks-bar__fill { height: 100%; width: 100%; background: var(--sp-accent); transform-origin: left; transform: scaleX(0); }
.sp-thanks-bar__fill.is-draining { transition: transform 2.2s linear; transform: scaleX(1); }

/* ═══════════════════════════════════════════════════════════════════════════
   FULLSCREEN TRIGGER BUTTON
═══════════════════════════════════════════════════════════════════════════ */
#fsOpenBtn {
    appearance: none;
    border: 1px solid var(--rc-border);
    background: var(--rc-surface-2);
    color: var(--rc-muted);
    border-radius: var(--rc-radius-sm);
    width: 34px;
    height: 34px;
    display: none;
    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: var(--rc-surface-subtle);
    color: #fff;
    border-color: var(--rc-border-hover);
    transform: scale(1.05);
}
#fsOpenBtn:active { transform: scale(0.94); }
#fsOpenBtn:focus-visible { outline: 2px solid var(--rc-red); outline-offset: 2px; }
#fsOpenBtn svg { display: block; pointer-events: none; }

/* ── Requests tab & gate ───────────────────────────────────────────────── */
.rc-requests-wrap {
    padding: 0;
    min-width: 0;
    overflow: hidden;
}

.rc-requests-wrap iframe {
    display: block;
    width: 100%;
    min-height: 820px;
    border: 0;
    border-radius: var(--rc-radius-md);
    background: #0b0b0e;
    outline: 1px solid var(--rc-border);
}

.rc-requests-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: clamp(32px, 6vw, 56px) 20px;
    text-align: center;
    border-radius: var(--rc-radius-md);
    background: var(--rc-surface-2);
    border: 1px solid var(--rc-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    animation: rcFadeUp 0.30s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rc-requests-gate__icon {
    font-size: 2.4rem;
    line-height: 1;
}

.rc-requests-gate__kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--rc-radius-sm);
    background: var(--rc-surface-1);
    border: 1px solid var(--rc-border);
    color: var(--rc-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.rc-requests-gate__kicker-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--rc-red-vivid);
    box-shadow: 0 0 6px rgba(255, 59, 59, 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.3rem, 4vw, 1.85rem);
    letter-spacing: 0.03em;
    line-height: 1.1;
    color: var(--rc-text);
}

.rc-requests-gate__desc {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--rc-muted);
    max-width: 280px;
}

.rc-requests-gate__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 10px 24px;
    border-radius: var(--rc-radius-sm);
    background: linear-gradient(180deg, #ff3b3b 0%, #dc2626 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.90rem;
    font-weight: 700;
    letter-spacing: 0.015em;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.20);
    transition: filter 0.18s ease, transform 0.18s ease;
}
.rc-requests-gate__btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.rc-requests-gate__btn:active { transform: scale(0.97); }
.rc-requests-gate__btn:focus-visible { outline: 2px solid var(--rc-red); outline-offset: 3px; }

.rc-requests-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 40px 20px;
    color: var(--rc-muted);
    font-size: 0.86rem;
}

.rc-requests-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--rc-red);
    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 6px;
    border-radius: var(--rc-radius-xs);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex-shrink: 0;
    line-height: 1.5;
    vertical-align: middle;
}

.rc-chat-verified:not(.rc-chat-sub-pro):not(.rc-chat-sub-vip):not(.rc-chat-sub-vvip) {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--rc-border);
    color: rgba(255, 255, 255, 0.65);
}

.rc-chat-sub-pro {
    background: rgba(140, 70, 220, 0.16);
    border: 1px solid rgba(160, 90, 240, 0.40);
    color: #d4aaff;
}

.rc-chat-sub-vip {
    background: rgba(255, 30, 60, 0.14);
    border: 1px solid rgba(255, 60, 80, 0.45);
    color: #ff8090;
}

.rc-chat-sub-vvip {
    background: rgba(255, 0, 30, 0.18);
    border: 1px solid rgba(255, 20, 40, 0.60);
    color: #ff3355;
    box-shadow: 0 0 8px rgba(255, 0, 30, 0.20);
    animation: vvipPulse 2s ease-in-out infinite;
}

@keyframes vvipPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 0, 30, 0.20); }
    50%       { box-shadow: 0 0 14px rgba(255, 0, 30, 0.45); }
}

.rc-react-anim-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius-xs);
    background: var(--rc-surface-2);
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    opacity: 0.75;
    transition: opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.rc-react-anim-btn:hover {
    opacity: 1;
    background: var(--rc-surface-subtle);
    border-color: var(--rc-border-hover);
}
.rc-react-anim-btn.is-off {
    opacity: 0.35;
    border-color: var(--rc-border-subtle);
}

@media (max-width: 767px) {
    #reactAnimToggle { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   UPDATE DEEP-LINK POPUP
═══════════════════════════════════════════════════════════════════════════ */
.udl-backdrop {
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(0, 0, 0, 0.70);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0; transition: opacity 0.28s ease; pointer-events: none;
}
.udl-backdrop.is-visible { opacity: 1; pointer-events: auto; }

.udl-popup {
    position: fixed;
    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: var(--rc-radius-lg);
    background: var(--rc-surface-1);
    border: 1px solid var(--rc-border);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: clamp(18px, 3.5vw, 28px);
    display: grid;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
.udl-popup.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }

.udl-close {
    position: absolute; top: 12px; right: 12px;
    width: 30px; height: 30px;
    border-radius: var(--rc-radius-sm);
    border: 1px solid var(--rc-border);
    background: var(--rc-surface-2);
    color: var(--rc-muted);
    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: var(--rc-surface-subtle); color: #fff; transform: scale(1.05); }
.udl-close:focus-visible { outline: 2px solid var(--rc-red); outline-offset: 2px; }

.udl-kicker {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--rc-red); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
    padding-right: 36px;
}
.udl-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--rc-red-vivid); box-shadow: 0 0 6px rgba(255, 59, 59, 0.75);
    animation: rcPulse 1.6s ease-in-out infinite; flex-shrink: 0;
}
.udl-title {
    margin: 0; color: var(--rc-text); font-size: clamp(1.10rem, 3.5vw, 1.45rem);
    font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; word-break: break-word;
}
.udl-time { color: var(--rc-muted); font-size: 0.74rem; letter-spacing: 0.01em; margin-top: -2px; }
.udl-body {
    color: rgba(244, 244, 245, 0.88); font-size: clamp(0.88rem, 2vw, 0.95rem);
    line-height: 1.65; word-break: break-word; white-space: pre-wrap;
    border-top: 1px solid var(--rc-border-subtle); padding-top: 10px;
}
.udl-footer { display: flex; justify-content: flex-end; padding-top: 4px; border-top: 1px solid var(--rc-border-subtle); }
.udl-continue-btn {
    appearance: none; border: 1px solid rgba(255, 255, 255, 0.16); cursor: pointer;
    padding: 10px 22px; border-radius: var(--rc-radius-sm);
    background: linear-gradient(180deg, #ff3b3b 0%, #dc2626 100%);
    color: #fff; font-size: 0.86rem; font-weight: 700;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.20);
    transition: filter 0.18s ease, transform 0.18s ease;
}
.udl-continue-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.udl-continue-btn:active { transform: scale(0.97); }
.udl-continue-btn:focus-visible { outline: 2px solid var(--rc-red); outline-offset: 3px; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
    .radio-console-page .page-wrap {
        width: calc(100% - 20px);
        padding-top: 10px;
        padding-bottom: 32px;
    }
    .radio-layout  { padding: 12px; gap: 12px; }
    .rc-panel,
    .rc-chat-panel { padding: 14px; gap: 12px; border-radius: var(--rc-radius-md); }
    .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.2rem, 5vw, 1.8rem); }
    .rc-chat-window { height: 350px; }
    .rc-updates-window { height: 440px; }
}

@media (max-width: 640px) {
    .rc-chat-fields { grid-template-columns: 1fr; }
    .rc-chat-row    { grid-template-columns: 1fr; }
    .rc-chat-send   { width: 100%; min-height: 44px; }
    .rc-chat-window { height: 310px; }
    .rc-updates-window { height: 400px; }
}

@media (max-width: 520px) {
    .radio-console-page .page-wrap { width: calc(100% - 14px); padding-top: 8px; padding-bottom: 24px; }
    .radio-layout   { padding: 10px; gap: 10px; }
    .rc-panel,
    .rc-chat-panel  { padding: 12px; border-radius: var(--rc-radius-md); gap: 10px; }

    .rc-panel-head,
    .rc-chat-head   { flex-direction: column; align-items: stretch; gap: 8px; }
    .rc-badge,
    .rc-chat-badge  { justify-content: center; }

    .rc-now-playing { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 10px; }
    .rc-cover       { width: 64px; height: 64px; border-radius: var(--rc-radius-xs); }
    .rc-meta__title { font-size: clamp(1.1rem, 6.5vw, 1.5rem); }
    .rc-meta__artist { font-size: 0.82rem; }

    .rc-reactions   { flex-direction: column; align-items: flex-start; gap: 7px; padding: 8px 10px; }
    .rc-react-btns  { width: 100%; }
    .rc-react-btn   { flex: 1; justify-content: center; min-width: 0; max-width: calc(20% - 5px); }
    .rc-react-count { font-size: 0.66rem; }
    .rc-react-emoji { font-size: 0.86rem; }

    .rc-actions     { gap: 8px; }
    .rc-btn--play   { min-height: 46px; font-size: 0.88rem; padding: 10px 14px; }
    .rc-btn--refresh { min-width: 44px; min-height: 46px; padding: 10px 12px; }

    .rc-status-bar  { min-height: auto; padding: 8px 10px; gap: 6px; }
    .rc-status-msg  { font-size: 0.80rem; }
    .rc-report-btn  { font-size: 0.65rem; padding: 4px 7px; }

    .rc-tabs        { max-width: 100%; width: 100%; }
    .rc-tab-btn     { font-size: 0.62rem; padding: 5px 4px; letter-spacing: 0; }
    #tabBtnUpdates  { font-size: 0; }
    #tabBtnUpdates::after  { content: '📢 Updates'; font-size: 0.62rem; }
    #tabBtnHistory  { font-size: 0; }
    #tabBtnHistory::after  { content: '🎵 History'; font-size: 0.62rem; }
    #tabBtnRequests { font-size: 0; }
    #tabBtnRequests::after { content: '🎧 Req'; font-size: 0.62rem; }

    .rc-chat-window { height: 280px; padding: 10px; border-radius: var(--rc-radius-sm); }
    .rc-updates-window { height: 390px; padding: 10px; border-radius: var(--rc-radius-sm); }
    .rc-chat-form   { padding: 8px; gap: 8px; }

    .rc-history-card { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 7px; padding: 7px 9px; }
    .rc-history-thumb { width: 34px; height: 34px; border-radius: var(--rc-radius-xs); }
    .rc-history-title  { font-size: 0.80rem; }
    .rc-history-artist { font-size: 0.70rem; }
    .rc-history-badge  { font-size: 0.58rem; padding: 2px 5px; }

    .udl-popup {
        top: auto; bottom: 0; left: 0; right: 0;
        transform: translateY(30px) scale(0.99);
        width: 100%; max-height: 88dvh;
        border-radius: var(--rc-radius-lg) var(--rc-radius-lg) 0 0;
        border-bottom: none;
    }
    .udl-popup.is-visible { transform: translateY(0) scale(1); }
}

@media (max-width: 380px) {
    .radio-console-page .page-wrap { width: calc(100% - 8px); }
    .radio-layout  { padding: 8px; gap: 8px; }
    .rc-react-count { font-size: 0.60rem; }
    .rc-react-emoji { font-size: 0.80rem; }
    .rc-chat-window { height: 250px; }
    .rc-updates-window { height: 360px; }
    #tabBtnUpdates::after  { content: '📢'; font-size: 0.76rem; }
    #tabBtnHistory::after  { content: '🎵'; font-size: 0.76rem; }
    #tabBtnRequests::after { content: '🎧'; font-size: 0.76rem; }
    #tabBtnChat     { font-size: 0.62rem; }

    :root { --sp-w: 100%; }
    .sp-popup { right: 0; left: 0; bottom: 0; border-radius: var(--rc-radius-lg) var(--rc-radius-lg) 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,
    .rc-requests-gate, .rc-requests-gate__kicker-dot, .rc-requests-gate__btn,
    .rc-chat-sub-vvip {
        animation: none !important;
        transition: none !important;
    }
}
