/* ===== RADIO PLAYER SPECTACULAIRE ===== */

.radio-player-section {
    padding: 60px 20px;
    background: #000;
    position: relative;
}

.radio-player-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(145deg, 
        rgba(20, 20, 40, 0.95) 0%,
        rgba(15, 15, 35, 0.98) 50%,
        rgba(10, 10, 30, 0.95) 100%);
    border-radius: 30px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 0 2px rgba(255, 215, 0, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 100px rgba(255, 215, 0, 0.2);
}

/* Bordure néon animée */
.radio-player-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 30px;
    background: linear-gradient(45deg, 
        #ffd700, 
        #dc143c, 
        #00d9ff, 
        #ffd700);
    background-size: 400%;
    z-index: -1;
    animation: borderFlow 8s linear infinite;
}

@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}

/* Background animé */
.player-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.bg-vinyl {
    position: absolute;
    top: 50%;
    left: 10%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, 
        transparent 35%, 
        rgba(255, 215, 0, 0.03) 35%, 
        rgba(255, 215, 0, 0.03) 36%, 
        transparent 36%);
    opacity: 0.4;
    animation: vinylSpin 20s linear infinite;
}

@keyframes vinylSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== HEADER ===== */
.player-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
}

.player-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    background: linear-gradient(90deg, 
        #ffd700, 
        #dc143c, 
        #00d9ff, 
        #ffd700);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 5s linear infinite;
    text-shadow: 0 0 60px rgba(255, 215, 0, 0.5);
    margin-bottom: 10px;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.player-subtitle {
    font-size: 1rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

/* ===== VINYL PLAYER ===== */
.vinyl-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.vinyl-disc-container {
    position: relative;
    width: 200px;
    height: 200px;
}

.vinyl-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, 
        #000 0%,
        #000 25%,
        #ffd700 25%,
        #ffd700 27%,
        #000 27%,
        #000 40%,
        rgba(255, 215, 0, 0.3) 40%,
        rgba(255, 215, 0, 0.3) 42%,
        #000 42%);
    box-shadow: 
        0 0 50px rgba(255, 215, 0, 0.5),
        inset 0 0 30px rgba(0, 0, 0, 0.9);
    transition: animation-play-state 0.3s ease;
}

.vinyl-disc.playing {
    animation: vinylSpinFast 3s linear infinite;
}

@keyframes vinylSpinFast {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vinyl-needle {
    position: absolute;
    top: 15%;
    right: -8%;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #666, #ffd700);
    border-radius: 2px;
    transform-origin: right center;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    transition: transform 0.5s ease;
}

.vinyl-needle.playing {
    animation: needleMove 3s ease-in-out infinite;
}

@keyframes needleMove {
    0%, 100% { transform: rotate(-35deg); }
    50% { transform: rotate(-30deg); }
}

/* Status */
.player-status {
    text-align: center;
}

.status-label {
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.status-text {
    font-size: 24px;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 20px #ffd700;
    margin-bottom: 15px;
}

.status-text.playing {
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.now-playing {
    font-size: 16px;
    color: #fff;
    font-style: italic;
}

/* ===== VISUALISEUR AUDIO ===== */
.audio-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    height: 80px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.visualizer-bar {
    width: 12px;
    background: linear-gradient(180deg, 
        #ffd700, 
        #dc143c);
    border-radius: 6px;
    transition: height 0.1s ease;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.visualizer-bar.playing {
    animation: barBounce 0.8s ease-in-out infinite;
}

.visualizer-bar:nth-child(1) { animation-delay: 0s; }
.visualizer-bar:nth-child(2) { animation-delay: 0.1s; }
.visualizer-bar:nth-child(3) { animation-delay: 0.2s; }
.visualizer-bar:nth-child(4) { animation-delay: 0.3s; }
.visualizer-bar:nth-child(5) { animation-delay: 0.4s; }
.visualizer-bar:nth-child(6) { animation-delay: 0.5s; }
.visualizer-bar:nth-child(7) { animation-delay: 0.6s; }
.visualizer-bar:nth-child(8) { animation-delay: 0.7s; }

@keyframes barBounce {
    0%, 100% { height: 20%; }
    50% { height: 100%; }
}

/* ===== CONTROLS ===== */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.control-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.2), 
        rgba(220, 20, 60, 0.2));
    border: 3px solid #ffd700;
    color: #ffd700;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.control-btn:hover::before {
    width: 200%;
    height: 200%;
}

.control-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.7);
}

.control-btn.active {
    background: linear-gradient(135deg, 
        #ffd700, 
        #dc143c);
    color: #000;
    border-color: #ffd700;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.9);
}

.play-btn {
    width: 90px;
    height: 90px;
    font-size: 36px;
}

/* ===== VOLUME CONTROL ===== */
.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.volume-icon {
    color: #ffd700;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-icon:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px #ffd700);
}

.volume-slider {
    width: 200px;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 5px;
    outline: none;
    position: relative;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffd700;
    cursor: pointer;
    box-shadow: 0 0 15px #ffd700;
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 25px #ffd700;
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffd700;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 15px #ffd700;
    transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 25px #ffd700;
}

.volume-value {
    font-size: 18px;
    font-weight: 700;
    color: #ffd700;
    min-width: 45px;
    text-align: center;
}

/* ===== PARTICULES FLOTTANTES ===== */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-particles .particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 15px #ffd700;
    animation: floatUp 10s linear infinite;
}

.floating-particles .particle:nth-child(1) { left: 15%; animation-delay: 0s; }
.floating-particles .particle:nth-child(2) { left: 30%; animation-delay: 2s; }
.floating-particles .particle:nth-child(3) { left: 45%; animation-delay: 4s; }
.floating-particles .particle:nth-child(4) { left: 60%; animation-delay: 6s; }
.floating-particles .particle:nth-child(5) { left: 75%; animation-delay: 8s; }
.floating-particles .particle:nth-child(6) { left: 90%; animation-delay: 10s; }

@keyframes floatUp {
    0% {
        bottom: -5%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 105%;
        opacity: 0;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .radio-player-container {
        padding: 30px 25px;
    }
    
    .vinyl-display {
        flex-direction: column;
        gap: 30px;
    }
    
    .vinyl-disc-container {
        width: 150px;
        height: 150px;
    }
    
    .player-controls {
        gap: 20px;
    }
    
    .control-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .play-btn {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .volume-slider {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .radio-player-container {
        padding: 25px 20px;
    }
    
    .audio-visualizer {
        height: 60px;
    }
    
    .visualizer-bar {
        width: 8px;
    }
    
    .volume-control {
        flex-direction: column;
        gap: 15px;
    }
}
