/* =========================================================
   PLAYLISTS.CSS
   Page-specific styles for playlists.asp

   Was an inline <style> block built by string concatenation in the
   page's extraHead. Moved out for three reasons: editors parse the
   VBScript string as CSS and flag false errors on every line, the
   browser cannot cache it separately from the HTML, and a stray
   quote in the concatenation would have broken the whole page.
   ========================================================= */

.pl-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 60px 90px;
}

.pl-intro {
    color: #cfcfcf;
    font-size: 17px;
    line-height: 1.8;
    max-width: 720px;
    margin-bottom: 40px;
}

.pl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 32px;
}

.pl-card {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
}


/* =========================================================
   MEDIA / FACADE
   ========================================================= */

.pl-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

    .pl-media iframe {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }

.pl-facade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: #000;
    display: block;
}

    .pl-facade img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.85;
        transition: opacity 0.25s ease, transform 0.35s ease;
    }

    .pl-facade:hover img,
    .pl-facade:focus-visible img {
        opacity: 1;
        transform: scale(1.03);
    }

.pl-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(214,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: transform 0.25s ease, background 0.25s ease;
}

.pl-facade:hover .pl-play {
    transform: translate(-50%, -50%) scale(1.09);
    background: #d60000;
}

.pl-play svg {
    width: 26px;
    height: 26px;
    fill: #fff;
    margin-left: 4px;
}


/* =========================================================
   COMING SOON PLACEHOLDER
   Shown when a curator's YouTube id is blank in playlists.asp.
   ========================================================= */

.pl-soon {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(47,125,255,0.10), rgba(214,0,0,0.10)), #111;
    color: #8a8a8a;
    text-align: center;
    padding: 20px;
}

    .pl-soon strong {
        color: #c8c8c8;
        font-size: 15px;
        font-weight: 800;
    }

    .pl-soon span {
        font-size: 13px;
    }


/* =========================================================
   CARD BODY
   ========================================================= */

.pl-body {
    padding: 22px 24px 26px;
}

.pl-curator {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

    .pl-curator h2 {
        font-size: 21px;
        font-weight: 900;
        letter-spacing: -0.3px;
    }

.pl-role {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #888;
}

.pl-blurb {
    color: #aaa;
    font-size: 14.5px;
    line-height: 1.75;
}

.pl-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 44px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {
    .pl-wrap {
        padding: 0 20px 70px;
    }

    .pl-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pl-facade img,
    .pl-play {
        transition: none;
    }

    .pl-facade:hover img {
        transform: none;
    }
}
