/* =============================================
   Spotify Now Playing — Spotify Design System
   ============================================= */

.spotify-now-playing {
    --sp-green:        #1DB954;
    --sp-green-hover:  #1ed760;
    --sp-text:         #FFFFFF;
    --sp-text-sub:     rgba(255,255,255,.7);
    --sp-text-muted:   rgba(255,255,255,.4);
    --sp-border:       rgba(255,255,255,.08);
    --sp-surface:      rgba(255,255,255,.05);
    --sp-radius:       4px;
    --sp-radius-pill:  500px;
    --sp-transition:   0.15s ease;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 20px;
    border-radius: 8px;
    background: #282828;
}

/* -- Track layout -- */
.spotify-now-playing .track-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.spotify-now-playing .track-artwork {
    flex-shrink: 0;
}

.spotify-now-playing .track-artwork img {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: var(--sp-radius);
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0,0,0,.4);
}

.spotify-now-playing .track-details {
    flex: 1;
    min-width: 0;
}

/* -- Typography -- */
.spotify-now-playing .track-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--sp-text);
    line-height: 1.3;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-now-playing .track-artist {
    font-size: 13px;
    color: var(--sp-text-sub);
    line-height: 1.4;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-now-playing .track-album {
    font-size: 12px;
    color: var(--sp-text-muted);
    line-height: 1.4;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -- Progress bar -- */
.spotify-now-playing .progress-bar {
    height: 4px;
    background: var(--sp-border);
    border-radius: var(--sp-radius-pill);
    overflow: hidden;
    margin-bottom: 10px;
    cursor: default;
}

.spotify-now-playing .progress-bar .progress {
    height: 100%;
    background: var(--sp-green);
    border-radius: var(--sp-radius-pill);
    transition: width 0.5s linear;
}

/* -- Listen Now button -- */
.spotify-now-playing .listen-now {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--sp-green);
    color: #000;
    text-decoration: none;
    padding: 5px 14px;
    border-radius: var(--sp-radius-pill);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background var(--sp-transition), transform var(--sp-transition);
}

.spotify-now-playing .listen-now:hover {
    background: var(--sp-green-hover);
    color: #000;
    transform: scale(1.02);
}

.spotify-now-playing .listen-now svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
    flex-shrink: 0;
}

/* -- Empty state -- */
.spotify-now-playing .no-track-playing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 16px;
    font-size: 13px;
    color: var(--sp-text-muted);
    text-align: center;
}

.spotify-now-playing .no-track-playing::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sp-text-muted);
    flex-shrink: 0;
}

/* -- Reduced motion -- */
@media (prefers-reduced-motion: reduce) {
    .spotify-now-playing .progress-bar .progress,
    .spotify-now-playing .listen-now {
        transition: none;
    }
}
