/* Radio Player Bar - Lofi Station Style */
.radio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(15, 10, 30, 0.95) 0%, rgba(20, 15, 40, 0.98) 100%);
    border-top: 2px solid rgba(180, 100, 255, 0.4);
    display: flex;
    align-items: center;
    padding: 0 30px;
    gap: 30px;
    z-index: 1000;
    backdrop-filter: blur(20px);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

/* Visualizer Bars */
.radio-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 40px;
}

.radio-visualizer .bar {
    width: 4px;
    background: linear-gradient(180deg, #b56eff, #ff6eb5);
    border-radius: 2px;
    animation: visualizerBounce 0.5s ease-in-out infinite alternate;
}

.radio-visualizer .bar:nth-child(1) {
    height: 15px;
    animation-delay: 0s;
}

.radio-visualizer .bar:nth-child(2) {
    height: 25px;
    animation-delay: 0.1s;
}

.radio-visualizer .bar:nth-child(3) {
    height: 35px;
    animation-delay: 0.2s;
}

.radio-visualizer .bar:nth-child(4) {
    height: 20px;
    animation-delay: 0.15s;
}

.radio-visualizer .bar:nth-child(5) {
    height: 30px;
    animation-delay: 0.25s;
}

.radio-visualizer .bar:nth-child(6) {
    height: 18px;
    animation-delay: 0.05s;
}

.radio-visualizer .bar:nth-child(7) {
    height: 28px;
    animation-delay: 0.3s;
}

.radio-visualizer .bar:nth-child(8) {
    height: 22px;
    animation-delay: 0.12s;
}

@keyframes visualizerBounce {
    0% {
        transform: scaleY(0.5);
    }

    100% {
        transform: scaleY(1.2);
    }
}

.radio-player.paused .radio-visualizer .bar {
    animation-play-state: paused;
    opacity: 0.4;
}

/* Now Playing Info */
.now-playing {
    flex: 1;
    min-width: 200px;
}

.now-playing-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    color: rgba(180, 110, 255, 0.8);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.now-playing-title {
    font-family: 'Audiowide', sans-serif;
    font-size: 1rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.now-playing-artist {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

/* Radio Controls */
.radio-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.radio-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: grayscale(0.3);
}

.radio-btn:hover {
    transform: scale(1.2);
    filter: grayscale(0);
}

.radio-btn.play-btn {
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(180, 110, 255, 0.3), rgba(255, 110, 181, 0.3));
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(180, 110, 255, 0.5);
}

.radio-btn.play-btn:hover {
    background: linear-gradient(135deg, rgba(180, 110, 255, 0.5), rgba(255, 110, 181, 0.5));
    box-shadow: 0 0 20px rgba(180, 110, 255, 0.5);
}

/* Volume Control */
.radio-volume {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-icon {
    font-size: 1.2rem;
    opacity: 0.7;
}

.volume-slider {
    width: 100px;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #b56eff, #ff6eb5);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(180, 110, 255, 0.5);
}

/* Up Next */
.up-next {
    min-width: 150px;
    text-align: right;
}

.up-next-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    color: rgba(180, 110, 255, 0.6);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.up-next-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Responsive */
@media (max-width: 768px) {
    .radio-player {
        padding: 0 15px;
        gap: 15px;
    }

    .up-next,
    .radio-volume {
        display: none;
    }

    .now-playing-title {
        max-width: 150px;
    }
}