/* Spotify Card Styles */
.spotify-card {
    background: linear-gradient(135deg, #1DB954 0%, #191414 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(29, 185, 84, 0.3);
    min-height: 300px;
    max-width: 400px;
    margin: 0 auto;
}

.spotify-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(29, 185, 84, 0.4);
}

.spotify-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.75rem;
}

.spotify-icon {
    color: #1DB954;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.spotify-header h4 {
    color: white !important;
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
}

.spotify-tracks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.spotify-tracks::-webkit-scrollbar {
    width: 4px;
}

.spotify-tracks::-webkit-scrollbar-track {
    background: transparent;
}

.spotify-tracks::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.track-image {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.track-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.track-item:hover .play-overlay {
    opacity: 1;
}

.play-button {
    background: #1DB954;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.play-button:hover:not(:disabled) {
    background: #1ed760;
    transform: scale(1.1);
}

.play-button:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.play-button.playing {
    background: #ff6b6b;
}

.play-button.playing:hover {
    background: #ff5252;
}

.play-overlay.no-preview .play-button {
    background: #666;
    cursor: not-allowed;
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.track-artist {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-actions {
    flex-shrink: 0;
}

.spotify-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spotify-link:hover {
    color: #1DB954;
    background: rgba(255, 255, 255, 0.1);
}

.loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    padding: 2rem 0;
}

/* Dark mode adjustments */
body.dark-mode .spotify-card {
    /* Spotify card looks good in both modes, minimal changes needed */
    box-shadow: 0 10px 30px rgba(29, 185, 84, 0.2);
}

body.dark-mode .spotify-card:hover {
    box-shadow: 0 20px 40px rgba(29, 185, 84, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .spotify-card {
        max-width: 100%;
        margin: 0;
    }
    
    .track-item {
        gap: 0.5rem;
        padding: 0.4rem;
    }
    
    .track-image {
        width: 40px;
        height: 40px;
    }
    
    .play-button {
        width: 28px;
        height: 28px;
    }
    
    .track-name {
        font-size: 0.85rem;
    }
    
    .track-artist {
        font-size: 0.75rem;
    }
}