/* ==============================================
   LECTEUR AUDIO MODERNE - RADIO SISSILI
   Design moderne avec contrôle de volume avancé
   ============================================== */

/* Waveform Container */
.waveform-container {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 20px;
    margin: 25px 0;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 60px;
}

.wave-bar {
    width: 6px;
    background: linear-gradient(180deg, #009E60, #00d084);
    border-radius: 3px;
    transition: height 0.1s ease;
}

@keyframes waveAnimation {
    0%, 100% { height: 10px; }
    50% { height: 60px; }
}

/* Player Controls Modern */
.player-controls-modern {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 30px;
}

/* Bouton Play/Pause Moderne */
.btn-play-modern {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #009E60, #00d084);
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 15px 40px rgba(0, 158, 96, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-play-modern:hover {
    transform: scale(1.08);
    box-shadow: 0 20px 50px rgba(0, 158, 96, 0.5);
}

.btn-play-modern:active {
    transform: scale(0.95);
}

.btn-play-modern.playing {
    background: linear-gradient(135deg, #ef2b2d, #ff5555);
    box-shadow: 0 15px 40px rgba(239, 43, 45, 0.4);
}

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

.btn-play-modern.playing i {
    margin-left: 0;
}

/* Volume Section Modern */
.volume-section-modern {
    flex: 1;
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 20px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.volume-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.volume-label-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 14px;
}

.volume-label-modern i {
    color: #009E60;
    font-size: 16px;
}

.volume-btn-modern {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: white;
    border: none;
    color: #009E60;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-btn-modern:hover {
    background: #009E60;
    color: white;
    transform: scale(1.1);
}

.volume-btn-modern.muted {
    background: #ef2b2d;
    color: white;
}

.volume-value-modern {
    color: #009E60;
    font-weight: 800;
    font-size: 16px;
    min-width: 45px;
    text-align: right;
}

.volume-slider-modern {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-slider-modern:hover {
    background: #ccc;
}

.volume-slider-modern::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #009E60, #00d084);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 158, 96, 0.4);
    transition: all 0.3s ease;
}

.volume-slider-modern::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 16px rgba(0, 158, 96, 0.5);
}

.volume-slider-modern::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #009E60, #00d084);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 158, 96, 0.4);
}

.volume-levels-modern {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.volume-levels-modern span {
    color: #999;
    font-size: 11px;
}

/* Compteur d'auditeurs */
.listeners-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
}

.listeners-count i {
    color: #009E60;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .player-controls-modern {
        flex-direction: column;
        gap: 20px;
    }
    
    .volume-section-modern {
        width: 100%;
    }
    
    .btn-play-modern {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .listeners-count {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .btn-play-modern {
        width: 65px;
        height: 65px;
        font-size: 26px;
    }
    
    .volume-section-modern {
        padding: 15px 20px;
    }
    
    .waveform-container {
        padding: 15px;
        height: 80px;
    }
    
    .waveform {
        height: 50px;
    }
}

/* Container principal du lecteur */
.live-player {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Barre de couleur en haut */
.live-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #009E60, #00d084, #009E60);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

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

/* Header du lecteur */
.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ef2b2d;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.current-show {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 16px;
}

.current-show i {
    color: #009E60;
}

/* Zone visuelle (waveform) */
.player-visual {
    height: 100px;
    background: #f8f9fa;
    border-radius: 20px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

#audioVisualizer {
    width: 100%;
    height: 100%;
}

/* Contrôles du lecteur */
.player-controls {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 30px;
}

/* Bouton Play/Pause moderne */
.btn-play {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #009E60, #00d084);
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 15px 40px rgba(0, 158, 96, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-play:hover {
    transform: scale(1.08);
    box-shadow: 0 20px 50px rgba(0, 158, 96, 0.5);
}

.btn-play:active {
    transform: scale(0.95);
}

.btn-play.playing {
    background: linear-gradient(135deg, #ef2b2d, #ff5555);
    box-shadow: 0 15px 40px rgba(239, 43, 45, 0.4);
}

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

.btn-play.playing i {
    margin-left: 0;
}

/* Section du volume */
.volume-control {
    flex: 1;
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 20px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.volume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.volume-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 14px;
}

.volume-icon {
    color: #009E60;
    font-size: 18px;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.volume-icon:hover {
    background: #009E60;
    color: white;
    transform: scale(1.1);
}

.volume-icon.muted {
    background: #ef2b2d;
    color: white;
}

.volume-value {
    color: #009E60;
    font-weight: 800;
    font-size: 16px;
    min-width: 45px;
    text-align: right;
}

/* Slider de volume moderne */
.volume-slider {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-slider:hover {
    background: #ccc;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #009E60, #00d084);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 158, 96, 0.4);
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 16px rgba(0, 158, 96, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #009E60, #00d084);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 158, 96, 0.4);
}

.volume-levels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.volume-mark {
    color: #999;
    font-size: 11px;
}

/* Compteur d'auditeurs */
.listeners-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.listeners-count i {
    color: #009E60;
    font-size: 16px;
}

/* Footer du lecteur avec partage social */
.player-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.btn-share {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e9ecef;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-share:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.btn-share[data-platform="facebook"]:hover {
    background: #3b5998;
    color: white;
    border-color: #3b5998;
}

.btn-share[data-platform="twitter"]:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.btn-share[data-platform="whatsapp"]:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

/* Responsive */
@media (max-width: 768px) {
    .live-player {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .player-controls {
        flex-direction: column;
        gap: 20px;
    }
    
    .volume-control {
        width: 100%;
    }
    
    .btn-play {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .player-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .live-player {
        padding: 25px 15px;
    }
    
    .btn-play {
        width: 65px;
        height: 65px;
        font-size: 26px;
    }
    
    .volume-control {
        padding: 15px 20px;
    }
}
