/**
 * Radio Stream Player: PIP UI Styles
 */

:root {
    --rp-glass-bg: rgba(255, 255, 255, 0.08);
    --rp-glass-border: 1px solid rgba(255, 255, 255, 0.15);
    --rp-glass-blur: blur(25px);
    --rp-primary: #3b82f6;
    --rp-text: #ffffff;
    --rp-radius: 20px;
}

.radio-player-pip {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    background: var(--rp-glass-bg);
    backdrop-filter: var(--rp-glass-blur);
    -webkit-backdrop-filter: var(--rp-glass-blur);
    border: var(--rp-glass-border);
    border-radius: var(--rp-radius);
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    color: var(--rp-text);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Minimize Button Visibility (Only shown in Floating PIP Bubble mode) */
#rp-minimize-btn {
    display: none !important;
}

#rp-pip-container.rp-dock-pip_floating #rp-minimize-btn,
body #rp-pip-container.rp-dock-pip_floating #rp-minimize-btn,
.radio-player-pip.rp-dock-pip_floating #rp-minimize-btn {
    display: inline-flex !important;
}

/* Minimized State (Only active for Floating Bubble PIP) */
#rp-pip-container.minimized,
body #rp-pip-container.minimized,
.radio-player-pip.minimized {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#rp-pip-container.minimized:hover,
body #rp-pip-container.minimized:hover,
.radio-player-pip.minimized:hover {
    transform: scale(1.1) !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
}

#rp-pip-container.minimized .rp-expanded-content,
body #rp-pip-container.minimized .rp-expanded-content,
.radio-player-pip.minimized .rp-expanded-content {
    display: none !important;
}

.rp-mini-icon {
    display: none !important;
}

#rp-pip-container.minimized .rp-mini-icon,
body #rp-pip-container.minimized .rp-mini-icon,
.radio-player-pip.minimized .rp-mini-icon {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.6rem !important;
    line-height: 1 !important;
    user-select: none !important;
    margin: 0 !important;
}

/* Expanded Content */
.rp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rp-title {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.8;
}

.rp-controls-top {
    display: flex;
    gap: 10px;
}

.rp-btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.rp-btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.rp-body {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rp-visualizer-placeholder {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.rp-station-info {
    flex: 1;
}

.rp-station-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.rp-now-playing {
    font-size: 0.8rem;
    opacity: 0.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.rp-controls-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 5px;
}

.rp-play-btn {
    width: 50px;
    height: 50px;
    background: var(--rp-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: transform 0.2s;
}

.rp-play-btn:hover {
    transform: scale(1.05);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

.rp-live-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* ==========================================================================
   Persistent Docking Topologies (Bottom Bar, Top Bar, Sidebar & PIP)
   ========================================================================== */

/* Universal Player Clearance on Body */
body.has-rp-dock-bottom {
    padding-bottom: 76px !important;
}
body.has-rp-dock-top {
    padding-top: 66px !important;
}

/* Universal Scroll-To-Top Clearance for Bottom Dock Mode */
body.has-rp-dock-bottom #scrollToTopBtn,
body.has-rp-dock-bottom .scroll-top-btn,
body.has-rp-dock-bottom .scroll-to-top,
html.has-rp-dock-bottom #scrollToTopBtn,
html.has-rp-dock-bottom .scroll-top-btn,
html.has-rp-dock-bottom .scroll-to-top,
body:has(#rp-pip-container.rp-dock-bottom_bar) #scrollToTopBtn,
body:has(#rp-pip-container.rp-dock-bottom_bar) .scroll-top-btn,
body:has(#rp-pip-container.rp-dock-bottom_bar) .scroll-to-top {
    bottom: calc(76px + 20px) !important;
    bottom: calc(76px + 20px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 100000 !important;
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease !important;
}


/* Universal Station Drawer Base Rule */
.rp-station-drawer {
    display: none;
}
.rp-station-drawer.is-open {
    display: block !important;
}

/* Base Right Controls & Auxiliary Elements */
.rp-right-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rp-dock-volume {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rp-dock-mute {
    font-size: 0.95rem;
}

.rp-dock-slider {
    width: 75px;
    height: 4px;
    accent-color: var(--rp-primary);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    outline: none;
}

/* Drawer Toggle Button */
.rp-drawer-toggle-btn {
    font-size: 1.1rem;
}

/* Dock Switcher Popover */
.rp-dock-switcher-wrap {
    position: relative;
    display: inline-block;
}

.rp-switcher-btn {
    font-size: 1.1rem;
    font-weight: 700;
}

.rp-dock-menu {
    position: absolute;
    bottom: 42px;
    right: 0;
    min-width: 170px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    padding: 8px 6px;
    z-index: 100002;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rp-dock-top_bar .rp-dock-menu {
    bottom: auto;
    top: 42px;
}

.rp-dock-menu-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
    padding: 4px 8px 6px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 2px;
    font-weight: 700;
}

.rp-dock-opt {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 10px;
    font-size: 0.85rem;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s, color 0.2s;
    width: 100%;
}

.rp-dock-opt:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.rp-dock-opt.is-active {
    background: var(--rp-primary);
    color: #ffffff;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   1. Persistent Bottom Bar Topology (.rp-dock-bottom_bar)
   -------------------------------------------------------------------------- */
#rp-pip-container.rp-dock-bottom_bar,
body #rp-pip-container.rp-dock-bottom_bar,
.radio-player-pip.rp-dock-bottom_bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 72px !important;
    padding: 10px 24px !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.45) !important;
    background: rgba(13, 19, 36, 0.94) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    z-index: 99999 !important;
}

.radio-player-pip.rp-dock-bottom_bar .rp-expanded-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 16px;
    position: relative;
}

.radio-player-pip.rp-dock-bottom_bar .rp-body {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    max-width: 360px;
    flex: 1 1 auto;
}

.radio-player-pip.rp-dock-bottom_bar .rp-visualizer-placeholder {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
}

.radio-player-pip.rp-dock-bottom_bar .rp-station-info {
    overflow: hidden;
}

.radio-player-pip.rp-dock-bottom_bar .rp-station-name {
    font-size: 0.98rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.radio-player-pip.rp-dock-bottom_bar .rp-now-playing {
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.radio-player-pip.rp-dock-bottom_bar .rp-controls-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0;
    flex: 0 0 auto;
}

.radio-player-pip.rp-dock-bottom_bar .rp-play-btn {
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
}

.radio-player-pip.rp-dock-bottom_bar .rp-right-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 220px;
    flex: 1 1 auto;
}

/* Elevated Station List Drawer in Bottom Bar */
.radio-player-pip.rp-dock-bottom_bar .rp-station-drawer {
    display: none;
    position: absolute;
    bottom: 68px;
    right: 0;
    width: 340px;
    max-height: 400px;
    overflow-y: auto;
    background: rgba(13, 19, 36, 0.97);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
    padding: 12px;
    z-index: 100001;
}

.radio-player-pip.rp-dock-bottom_bar .rp-station-drawer.is-open {
    display: block;
}



/* --------------------------------------------------------------------------
   2. Persistent Top Bar Topology (.rp-dock-top_bar)
   -------------------------------------------------------------------------- */
#rp-pip-container.rp-dock-top_bar,
body #rp-pip-container.rp-dock-top_bar,
.radio-player-pip.rp-dock-top_bar {
    position: fixed !important;
    top: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 62px !important;
    padding: 8px 24px !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
    background: rgba(13, 19, 36, 0.94) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    z-index: 99999 !important;
}

.radio-player-pip.rp-dock-top_bar .rp-expanded-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 16px;
    position: relative;
}

.radio-player-pip.rp-dock-top_bar .rp-body {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    max-width: 360px;
}

.radio-player-pip.rp-dock-top_bar .rp-visualizer-placeholder {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 8px;
}

.radio-player-pip.rp-dock-top_bar .rp-controls-main {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.radio-player-pip.rp-dock-top_bar .rp-play-btn {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
}

.radio-player-pip.rp-dock-top_bar .rp-station-drawer {
    display: none;
    position: absolute;
    top: 58px;
    right: 0;
    width: 340px;
    max-height: 400px;
    overflow-y: auto;
    background: rgba(13, 19, 36, 0.97);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
    padding: 12px;
    z-index: 100001;
}

.radio-player-pip.rp-dock-top_bar .rp-station-drawer.is-open {
    display: block;
}




/* --------------------------------------------------------------------------
   4. Floating PIP Topology (.rp-dock-pip_floating)
   -------------------------------------------------------------------------- */
#rp-pip-container.rp-dock-pip_floating,
body #rp-pip-container.rp-dock-pip_floating,
.radio-player-pip.rp-dock-pip_floating {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;
    top: auto !important;
    width: 320px !important;
    max-width: 320px !important;
    height: auto !important;
    border-radius: var(--rp-radius, 20px) !important;
    border: var(--rp-glass-border, 1px solid rgba(255, 255, 255, 0.15)) !important;
    background: rgba(15, 23, 42, 0.92) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    z-index: 99999 !important;
}

.radio-player-pip.rp-dock-pip_floating .rp-expanded-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-player-pip.rp-dock-pip_floating .rp-controls-main {
    margin-top: 5px;
}

.radio-player-pip.rp-dock-pip_floating .rp-right-controls {
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.radio-player-pip.rp-dock-pip_floating .rp-station-drawer {
    display: none;
    max-height: 150px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    padding: 6px;
    overflow-y: auto;
}

.radio-player-pip.rp-dock-pip_floating .rp-station-drawer.is-open {
    display: block !important;
}

/* --------------------------------------------------------------------------
   Mobile Viewport Media Queries (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    /* Hide volume slider on mobile to save horizontal space (hardware volume used) */
    .rp-dock-volume {
        display: none !important;
    }

    .radio-player-pip.rp-dock-bottom_bar,
    .radio-player-pip.rp-dock-top_bar {
        padding: 8px 14px;
    }

    .radio-player-pip.rp-dock-bottom_bar .rp-body,
    .radio-player-pip.rp-dock-top_bar .rp-body {
        min-width: 0;
        max-width: 170px;
    }

    .radio-player-pip.rp-dock-bottom_bar .rp-station-name,
    .radio-player-pip.rp-dock-top_bar .rp-station-name {
        font-size: 0.88rem;
    }

    .radio-player-pip.rp-dock-bottom_bar .rp-controls-main,
    .radio-player-pip.rp-dock-top_bar .rp-controls-main {
        gap: 8px;
    }

    .radio-player-pip.rp-dock-bottom_bar .rp-play-btn,
    .radio-player-pip.rp-dock-top_bar .rp-play-btn {
        width: 40px;
        height: 40px;
    }

    .radio-player-pip.rp-dock-bottom_bar .rp-right-controls,
    .radio-player-pip.rp-dock-top_bar .rp-right-controls {
        min-width: 0;
        gap: 6px;
    }

    .radio-player-pip.rp-dock-bottom_bar .rp-station-drawer,
    .radio-player-pip.rp-dock-top_bar .rp-station-drawer {
        width: calc(100vw - 28px);
        right: -7px;
    }
}

/* ==========================================================================
   Radio Portal & Hub (/radio) Custom Styles
   ========================================================================== */

.rh-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem 1rem;
    position: relative;
    z-index: 10;
}

.rh-container.rh-top-player {
    padding-top: 1rem;
}

/* Visually Hidden Semantic Utility (SEO & Screen Readers) */
.rh-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;
}

/* Global Breadcrumb Suppression for Radio Portal */
body.no-radio-breadcrumbs .breadcrumbs-container,
body.no-radio-breadcrumbs .breadcrumbs {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.rh-header {
    margin-bottom: 2rem;
    text-align: center;
}

.rh-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary, #3b82f6);
    margin-bottom: 12px;
}

.rh-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #ef4444;
    animation: pulse 1.5s infinite;
}

.rh-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-text, linear-gradient(135deg, #ffffff 0%, #38bdf8 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rh-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary, var(--text-muted, #94a3b8));
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Hero Featured Player Card */
.rh-hero-card {
    position: relative;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.rh-hero-glow {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 65%);
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.rh-hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.rh-hero-visualizer {
    width: 90px;
    height: 90px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
}

.rh-wave-bar {
    width: 5px;
    height: 20px;
    background: #3b82f6;
    border-radius: 3px;
    transition: height 0.2s ease;
}

.rh-hero-visualizer.is-playing .rh-wave-bar:nth-child(1) { animation: soundwave 1.1s infinite ease-in-out; }
.rh-hero-visualizer.is-playing .rh-wave-bar:nth-child(2) { animation: soundwave 0.8s infinite ease-in-out 0.2s; }
.rh-hero-visualizer.is-playing .rh-wave-bar:nth-child(3) { animation: soundwave 1.3s infinite ease-in-out 0.4s; }
.rh-hero-visualizer.is-playing .rh-wave-bar:nth-child(4) { animation: soundwave 0.9s infinite ease-in-out 0.1s; }
.rh-hero-visualizer.is-playing .rh-wave-bar:nth-child(5) { animation: soundwave 1.2s infinite ease-in-out 0.3s; }

@keyframes soundwave {
    0%, 100% { height: 10px; background: #3b82f6; }
    50% { height: 45px; background: #60a5fa; box-shadow: 0 0 10px #60a5fa; }
}

.rh-hero-icon {
    font-size: 2.2rem;
    display: block;
}

.rh-hero-visualizer.is-playing .rh-hero-icon {
    display: none;
}

.rh-hero-info {
    flex: 1;
    min-width: 260px;
}

.rh-hero-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.rh-status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rh-status-badge.is-live {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.rh-status-badge.is-buffering {
    background: rgba(234, 179, 8, 0.2);
    color: #fde047;
}

.rh-genre-badge {
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.rh-hero-station-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: #ffffff;
}

.rh-hero-now-playing {
    font-size: 0.95rem;
    color: #94a3b8;
}

.rh-hero-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rh-btn {
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.rh-btn-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
}

.rh-btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.rh-btn-play {
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.rh-btn-play:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.6);
}

.rh-star-btn {
    font-size: 1.3rem;
    color: #facc15;
}

.rh-hero-volume-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}

.rh-volume-input {
    flex: 1;
    max-width: 200px;
    accent-color: #3b82f6;
    cursor: pointer;
}

/* Search & Genre Filters */
.rh-filter-section {
    margin-bottom: 2rem;
}

.rh-search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto 1.5rem auto;
}

.rh-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    font-size: 1.1rem;
}

.rh-search-input {
    width: 100%;
    padding: 14px 44px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: all 0.25s ease;
}

.rh-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    background: rgba(15, 23, 42, 0.75);
}

.rh-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
}

.rh-genre-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.rh-pill {
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rh-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
}

.rh-pill.active {
    background: #3b82f6;
    border-color: #60a5fa;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.rh-pill-fav {
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.3);
}

.rh-pill-fav.active {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    border-color: #fde047;
    color: #0f172a;
}

/* Station Grid */
.rh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.rh-card {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rh-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(59, 130, 246, 0.15);
}

.rh-card.is-active {
    border-color: #3b82f6;
    background: rgba(15, 23, 42, 0.75);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.3);
}

.rh-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.rh-card-genre {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 4px 10px;
    border-radius: 10px;
}

.rh-card-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rh-badge-premium {
    font-size: 0.7rem;
    font-weight: 800;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 2px 8px;
    border-radius: 8px;
}

.rh-fav-star {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    line-height: 1;
}

.rh-fav-star:hover, .rh-fav-star.is-fav,
.rh-star-btn:hover, .rh-star-btn.is-fav {
    color: #facc15;
    transform: scale(1.15);
}

/* SVG Star Path Toggling */
.rh-svg-star .rh-star-outline {
    display: block;
}
.rh-svg-star .rh-star-fill {
    display: none;
}
.is-fav .rh-svg-star .rh-star-outline {
    display: none !important;
}
.is-fav .rh-svg-star .rh-star-fill {
    display: block !important;
    fill: #facc15;
    stroke: #facc15;
}

/* Loading Spinner Animation */
@keyframes rh-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.rh-spinner {
    animation: rh-spin 1s linear infinite;
    transform-origin: center;
}

.rh-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #ffffff;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.7em;
    word-break: break-word;
}

.rh-card-footer {
    margin-top: auto;
}

.rh-card-play-btn {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.rh-card-play-btn:hover {
    background: #3b82f6;
    border-color: #60a5fa;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.rh-card.is-active .rh-card-play-btn {
    background: #2563eb;
    border-color: #3b82f6;
}

.rh-card-locked {
    opacity: 0.7;
}

.rh-locked-btn {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
    cursor: not-allowed;
}

.rh-empty-state {
    text-align: center;
    padding: 4rem 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
}

.rh-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Toolbar & View Switcher */
.rh-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.rh-view-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 14px;
}

.rh-view-btn {
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary, #94a3b8);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rh-view-btn:hover {
    color: var(--text-primary, #ffffff);
}

.rh-view-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--primary, #00f5ff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Compact List View Mode */
.rh-grid.rh-view-list {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
}

.rh-grid.rh-view-list .rh-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    min-height: unset;
    gap: 1rem;
    border-radius: 16px;
}

.rh-grid.rh-view-list .rh-card-header {
    margin-bottom: 0;
    order: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.rh-grid.rh-view-list .rh-card-title {
    margin: 0;
    min-height: unset;
    -webkit-line-clamp: 1;
    font-size: 1.05rem;
    flex: 1;
    order: 1;
}

.rh-grid.rh-view-list .rh-card-tech-info {
    margin: 0 10px 0 0 !important;
    display: inline-block;
    flex-shrink: 0;
    order: 2;
}

.rh-grid.rh-view-list .rh-card-footer {
    margin-top: 0;
    order: 3;
    width: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.rh-grid.rh-view-list .rh-card-play-btn {
    width: auto;
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: 10px;
}

.rh-grid.rh-view-list .rh-btn-admin-feature {
    width: auto;
    margin-top: 0;
    padding: 8px 12px;
}

/* Pagination Controls */
.rh-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2.5rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.rh-page-btn {
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #ffffff);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rh-page-btn:hover:not(:disabled) {
    background: rgba(0, 245, 255, 0.15);
    border-color: rgba(0, 245, 255, 0.3);
    color: var(--primary, #00f5ff);
}

.rh-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.rh-page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rh-page-num {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary, #94a3b8);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rh-page-num:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.rh-page-num.active {
    background: var(--gradient-brand, linear-gradient(135deg, #00f5ff, #3b82f6));
    border-color: transparent;
    color: #060913;
    box-shadow: 0 4px 12px rgba(0, 245, 255, 0.3);
}

.rh-page-ellipsis {
    color: var(--text-muted, #64748b);
    padding: 0 4px;
    font-weight: 700;
}

/* Mobile Responsiveness & Edge Padding Reduction */
@media (max-width: 768px) {
    .rh-container {
        padding: 1rem 0.25rem 6.5rem 0.25rem;
    }
    .rh-container.rh-top-player {
        padding-top: 0.35rem;
    }
    .rh-hero-card {
        padding: 1.5rem 1rem;
        border-radius: 20px;
        margin-bottom: 1.5rem;
    }
    .rh-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }
    .rh-hero-status-row {
        justify-content: center;
    }
    .rh-hero-station-title {
        font-size: 1.4rem;
        word-break: break-word;
    }
    .rh-hero-controls {
        width: 100%;
        justify-content: center;
    }
    .rh-hero-volume-row {
        justify-content: center;
        width: 100%;
        max-width: 280px;
        margin: 1.25rem auto 0 auto;
    }
    .rh-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .rh-mode-switch, .rh-view-switch {
        width: 100%;
        justify-content: center;
        margin-bottom: 0;
    }
    .rh-mode-btn, .rh-view-btn {
        flex: 1;
        text-align: center;
        justify-content: center;
        padding: 9px 12px;
        font-size: 0.88rem;
    }
    .rh-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .rh-grid.rh-view-list .rh-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.25rem 1rem;
    }
    .rh-grid.rh-view-list .rh-card-header {
        width: 100%;
        justify-content: space-between;
    }
    .rh-grid.rh-view-list .rh-card-title {
        -webkit-line-clamp: 2;
        width: 100%;
    }
    .rh-grid.rh-view-list .rh-card-footer {
        width: 100%;
    }
    .rh-grid.rh-view-list .rh-card-play-btn {
        width: 100%;
    }
    .rh-global-search-row {
        flex-direction: column;
        gap: 8px;
    }
    .rh-global-select, .rh-global-input, .rh-global-search-btn {
        width: 100%;
        max-width: 100%;
    }
    .rh-genre-pills, .rh-quick-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 4px 4px 12px 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .rh-genre-pills::-webkit-scrollbar,
    .rh-quick-tags::-webkit-scrollbar {
        display: none;
    }
    .rh-pill, .rh-tag-pill {
        flex-shrink: 0;
        font-size: 0.85rem;
        padding: 7px 14px;
    }
    .rh-title {
        font-size: 1.8rem;
    }
    .rh-subtitle {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .rh-container {
        padding: 0.75rem 0 6.5rem 0;
    }
    .rh-hero-card {
        padding: 1.25rem 0.85rem;
        border-radius: 16px;
    }
    .rh-card {
        padding: 1.25rem 1rem;
        border-radius: 16px;
    }
}

/* ==========================================================================
   Light Mode Theme Adaptation (Apex 25px Glassmorphism Standards)
   ========================================================================== */

html[data-theme="light"] .rh-header-badge {
    background: rgba(2, 132, 199, 0.12);
    border-color: rgba(2, 132, 199, 0.3);
    color: #0284c7;
}

html[data-theme="light"] .rh-title {
    background: var(--gradient-text, linear-gradient(135deg, #0284c7 0%, #6366f1 50%, #9333ea 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .rh-subtitle {
    color: var(--text-secondary, #334155);
}

html[data-theme="light"] .rh-hero-card {
    background: var(--glass-bg, rgba(255, 255, 255, 0.85));
    border-color: var(--glass-border, rgba(10, 15, 29, 0.12));
    box-shadow: 0 20px 40px rgba(10, 15, 29, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .rh-hero-glow {
    background: radial-gradient(circle, rgba(2, 132, 199, 0.1) 0%, rgba(255, 255, 255, 0) 65%);
}

html[data-theme="light"] .rh-hero-visualizer {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .rh-hero-icon {
    color: var(--text-primary, #0a0f1d);
}

html[data-theme="light"] .rh-hero-station-title {
    color: var(--text-primary, #0a0f1d);
}

html[data-theme="light"] .rh-hero-now-playing {
    color: var(--text-secondary, #475569);
}

html[data-theme="light"] .rh-status-badge {
    background: rgba(0, 0, 0, 0.06);
    color: #64748b;
}

html[data-theme="light"] .rh-genre-badge {
    background: rgba(0, 0, 0, 0.06);
    color: #64748b;
}

html[data-theme="light"] .rh-btn {
    color: var(--text-primary, #0a0f1d);
    background: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .rh-btn:hover {
    background: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .rh-btn-play {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35);
}

html[data-theme="light"] .rh-hero-volume-row {
    border-top-color: rgba(0, 0, 0, 0.08);
    color: var(--text-secondary, #475569);
}

html[data-theme="light"] .rh-search-input {
    background: var(--glass-bg, rgba(255, 255, 255, 0.9));
    border-color: var(--glass-border, rgba(10, 15, 29, 0.15));
    color: var(--text-primary, #0a0f1d);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .rh-search-input::placeholder {
    color: var(--text-muted, #94a3b8);
}

html[data-theme="light"] .rh-search-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.2);
    background: #ffffff;
}

html[data-theme="light"] .rh-pill {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-secondary, #334155);
}

html[data-theme="light"] .rh-pill:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary, #0a0f1d);
}

html[data-theme="light"] .rh-pill.active {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

html[data-theme="light"] .rh-card {
    background: var(--glass-bg, rgba(255, 255, 255, 0.85));
    border-color: var(--glass-border, rgba(10, 15, 29, 0.12));
    box-shadow: 0 10px 25px rgba(10, 15, 29, 0.05);
}

html[data-theme="light"] .rh-card:hover {
    border-color: rgba(2, 132, 199, 0.45);
    box-shadow: 0 16px 35px rgba(10, 15, 29, 0.08), 0 0 20px rgba(2, 132, 199, 0.1);
}

html[data-theme="light"] .rh-card.is-active {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.18);
}

html[data-theme="light"] .rh-card-title {
    color: var(--text-primary, #0a0f1d);
}

html[data-theme="light"] .rh-card-genre {
    color: #0284c7;
    background: rgba(2, 132, 199, 0.1);
}

html[data-theme="light"] .rh-card-play-btn {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.2);
    color: #0284c7;
}

html[data-theme="light"] .rh-card-play-btn:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

html[data-theme="light"] .rh-card.is-active .rh-card-play-btn {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
}

html[data-theme="light"] .rh-empty-state {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-secondary, #334155);
}

/* ==========================================================================
   Persistent Docking Player Light Mode Overrides (Bottom, Top, Sidebar, PIP)
   ========================================================================== */

/* Universal Light Mode Base for Player */
html[data-theme="light"] .radio-player-pip,
html[data-theme="light"] #rp-pip-container {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(10, 15, 29, 0.12);
    color: #0a0f1d !important;
    box-shadow: 0 15px 35px rgba(10, 15, 29, 0.12);
}

/* 1. Persistent Bottom Bar Topology in Light Mode */
html[data-theme="light"] #rp-pip-container.rp-dock-bottom_bar,
html[data-theme="light"] body #rp-pip-container.rp-dock-bottom_bar,
html[data-theme="light"] .radio-player-pip.rp-dock-bottom_bar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-top: 1px solid rgba(10, 15, 29, 0.12) !important;
    box-shadow: 0 -8px 30px rgba(10, 15, 29, 0.08) !important;
    color: #0a0f1d !important;
}

/* 2. Persistent Top Bar Topology in Light Mode */
html[data-theme="light"] #rp-pip-container.rp-dock-top_bar,
html[data-theme="light"] body #rp-pip-container.rp-dock-top_bar,
html[data-theme="light"] .radio-player-pip.rp-dock-top_bar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(10, 15, 29, 0.12) !important;
    box-shadow: 0 8px 25px rgba(10, 15, 29, 0.08) !important;
    color: #0a0f1d !important;
}


/* 4. Floating PIP Bubble Topology in Light Mode */
html[data-theme="light"] #rp-pip-container.rp-dock-pip_floating,
html[data-theme="light"] body #rp-pip-container.rp-dock-pip_floating,
html[data-theme="light"] .radio-player-pip.rp-dock-pip_floating {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(10, 15, 29, 0.12) !important;
    box-shadow: 0 15px 35px rgba(10, 15, 29, 0.12) !important;
    color: #0a0f1d !important;
}

/* Minimized Floating Bubble */
html[data-theme="light"] #rp-pip-container.minimized,
html[data-theme="light"] body #rp-pip-container.minimized,
html[data-theme="light"] .radio-player-pip.minimized {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(10, 15, 29, 0.15) !important;
    box-shadow: 0 10px 25px rgba(10, 15, 29, 0.12), 0 0 20px rgba(59, 130, 246, 0.3) !important;
    color: #0a0f1d !important;
}

/* Metadata & Text Elements */
html[data-theme="light"] .rp-title {
    color: #0a0f1d !important;
    opacity: 0.85 !important;
}

html[data-theme="light"] .rp-station-name {
    color: #0a0f1d !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .rp-now-playing {
    color: rgba(10, 15, 29, 0.68) !important;
    opacity: 1 !important;
}

/* Auxiliary and Control Buttons */
html[data-theme="light"] .rp-btn-icon {
    background: rgba(10, 15, 29, 0.07) !important;
    border: 1px solid rgba(10, 15, 29, 0.08) !important;
    color: #0a0f1d !important;
}

html[data-theme="light"] .rp-btn-icon:hover {
    background: rgba(10, 15, 29, 0.14) !important;
    color: #000000 !important;
}

html[data-theme="light"] .rp-btn-icon:active {
    background: rgba(10, 15, 29, 0.22) !important;
}

/* Primary Play/Pause Button */
html[data-theme="light"] .rp-play-btn {
    background: var(--rp-primary, #3b82f6) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35) !important;
}

/* Artwork / Visualizer Placeholder */
html[data-theme="light"] .rp-visualizer-placeholder {
    background: rgba(10, 15, 29, 0.06) !important;
    border: 1px solid rgba(10, 15, 29, 0.08) !important;
}

/* Volume Slider */
html[data-theme="light"] .rp-dock-slider {
    background: rgba(10, 15, 29, 0.16) !important;
    accent-color: var(--rp-primary, #3b82f6) !important;
}

/* Dock Switcher Popover Menu */
html[data-theme="light"] .rp-dock-menu {
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid rgba(10, 15, 29, 0.14) !important;
    box-shadow: 0 15px 35px rgba(10, 15, 29, 0.15) !important;
}

html[data-theme="light"] .rp-dock-menu-title {
    color: rgba(10, 15, 29, 0.5) !important;
    border-bottom: 1px solid rgba(10, 15, 29, 0.08) !important;
}

html[data-theme="light"] .rp-dock-opt {
    color: rgba(10, 15, 29, 0.85) !important;
}

html[data-theme="light"] .rp-dock-opt:hover {
    background: rgba(10, 15, 29, 0.07) !important;
    color: #0a0f1d !important;
}

html[data-theme="light"] .rp-dock-opt.is-active {
    background: var(--rp-primary, #3b82f6) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Station Directory Drawer in Light Mode */
html[data-theme="light"] .rp-station-drawer,
html[data-theme="light"] .radio-player-pip.rp-dock-bottom_bar .rp-station-drawer,
html[data-theme="light"] .radio-player-pip.rp-dock-top_bar .rp-station-drawer,
html[data-theme="light"] .radio-player-pip.rp-dock-pip_floating .rp-station-drawer {
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid rgba(10, 15, 29, 0.14) !important;
    box-shadow: 0 20px 45px rgba(10, 15, 29, 0.15) !important;
    color: #0a0f1d !important;
}

html[data-theme="light"] .rp-station-item {
    color: #0a0f1d !important;
}

html[data-theme="light"] .rp-station-item:hover {
    background: rgba(10, 15, 29, 0.07) !important;
}

html[data-theme="light"] .radio-player-pip.rp-dock-pip_floating .rp-right-controls {
    border-top: 1px solid rgba(10, 15, 29, 0.08) !important;
}


/* ==========================================================================
   Directory Mode Switcher & Global Discovery Styles
   ========================================================================== */

.rh-mode-switch {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.rh-mode-btn {
    padding: 10px 24px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary, #cbd5e1);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
}

.rh-mode-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary, #ffffff);
    transform: translateY(-1px);
}

.rh-mode-btn.active {
    background: var(--gradient-brand, linear-gradient(135deg, #00f5ff, #3b82f6));
    border-color: transparent;
    color: #060913;
    box-shadow: 0 4px 18px rgba(0, 245, 255, 0.35);
}

html[data-theme="light"] .rh-mode-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary, #334155);
}

html[data-theme="light"] .rh-mode-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary, #0a0f1d);
}

html[data-theme="light"] .rh-mode-btn.active {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
}

/* Global Discovery Search Bar */
.rh-global-search-container {
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.rh-global-search-row {
    display: flex;
    gap: 10px;
    align-items: center;
    background: var(--glass-bg, rgba(15, 23, 42, 0.5));
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    border-radius: 18px;
    padding: 6px;
    box-shadow: var(--card-shadow, 0 10px 30px rgba(0,0,0,0.2));
}

.rh-global-select {
    color-scheme: dark;
    padding: 10px 38px 10px 14px;
    background-color: rgba(15, 23, 42, 0.85);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300f5ff' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 15px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid rgba(0, 245, 255, 0.25);
    border-radius: 12px;
    color: var(--text-primary, #ffffff);
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.rh-global-select:hover {
    background-color: rgba(15, 23, 42, 0.95);
    border-color: rgba(0, 245, 255, 0.5);
    box-shadow: 0 0 16px rgba(0, 245, 255, 0.2);
}

.rh-global-select:focus {
    background-color: #0b1329;
    border-color: var(--cyan, #00f5ff);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.35);
}

.rh-global-select option {
    background-color: #0d172e !important;
    color: #f8fafc !important;
    font-weight: 500;
    padding: 10px 14px;
    font-size: 0.95rem;
}

html[data-theme="light"] .rh-global-select {
    color-scheme: light;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230284c7' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    border-color: rgba(2, 132, 199, 0.25);
    color: var(--text-primary, #0a0f1d);
}

html[data-theme="light"] .rh-global-select:hover {
    background-color: #ffffff;
    border-color: rgba(2, 132, 199, 0.55);
    box-shadow: 0 0 16px rgba(2, 132, 199, 0.18);
}

html[data-theme="light"] .rh-global-select:focus {
    border-color: #0284c7;
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.28);
}

html[data-theme="light"] .rh-global-select option {
    background-color: #ffffff !important;
    color: #0a0f1d !important;
}

.rh-global-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary, #ffffff);
    font-size: 1rem;
    padding: 10px 14px;
    outline: none;
}

html[data-theme="light"] .rh-global-input {
    color: var(--text-primary, #0a0f1d);
}

.rh-global-search-btn {
    padding: 10px 22px;
    background: var(--gradient-brand, linear-gradient(135deg, #00f5ff, #3b82f6));
    border: none;
    border-radius: 12px;
    color: #060913;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

html[data-theme="light"] .rh-global-search-btn {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff;
}

.rh-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 1rem;
}

.rh-tag-pill {
    padding: 5px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary, #94a3b8);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rh-tag-pill:hover {
    background: rgba(0, 245, 255, 0.15);
    border-color: rgba(0, 245, 255, 0.3);
    color: var(--primary, #00f5ff);
    transform: translateY(-1px);
}

html[data-theme="light"] .rh-tag-pill {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-secondary, #475569);
}

html[data-theme="light"] .rh-tag-pill:hover {
    background: rgba(2, 132, 199, 0.1);
    border-color: rgba(2, 132, 199, 0.3);
    color: #0284c7;
}

.rh-btn-admin-feature {
    width: 100%;
    margin-top: 6px;
    padding: 8px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    color: #d8b4fe;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rh-btn-admin-feature:hover {
    background: rgba(168, 85, 247, 0.25);
    color: #ffffff;
}

