/* ============================================================
   RadioX — Main Stylesheet  v3
   Architecture: CSS custom properties + data-theme attribute
   Default: dark theme
   ============================================================ */

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    background-color: var(--color-bg);
    color: var(--color-text);
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* ── Dark Theme (Default) ──────────────────────────────────── */
:root,
[data-theme="dark"] {
    --color-bg:           #0a0a0a;
    --color-bg-surface:   #111111;
    --color-bg-elevated:  #1a1a1a;
    --color-bg-hover:     #242424;
    --color-border:       #272727;
    --color-border-subtle:#1e1e1e;
    --color-text:         #f2f2f2;
    --color-text-muted:   #888888;
    --color-text-faint:   #555555;
    --color-text-inverse: #0a0a0a;

    --color-primary:      #e50914;
    --color-primary-dark: #b8070f;
    --color-primary-glow: rgba(229, 9, 20, 0.25);
    --color-primary-text: #ffffff;

    --color-accent:       #ff6b6b;
    --color-success:      #1db954;
    --color-warning:      #f59e0b;
    --color-error:        #ff4444;

    --color-card-bg:      #141414;
    --color-card-border:  #242424;
    --color-input-bg:     #181818;
    --color-input-border: #2e2e2e;
    --color-input-focus:  #e50914;

    --glass-bg:           rgba(17, 17, 17, 0.75);
    --glass-border:       rgba(255, 255, 255, 0.06);
    --glass-blur:         blur(20px) saturate(180%);

    --shadow-sm:  0 1px 3px rgba(0,0,0,0.5);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.65);
    --shadow-lg:  0 12px 40px rgba(0,0,0,0.8);
    --shadow-xl:  0 24px 64px rgba(0,0,0,0.9);

    --player-height: 72px;
    --nav-height: 60px;

    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  14px;
    --radius-xl:  20px;
    --radius-pill: 9999px;
}

/* ── Light Theme ───────────────────────────────────────────── */
[data-theme="light"] {
    --color-bg:           #f4f4f5;
    --color-bg-surface:   #ffffff;
    --color-bg-elevated:  #ececee;
    --color-bg-hover:     #e4e4e7;
    --color-border:       #dddde0;
    --color-border-subtle:#e9e9ec;
    --color-text:         #111111;
    --color-text-muted:   #626268;
    --color-text-faint:   #a0a0a8;
    --color-text-inverse: #ffffff;

    --color-primary:      #e50914;
    --color-primary-dark: #b8070f;
    --color-primary-glow: rgba(229, 9, 20, 0.15);
    --color-primary-text: #ffffff;

    --color-accent:       #e50914;
    --color-success:      #16a34a;
    --color-warning:      #d97706;
    --color-error:        #dc2626;

    --color-card-bg:      #ffffff;
    --color-card-border:  #e4e4e7;
    --color-input-bg:     #ffffff;
    --color-input-border: #d4d4d8;
    --color-input-focus:  #e50914;

    --glass-bg:           rgba(255, 255, 255, 0.8);
    --glass-border:       rgba(0, 0, 0, 0.07);
    --glass-blur:         blur(20px) saturate(180%);

    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg:  0 12px 40px rgba(0,0,0,0.14);
    --shadow-xl:  0 24px 64px rgba(0,0,0,0.18);

    --player-height: 72px;
    --nav-height: 60px;

    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  14px;
    --radius-xl:  20px;
    --radius-pill: 9999px;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    letter-spacing: -0.02em;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: var(--radius-sm); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) { .container { padding: 0 2rem; } }

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.content {
    flex: 1;
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 7rem;
}

/* ── Navigation ────────────────────────────────────────────── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    display: flex;
    align-items: center;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) { .nav-inner { padding: 0 2rem; } }

/* Logo */
.nav-logo {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.04em;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.75rem;
}
.nav-logo .nav-logo-icon {
    color: var(--color-primary);
    flex-shrink: 0;
}
.nav-logo .rx-x { color: var(--color-primary); }
.nav-logo:hover { text-decoration: none; opacity: 0.85; }

/* Main links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    flex: 1;
}

.nav-links a {
    position: relative;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}
.nav-links a:hover {
    color: var(--color-text);
    background: var(--color-bg-hover);
    text-decoration: none;
}
.nav-links a.active {
    color: var(--color-text);
    background: transparent;
    text-decoration: none;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* Right-side action cluster */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

/* Slim vertical divider */
.nav-divider {
    width: 1px;
    height: 18px;
    background: var(--color-border);
    margin: 0 0.35rem;
    flex-shrink: 0;
}

/* Icon-only button (theme toggle, profile) */
.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}
.nav-icon-btn:hover {
    color: var(--color-text);
    background: var(--color-bg-hover);
    text-decoration: none;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ── Station Grid ───────────────────────────────────────────── */
.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
}

@media (min-width: 1024px) {
    .stations-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

.station-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s, background 0.15s;
    position: relative;
}

.station-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-border);
    background: var(--color-bg-elevated);
    transform: translateY(-3px);
}

.station-card.is-playing {
    border-color: var(--color-primary);
    background: var(--color-bg-elevated);
    box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-md);
}

.station-logo {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--color-bg-elevated);
    flex-shrink: 0;
}

.station-logo-placeholder {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--color-text-faint);
    border: 1px solid var(--color-border);
}

.station-name {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-text);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.station-genre {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.station-play-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--color-primary-glow);
}

.station-play-btn:hover {
    background: var(--color-primary-dark);
    transform: scale(1.08);
    box-shadow: 0 4px 16px var(--color-primary-glow);
}

.station-fav-btn {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-faint);
    font-size: 1rem;
    padding: 0.25rem;
    transition: color 0.15s, transform 0.1s;
    line-height: 1;
}

.station-fav-btn:hover { color: var(--color-accent); transform: scale(1.15); }
.station-fav-btn.is-fav { color: var(--color-accent); }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }

label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.625rem 0.9rem;
    background: var(--color-input-bg);
    border: 1px solid var(--color-input-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 0.925rem;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-input-focus);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.form-error {
    font-size: 0.78rem;
    color: var(--color-error);
    margin-top: 0.3rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s, opacity 0.15s;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--color-primary);
    color: var(--color-primary-text);
    box-shadow: 0 2px 8px var(--color-primary-glow);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 4px 16px var(--color-primary-glow);
    text-decoration: none;
}

.btn-secondary {
    background: var(--color-bg-elevated);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.btn-secondary:hover { background: var(--color-bg-hover); text-decoration: none; }

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
    padding: 0.4rem 0.75rem;
}
.btn-ghost:hover { background: var(--color-bg-hover); color: var(--color-text); text-decoration: none; }

.btn-danger {
    background: var(--color-error);
    color: #fff;
}
.btn-danger:hover { opacity: 0.88; text-decoration: none; }

.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
    padding: 0.875rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success { background: rgba(29,185,84,0.08); border-color: rgba(29,185,84,0.25); color: var(--color-success); }
.alert-error   { background: rgba(255,68,68,0.08); border-color: rgba(255,68,68,0.25); color: var(--color-error); }
.alert-warning { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.25); color: var(--color-warning); }
.alert-info    { background: var(--color-primary-glow); border-color: rgba(229,9,20,0.3); color: var(--color-primary); }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--color-bg-elevated);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge-primary { background: var(--color-primary-glow); color: var(--color-primary); border-color: rgba(229,9,20,0.3); }

/* ── Search Bar ─────────────────────────────────────────────── */
.search-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: var(--color-input-bg);
    border: 1px solid var(--color-input-border);
    border-radius: var(--radius-lg);
    padding: 0 0.875rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search-bar:focus-within {
    border-color: var(--color-input-focus);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.search-bar input {
    border: none;
    background: none;
    box-shadow: none;
    padding: 0.65rem 0;
    flex: 1;
}

.search-bar input:focus { box-shadow: none; }

/* ── Filter Bar ─────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
}

.filter-bar select {
    width: auto;
    min-width: 150px;
    font-size: 0.85rem;
    padding: 0.45rem 0.8rem;
}

/* ── Section heading ────────────────────────────────────────── */
.section-heading {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.section-heading h2 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-heading .section-count {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* ══════════════════════════════════════════════════════════════
   FLOATING MINI-PLAYER  v3
   ══════════════════════════════════════════════════════════════ */
.player-bar {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 340px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 0.875rem 1rem 0.875rem 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    z-index: 200;
    box-shadow: var(--shadow-xl), 0 0 0 1px var(--glass-border);
    transform: translateY(calc(100% + 2rem));
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.25s ease;
    pointer-events: none;
}
.player-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* Red glow line at top when playing */
.player-bar.is-playing::before {
    content: '';
    position: absolute;
    top: -1px; left: 1.5rem; right: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    border-radius: 2px;
    animation: player-glow 2.5s ease-in-out infinite;
}
@keyframes player-glow {
    0%, 100% { opacity: 0.3; transform: scaleX(0.6); }
    50%       { opacity: 1;   transform: scaleX(1); }
}

/* Logo */
.player-logo-wrap { flex-shrink: 0; }
.player-logo {
    width: 42px; height: 42px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--color-bg-elevated);
    display: block;
}
.player-logo-placeholder {
    width: 42px; height: 42px;
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-faint);
}

/* Info */
.player-info {
    flex: 1;
    min-width: 0;
}
.player-station-name {
    font-size: 0.8rem; font-weight: 700;
    color: var(--color-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    letter-spacing: -0.01em; line-height: 1.3;
}

/* Metadata wrap + marquee */
.player-meta-wrap {
    display: none;
    overflow: hidden;
    margin-top: 0.1rem;
    height: 1rem;
}
.player-meta-wrap.is-scrolling { overflow: hidden; }
.player-meta {
    font-size: 0.7rem; font-weight: 500;
    color: var(--color-primary);
    white-space: nowrap;
    display: inline-block;
}
.player-meta-wrap.is-scrolling .player-meta {
    animation: meta-marquee 18s linear infinite;
}
@keyframes meta-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.meta-scroll-inner { display: inline; }

.player-status {
    font-size: 0.67rem;
    color: var(--color-text-muted);
    margin-top: 0.1rem;
    line-height: 1;
}

/* ── Volume control ──────────────────────────────────────── */
.player-volume-wrap {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.player-vol-btn {
    width: 26px; height: 26px;
    background: transparent; border: none;
    color: var(--color-text-muted);
    cursor: pointer; padding: 0;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: color 0.15s;
    border-radius: var(--radius-sm);
}
.player-vol-btn:hover { color: var(--color-text); }

/* Custom slider track */
.player-vol-slider-wrap {
    position: relative;
    width: 68px;
    height: 20px;
    display: flex;
    align-items: center;
}
.player-vol-track {
    position: absolute;
    left: 0; right: 0;
    height: 3px;
    background: var(--color-border);
    border-radius: 3px;
    overflow: hidden;
    pointer-events: none;
}
.player-vol-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    transition: width 0.05s;
}
.player-vol-slider {
    position: absolute;
    left: 0; right: 0;
    width: 100%;
    opacity: 0;           /* hidden — track is rendered above */
    cursor: pointer;
    height: 20px;
    margin: 0; padding: 0;
    background: transparent;
    z-index: 2;
    -webkit-appearance: none;
    appearance: none;
}
/* Show a real thumb via ::after overlay trick */
.player-vol-slider-wrap::after {
    content: '';
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 11px; height: 11px;
    background: var(--color-text);
    border-radius: 50%;
    pointer-events: none;
    transition: background 0.1s, transform 0.1s;
    left: calc(var(--vol-pct, 80%) - 5px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.player-vol-slider-wrap:hover::after { background: var(--color-primary); transform: translateY(-50%) scale(1.2); }

/* ── Controls ────────────────────────────────────────────── */
.player-controls { flex-shrink: 0; }

.player-btn {
    width: 38px; height: 38px;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    border: none; color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 2px 8px var(--color-primary-glow);
}
.player-btn:hover {
    background: var(--color-primary-dark);
    transform: scale(1.08);
    box-shadow: 0 4px 14px var(--color-primary-glow);
}
.player-btn.is-stop {
    background: var(--color-bg-elevated);
    color: var(--color-text-muted);
    box-shadow: none;
}

/* ── Close button ────────────────────────────────────────── */
.player-close {
    position: absolute;
    top: 0.45rem; right: 0.45rem;
    width: 20px; height: 20px;
    background: transparent; border: none;
    color: var(--color-text-faint);
    cursor: pointer; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}
.player-close:hover { color: var(--color-text); background: var(--color-bg-hover); }

/* ── Auth forms ─────────────────────────────────────────────── */
.auth-wrapper {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-lg);
}

.auth-box h1 {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.75rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--color-text-faint);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 0.75rem;
    transition: background 0.15s, border-color 0.15s;
    text-decoration: none;
}
.oauth-btn:hover { background: var(--color-bg-hover); text-decoration: none; }

/* ── Admin ──────────────────────────────────────────────────── */
.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: calc(100vh - var(--nav-height));
    margin-top: var(--nav-height);
}

.admin-sidebar {
    background: var(--color-bg-surface);
    border-right: 1px solid var(--color-border);
    padding: 1.25rem 0.75rem;
    position: sticky;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    overflow-y: auto;
}

.admin-sidebar nav ul { list-style: none; }

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.875rem;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s, background 0.15s;
    margin-bottom: 0.15rem;
    text-decoration: none;
}

.admin-sidebar nav a:hover {
    color: var(--color-text);
    background: var(--color-bg-hover);
}

.admin-sidebar nav a.active {
    color: var(--color-primary);
    background: var(--color-primary-glow);
}

.admin-content {
    padding: 2rem 2.5rem;
    overflow-x: auto;
}

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

th {
    text-align: left;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--color-bg-surface);
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border-subtle);
    vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--color-bg-hover); }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 2rem;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    background: var(--color-bg-surface);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.pagination a:hover { background: var(--color-bg-hover); color: var(--color-text); text-decoration: none; }
.pagination span.current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ── Theme Toggle (now uses .nav-icon-btn) ───────────────────── */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    background: transparent;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.theme-toggle:hover {
    color: var(--color-text);
    background: var(--color-bg-hover);
    text-decoration: none;
}

/* ── Language Switcher ──────────────────────────────────────── */
.lang-switcher {
    position: relative;
}

.lang-switcher-btn {
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.3rem 0.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.05em;
    height: 32px;
}
.lang-switcher-btn:hover {
    background: var(--color-bg-hover);
    color: var(--color-text);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    /* Extra top padding creates an invisible mouse bridge from button to dropdown */
    padding: 0.5rem 0 0 0;
    min-width: 130px;
    z-index: 300;
}

/* The visible card is a child pseudo-element workaround — use an inner wrapper instead */
.lang-dropdown-inner {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.4rem;
}

.lang-switcher:hover .lang-dropdown,
.lang-dropdown:hover { display: block; }

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.12s, color 0.12s;
}
.lang-dropdown a:hover { background: var(--color-bg-hover); color: var(--color-text); text-decoration: none; }
.lang-dropdown a.active { color: var(--color-primary); font-weight: 700; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--color-bg-surface);
    border-top: 1px solid var(--color-border);
    padding: 2.5rem 0 1.5rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem 3rem;
    align-items: start;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 420px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.footer-logo:hover { color: var(--color-primary); }
.footer-logo-icon { flex-shrink: 0; color: var(--color-primary); }
.footer-logo .rx-x { color: var(--color-primary); }

.footer-disclaimer {
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0;
}

.footer-nav ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
}
.footer-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.15s;
}
.footer-nav a:hover { color: var(--color-primary); }

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 767px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.25rem; }

    .nav-links { display: none; }

    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }
    .admin-content { padding: 1.25rem; }

    .player-bar {
        bottom: 1rem;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
        border-radius: var(--radius-lg);
    }

    .stations-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
}

/* ── Utility ────────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.text-muted    { color: var(--color-text-muted); }
.text-center   { text-align: center; }
.text-small    { font-size: 0.82rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ══════════════════════════════════════════════════════════════
   HOME PAGE
══════════════════════════════════════════════════════════════ */

/* Hero */
.home-hero {
    position: relative;
    padding: 4rem 0 3rem;
    margin-bottom: 3.5rem;
    overflow: hidden;
}
.hero-bg-glow {
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 400px;
    background: radial-gradient(ellipse at center, rgba(229,9,20,0.12) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.75rem; font-weight: 700; color: var(--color-primary);
    letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 1.25rem; padding: 0.3rem 0.75rem;
    background: var(--color-primary-glow);
    border: 1px solid rgba(229,9,20,0.25);
    border-radius: var(--radius-pill);
}
.hero-badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--color-primary);
    animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.7); }
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900; line-height: 1.05;
    letter-spacing: -0.04em; margin-bottom: 1rem; color: var(--color-text);
}
.hero-title-accent { color: var(--color-primary); }
.hero-desc {
    font-size: 1rem; color: var(--color-text-muted);
    line-height: 1.65; margin-bottom: 2rem; max-width: 520px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.hero-stats {
    display: flex; align-items: center; gap: 1.5rem;
    padding-top: 2rem; border-top: 1px solid var(--color-border);
    position: relative; z-index: 1;
}
.hero-stat { display: flex; flex-direction: column; gap: 0.1rem; }
.hero-stat-num {
    font-size: 1.4rem; font-weight: 800; color: var(--color-text);
    letter-spacing: -0.04em; line-height: 1;
}
.hero-stat-label {
    font-size: 0.75rem; color: var(--color-text-muted);
    text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500;
}
.hero-stat-sep { width: 1px; height: 32px; background: var(--color-border); }

/* Home sections */
.home-section { margin-bottom: 3rem; }
.home-section-header {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 1.25rem;
}
.home-section-title {
    font-size: 1.1rem; font-weight: 700; color: var(--color-text);
    letter-spacing: -0.02em; display: flex; align-items: center; gap: 0.5rem;
}
.title-live-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--color-primary); animation: pulse-dot 1.8s ease-in-out infinite;
}
.home-section-link {
    font-size: 0.82rem; font-weight: 600; color: var(--color-text-muted);
    display: flex; align-items: center; gap: 0.2rem;
    transition: color 0.15s; text-decoration: none;
}
.home-section-link:hover { color: var(--color-primary); text-decoration: none; }

/* Genre grid */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.6rem;
}
.genre-chip {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.65rem 0.875rem;
    background: var(--color-card-bg); border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md); text-decoration: none;
    transition: background 0.15s, border-color 0.15s, transform 0.15s; min-width: 0;
}
.genre-chip:hover {
    background: var(--color-bg-elevated); border-color: var(--color-primary);
    transform: translateY(-1px); text-decoration: none;
}
.genre-chip-icon { font-size: 1.1rem; flex-shrink: 0; line-height: 1; }
.genre-chip-name {
    font-size: 0.825rem; font-weight: 600; color: var(--color-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em;
}

/* Trending list */
.trending-list {
    display: flex; flex-direction: column; gap: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); overflow: hidden;
    background: var(--color-card-bg);
}
.trending-item {
    display: flex; align-items: center; gap: 0.875rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border-subtle);
    transition: background 0.12s;
}
.trending-item:last-child { border-bottom: none; }
.trending-item:hover { background: var(--color-bg-hover); }
.trending-rank {
    font-size: 0.75rem; font-weight: 700; color: var(--color-text-faint);
    width: 18px; text-align: center; flex-shrink: 0; font-variant-numeric: tabular-nums;
}
.trending-item:nth-child(1) .trending-rank { color: var(--color-primary); font-size: 0.875rem; }
.trending-item:nth-child(2) .trending-rank { color: var(--color-text-muted); }
.trending-item:nth-child(3) .trending-rank { color: #cd7f32; }
.trending-logo {
    width: 38px; height: 38px; border-radius: var(--radius-sm);
    object-fit: cover; flex-shrink: 0; background: var(--color-bg-elevated);
}
.trending-logo-ph {
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--color-text-faint); border: 1px solid var(--color-border);
}
.trending-info { flex: 1; min-width: 0; }
.trending-name {
    display: block; font-size: 0.875rem; font-weight: 600; color: var(--color-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-decoration: none; letter-spacing: -0.01em;
}
.trending-name:hover { color: var(--color-primary); text-decoration: none; }
.trending-meta {
    font-size: 0.72rem; color: var(--color-text-muted);
    text-transform: uppercase; letter-spacing: 0.04em;
}
.trending-plays {
    font-size: 0.75rem; font-weight: 700; color: var(--color-text-faint);
    font-variant-numeric: tabular-nums; text-align: right; flex-shrink: 0;
}
.trending-plays-label {
    font-size: 0.68rem; font-weight: 400; margin-left: 0.2rem;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.trending-play-btn {
    width: 30px; height: 30px; border-radius: var(--radius-pill);
    background: var(--color-primary); border: none; color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 2px 6px var(--color-primary-glow);
}
.trending-play-btn:hover { background: var(--color-primary-dark); transform: scale(1.08); }

/* ══════════════════════════════════════════════════════════════
   ADMIN DASHBOARD ANALYTICS
══════════════════════════════════════════════════════════════ */
.dash-header {
    display: flex; align-items: flex-start;
    justify-content: space-between; margin-bottom: 2rem;
    gap: 1rem; flex-wrap: wrap;
}
.dash-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 0.2rem; }
.dash-subtitle { font-size: 0.82rem; color: var(--color-text-muted); margin: 0; }
.dash-header-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* KPI grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem; margin-bottom: 1.5rem;
}
.kpi-card {
    background: var(--color-card-bg); border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg); padding: 1.25rem;
    display: flex; align-items: flex-start; gap: 1rem;
    transition: box-shadow 0.2s, transform 0.2s;
}
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kpi-icon {
    width: 42px; height: 42px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.kpi-icon svg { width: 20px; height: 20px; }
.kpi-blue   .kpi-icon { background: rgba(59,130,246,0.12);  color: #3b82f6; }
.kpi-purple .kpi-icon { background: rgba(139,92,246,0.12);  color: #8b5cf6; }
.kpi-red    .kpi-icon { background: var(--color-primary-glow); color: var(--color-primary); }
.kpi-green  .kpi-icon { background: rgba(29,185,84,0.12);   color: var(--color-success); }
.kpi-body { flex: 1; min-width: 0; }
.kpi-value {
    font-size: 1.75rem; font-weight: 800; color: var(--color-text);
    letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.2rem;
}
.kpi-label { font-size: 0.85rem; font-weight: 600; color: var(--color-text); margin-bottom: 0.1rem; }
.kpi-sub { font-size: 0.75rem; color: var(--color-text-muted); }

/* Dashboard cards */
.dash-card {
    background: var(--color-card-bg); border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg); overflow: hidden;
}
.dash-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--color-border-subtle);
}
.dash-card-title { font-size: 0.875rem; font-weight: 700; color: var(--color-text); letter-spacing: -0.01em; }
.dash-card-link { font-size: 0.78rem; color: var(--color-text-muted); text-decoration: none; transition: color 0.15s; }
.dash-card-link:hover { color: var(--color-primary); text-decoration: none; }
.chart-container { padding: 1rem 1.25rem; }

/* Chart rows */
.dash-charts-row {
    display: grid; grid-template-columns: 1fr 340px;
    gap: 1rem; margin-bottom: 1rem;
}
.dash-tables-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1rem; margin-top: 1rem;
}
.dash-tables-row .table-wrapper { padding: 0 0 0.5rem; }
.dash-tables-row table { font-size: 0.825rem; }
.dash-tables-row td, .dash-tables-row th { padding: 0.6rem 1rem; }

.table-link { color: var(--color-text); font-weight: 500; text-decoration: none; }
.table-link:hover { color: var(--color-primary); text-decoration: none; }

.status-dot {
    display: inline-block; width: 7px; height: 7px;
    border-radius: 50%; margin-right: 0.4rem; vertical-align: middle;
}
.status-active   { background: var(--color-success); }
.status-inactive { background: var(--color-text-faint); }
.status-text { vertical-align: middle; font-size: 0.82rem; }

.user-cell { display: flex; align-items: center; gap: 0.6rem; }
.user-avatar {
    width: 28px; height: 28px; border-radius: var(--radius-pill);
    background: var(--color-primary-glow); color: var(--color-primary);
    font-size: 0.7rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; border: 1px solid rgba(229,9,20,0.2);
}
.user-name  { font-size: 0.825rem; font-weight: 600; color: var(--color-text); }
.user-email { font-size: 0.72rem; color: var(--color-text-muted); }

/* ── SPA navigation loading bar ────────────────────────────── */
html.rx-loading::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 60%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    z-index: 9999;
    animation: rx-loading-bar 0.8s ease-in-out infinite alternate;
}
@keyframes rx-loading-bar {
    from { width: 20%; opacity: 0.7; }
    to   { width: 80%; opacity: 1; }
}

/* ── Search page ────────────────────────────────────────────── */
.search-hero {
    background: linear-gradient(to bottom, var(--color-bg-surface), var(--color-bg));
    border-bottom: 1px solid var(--color-border);
    padding: 3rem 0 2rem;
    margin-bottom: 0;
}
.search-hero-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 var(--page-px, 1.25rem);
    text-align: center;
}
.search-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}
.search-subtitle {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.search-form-hero {
    display: flex;
    gap: 0.625rem;
    align-items: center;
}
.search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 0.875rem;
    color: var(--color-text-muted);
    pointer-events: none;
}
.search-input-hero {
    width: 100%;
    height: 46px;
    padding: 0 2.5rem 0 2.75rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-bg-elevated);
    color: var(--color-text);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s;
    -webkit-appearance: none;
}
.search-input-hero:focus { border-color: var(--color-primary); }
.search-input-hero::placeholder { color: var(--color-text-faint); }
.search-clear {
    position: absolute;
    right: 0.75rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.15s;
}
.search-clear:hover { opacity: 1; }
.search-btn-hero { height: 46px; white-space: nowrap; border-radius: var(--radius-pill) !important; }

/* Empty/idle states */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
}
.empty-state-icon { margin-bottom: 1rem; }
.empty-state-title { font-size: 1.05rem; font-weight: 600; color: var(--color-text); margin-bottom: 0.35rem; }
.empty-state-sub { font-size: 0.875rem; color: var(--color-text-muted); }
.search-idle {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--color-text-faint);
    font-size: 0.9rem;
}
.search-idle svg { display: block; margin: 0 auto 1rem; }

/* ── Page hero (favorites, etc) ─────────────────────────────── */
.page-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem var(--page-px, 1.25rem) 1.25rem;
    border-bottom: 1px solid var(--color-border-subtle);
    margin-bottom: 0;
}
.page-hero-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-lg);
    background: var(--color-primary-glow);
    color: var(--color-primary);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.page-hero-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.page-hero-sub   { font-size: 0.875rem; color: var(--color-text-muted); margin-top: 0.15rem; }

/* ── Admin form improvements ────────────────────────────────── */
.form-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin: 1.5rem 0 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border-subtle);
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-required { color: var(--color-primary); }

/* Toggle switch */
.form-toggles { display: flex; flex-wrap: wrap; gap: 1rem; }
.form-toggle {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
}
.form-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.form-toggle-track {
    width: 38px; height: 22px;
    border-radius: 11px;
    background: var(--color-border);
    border: 1.5px solid var(--color-border);
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}
.form-toggle-track::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--color-text-muted);
    transition: transform 0.2s, background 0.2s;
}
.form-toggle input:checked + .form-toggle-track {
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.form-toggle input:checked + .form-toggle-track::after {
    transform: translateX(16px);
    background: #fff;
}
.form-toggle-label { font-size: 0.875rem; color: var(--color-text); user-select: none; }

/* Responsive */
@media (max-width: 1100px) {
    .dash-charts-row { grid-template-columns: 1fr; }
    .dash-tables-row  { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .home-hero { padding: 2rem 0 2rem; }
    .hero-stats { gap: 1rem; }
    .hero-stat-num { font-size: 1.1rem; }
    .genre-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.5rem; }
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    .dash-charts-row, .dash-tables-row { grid-template-columns: 1fr; }
    .trending-plays, .trending-plays-label { display: none; }
    .form-row-2 { grid-template-columns: 1fr; }
    .search-form-hero { flex-direction: column; }
    .search-btn-hero { width: 100%; }
    .page-hero { padding: 1.5rem var(--page-px, 1rem) 1rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-nav ul { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
}

/* ── Prose (static pages) ────────────────────────────────── */
.prose {
    max-width: 680px;
    color: var(--color-text);
    line-height: 1.75;
    font-size: 0.95rem;
}
.prose h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 2rem 0 0.5rem;
    color: var(--color-text);
}
.prose p, .prose ul { margin: 0 0 1rem; }
.prose ul { padding-left: 1.5rem; }
.prose li { margin-bottom: 0.25rem; }

/* ── Profile layout ──────────────────────────────────────── */
.profile-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.profile-sidebar { display: flex; flex-direction: column; gap: 1rem; }

.profile-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.profile-avatar-wrap {
    display: flex; justify-content: center;
    margin-bottom: 1rem;
}
.profile-avatar-circle {
    width: 72px; height: 72px;
    border-radius: 50%;
    font-size: 1.75rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    letter-spacing: -0.02em;
}
.profile-avatar-default { background: var(--color-primary); color: #fff; }
.profile-avatar-img {
    width: 72px; height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border);
}
.profile-sidebar-name {
    font-size: 1rem; font-weight: 700; text-align: center;
    letter-spacing: -0.02em; margin-bottom: 0.2rem;
}
.profile-sidebar-email {
    font-size: 0.75rem; color: var(--color-text-muted);
    text-align: center; margin-bottom: 0.75rem;
}
.profile-sidebar-meta {
    display: flex; align-items: center; gap: 0.375rem;
    font-size: 0.75rem; color: var(--color-text-muted);
    justify-content: center; margin-bottom: 0.5rem;
}
.profile-sidebar-bio {
    font-size: 0.8rem; color: var(--color-text-muted);
    text-align: center; line-height: 1.5; margin: 0.5rem 0 0;
}
.profile-sidebar-website {
    display: flex; align-items: center; gap: 0.375rem;
    font-size: 0.75rem; color: var(--color-primary);
    justify-content: center; margin-top: 0.5rem;
    text-decoration: none; word-break: break-all;
}
.profile-sidebar-website:hover { text-decoration: underline; }
.profile-card-title {
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--color-text-muted);
    margin-bottom: 0.875rem;
}
.profile-history-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 0;
}
.profile-history-list li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--color-border-subtle);
    font-size: 0.8rem;
}
.profile-history-list li:last-child { border-bottom: none; }
.profile-history-list a { color: var(--color-text); text-decoration: none; }
.profile-history-list a:hover { color: var(--color-primary); }
.profile-history-list span { color: var(--color-text-muted); font-size: 0.72rem; flex-shrink: 0; margin-left: 0.5rem; }
.profile-empty-note { font-size: 0.8rem; color: var(--color-text-muted); margin: 0; }

.profile-main { display: flex; flex-direction: column; gap: 1rem; }
.profile-section { padding: 1.5rem; }
.profile-section-title {
    font-size: 0.875rem; font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border-subtle);
}
.profile-form-footer { display: flex; justify-content: flex-end; }

/* Genre checkboxes */
.profile-genre-grid {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.profile-genre-item {
    display: flex; align-items: center; gap: 0.375rem;
    font-size: 0.825rem; cursor: pointer;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    color: var(--color-text-muted);
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    user-select: none;
}
.profile-genre-item input { display: none; }
.profile-genre-item:has(input:checked) {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
}

/* Avatar picker */
.avatar-tabs {
    display: flex; gap: 0.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: 0;
}
.avatar-tab {
    background: none; border: none; border-bottom: 2px solid transparent;
    padding: 0.4rem 0.875rem 0.6rem;
    font-size: 0.825rem; font-weight: 600;
    color: var(--color-text-muted); cursor: pointer;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}
.avatar-tab.is-active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

.avatar-preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
    gap: 0.5rem;
}
.avatar-preset-item { cursor: pointer; }
.avatar-preset-circle {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 700;
    border: 2px solid transparent;
    transition: transform 0.12s, border-color 0.12s;
}
.avatar-preset-item:hover .avatar-preset-circle { transform: scale(1.1); }
.avatar-preset-item:has(input:checked) .avatar-preset-circle {
    border-color: var(--color-text);
    box-shadow: 0 0 0 2px var(--color-primary);
}
.form-hint {
    font-size: 0.75rem; color: var(--color-text-muted);
    margin-top: 0.3rem; display: block; line-height: 1.4;
}

/* ── Admin API keys ──────────────────────────────────────── */
.api-key-prefix {
    font-family: monospace; font-size: 0.8rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}
.api-key-perms { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.badge-perm {
    font-size: 0.68rem; font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-read   { background: color-mix(in srgb, #3498db 15%, transparent); color: #3498db; }
.badge-write  { background: color-mix(in srgb, #2ecc71 15%, transparent); color: #2ecc71; }
.badge-delete { background: color-mix(in srgb, #e74c3c 15%, transparent); color: #e74c3c; }
.badge-admin  { background: color-mix(in srgb, #9b59b6 15%, transparent); color: #9b59b6; }

.api-key-reveal {
    display: flex; flex-direction: column; gap: 0.75rem;
    background: color-mix(in srgb, #2ecc71 8%, transparent);
    border-color: #2ecc71;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}
.api-key-reveal-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }
.api-key-value {
    font-family: monospace; font-size: 0.9rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-md);
    word-break: break-all; letter-spacing: 0.05em;
}
.api-key-current {
    display: flex; align-items: center; gap: 0.5rem;
    margin-top: 0.5rem; flex-wrap: wrap;
}
.table-actions { display: flex; gap: 0.375rem; justify-content: flex-end; white-space: nowrap; }
.btn-danger { color: var(--color-error) !important; }
.btn-danger:hover { background: color-mix(in srgb, var(--color-error) 10%, transparent) !important; }

/* Responsive profile */
@media (max-width: 860px) {
    .profile-layout { grid-template-columns: 1fr; }
    .profile-sidebar { flex-direction: row; flex-wrap: wrap; }
    .profile-card { flex: 1; min-width: 200px; }
}
@media (max-width: 767px) {
    .profile-avatar-circle, .profile-avatar-img { width: 56px; height: 56px; font-size: 1.4rem; }
}

/* ── Avatar upload ───────────────────────────────────────── */
.avatar-upload-area {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
    cursor: pointer;
    position: relative;
    min-height: 140px;
    display: flex; align-items: center; justify-content: center;
}
.avatar-upload-area.is-dragover {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 6%, transparent);
}
.avatar-upload-prompt {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.5rem; color: var(--color-text-muted); font-size: 0.875rem;
}
.avatar-upload-prompt svg { opacity: 0.5; }
.avatar-upload-preview {
    display: flex; align-items: center; justify-content: center;
    position: relative; width: 100%;
}
.avatar-upload-preview img {
    width: 96px; height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border);
}
.avatar-upload-remove {
    position: absolute; top: -6px; right: calc(50% - 54px);
    width: 22px; height: 22px;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    font-size: 0.7rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-muted);
    transition: color 0.15s, border-color 0.15s;
}
.avatar-upload-remove:hover { color: var(--color-error); border-color: var(--color-error); }

/* ── Public profile ──────────────────────────────────────── */
.pub-profile-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    align-items: start;
}
.pub-profile-sidebar {}
.pub-profile-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(20px) saturate(180%);
}
.pub-profile-avatar-wrap { margin-bottom: 1rem; }
.pub-profile-avatar-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700;
    border: 2px solid var(--glass-border);
}
.pub-profile-avatar-img {
    width: 80px; height: 80px;
    border-radius: 50%; object-fit: cover;
    border: 2px solid var(--glass-border);
    display: block; margin: 0 auto;
}
.pub-profile-avatar-default {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--color-bg-elevated);
    border: 2px solid var(--glass-border);
    color: var(--color-text-muted);
}
.pub-profile-name {
    font-size: 1.25rem; font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.25rem;
}
.pub-profile-meta {
    font-size: 0.8rem; color: var(--color-text-muted);
    margin: 0 0 0.75rem;
}
.pub-profile-bio {
    font-size: 0.875rem; color: var(--color-text-secondary);
    margin: 0.75rem 0 0; text-align: left;
    line-height: 1.6;
}
.pub-profile-website {
    display: inline-block; margin-top: 0.75rem;
    font-size: 0.8rem; color: var(--color-primary);
    word-break: break-all;
}
.pub-profile-website:hover { text-decoration: underline; }

/* Public profile main content */
.pub-profile-main { display: flex; flex-direction: column; gap: 1.5rem; }
.pub-section {}
.pub-section-title {
    font-size: 1rem; font-weight: 600;
    color: var(--color-text);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}
.pub-station-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.pub-station-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 0.25rem;
    border-bottom: 1px solid color-mix(in srgb, var(--color-border) 50%, transparent);
}
.pub-station-item:last-child { border-bottom: none; }
.pub-station-logo {
    width: 36px; height: 36px;
    border-radius: var(--radius-md);
    object-fit: cover; flex-shrink: 0;
}
.pub-station-logo-placeholder {
    width: 36px; height: 36px;
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-muted); flex-shrink: 0;
}
.pub-station-info { flex: 1; min-width: 0; }
.pub-station-name {
    display: block; font-size: 0.9rem; font-weight: 500;
    color: var(--color-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-decoration: none;
}
.pub-station-name:hover { color: var(--color-primary); }
.pub-station-country { font-size: 0.75rem; color: var(--color-text-muted); }

/* Public playlists */
.pub-playlist-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.pub-playlist-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 0.25rem;
    border-bottom: 1px solid color-mix(in srgb, var(--color-border) 50%, transparent);
}
.pub-playlist-item:last-child { border-bottom: none; }
.pub-playlist-link { flex: 1; text-decoration: none; min-width: 0; }
.pub-playlist-name {
    font-size: 0.9rem; font-weight: 500; color: var(--color-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: block;
}
.pub-playlist-link:hover .pub-playlist-name { color: var(--color-primary); }
.pub-playlist-desc { font-size: 0.75rem; color: var(--color-text-muted); display: block; }
.pub-playlist-count { font-size: 0.75rem; color: var(--color-text-muted); white-space: nowrap; flex-shrink: 0; }
.pub-empty { color: var(--color-text-muted); font-size: 0.875rem; margin: 0; padding: 1rem 0; text-align: center; }

/* Public profile empty state */
.pub-empty-state {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.75rem; padding: 2.5rem 1rem;
    color: var(--color-text-muted);
}
.pub-empty-state p { margin: 0; font-size: 0.9rem; }

@media (max-width: 860px) {
    .pub-profile-layout { grid-template-columns: 1fr; }
    .pub-profile-card { text-align: left; display: flex; gap: 1rem; align-items: flex-start; }
    .pub-profile-avatar-wrap { flex-shrink: 0; }
}

/* ── Playlists ───────────────────────────────────────────── */
.playlists-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap;
}
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.playlist-card { display: flex; flex-direction: column; gap: 0.5rem; }
.playlist-card-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 0.5rem;
}
.playlist-card-title {
    font-size: 1rem; font-weight: 600; color: var(--color-text);
    text-decoration: none; flex: 1; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.playlist-card-title:hover { color: var(--color-primary); }
.playlist-card-badge {
    font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.5rem;
    border-radius: 999px; white-space: nowrap; flex-shrink: 0;
}
.badge-public {
    background: color-mix(in srgb, var(--color-success) 15%, transparent);
    color: var(--color-success);
    border: 1px solid color-mix(in srgb, var(--color-success) 30%, transparent);
}
.badge-private {
    background: color-mix(in srgb, var(--color-text-muted) 12%, transparent);
    color: var(--color-text-muted);
    border: 1px solid color-mix(in srgb, var(--color-text-muted) 25%, transparent);
}
.playlist-card-desc { font-size: 0.8rem; color: var(--color-text-muted); margin: 0; }
.playlist-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; padding-top: 0.5rem;
}
.playlist-card-count {
    display: flex; align-items: center; gap: 0.3rem;
    font-size: 0.8rem; color: var(--color-text-muted);
}
.playlist-card-actions { display: flex; gap: 0.375rem; }

/* Playlists empty state */
.playlists-empty-state {
    display: flex; flex-direction: column; align-items: center;
    gap: 1rem; padding: 3rem 1rem; text-align: center;
}
.playlists-empty-icon { color: var(--color-text-muted); opacity: 0.4; }

/* Playlist view page */
.playlist-view-header { margin-bottom: 1.5rem; }
.playlist-view-title-row {
    display: flex; align-items: center; gap: 0.75rem;
    flex-wrap: wrap; margin-bottom: 0.5rem;
}
.playlist-view-desc { font-size: 0.9rem; color: var(--color-text-secondary); margin: 0 0 1rem; }
.playlist-view-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Add station form */
.playlist-add-station h3 { font-size: 0.95rem; font-weight: 600; margin: 0 0 0.75rem; }
.playlist-add-form {
    display: flex; gap: 0.5rem; align-items: stretch; flex-wrap: wrap;
}
.playlist-add-input {
    flex: 1; min-width: 180px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem; color: var(--color-text);
    transition: border-color 0.15s;
}
.playlist-add-input:focus { outline: none; border-color: var(--color-primary); }

/* Playlist station list */
.playlist-station-list { list-style: none; margin: 0; padding: 0; }
.playlist-station-row {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.625rem 0.25rem;
    border-bottom: 1px solid color-mix(in srgb, var(--color-border) 50%, transparent);
}
.playlist-station-row:last-child { border-bottom: none; }
.playlist-station-pos {
    width: 1.5rem; text-align: right; flex-shrink: 0;
    font-size: 0.75rem; color: var(--color-text-muted);
}
.playlist-remove-form { margin: 0; }
.playlist-remove-btn {
    opacity: 0.4; transition: opacity 0.15s, color 0.15s;
}
.playlist-remove-btn:hover { opacity: 1; color: var(--color-error); }

/* Privacy toggles on profile page */
.privacy-toggles { display: flex; flex-direction: column; gap: 0.75rem; }
.toggle-label {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; cursor: pointer;
    padding: 0.75rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--color-border) 50%, transparent);
}
.toggle-label:last-child { border-bottom: none; }
.toggle-label-text { flex: 1; }
.toggle-label-title { font-size: 0.9rem; font-weight: 500; color: var(--color-text); }
.toggle-label-hint { font-size: 0.75rem; color: var(--color-text-muted); display: block; margin-top: 0.1rem; }
.toggle-checkbox { display: none; }
.toggle-switch {
    width: 40px; height: 22px; flex-shrink: 0;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 999px; position: relative;
    transition: background 0.2s, border-color 0.2s;
}
.toggle-switch::after {
    content: '';
    position: absolute; top: 2px; left: 2px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--color-text-muted);
    transition: transform 0.2s, background 0.2s;
}
.toggle-checkbox:checked + .toggle-switch {
    background: color-mix(in srgb, var(--color-primary) 20%, transparent);
    border-color: var(--color-primary);
}
.toggle-checkbox:checked + .toggle-switch::after {
    transform: translateX(18px);
    background: var(--color-primary);
}

/* Public profile link */
.profile-public-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.8rem; color: var(--color-primary);
    text-decoration: none; margin-bottom: 1rem;
}
.profile-public-link:hover { text-decoration: underline; }

/* ── Live ticker ────────────────────────────────────────────────────────── */
.live-ticker-section {
    margin: 0 0 2rem;
    padding: 1rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.live-ticker-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.live-ticker-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
    animation: ticker-pulse 1.8s ease-in-out infinite;
}
@keyframes ticker-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.75); }
}
.live-ticker-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.live-ticker-track {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 18rem;
    overflow-y: auto;
    scrollbar-width: thin;
}
.live-ticker-empty {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
}
.live-ticker-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.3;
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius-sm);
    background: transparent;
    transition: background 0.2s;
}
.live-ticker-item:hover { background: var(--glass-border); }
.ticker-station-logo {
    width: 22px; height: 22px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--glass-border);
}
.ticker-actor {
    font-weight: 600;
    color: var(--color-text);
}
.ticker-actor--user {
    color: var(--color-primary);
    text-decoration: none;
}
.ticker-actor--user:hover { text-decoration: underline; }
.ticker-actor--anon,
.ticker-actor--guest {
    color: var(--color-text-muted);
    font-style: italic;
    font-weight: 400;
}
.ticker-verb {
    color: var(--color-text-muted);
}
.ticker-station {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
}
.ticker-station:hover { text-decoration: underline; }
.ticker-item--new {
    animation: ticker-fade-in 0.4s ease-out;
}
@keyframes ticker-fade-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
