/* Reproductor superpuesto */
.music-player-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.music-player-overlay.active {
    opacity: 1;
    visibility: visible;
}
        
.reproductor-musica {
    background: var(--negro-general);
    color: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.music-player-overlay.active .reproductor-musica {
    transform: scale(1);
}

.close-player {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--amarillo-general);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-player:hover {
    background: var(--amarillo-hover);
    transform: rotate(90deg);
}

.cancion-display {
    text-align: center;
    padding: 40px 30px 30px;
    background: rgba(0, 0, 0, 0.2);
}

.cancion-display img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.now-playing {
    margin-top: 15px;
}

.player-song-title {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--amarillo-general);
}

.player-song-artist {
    color: var(--amarillo-general);
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
    display: none;
}

.player-song-album {
    color: #b8b8d1;
    font-style: italic;
    display: none;
}

.player-container {
    padding: 25px;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 32px;
    margin: 0 15px;
    cursor: pointer;
    transition: all 0.3s;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.play-btn {
    font-size: 35px;
    background: var(--amarillo-general);
}

.play-btn:hover {
    background: var(--amarillo-hover);
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 15px;
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    background: var(--amarillo-general);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: #b8b8d1;
    margin-bottom: 20px;
}

.volume-control {
    display: flex;
    align-items: center;
    margin-top: 25px;
}

.volume-icon {
    margin-right: 15px;
    color: #b8b8d1;
    font-size: 20px;
}

.volume-slider {
    flex-grow: 1;
    -webkit-appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    width: 100%;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e94560;
    cursor: pointer;
    transition: all 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .reproductor-musica {
        width: 95%;
    }
    
    .cancion-display img {
        width: 180px;
        height: 180px;
    }
}

