/* Spotify Widget Styles */
.spotify-widget {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 1);
    position: relative;
    overflow: hidden;
    display: none; /* Hidden by default, shown by JS when playing */
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.spotify-widget.show {
    opacity: 1;
    transform: translateY(0);
}


.spotify-widget__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.spotify-widget__logo {
    display: inline-block;
    color: #1db954;
    text-decoration: none;
    font-size: 18px;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.spotify-widget__status {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
    margin: 0;
    font-weight: 500;
}

.spotify-widget__content {
    color: rgba(0, 0, 0, 0.8);
}

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

.spotify-widget__album-art {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    transform: scale(0.9);
}

.spotify-widget__album-art.loaded {
    opacity: 1;
    transform: scale(1);
}

.spotify-widget__album-art:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.spotify-widget__track-info {
    flex: 1;
    min-width: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.spotify-widget__track-info.loaded {
    opacity: 1;
    transform: translateX(0);
}

.spotify-widget__track-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spotify-widget__artist {
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 2px;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spotify-widget__album {
    color: rgba(0, 0, 0, 0.6);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spotify-widget__progress {
    background-color: rgba(0, 0, 0, 0.1);
    height: 4px;
    border-radius: 2px;
    margin: 10px 0;
    overflow: hidden;
}

.spotify-widget__progress-fill {
    height: 100%;
    background: rgb(0, 0, 0);
    transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px;
    transform-origin: left;
}

.spotify-widget__time {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    font-family: monospace;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.spotify-widget__time.loaded {
    opacity: 1;
    transform: translateY(0);
}

.spotify-widget__auth-link {
    color: #1db954;
    text-decoration: none;
    font-weight: 500;
}

.spotify-widget__auth-link:hover {
    text-decoration: underline;
}
