@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-container {
    transition: width 0.1s linear;
}

.album-cover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.album-cover:hover {
    transform: scale(1.02);
}

.song-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.song-item.active {
    background-color: rgba(99, 102, 241, 0.2);
    border-left: 3px solid #6366f1;
}

/* Animación para cuando cambia la canción */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Custom volume slider */
input[type=range] {
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #4a5568;
    border-radius: 2px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #a78bfa;
    margin-top: -6px;
    transition: background .2s;
}

input[type=range]:hover::-webkit-slider-thumb {
    background: #8b5cf6;
}

/* Shuffle and Repeat buttons active state */
#shuffle-btn.active, #repeat-btn.active {
    color: #8b5cf6;
}
