/* ============================================
   MUSIC PLAYER CSS - Reproductor Psicodélico Cyberpunk
   ============================================ */

/* ===== ICONO FLOTANTE MINIMIZADO ===== */
.music-player-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff0080, #00ffff, #ff8c00);
    background-size: 200% 200%;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 30px rgba(255, 0, 128, 0.6),
        0 0 60px rgba(0, 255, 255, 0.4);
    animation: pulse-icon 2s ease-in-out infinite, gradient-rotate 4s ease infinite;
    transition: all 0.3s ease;
}

.music-player-icon:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 
        0 0 40px rgba(255, 0, 128, 0.8),
        0 0 80px rgba(0, 255, 255, 0.6);
}

.music-player-icon svg {
    width: 35px;
    height: 35px;
    fill: white;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes gradient-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== REPRODUCTOR EXPANDIDO ===== */
.music-player-expanded {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 400px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    z-index: 9999;
    box-shadow: 
        0 0 40px rgba(255, 0, 128, 0.5),
        0 0 80px rgba(0, 255, 255, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
    border: 2px solid;
    border-image: linear-gradient(135deg, #ff0080, #00ffff, #ff8c00) 1;
    animation: expand-player 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: none;
}

.music-player-expanded.active {
    display: block;
}

@keyframes expand-player {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* ===== HEADER DEL REPRODUCTOR ===== */
.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.player-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff0080, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 0, 128, 0.6)); }
    50% { filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.8)); }
}

.close-btn {
    background: none;
    border: none;
    color: #ff0080;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.close-btn:hover {
    transform: rotate(90deg);
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff;
}

/* ===== DISCO GIRATORIO ===== */
.vinyl-container {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    position: relative;
}

.vinyl-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        radial-gradient(circle at center, #1a1a1a 30%, #ff0080 31%, #ff0080 35%, #000 36%),
        conic-gradient(from 0deg, #ff0080, #00ffff, #ff8c00, #ff0080);
    animation: spin-vinyl 3s linear infinite paused;
    box-shadow: 
        0 0 30px rgba(255, 0, 128, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.vinyl-disc.playing {
    animation-play-state: running;
}

@keyframes spin-vinyl {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, #ff0080, #000);
}

/* ===== INFORMACIÓN DE LA CANCIÓN ===== */
.song-info {
    text-align: center;
    margin: 20px 0;
}

.song-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== BARRA DE PROGRESO ===== */
.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    margin: 15px 0;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff0080, #00ffff, #ff8c00);
    background-size: 200% 100%;
    animation: progress-glow 2s linear infinite;
    transition: width 0.1s linear;
}

@keyframes progress-glow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

/* ===== CONTROLES ===== */
.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.control-btn {
    background: linear-gradient(135deg, #ff0080, #00ffff);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.4);
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn.play-pause {
    width: 70px;
    height: 70px;
}

.control-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.control-btn.play-pause svg {
    width: 32px;
    height: 32px;
}

/* ===== CONTROLES ADICIONALES ===== */
.extra-controls {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

.extra-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 0, 128, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    color: #00ffff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.extra-btn:hover {
    background: rgba(255, 0, 128, 0.3);
    border-color: #ff0080;
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.5);
}

.extra-btn.active {
    background: linear-gradient(135deg, #ff0080, #00ffff);
    color: white;
    border-color: transparent;
}

/* ===== VOLUMEN ===== */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.volume-icon {
    color: #00ffff;
    font-size: 1.2rem;
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;A
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #ff0080, #00ffff);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.6);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #ff0080, #00ffff);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .music-player-expanded {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 20px;
    }
    
    .music-player-icon {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
}