/* Elsewhere Spotify: decorative motion, independent of actual playback. */
.spotify-player {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 18px 4px 4px;
    width: 168px;
}

.spotify-bounce {
    display: block;
    width: 100px;
    height: 100px;
    animation: spotify-bounce 4.8s ease-in-out infinite;
}

.spotify-waves {
    display: block;
    width: 160px;
    height: 40px;
    pointer-events: none;
}

.spotify-player:focus-visible .spotify-bounce {
    animation-play-state: paused;
}

@keyframes spotify-bounce {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-14px) rotate(3deg); }
}

@media (max-width: 700px) {
    .spotify-player { width: 128px; }
    .spotify-bounce { width: 88px; height: 88px; }
    .spotify-waves { width: 120px; }
}

/* Hover turns the imaginary volume up. Keyboard focus gets the same effect. */
.spotify-bounce {
    transition: transform 0.3s ease-out, filter 0.3s ease-out;
}

.spotify-waves {
    transform-origin: center;
}

.spotify-player:hover .spotify-bounce,
.spotify-player:focus-visible .spotify-bounce {
    animation: none;
    transform: translateY(-10px) rotate(12deg) scale(1.08);
    filter: drop-shadow(0 5px 7px rgba(29, 185, 84, 0.3));
}

.spotify-player:hover .spotify-waves,
.spotify-player:focus-visible .spotify-waves {
    animation: spotify-volume-up 0.65s ease-in-out infinite alternate;
}

@keyframes spotify-volume-up {
    from { transform: scale(1.03, 1.15); }
    to { transform: scale(1.08, 1.55); }
}
