/* Spotify Player Styles */
.spotify-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 280px;
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.spotify-container.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.spotify-player {
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.spotify-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-alt), var(--accent));
    opacity: 0.7;
}

.spotify-player:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.spotify-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.spotify-header i {
    color: #1DB954;
    font-size: 1.2rem;
}

.spotify-content {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.spotify-album-art {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spotify-disc {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #000;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(29, 185, 84, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(29, 185, 84, 0);
    }
}

#spotify-album-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: rotate 20s linear infinite;
    animation-play-state: running;
}

.spotify-track-info {
    flex-grow: 1;
    overflow: hidden;
}

.spotify-track-name {
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
    animation: marquee 10s linear infinite;
    animation-play-state: paused;
}

.spotify-track-name:hover {
    animation-play-state: running;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.spotify-artist-name {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-progress {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 5px;
}

.spotify-progress-bar {
    height: 100%;
    background: #1DB954;
    width: 0%;
    transition: width 1s linear;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .spotify-container {
        bottom: 10px;
        right: 10px;
        width: 220px;
    }
    
    .spotify-album-art {
        width: 50px;
        height: 50px;
    }
}
