.spotify-widget {
    background: #121212;
    color: white;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    max-width: 400px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    min-height: 90px;
}

.spotify-art {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background: #282828;
    border-radius: 4px;
    overflow: hidden;
}

.spotify-art img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
    display: block;
}

.spotify-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0; /* Importante para text-overflow */
}

#spotify-song {
    font-weight: bold;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
}

#spotify-artist {
    color: #a7a7a7;
    font-size: 0.9em;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-progress {
    height: 4px;
    background: #282828;
    border-radius: 2px;
    overflow: hidden;
    margin-top: auto;
}

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

/* Estados de carga y error */
.spotify-widget.loading .spotify-art {
    opacity: 0.5;
}

.spotify-widget.error {
    opacity: 0.8;
}
