

:root {

    --pl-ink: #1d151a;
    --pl-paper: #f8f5f6;
    --pl-card: #fff;
    --pl-line: #e2dade;
    --pl-dim: #6d626a;
    --pl-wash: #f1e9ee;

    --pl-accent: #a3236b;
    --pl-round: 10px;

    --pl-top-ground: #1a1119;
    --pl-top-ink: #f4eef2;
    --pl-top-accent: #d94f9a;
}

* { box-sizing: border-box; }

body {

    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: var(--pl-paper);
    color: var(--pl-ink);
    font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-variant-numeric: tabular-nums;
}


.pl-bounds {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.pl-main { padding-bottom: 48px; }




.pl-top {
    background: var(--pl-top-ground);
    border-bottom: 3px solid var(--pl-top-accent);
    color: var(--pl-top-ink);
}

.pl-top .pl-bounds,
.pl-foot .pl-bounds {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 11px;
    padding-bottom: 11px;
}


.pl-sign {
    display: inline-flex;

    align-items: baseline;
    gap: 10px;
    color: var(--pl-top-ink);
    text-decoration: none;
}

.pl-sign-mark {

    color: var(--pl-top-accent);
    flex: none;
    width: 34px;
    height: 34px;

    align-self: center;
}


.pl-sign-kick {
    font-size: 10px;
    letter-spacing: 0.42em;
    text-transform: uppercase;

    opacity: .55;

    margin-right: -0.42em;
}

.pl-sign-name {
    display: inline-block;
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.pl-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.pl-menu-link {

    color: #b7a8b1;
    text-decoration: none;
}

.pl-menu-link:hover { color: var(--pl-top-ink); }

.pl-menu-here {
    color: var(--pl-top-accent);
    font-weight: 600;
}


.pl-top :focus-visible { outline-color: var(--pl-top-accent); }



.pl-title {
    font-size: clamp(24px, 4.2vw, 33px);
    line-height: 1.2;
    margin: 26px 0 10px;
}

.pl-sub {
    font-size: 20px;
    margin: 34px 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--pl-accent);
}

.pl-main p { max-width: 68ch; }

.pl-lead {
    font-size: 18px;
    color: var(--pl-dim);
    margin: 0 0 18px;
}

.pl-fineprint {
    font-size: 13px;
    color: var(--pl-dim);
}

.pl-trail {
    font-size: 14px;
    color: var(--pl-dim);
    margin: 18px 0 0;
}

.pl-trail-link { color: var(--pl-dim); }

.pl-empty {
    padding: 18px;
    background: var(--pl-wash);
    border-radius: var(--pl-round);
}



.pl-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

.pl-fact,
.pl-fact-main {
    padding: 5px 11px;
    border: 1px solid var(--pl-line);
    border-radius: var(--pl-round);
    background: var(--pl-card);
    font-size: 14px;
}

.pl-fact-main {
    border-color: var(--pl-accent);
    color: var(--pl-accent);
    font-weight: 600;
}




.pl-places {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
    gap: 8px;
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
}

.pl-place-link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 13px;
    border: 1px solid var(--pl-line);
    border-radius: var(--pl-round);
    background: var(--pl-card);
    color: var(--pl-ink);
    text-decoration: none;
}

.pl-place-link:hover { border-color: var(--pl-accent); }


.pl-place-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pl-place-count {
    flex: none;
    font-size: 13px;
    color: var(--pl-dim);
}




.pl-main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    align-content: start;
    gap: 0 10px;
}


.pl-main > :not(.pl-entry) { grid-column: 1 / -1; }


.pl-entry {
    display: grid;
    grid-template-columns: 72px 1fr;
    grid-template-areas:
        "shot name"
        "shot facts";

    grid-template-rows: auto auto;
    align-content: start;
    gap: 2px 12px;
    padding: 10px;
    margin: 0 0 10px;
    border: 1px solid var(--pl-line);
    border-radius: var(--pl-round);
    background: var(--pl-card);

    position: relative;
    transition: border-color .12s, background-color .12s;
}


.pl-entry:hover {
    border-color: var(--pl-accent);
    background: var(--pl-wash);
}

.pl-entry:hover .pl-entry-link { color: var(--pl-accent); }

.pl-entry-name {
    grid-area: name;
    align-self: start;
    font-size: 17px;
    margin: 0;
    min-width: 0;
}

.pl-entry-link {
    color: var(--pl-ink);
    text-decoration: none;
}


.pl-entry-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: var(--pl-round);
}

.pl-entry-link:hover { color: var(--pl-accent); }


.pl-entry:has(.pl-entry-link:focus-visible) {
    outline: 3px solid var(--pl-accent);
    outline-offset: 2px;
}

.pl-entry-link:focus-visible { outline: none; }


@supports not selector(:has(*)) {
    .pl-entry-link:focus-visible {
        outline: 3px solid var(--pl-accent);
        outline-offset: 2px;
    }
}


.pl-entry-note {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--pl-dim);
    margin-top: 2px;
}

.pl-entry-shot {
    grid-area: shot;


    grid-row: 1 / 3;
    display: block;
    width: 72px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: calc(var(--pl-round) - 4px);
    background: var(--pl-wash);
}

.pl-entry-photo {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: 50% 22%;
    display: block;
}

.pl-entry-facts {
    grid-area: facts;
    align-self: start;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 0;
    font-size: 14px;
    color: var(--pl-dim);
}

.pl-entry-price {
    color: var(--pl-accent);
    font-weight: 600;
}


.pl-entry-film {
    border-bottom: 2px solid var(--pl-accent);
    padding-bottom: 1px;
    color: var(--pl-ink);
    font-size: 13px;
    white-space: nowrap;
}


.pl-entry:not(:has(.pl-entry-shot)) {
    grid-template-columns: 1fr;
    grid-template-areas: "name" "facts";
}



.pl-pairs {
    margin: 0 0 22px;
    padding: 0;
}

.pl-pair {
    display: flex;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid var(--pl-line);
}

.pl-pair-key {
    flex: 0 0 40%;
    max-width: 220px;
    color: var(--pl-dim);
    font-size: 14px;
}

.pl-pair-value {
    margin: 0;
    min-width: 0;
}

.pl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

.pl-tag {
    padding: 4px 10px;
    background: var(--pl-wash);
    border-radius: var(--pl-round);
    font-size: 14px;
}

.pl-notes {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

.pl-note {
    padding: 12px 14px;
    margin-bottom: 10px;
    background: var(--pl-card);
    border: 1px solid var(--pl-line);
    border-radius: var(--pl-round);
}

.pl-note p { margin: 0 0 6px; }
.pl-note p:last-child { margin-bottom: 0; }



.pl-action {
    display: inline-block;
    padding: 11px 20px;
    background: var(--pl-accent);
    color: #fff;
    border-radius: var(--pl-round);
    text-decoration: none;
    font-weight: 600;
}

.pl-action:hover { background: #7d1a52; }

.pl-action-quiet {
    background: transparent;
    color: var(--pl-accent);
    border: 1px solid var(--pl-accent);
}

.pl-action-quiet:hover {
    background: var(--pl-wash);
    color: var(--pl-accent);
}


.pl-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 40px 0 22px;
}

.pl-pager-link {
    padding: 9px 16px;
    border: 1px solid var(--pl-accent);
    border-radius: var(--pl-round);
    color: var(--pl-accent);
    text-decoration: none;
}

.pl-pager-back { border-color: var(--pl-line); color: var(--pl-dim); }

.pl-pager-number, .pl-pager-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border-radius: var(--pl-round);
    font-size: 15px;
}

.pl-pager-number { border: 1px solid var(--pl-line); color: var(--pl-ink); text-decoration: none; }
.pl-pager-number:hover { border-color: var(--pl-accent); color: var(--pl-accent); }

.pl-pager-current { background: var(--pl-accent); color: #fff; font-weight: 600; }

.pl-pager-gap { color: var(--pl-dim); padding: 0 2px; }




.pl-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    margin: 0 0 24px;
    -webkit-overflow-scrolling: touch;
}

.pl-thumb {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: block;

    width: 120px;
    height: 160px;
    overflow: hidden;
    border-radius: var(--pl-round);
    background: var(--pl-wash);
}

.pl-thumb-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 22%;
    display: block;
}

.pl-shot { margin: 0 0 20px; }

.pl-shot-photo {
    border-radius: var(--pl-round);
    max-width: 100%;
    height: auto;
}




.pl-viewer {
    display: none;
}

.pl-viewer:has(.pl-frame:target) {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 20;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    background: #120b10;
}

.pl-frame {
    display: none;
    margin: 0;
}

.pl-viewer:has(.pl-frame:target) .pl-frame {
    display: flex;
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: center;
    align-items: center;
    justify-content: center;
}

.pl-frame-photo {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
}



.pl-thumb-film {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 120px;
    height: 160px;
    background: #17141a;
}

.pl-thumb-film .pl-thumb-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.pl-thumb-film::after {
    content: "";
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-42%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 17px;
    border-color: transparent transparent transparent #fff;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
    pointer-events: none;
}


.pl-frame-film-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(60vw, 480px, calc(78vh * 3 / 4));
    aspect-ratio: 3 / 4;
    background: linear-gradient(150deg, #2a1622, #120b10);
}

.pl-frame-film-poster {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.pl-frame-film-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(18, 11, 16, 0.6);
    display: grid;
    place-items: center;
}

.pl-frame-film-play::after {
    content: "";
    border-style: solid;
    border-width: 16px 0 16px 26px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}


.pl-player {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(9, 5, 8, 0.92);
}

.pl-player[hidden] { display: none; }

.pl-player-video {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #000;
}

.pl-player-shut {
    position: fixed;
    top: 14px;
    right: 16px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 11, 16, 0.7);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    border: 0;
    cursor: pointer;
}

.pl-player-shut:hover { background: rgba(18, 11, 16, 0.9); }

@supports not selector(:has(*)) {
    .pl-viewer {
        display: block;
        position: static;
        background: none;
        overflow: visible;
    }

    .pl-viewer .pl-frame {
        display: block;
        position: static;
    }

    .pl-viewer .pl-arrow,
    .pl-viewer .pl-shut { display: none; }

    .pl-frame-photo { max-width: 100%; max-height: none; }
    .pl-frame-film-frame { width: min(100%, 480px); }

    .pl-frame-count {
        position: static;
        transform: none;
        color: var(--pl-dim);
    }
}

.pl-frame-count {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);

    padding: 2px 8px;
    border-radius: var(--pl-round);
    background: rgba(18, 11, 16, 0.55);
    color: #efe6ec;
    font-size: 13px;
}


.pl-arrow,
.pl-shut {
    position: absolute;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(18, 11, 16, 0.55);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    text-decoration: none;
}

.pl-arrow:hover,
.pl-shut:hover { background: rgba(18, 11, 16, 0.8); }

.pl-arrow-back { left: 12px; top: 50%; transform: translateY(-50%); }
.pl-arrow-on { right: 12px; top: 50%; transform: translateY(-50%); }
.pl-shut { top: 12px; right: 12px; font-size: 26px; }



.pl-foot {
    border-top: 1px solid var(--pl-line);
    background: var(--pl-card);
}

.pl-foot-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.pl-foot-link {
    color: var(--pl-dim);
    font-size: 14px;
}




:focus-visible {
    outline: 3px solid var(--pl-accent);
    outline-offset: 2px;
    border-radius: 3px;
}

.pl-viewer :focus-visible {
    outline-color: #fff;
}



@media (max-width: 560px) {
    .pl-top .pl-bounds,
    .pl-foot .pl-bounds {
        justify-content: flex-start;
    }

    .pl-thumb { width: 104px; height: 139px; }

    .pl-pair {
        flex-direction: column;
        gap: 2px;
    }

    .pl-pair-key { flex: none; max-width: none; }
}


@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
}


main.pl-main { flex: 1 0 auto; }
