.spotify-container {
    padding: 2rem 0;
}

.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.playlist-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 248, 230, 0.7) 100%);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(139, 111, 58, 0.1);
    box-shadow: 0 10px 40px rgba(139, 111, 58, 0.08);
    backdrop-filter: blur(10px);
}

.playlist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(139, 111, 58, 0.15);
}

.playlist-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.playlist-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #2A2A2A;
}

.playlist-info p {
    color: #666;
    font-size: 0.9rem;
}

.player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    box-shadow: 0 -10px 30px rgba(139, 111, 58, 0.1);
    z-index: 1000;
}

.now-playing {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.track-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#albumArt {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.track-details h3 {
    font-size: 1.2rem;
    color: #2A2A2A;
    margin-bottom: 0.3rem;
}

.track-details p {
    color: #666;
    font-size: 0.9rem;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
}

.control-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #6B9B7F;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(107, 155, 127, 0.1);
    transform: scale(1.1);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(107, 155, 127, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #8B6F3A, #6B9B7F);
    width: 0%;
    transition: width 0.1s linear;
}

.track-list {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.track-item:hover {
    background: rgba(107, 155, 127, 0.1);
}

.track-item img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    margin-right: 1rem;
}

.track-item-info {
    flex: 1;
}

.track-item-info h4 {
    font-size: 1rem;
    color: #2A2A2A;
    margin-bottom: 0.2rem;
}

.track-item-info p {
    font-size: 0.8rem;
    color: #666;
}

.track-duration {
    color: #666;
    font-size: 0.9rem;
    margin-left: 1rem;
}

@media (max-width: 768px) {
    .playlist-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .player-container {
        padding: 1rem;
    }

    .track-info {
        gap: 1rem;
    }

    #albumArt {
        width: 50px;
        height: 50px;
    }

    .control-btn {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .playlist-grid {
        grid-template-columns: 1fr;
    }

    .track-info {
        flex-direction: column;
        text-align: center;
    }

    .player-controls {
        gap: 1rem;
    }
}

.error-message {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease-out;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
} 