/* Spotify Dance Mode styles — Bella (AmoCraft) */

#spotify-wrap {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    z-index: 100;
    pointer-events: auto;
}

/* --- Dance Mode button --- */
.spotify-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(30, 215, 96, 0.15);
    border: 1px solid rgba(30, 215, 96, 0.5);
    border-radius: 24px;
    color: #1ed760;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.spotify-btn:hover {
    background: rgba(30, 215, 96, 0.25);
    border-color: #1ed760;
}

.spotify-btn.active {
    background: rgba(30, 215, 96, 0.35);
    border-color: #1ed760;
    box-shadow: 0 0 12px rgba(30, 215, 96, 0.4);
    animation: spotify-pulse 2s ease-in-out infinite;
}

@keyframes spotify-pulse {
    0%, 100% { box-shadow: 0 0 12px rgba(30, 215, 96, 0.4); }
    50%       { box-shadow: 0 0 22px rgba(30, 215, 96, 0.7); }
}

/* --- Track bar (visible when active) --- */
.spotify-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(30, 215, 96, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    min-width: 240px;
    max-width: 340px;
}

.spotify-bar.hidden {
    display: none;
}

.spotify-track-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spotify-track-name {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-artist-name {
    color: #aaa;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Playback control buttons --- */
.spotify-controls {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.spotify-ctrl-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.spotify-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

/* --- Mobile adjustments --- */
@media (max-width: 480px) {
    #spotify-wrap {
        top: 12px;
        right: 12px;
    }
    .spotify-bar {
        max-width: calc(100vw - 32px);
    }
}
