@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&display=swap');

:root {
    --player-bg: rgba(13, 13, 13, 0.95);
    --player-blur: 25px;
    --player-accent: #FF6B35;
    /* Orange primary from theme */
    --player-accent-rgb: 255, 107, 53;
    --player-text: #ffffff;
    --player-sub: rgba(255, 255, 255, 0.6);
    --player-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    --player-border: rgba(255, 255, 255, 0.05);
}

.radio-player-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1000px;
    height: 85px;
    z-index: 999999;
    font-family: 'Outfit', sans-serif;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.radio-player-container:hover {
    transform: translateX(-50%) translateY(-10px) scale(1.02);
}

.radio-backdrop-blur {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--player-bg);
    backdrop-filter: blur(var(--player-blur));
    -webkit-backdrop-filter: blur(var(--player-blur));
    border-radius: 25px;
    border: 1px solid var(--player-border);
    box-shadow: var(--player-shadow);
    z-index: -1;
    transition: all 0.4s ease;
}

.radio-player-container:hover .radio-backdrop-blur {
    border-color: var(--player-accent) !important;
    box-shadow: 0 0 50px rgba(var(--player-accent-rgb), 0.2) !important;
    /* MATCH THEME CARD GLOW */
}

.radio-player-inner {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 35px;
    gap: 30px;
}

/* Info Section */
.radio-track-info {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 240px;
    max-width: 350px;
}

.radio-icon {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.is-playing .radio-icon {
    background: rgba(var(--player-accent-rgb), 0.1);
    border-color: rgba(var(--player-accent-rgb), 0.3);
}

.radio-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.radio-visualizer span {
    width: 4px;
    background: var(--player-accent);
    border-radius: 10px;
    height: 4px;
    box-shadow: 0 0 10px rgba(var(--player-accent-rgb), 0.5);
}

.is-playing .radio-visualizer span {
    animation: visualize 0.7s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.is-playing .radio-visualizer span:nth-child(2) {
    animation-delay: 0.15s;
}

.is-playing .radio-visualizer span:nth-child(3) {
    animation-delay: 0.3s;
}

.is-playing .radio-visualizer span:nth-child(4) {
    animation-delay: 0.45s;
}

@keyframes visualize {
    0% {
        height: 4px;
    }

    100% {
        height: 100%;
        box-shadow: 0 0 15px var(--player-accent);
    }
}

.radio-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.radio-label {
    font-size: 11px;
    font-weight: 900;
    color: var(--player-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2px;
}

.radio-current-track {
    font-size: 17px;
    font-weight: 700;
    color: var(--player-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Play/Pause Button */
.radio-controls .radio-btn {
    width: 58px;
    height: 58px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.radio-controls .radio-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--player-accent);
    color: #fff;
    box-shadow: 0 0 30px var(--player-accent);
}

/* Progress bar */
.radio-progress-container {
    flex: 1;
}

.radio-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}

.radio-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--player-accent), #ffa47d);
    border-radius: 10px;
    width: 0%;
    position: relative;
    box-shadow: 0 0 15px rgba(var(--player-accent-rgb), 0.4);
}

.radio-progress-glow {
    position: absolute;
    right: -8px;
    top: -5px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px #fff, 0 0 30px var(--player-accent);
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.3s;
}

.radio-player-container:hover .radio-progress-glow {
    opacity: 1;
    transform: scale(1);
}

/* Sound/Volume UI */
.radio-extra-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.radio-vol-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 18px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
}

.radio-vol-wrapper:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(var(--player-accent-rgb), 0.4);
    box-shadow: 0 0 20px rgba(var(--player-accent-rgb), 0.1);
}

#radio-volume-btn {
    background: none;
    border: none;
    color: var(--player-text);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

.radio-vol-wrapper:hover #radio-volume-btn {
    color: var(--player-accent);
    transform: scale(1.1);
}

.radio-vol-wrapper input[type="range"] {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

.radio-vol-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.2s;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.radio-vol-wrapper input[type="range"]:hover::-webkit-slider-thumb {
    background: var(--player-accent);
    box-shadow: 0 0 15px var(--player-accent);
    transform: scale(1.2);
}

/* Mobile Fixes */
@media (max-width: 768px) {
    .radio-player-container {
        height: 75px;
        bottom: 15px;
        width: 96%;
    }

    .radio-player-inner {
        padding: 0 20px;
        gap: 15px;
    }

    .radio-vol-wrapper {
        display: none;
    }

    .radio-progress-container {
        display: none;
    }

    .radio-track-info {
        min-width: 0;
        flex: 1;
        gap: 12px;
    }

    .radio-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .radio-current-track {
        font-size: 15px;
    }
}