/* Public playlist index — /vip/playlists (phase 2, stage B).
   The tab bar / breadcrumb / dropdown reuse /vip-videos' own CSS classes
   (category-tabs, tab-category, form-control-dark, ...) verbatim, so only
   the card grid itself needs page-specific styling here. */

.playlists-index__empty {
    margin: 2rem 0;
    opacity: 0.7;
}

/* ---- grid: four covers across, portrait only (per the wireframe note —
   a 2:3 card is narrower than a 16:9 one, so three across looks sparse) ---- */
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem 1.25rem;
    text-align: left;
    padding: 0.5rem 0 2.5rem;
}

.playlist-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.playlist-card__cover {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 0.5rem;
    overflow: hidden;
    background: rgba(128, 128, 128, 0.15);
}

.playlist-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.playlist-card:hover .playlist-card__cover img {
    transform: scale(1.04);
}

/* Title + count sit on the cover itself, same treatment as the model
   photo-gallery cards (a bottom gradient keeps white text readable over
   any image) rather than as plain text below the image. */
.playlist-card__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.5rem 0.9rem 0.85rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.playlist-card__title {
    display: block;
    color: #fff;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
}

.playlist-card:hover .playlist-card__title {
    text-decoration: underline;
}

.playlist-card__count {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

/* two lines, hard cap — a playlist card is a cover, not an article */
.playlist-card__desc {
    margin-top: 0.4rem;
    font-size: 0.82rem;
    line-height: 1.4;
    opacity: 0.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .playlists-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .playlists-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem 0.9rem;
    }
}
