:root {
    --rbp-primary: #e91e63;
    /* Default, overridden by JS/PHP */
    --rbp-text: #ffffff;
    --rbp-bg: rgba(20, 20, 20, 0.9);
    --rbp-height: 70px;
}

.rbp-player-container {
    width: 100%;
    max-width: var(--rbp-width);
    margin: 20px auto;
    /* Center it */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.rbp-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: var(--rbp-width);
    /* Allow custom width */
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    /* Center it if not full width */
    z-index: 99999;
}

.rbp-sticky-footer .rbp-player {
    border-radius: 0;
    /* Square edges for footer */
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.rbp-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--rbp-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 10px 20px;
    color: var(--rbp-text);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: var(--rbp-height);
    transition: all 0.3s ease;
}

.rbp-player:hover {
    box-shadow: 0 8px 32px 0 rgba(var(--rbp-primary-rgb), 0.2);
    border-color: var(--rbp-primary);
}

.rbp-info {
    display: flex;
    flex-direction: column;
}

.rbp-status {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--rbp-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rbp-status::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: var(--rbp-primary);
    border-radius: 50%;
    animation: rbp-pulse 1.5s infinite;
}

@keyframes rbp-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(var(--rbp-primary-rgb), 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(var(--rbp-primary-rgb), 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(var(--rbp-primary-rgb), 0);
    }
}

.rbp-station-name {
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rbp-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rbp-btn {
    background: none;
    border: none;
    color: var(--rbp-play-btn);
    /* Use specific color */
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: var(--rbp-play-btn-bg);
}

.rbp-btn:hover {
    color: var(--rbp-play-btn-hover);
    transform: scale(1.05);
    background: var(--rbp-play-btn-bg-hover);
}

.rbp-btn:active,
.rbp-btn.playing {
    color: var(--rbp-play-btn-active);
    transform: scale(0.95);
}

.rbp-btn.playing {
    transform: scale(1);
    /* Reset scale for playing state */
    background: var(--rbp-play-btn-bg-active);
}



/* Visualizer Styles */
.rbp-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    height: 40px;
    width: 150px;
    /* Adjust width as needed */
    margin: 0 15px;
}

.rbp-bar {
    width: 4px;
    background: var(--rbp-primary);
    border-radius: 2px 2px 0 0;
    height: 2px;
    /* Initial height */
    transition: height 0.05s ease;
    min-height: 2px;
    box-shadow: 0 0 5px rgba(var(--rbp-primary-rgb), 0.5);
}

.rbp-volume-control {
    display: flex;
    align-items: center;
    width: 80px;
}

/* Custom Range Slider */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: var(--rbp-primary);
    cursor: pointer;
    margin-top: -5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

input[type=range]:focus {
    outline: none;
}

/* Responsive */
@media (max-width: 480px) {
    .rbp-player {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 10px;
        text-align: center;
    }

    .rbp-status {
        justify-content: center;
    }

    .rbp-controls {
        width: 100%;
        justify-content: space-around;
    }

    .rbp-volume-control {
        width: 100px;
    }

    .rbp-visualizer {
        display: none;
        /* Hide visualizer on very small screens if needed, or adjust width */
    }
}