/* ==========================================
   Live Radio Player Styles
   Fixed Bottom Player with Glass Morphism
   ========================================== */

/* Fixed Live Radio Player */
.live-player-fixed {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 615px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    z-index: 999;
    border-radius: 20px 20px 0 0;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: block;
    pointer-events: auto;
}

.live-player-fixed.minimized {
    transform: translateX(-50%) translateY(calc(100% - 50px));
}



@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Toggle Button */
.live-player-toggle {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1;
}

.live-player-toggle:hover {
    transform: translateX(-50%) translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.15);
}

.toggle-icon {
    position: relative;
    z-index: 2;
}

.toggle-icon i {
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.live-player-fixed.minimized .toggle-icon i {
    transform: rotate(180deg);
}

.toggle-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse-toggle 2s ease-out infinite;
}

@keyframes pulse-toggle {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* Player Container */
.live-player-container {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.5rem;
    position: relative;
    
}

/* Program Thumbnail */
.live-player-thumb {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    border: 2px solid rgba(218, 165, 32, 0.3);
    backdrop-filter: blur(10px);
}

.live-player-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(218, 165, 32, 0.1) 100%);
}

.live-player-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: rotate-thumb 20s linear infinite;
    animation-play-state: paused;
}

.live-player-fixed.playing .live-player-thumb img {
    animation-play-state: running;
}

@keyframes rotate-thumb {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Program Info */
.live-player-info {
    flex: 1;
    min-width: 0;
}

.live-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.25rem 0.6rem;
    border-radius: 15px;
    margin-bottom: 0.3rem;
    border: 1px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.2);
}

.live-status-badge i {
    color: #ff0000;
    font-size: 0.6rem;
    animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.live-status-badge span {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.live-program-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 0.3rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.live-program-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.live-program-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.live-program-meta i {
    color: #daa520;
}

/* Wave Visualizer */
.live-wave-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 35px;
    padding: 0 0.6rem;
}

.wave-bar {
    width: 2px;
    height: 8px;
    background: linear-gradient(180deg, rgba(218, 165, 32, 0.6), rgba(199, 162, 89, 0.4));
    border-radius: 2px;
    animation: wave-pulse 1.2s ease-in-out infinite;
    animation-play-state: paused;
    opacity: 0.4;
    box-shadow: 0 2px 8px rgba(218, 165, 32, 0.2);
}

.live-player-fixed.playing .wave-bar {
    animation-play-state: running;
    opacity: 1;
    box-shadow: 0 2px 12px rgba(218, 165, 32, 0.4);
}

@keyframes wave-pulse {
    0%, 100% { height: 8px; opacity: 0.5; }
    50% { height: 28px; opacity: 1; }
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.05s; }
.wave-bar:nth-child(3) { animation-delay: 0.1s; }
.wave-bar:nth-child(4) { animation-delay: 0.15s; }
.wave-bar:nth-child(5) { animation-delay: 0.2s; }
.wave-bar:nth-child(6) { animation-delay: 0.25s; }
.wave-bar:nth-child(7) { animation-delay: 0.3s; }
.wave-bar:nth-child(8) { animation-delay: 0.35s; }
.wave-bar:nth-child(9) { animation-delay: 0.4s; }
.wave-bar:nth-child(10) { animation-delay: 0.45s; }
.wave-bar:nth-child(11) { animation-delay: 0.5s; }
.wave-bar:nth-child(12) { animation-delay: 0.45s; }

/* Play Button */
.live-play-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #daa520, #c7a259);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4);
    flex-shrink: 0;
}

.live-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(218, 165, 32, 0.6);
    background: linear-gradient(135deg, #c7a259, #daa520);
}

.live-play-btn i {
    margin-left: 3px;
}

.live-player-fixed.playing .live-play-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.live-player-fixed.playing .live-play-btn:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    box-shadow: 0 8px 30px rgba(220, 53, 69, 0.6);
}

.live-player-fixed.playing .live-play-btn i::before {
    content: '\f04c';
}

/* Volume Control */
.live-volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.volume-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-icon:hover {
    background: rgba(218, 165, 32, 0.15);
    border-color: rgba(218, 165, 32, 0.4);
    transform: scale(1.1);
}

.volume-icon i {
    color: white;
    font-size: 0.75rem;
}

.volume-slider-container {
    width: 40px;
}

.volume-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #daa520, #c7a259);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(218, 165, 32, 0.5),
                0 0 0 2px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.7);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #daa520, #c7a259);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(218, 165, 32, 0.5);
}

/* Desktop Live Button in Header */
#desktopLiveBtn {
    background: rgba(255, 0, 0, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

#desktopLiveBtn:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.05);
}

#desktopLiveBtn .live-pulse {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: pulse-live 1.5s ease-in-out infinite;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 1200px) {
    .live-player-container {
        gap: 1rem;
        padding: 0.9rem 1.2rem;
    }

    .live-wave-container {
        padding: 0 0.5rem;
    }

    .wave-bar {
        width: 2.5px;
        gap: 2.5px;
    }
}

@media (max-width: 992px) {
    .live-player-fixed {
        max-width: 615px;
        border-radius: 20px 20px 0 0;
    }

    .live-player-container {
        gap: 0.8rem;
    }

    .live-player-thumb {
        width: 55px;
        height: 55px;
    }

    .live-play-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .live-volume-control {
        display: none;
    }

    .live-wave-container {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .live-player-fixed {
        max-width: 615px;
    }

    .live-player-container {
        padding: 0.8rem;
        gap: 0.7rem;
    }

    .live-player-thumb {
        width: 50px;
        height: 50px;
    }

    .live-program-title {
        font-size: 0.9rem;
    }

    .live-program-meta {
        font-size: 0.7rem;
        gap: 0.8rem;
    }

    .live-wave-container {
        display: none;
    }

    .live-play-btn {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    .live-player-toggle {
        top: -30px;
        width: 45px;
        height: 30px;
    }

    .toggle-icon i {
        font-size: 0.9rem;
    }
}
