/* Public playlist landing page — /playlist/{slug} (phase 2, stage A).
   Structure only; colours/typography lean on the site's existing tokens. */

.playlist-page {
    padding-top: 1.5rem;
}

/* ---- hero ---- */
.playlist-hero {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
    margin: 0.5rem 0 2.5rem;
}

.playlist-hero__cover {
    flex: 0 0 auto;
    width: 140px;
    max-width: 28vw;
}

.playlist-hero__cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 0.5rem;
    display: block;
}

.playlist-hero__body {
    flex: 1 1 auto;
    min-width: 0;
}

.playlist-hero__title {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0 0 0.75rem;
}

.playlist-hero__desc {
    max-width: 60ch;
    margin: 0 0 1.25rem;
    line-height: 1.55;
    opacity: 0.9;
}

.playlist-hero__play {
    display: inline-block;
}

.playlist-hero__empty {
    margin: 0;
    opacity: 0.7;
}

/* ---- numbered list ---- */
.playlist-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(128, 128, 128, 0.25);
}

.playlist-item:last-child {
    border-bottom: 1px solid rgba(128, 128, 128, 0.25);
}

.playlist-item__num {
    flex: 0 0 1.75rem;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    opacity: 0.55;
}

.playlist-item__thumb {
    position: relative;
    flex: 0 0 auto;
    width: 160px;
    aspect-ratio: 16 / 9;
    border-radius: 0.4rem;
    overflow: hidden;
    background: rgba(128, 128, 128, 0.15);
    display: block;
}

.playlist-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.playlist-item__dur {
    position: absolute;
    right: 0.35rem;
    bottom: 0.35rem;
    padding: 0.05rem 0.35rem;
    font-size: 0.75rem;
    line-height: 1.4;
    border-radius: 0.25rem;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
}

.playlist-item__body {
    flex: 1 1 auto;
    min-width: 0;
}

.playlist-item__title {
    display: block;
    font-weight: 600;
    line-height: 1.35;
    color: inherit;
    text-decoration: none;
}

.playlist-item__title:hover {
    text-decoration: underline;
}

.playlist-item__meta {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    opacity: 0.6;
}

.playlist-item__meta span + span::before {
    content: "\00b7";
    margin: 0 0.4rem;
}

/* ---- phone ---- */
@media (max-width: 575.98px) {
    .playlist-hero {
        gap: 1.1rem;
        margin-bottom: 1.75rem;
    }

    .playlist-hero__cover {
        width: 100px;
    }

    .playlist-item__thumb {
        width: 116px;
    }

    .playlist-item__num {
        flex-basis: 1.25rem;
        font-size: 0.9rem;
    }
}
