/* ==========================================================================
   Premium Radio Tuner Scoped Style Sheet
   ========================================================================== */

/* Scoped variables under the player class */
.floating-player-card {
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-button: 0 4px 12px rgba(var(--rtp-accent-rgb), 0.2);
    --primary-orange: var(--rtp-accent-color, #ff6f00);
    --primary-orange-hover: var(--rtp-accent-color, #e06200);

    /* Default (Dark) Design variables fallback */
    --bg-color: #0b0b0c;
    --card-bg: #0b0b0c;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: rgba(255, 255, 255, 0.18);
    --active-bg: rgba(var(--rtp-accent-rgb), 0.15);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --tuner-lines-color: rgba(255, 255, 255, 0.55);
    --cover-bg: #333336;
    --cover-border: 0.6px solid rgb(255 255 255 / 62%);

    box-sizing: border-box;
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    display: grid;
    grid-template-columns: 28% 46% 26%;
    align-items: stretch;
    padding: 16px;
    z-index: 999999999 !important;
    
    /* Premium Glassmorphism blur */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Explicit Light Theme Variables styling */
.floating-player-card.rtp-design-free-light {
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --text-primary: #181816;
    --text-secondary: #6e6c64;
    --text-muted: #a3a096;
    --border-color: rgba(229, 226, 217, 0.6);
    --active-bg: rgba(var(--rtp-accent-rgb), 0.08);
    --shadow-premium: 0 20px 40px rgba(24, 24, 22, 0.08);
    --tuner-lines-color: rgba(229, 226, 217, 0.9);
    --cover-bg: var(--bg-color);
    --cover-border: 1px solid var(--border-color);
}

/* Explicit Dark Theme Variables styling */
.floating-player-card.rtp-design-free-dark {
    --bg-color: #0b0b0c;
    --card-bg: #0b0b0c;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: rgba(255, 255, 255, 0.18);
    --active-bg: rgba(var(--rtp-accent-rgb), 0.15);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --tuner-lines-color: rgba(255, 255, 255, 0.55);
    --cover-bg: #333336;
    --cover-border: 0.6px solid rgb(255 255 255 / 62%);
}

/* Floating player-specific positioning */
.floating-player-card.rtp-floating-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    margin: 0 auto;
    max-width: 1200px;
    width: calc(100% - 40px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.floating-player-card.rtp-floating-player.rtp-layout-centered {
    max-width: 1200px;
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
}

.floating-player-card.rtp-floating-player.rtp-layout-fullwidth {
    max-width: none;
    left: 40px;
    right: 40px;
    width: calc(100% - 80px);
}

/* Inline player-specific positioning */
.floating-player-card.rtp-inline-player {
    position: relative;
    margin: 30px auto;
    max-width: 100%;
    width: 100%;
}

.floating-player-card * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.floating-player-card img {
    max-width: 100%;
    height: auto;
}

.floating-player-card button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

/* --- COLUMN 1: STATION DETAILS --- */
.floating-player-card .player-station-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 20px;
    border-right: 1px solid var(--border-color);
}

.floating-player-card .player-cover {
    width: auto;
    max-width: 100%;
    height: 159px;
    background-color: var(--cover-bg);
    border: var(--cover-border);
    padding: 3px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-sizing: border-box;
}

.floating-player-card .player-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.floating-player-card .player-meta {
    overflow: hidden;
    flex-grow: 1;
    width: 100%;
    min-width: 0;
}

.floating-player-card .live-status {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-orange);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.floating-player-card .live-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    animation: rtpPulseDot 1s infinite alternate;
}

@keyframes rtpPulseDot {
    0% { opacity: 0.4; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

.floating-player-card .track-title-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.floating-player-card .player-now-playing {
    font-family: var(--font-main) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: var(--primary-orange) !important;
    margin-top: 3px !important;
    margin-bottom: 3px !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
}

.floating-player-card .track-artist-desc {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-player-card .player-action-icons {
    display: flex;
    gap: 12px;
}

.floating-player-card .player-action-icons .icon-btn {
    font-size: 13px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.floating-player-card .player-action-icons .icon-btn:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.floating-player-card .player-action-icons .icon-btn.liked {
    color: var(--rtp-accent-color);
}

.floating-player-card .player-action-icons .icon-btn.disliked {
    color: var(--primary-orange);
}

/* --- COLUMN 2: TUNER SCALE --- */
.floating-player-card .player-tuner-section {
    padding: 0 40px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.floating-player-card .tuner-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 8px;
}

.floating-player-card .tuner-arrow {
    width: 36px;
    height: 36px;
    border-radius: 100%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 12px;
    transition: var(--transition-smooth);
}

.floating-player-card .tuner-arrow:hover {
    background-color: var(--border-color);
    color: var(--primary-orange);
}

.floating-player-card .tuner-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-player-card .tuner-prefix,
.floating-player-card .tuner-suffix {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.floating-player-card .active-station-freq {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-orange);
    line-height: 1;
    display: inline-block;
    min-width: 3.2em;
    width: auto;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.floating-player-card .tuner-scale-wrapper {
    position: relative;
    padding: 6px 0;
}

.floating-player-card .tuner-scale-container {
    height: 65px;
    position: relative;
    cursor: pointer;
    overflow: visible; /* prevent scale numbers (88 and 108) from getting cut off at the edges */
}

.floating-player-card .tuner-lines {
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 12px;
    background: repeating-linear-gradient(90deg, 
        var(--tuner-lines-color) 0px, 
        var(--tuner-lines-color) 1.5px, 
        transparent 1.5px, 
        transparent 5%
    );
    opacity: 0.85;
}

.floating-player-card .tuner-lines::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1.5px;
    height: 100%;
    background-color: var(--tuner-lines-color);
}

.floating-player-card .tuner-labels {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.floating-player-card .tuner-labels span {
    position: absolute;
    transform: translateX(-50%);
}

.floating-player-card .tuner-needle {
    position: absolute;
    top: 0px;
    left: 43.5%;
    transform: translateX(-50%);
    height: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: left 0.1s ease-out;
    pointer-events: none;
}

.floating-player-card .tuner-needle.dragging {
    transition: none;
}

.floating-player-card .needle-line {
    width: 2px;
    height: 45px;
    background-color: var(--primary-orange);
    border-radius: 1px;
}

.floating-player-card .needle-knob {
    width: 6px;
    height: 6px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(var(--rtp-accent-rgb), 0.4);
}

/* --- COLUMN 3: AUDIO CONTROLS & EQUALIZER --- */
.floating-player-card .player-controls-section {
    padding-left: 20px;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    height: 100%;
    align-self: center;
}

.floating-player-card .eq-status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 10px;
    font-family: var(--font-main);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.floating-player-card .eq-status-indicator .status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #888;
}

.floating-player-card .eq-status-indicator.active .status-dot,
.floating-player-card .eq-status-indicator.bypassed .status-dot {
    background-color: #10b981;
    box-shadow: 0 0 4px #10b981;
}

.floating-player-card .player-equalizer-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-grow: 1;
    padding-top: 5px;
    padding-bottom: 5px;
}

.floating-player-card .equalizer-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20px;
    height: 100%;
    justify-content: flex-end;
}

.floating-player-card .equalizer-track {
    position: relative;
    width: 1px;
    height: 44px;
    background-color: var(--border-color);
}

.floating-player-card .equalizer-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: -3px;
    width: 7px;
    height: 100%;
    background: repeating-linear-gradient(to bottom,
        var(--text-muted) 0px,
        var(--text-muted) 1px,
        transparent 1px,
        transparent 5px
    );
    opacity: 0.5;
}

.floating-player-card .equalizer-handle {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 12px;
    height: 12px;
    background-color: var(--text-primary);
    border-radius: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 50%;
    transition: bottom 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: grab;
}

.floating-player-card .equalizer-handle.dragging {
    transition: none !important;
}

.floating-player-card .equalizer-handle .handle-dot {
    width: 4px;
    height: 4px;
    background-color: var(--primary-orange);
    border-radius: 50%;
}

.floating-player-card .equalizer-label {
    font-size: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1;
    text-align: center;
}

.floating-player-card .player-controls-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 6px 0;
    width: 100%;
}

.floating-player-card .player-volume-play-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 36px;
}

.floating-player-card .volume-icon-btn {
    font-size: 14px;
    color: var(--primary-orange);
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.floating-player-card .volume-icon-btn svg.icon-volume {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: fill var(--transition-smooth), opacity var(--transition-smooth);
}

.floating-player-card .volume-icon-btn:hover {
    color: var(--primary-orange);
    opacity: 0.8;
}

.floating-player-card .volume-slider-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.floating-player-card .volume-slider-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    z-index: 0;
    pointer-events: none;
}

.floating-player-card .volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: transparent;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    z-index: 2;
    margin: 0;
    padding: 0;
}

.floating-player-card .volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-orange);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: var(--transition-smooth);
}

.floating-player-card .volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--primary-orange);
}

.floating-player-card .volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: var(--primary-orange);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: var(--transition-smooth);
}

.floating-player-card .volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: var(--primary-orange);
}

.floating-player-card .volume-slider-fill {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 80%;
    height: 4px;
    background-color: var(--primary-orange);
    border-radius: 2px;
    pointer-events: none;
    z-index: 1;
}

.floating-player-card .player-play-btn {
    width: auto;
    height: auto;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--primary-orange);
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: color var(--transition-smooth), transform var(--transition-smooth);
}

.floating-player-card .player-play-btn:hover {
    color: var(--primary-orange);
    background-color: transparent;
    border-color: transparent;
    transform: scale(1.15);
}

.floating-player-card .player-play-btn.playing {
    color: var(--primary-orange);
    background-color: transparent;
    border-color: transparent;
}


/* ==========================================================================
   Responsive Scoped Styles
   ========================================================================== */

@media (max-width: 1200px) {
    .floating-player-card {
        grid-template-columns: 33% 40% 27%;
    }
    .floating-player-card.rtp-floating-player {
        width: calc(100% - 80px);
        margin: 0 auto 16px auto;
    }
}

@media (max-width: 991px) {
    .floating-player-card {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .floating-player-card.rtp-floating-player {
        margin: 0 20px 16px 20px;
        width: calc(100% - 40px);
        max-width: 100%;
    }
    .floating-player-card .player-station-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 15px;
    }
    .floating-player-card .player-action-icons {
        justify-content: center;
    }
    .floating-player-card .live-status {
        justify-content: center;
    }
    .floating-player-card .player-tuner-section {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 0 0 15px 0;
    }
    .floating-player-card .player-controls-section {
        padding-left: 0;
        padding-right: 0;
        align-self: stretch;
    }
}

@media (max-width: 768px) {
    .floating-player-card.rtp-floating-player,
    .floating-player-card.rtp-floating-player.rtp-layout-centered,
    .floating-player-card.rtp-floating-player.rtp-layout-fullwidth {
        left: 10px !important;
        right: 10px !important;
        width: calc(100% - 20px) !important;
        margin: 0 auto 16px auto !important;
        max-width: calc(100% - 20px) !important;
    }
    .floating-player-card {
        padding: 15px;
    }
    .floating-player-card .player-cover {
        width: 100%;
        max-width: 100%;
        height: 100px;
    }
    .floating-player-card .player-tuner-section {
        display: flex !important;
        padding: 15px 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .floating-player-card .tuner-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 0 !important;
        margin-bottom: 10px;
    }
    .floating-player-card .tuner-arrow {
        width: 36px;
        height: 36px;
        font-size: 11px;
    }
    .floating-player-card .tuner-title {
        gap: 10px;
    }
    .floating-player-card .tuner-prefix,
    .floating-player-card .tuner-suffix {
        font-size: 14px;
    }
    .floating-player-card .active-station-freq {
        font-size: 40px;
        min-width: 3.2em;
        width: auto;
    }
    .floating-player-card .tuner-scale-container {
        height: 38px;
    }
    .floating-player-card .tuner-labels {
        font-size: 11px;
        top: 25px;
    }
    .floating-player-card .tuner-needle {
        height: 32px;
    }
    .floating-player-card .needle-line {
        height: 24px;
        width: 2px;
    }
    .floating-player-card .needle-knob {
        width: 6px;
        height: 6px;
    }

    /* Hide the station cover logo on mobile */
    .floating-player-card .player-cover {
        display: none !important;
    }

    /* Position minimize button in the top-right corner of the player card / info box */
    .floating-player-card:not(.rtp-minimized) .rtp-minimize-btn {
        top: 15px !important;
        right: 15px !important;
        left: auto !important;
        z-index: 100 !important;
    }
}

/* ==========================================================================
   Collapsible / Minimized Player States
   ========================================================================== */

/* Minimize Button (Main View) */
.floating-player-card .rtp-minimize-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: var(--primary-orange);
    cursor: pointer;
    font-size: 16px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
    z-index: 10;
    width: 32px;
    height: 32px;
}
.floating-player-card .rtp-minimize-btn:hover {
    background-color: var(--active-bg);
    opacity: 0.8;
}

/* Minimized View Bar */
.floating-player-card .rtp-minimized-bar {
    display: none;
}

/* Minimized Player Card Modifier */
.floating-player-card.rtp-minimized {
    display: block !important;
    grid-template-columns: none !important;
    width: 320px !important;
    max-width: calc(100% - 40px) !important;
    height: 72px !important;
    padding: 12px 16px !important;
    border-radius: 36px !important;
    overflow: hidden;
    bottom: 20px !important;
    left: auto !important;
    right: 20px !important;
    margin: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Minimized Elements Toggle */
.floating-player-card.rtp-minimized .player-station-info,
.floating-player-card.rtp-minimized .player-band-section,
.floating-player-card.rtp-minimized .player-tuner-section,
.floating-player-card.rtp-minimized .player-vu-section,
.floating-player-card.rtp-minimized .player-controls-section,
.floating-player-card.rtp-minimized .rtp-minimize-btn {
    display: none !important;
}

.floating-player-card.rtp-minimized .rtp-minimized-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    gap: 12px;
}

/* Minimized Inner Layout */
.rtp-minimized-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}
.rtp-minimized-cover {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid var(--border-color);
    background-color: var(--bg-color);
}
.floating-player-card .rtp-minimized-cover-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    animation: rtp-spin 12s linear infinite;
    animation-play-state: paused;
}
.floating-player-card.rtp-playing .rtp-minimized-cover-img {
    animation-play-state: running;
}
.rtp-minimized-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.rtp-minimized-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.rtp-minimized-desc {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
    line-height: 1.2;
}

/* Minimized Action Controls */
.rtp-minimized-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.rtp-minimized-play-btn,
.rtp-minimized-expand-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background-color: var(--active-bg);
    color: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 12px;
}
.rtp-minimized-play-btn:hover,
.rtp-minimized-expand-btn:hover {
    background-color: var(--primary-orange);
    color: #ffffff;
}

/* Spin Animation */
@keyframes rtp-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mobile responsive minimized positions */
@media (max-width: 768px) {
    .floating-player-card.rtp-minimized {
        left: 10px !important;
        right: 10px !important;
        margin: 0 auto !important;
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        bottom: 16px !important;
    }
}

/* --- FREE LIGHT THEME AUDIO VISUALIZER --- */
.floating-player-card .rtp-free-light-layout {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.floating-player-card .rtp-visualizer-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 6px;
    line-height: 1;
}

.floating-player-card .rtp-visualizer-spectrum-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-grow: 1;
    padding: 4px 0;
}

.floating-player-card .rtp-visualizer-bars-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 48px;
    width: 100%;
}

.floating-player-card .rtp-visualizer-bar {
    width: 20px;
    height: 44px;
    background: rgba(var(--rtp-accent-rgb), 0.04);
    border-radius: 1px;
    overflow: hidden;
    position: relative;
    
    /* repeating linear gradient mask for the segmented block effect */
    -webkit-mask-image: repeating-linear-gradient(to top, black 0px, black 3px, transparent 3px, transparent 5px);
    mask-image: repeating-linear-gradient(to top, black 0px, black 3px, transparent 3px, transparent 5px);
}

.floating-player-card .rtp-bar-inner {
    display: block;
    width: 100%;
    height: 10%; /* Driven dynamically by JS requestAnimationFrame */
    background: linear-gradient(to top, #005a70 0%, #00adb5 80%, #ff3b30 90%, #ff3b30 100%);
    background-size: 100% 44px; /* fixed size matching the parent bar height */
    background-repeat: no-repeat;
    background-position: bottom;
    position: absolute;
    bottom: 0;
    left: 0;
}
