/* Playlists Section */
.playlists-section {
    background: #000;
    padding: 80px 20px;
    position: relative;
}

.playlists-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Playlists Heading */
.playlists-heading {
    font-family: "Anton", sans-serif;
    font-size: 2rem;
    font-weight: 400;
    color: white;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 4px;
}

/* Playlists Grid */
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(3, 381px);
    gap: 30px;
    margin-bottom: 60px;
    justify-content: center;
}

/* Playlist Card */
.playlist-card {
    background: #131316;
    border-radius: 8px;
    overflow: hidden;
    width: 381px;
    height: 485px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-card:hover {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

/* Playlist Image */
.playlist-image {
    width: 333px;
    height: 286px;
    overflow: hidden;
    margin: 24px auto 0;
}

.playlist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.playlist-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.playlist-card:hover .playlist-image img {
    transform: scale(1.05);
}

/* Playlist Details */
.playlist-details {
    padding: 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.playlist-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.81rem;
    font-weight: 400;
    color: #9AA4B2;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.playlist-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #E5E5E5;
    margin-bottom: 20px;
}

.play-now-btn {
    width: 188px;
    padding: 10px 24px;
    background: transparent;
    border: 0.5px solid #FFFFFF38;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
}

.play-now-btn:hover {
    background: white;
    color: #000;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .playlists-grid {
        grid-template-columns: repeat(auto-fit, 381px);
    }
}

@media (max-width: 768px) {
    .playlists-section {
        padding: 60px 0;
    }

    .playlists-heading {
        font-size: 2rem;
        margin-bottom: 40px;
        padding: 0 20px;
    }

    /* Horizontal scroll for mobile */
    .playlists-grid {
        display: flex;
        grid-template-columns: none;
        gap: 20px;
        margin-bottom: 40px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 20px;
        justify-content: flex-start;
    }

    /* Hide scrollbar but keep functionality */
    .playlists-grid::-webkit-scrollbar {
        display: none;
    }

    .playlists-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .playlist-card {
        width: 381px;
        min-width: 381px;
        height: 485px;
        flex-shrink: 0;
        scroll-snap-align: start;
        margin: 0;
    }

    .playlist-image {
        width: 333px;
        height: 286px;
    }
}

@media (max-width: 480px) {
    .playlists-section {
        padding: 40px 15px;
    }

    .playlists-heading {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }

    .playlist-card {
        max-width: 100%;
        height: auto;
    }

    .playlist-image {
        width: 90%;
        height: auto;
        aspect-ratio: 333 / 286;
    }

    .playlist-title {
        font-size: 1.25rem;
    }
}