/*
 * PlutoMovies v2 — download page (dl.plutomovies.com). Mockup: design/pluto-v2-mockup.
 * Theme: "your new planet of latest movies" — deep space, a warm Pluto-orange ticket button,
 * icy lavender details. Mobile first; 900px switches to the wide cinematic layout.
 */

/* ---------- Tokens ---------- */
:root {
    --space: #05040b;
    --space-2: #0c0a18;
    --panel: rgba(22, 19, 40, .72);
    --panel-solid: #15122a;
    --panel-2: #1e1a38;
    --rim: rgba(185, 168, 255, .14);
    --rim-strong: rgba(185, 168, 255, .28);

    --ice: #b9a8ff;        /* icy lavender: links, chips, rings */
    --ice-soft: #d9d0ff;
    --ice-tint: rgba(185, 168, 255, .12);

    --sun: #ffc15e;        /* Pluto orange: the download ticket */
    --flare: #ff8a3d;
    --ember: #f2652b;
    --sun-glow: rgba(255, 138, 61, .45);

    --text: #f3f0ff;
    --text-2: #c4bedc;
    --muted: #8a84a6;
    --warn: #ffcf6b;
    --danger: #ff8f86;

    --telegram: #2aa1da;
    --whatsapp: #25d366;

    --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-pill: 999px;
    --gutter: 16px;
}

/* ---------- Base + starfield ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--space); }
body {
    margin: 0; min-height: 100vh;
    color: var(--text); font: 15px/1.5 var(--font);
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(120% 60% at 15% -10%, rgba(109, 74, 255, .28), transparent 60%),
        radial-gradient(90% 50% at 110% 30%, rgba(25, 195, 195, .10), transparent 60%),
        radial-gradient(70% 40% at 50% 110%, rgba(255, 138, 61, .08), transparent 70%),
        var(--space);
    /* part of the "no copying" deterrent; inputs opt back in below */
    -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
body::before {
    /* two layers of tiny stars, drawn with gradients: no image to download */
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, .55), transparent 60%),
        radial-gradient(1px 1px at 120px 80px, rgba(255, 255, 255, .35), transparent 60%),
        radial-gradient(1.5px 1.5px at 60px 150px, rgba(217, 208, 255, .5), transparent 60%),
        radial-gradient(1px 1px at 170px 190px, rgba(255, 255, 255, .3), transparent 60%);
    background-size: 200px 220px;
    opacity: .7;
}
input, textarea { -webkit-user-select: text; user-select: text; }
img { display: block; max-width: 100%; -webkit-user-drag: none; }
a { color: var(--ice); text-decoration: none; }
button { font: inherit; color: inherit; }
.pl-i { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-hide, .aab-hide { display: none !important; }
.pl-wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.pl-top .pl-wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.pl-brand { display: flex; align-items: center; gap: 9px; color: var(--text); font: 700 18px/1 var(--display); letter-spacing: -.02em; }
.pl-brand svg { width: 28px; height: 28px; }
.pl-brand em { font-style: normal; color: var(--ice); }
.pl-top-link {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
    border-radius: var(--r-pill); border: 1px solid var(--rim-strong);
    color: var(--text-2); font-size: 13px; font-weight: 600;
}
.pl-top-link .pl-i { width: 15px; height: 15px; }

/* one quiet line instead of a box */
.pl-note {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin: 0 auto; padding: 0 var(--gutter);
    color: var(--muted); font-size: 12px; text-align: center;
}
.pl-note a { font-weight: 700; }
.pl-note-x { width: 22px; height: 22px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pl-note-x .pl-i { width: 13px; height: 13px; }

/* ---------- Hero: poster in orbit ---------- */
.pl-hero { position: relative; display: grid; justify-items: center; text-align: center; padding-top: 16px; padding-bottom: 4px; }
.pl-orbit { position: relative; width: 118px; height: 166px; margin-bottom: 14px; }
.pl-orbit::before {
    /* the ring: a tilted ellipse that passes behind the poster */
    content: ""; position: absolute; left: 50%; top: 50%; width: 240px; height: 74px;
    border-radius: 50%; border: 1.5px solid var(--rim-strong);
    transform: translate(-50%, -50%) rotate(-14deg);
    box-shadow: 0 0 22px rgba(185, 168, 255, .12);
}
.pl-orbit::after {
    /* a small moon riding the ring */
    content: ""; position: absolute; left: calc(50% + 104px); top: calc(50% - 30px);
    width: 9px; height: 9px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff, var(--ice) 60%, #6d4aff);
    box-shadow: 0 0 12px var(--ice);
}
.pl-poster {
    position: relative; z-index: 1; width: 100%; height: 100%;
    border-radius: 14px; overflow: hidden; background: var(--panel-2);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8), 0 0 0 1px var(--rim);
}
.pl-poster img { width: 100%; height: 100%; object-fit: cover; }
.pl-poster--planet { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, var(--panel-2), var(--space-2)); }
.pl-poster--planet svg { width: 64px; height: 64px; }
.pl-glow {
    /* the poster's own colours, blurred, as light behind it */
    position: absolute; z-index: -1; left: 50%; top: 10px; width: 220px; height: 220px;
    transform: translateX(-50%); border-radius: 50%; overflow: hidden; opacity: .45; filter: blur(40px);
}
.pl-glow img { width: 100%; height: 100%; object-fit: cover; }

.pl-kicker { margin: 0 0 4px; color: var(--ice); font: 700 11px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; }
.pl-title {
    margin: 0; max-width: 22ch; font: 700 23px/1.15 var(--display); letter-spacing: -.02em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}

/* ticket-stub meta row */
.pl-stub {
    display: flex; margin: 12px 0 0; padding: 0;
    border: 1px solid var(--rim); border-radius: var(--r-md); background: var(--panel);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pl-stub > div { padding: 6px 12px; min-width: 0; }
.pl-stub > div + div { border-left: 1.5px dashed var(--rim-strong); }
.pl-stub dt { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pl-stub dd { margin: 1px 0 0; font: 700 13.5px/1.2 var(--display); white-space: nowrap; }

/* ---------- Download ticket ---------- */
.pl-actions { display: grid; gap: 10px; width: 100%; margin-top: 18px; }
.pl-ticket {
    --notch: 11px;
    position: relative; display: flex; align-items: stretch;
    width: 100%; min-height: 64px; padding: 0; border: 0; cursor: pointer;
    color: #2a1200; text-align: left;
    background: linear-gradient(100deg, var(--sun), var(--flare) 60%, var(--ember));
    border-radius: 14px;
    /* round notches cut into both sides, like a cinema ticket */
    -webkit-mask: radial-gradient(circle var(--notch) at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle var(--notch) at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle var(--notch) at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle var(--notch) at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
    filter: drop-shadow(0 12px 22px var(--sun-glow));
    -webkit-tap-highlight-color: transparent;
    transition: transform .12s ease, filter .2s ease;
}
.pl-ticket:active { transform: scale(.985); }
@media (hover: hover) { .pl-ticket:hover { filter: drop-shadow(0 14px 28px var(--sun-glow)) brightness(1.04); } }
.pl-ticket-main { flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 14px 0 24px; min-width: 0; }
.pl-ticket-main .pl-i { width: 24px; height: 24px; stroke-width: 2.4; }
.pl-ticket-label { font: 700 18px/1.1 var(--display); letter-spacing: -.01em; }
.pl-ticket-label small { display: block; margin-top: 2px; font: 600 11.5px/1 var(--font); opacity: .75; letter-spacing: .02em; }
.pl-ticket-stub {
    display: grid; place-items: center; padding: 0 22px 0 16px;
    border-left: 2px dashed rgba(42, 18, 0, .35);
    font: 700 14px/1.1 var(--display); text-align: center; white-space: nowrap;
}
.pl-ticket-stub small { display: block; font: 700 9.5px/1 var(--font); letter-spacing: .14em; opacity: .7; }

.pl-sub {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 50px; padding: 0 16px; cursor: pointer;
    border-radius: var(--r-md); border: 1px solid var(--rim-strong);
    background: var(--panel); color: var(--ice-soft);
    font: 700 15.5px/1 var(--display);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pl-sub .pl-i { color: var(--ice); }
.pl-sub span:last-child { padding: 3px 8px; border-radius: var(--r-pill); background: var(--ice-tint); color: var(--ice); font-size: 11.5px; }
@media (hover: hover) { .pl-sub:hover { border-color: var(--ice); } }

/* #dl-btn-wrapper > .ad-slot: ad blockers hide .ad-slot, which shows the #aab-message below */
.pl-btns { display: grid; gap: 10px; }

/* while dl-link.js fetches the link */
.pl-ticket.is-busy, .pl-sub.is-busy { opacity: .8; cursor: progress; }
.pl-ticket.is-busy .pl-ticket-main .pl-i, .pl-sub.is-busy .pl-i { animation: pl-bob .7s ease-in-out infinite alternate; }
@keyframes pl-bob { to { transform: translateY(3px); } }

.pl-aab {
    padding: 12px; border-radius: var(--r-md); text-align: left;
    background: rgba(255, 143, 134, .1); border: 1px solid rgba(255, 143, 134, .35);
    color: #ffd6d2; font-size: 13.5px; line-height: 1.45;
}
.pl-aab b { color: #fff; }

.pl-audio-frame { display: block; width: 100%; height: 96px; border: 0; }

.pl-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--muted); }
.pl-links a { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); }
.pl-links a .pl-i { width: 14px; height: 14px; }
.pl-links .pl-report { color: var(--danger); }

.pl-signal {
    display: flex; gap: 9px; align-items: flex-start; text-align: left;
    padding: 10px 12px; border-radius: var(--r-md);
    background: rgba(255, 207, 107, .07); border: 1px solid rgba(255, 207, 107, .2);
    color: #ecd9a8; font-size: 12.5px; line-height: 1.45;
}
.pl-signal .pl-i { width: 16px; height: 16px; color: var(--warn); margin-top: 1px; }
.pl-signal b { color: #ffe3a1; }

.pl-msg { margin: 0; color: var(--danger); font-size: 13px; font-weight: 600; text-align: center; }

/* ---------- Player ---------- */
.pl-screen { margin-top: 18px; }
.pl-screen-label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--muted); font: 700 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.pl-screen-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--rim-strong), transparent); }
.pl-player {
    position: relative; overflow: hidden; aspect-ratio: 16 / 9;
    border-radius: var(--r-lg); background: #000;
    box-shadow: 0 0 0 1px var(--rim), 0 24px 50px -20px rgba(109, 74, 255, .45);
}
.pl-player iframe, .pl-player > img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.pl-player-play {
    position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; border: 0;
    display: grid; place-items: center; color: #2a1200;
    background: linear-gradient(135deg, var(--sun), var(--flare));
    box-shadow: 0 0 0 8px rgba(255, 138, 61, .18), 0 10px 30px rgba(0, 0, 0, .5);
}
.pl-player-play .pl-i { width: 26px; height: 26px; fill: currentColor; stroke: none; margin-left: 4px; }

/* ---------- Help: orbit-path steps ---------- */
.pl-help { margin-top: 18px; border-radius: var(--r-lg); border: 1px solid var(--rim); background: var(--panel); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pl-help > summary, .pl-foot-sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; -webkit-tap-highlight-color: transparent; }
.pl-help > summary::-webkit-details-marker, .pl-foot-sec > summary::-webkit-details-marker { display: none; }
.pl-help > summary { padding: 14px 16px; font: 700 15px/1.2 var(--display); }
.pl-help > summary .pl-i { color: var(--ice); }
.pl-help > summary span { flex: 1; }
.pl-chev { transition: transform .2s ease; color: var(--muted); }
details[open] > summary .pl-chev { transform: rotate(180deg); }
.pl-path { position: relative; margin: 0; padding: 2px 16px 16px 16px; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.pl-path::before {
    /* dotted flight path joining the steps */
    content: ""; position: absolute; left: 27px; top: 8px; bottom: 26px;
    border-left: 2px dotted var(--rim-strong);
}
.pl-path li { position: relative; counter-increment: s; padding-left: 36px; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.pl-path li::before {
    content: counter(s); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center; font: 700 12px/1 var(--display);
    background: var(--space-2); color: var(--ice); box-shadow: inset 0 0 0 1.5px var(--ice);
}
.pl-path b { color: var(--text); }
.pl-path .pl-vlc::before { color: var(--flare); box-shadow: inset 0 0 0 1.5px var(--flare); }

/* ---------- Ads + crew links ---------- */
.pl-ads { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.pl-crew { margin-top: 20px; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--rim); background: var(--panel); text-align: center; }
.pl-crew p { margin: 0 0 10px; color: var(--text-2); font: 700 14px/1.3 var(--display); }
.pl-crew div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pl-crew a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: var(--r-md); font-weight: 800; font-size: 14px; }
.pl-crew .pl-i { width: 18px; height: 18px; }
.pl-crew .is-tg { background: rgba(42, 161, 218, .15); border: 1px solid rgba(42, 161, 218, .4); color: #9bdaf8; }
.pl-crew .is-wa { background: rgba(37, 211, 102, .13); border: 1px solid rgba(37, 211, 102, .38); color: #8ef3b8; }

/* ---------- Footer ---------- */
.pl-foot { margin-top: 28px; border-top: 1px solid var(--rim); background: rgba(5, 4, 11, .6); }
.pl-foot-sec { border-bottom: 1px solid var(--rim); }
.pl-foot-sec > summary { padding: 14px 0; font: 700 14px/1.2 var(--display); }
.pl-foot-sec > summary span { flex: 1; }
.pl-foot-body { padding: 0 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.pl-foot-body p { margin: 0 0 6px; }
.pl-foot-body a { font-weight: 700; }
.pl-copy { margin: 0; padding: 16px 0 24px; text-align: center; color: var(--muted); font-size: 12px; }

/* ---------- Mini download bar: slides in once the ticket scrolls away ---------- */
.pl-dock {
    position: fixed; z-index: 30; left: 0; right: 0; top: 0;
    padding: 8px var(--gutter); padding-top: calc(8px + env(safe-area-inset-top));
    display: flex; align-items: center; gap: 10px;
    background: rgba(12, 10, 24, .9); border-bottom: 1px solid var(--rim);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    transform: translateY(-110%); transition: transform .25s ease;
}
.pl-dock.is-on { transform: none; }
.pl-dock img { width: 30px; height: 42px; border-radius: 6px; object-fit: cover; }
.pl-dock b { flex: 1; min-width: 0; font: 700 14px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-dock button {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
    border: 0; border-radius: var(--r-pill); cursor: pointer; color: #2a1200;
    background: linear-gradient(100deg, var(--sun), var(--flare));
    font: 700 14px/1 var(--display);
}
.pl-dock button .pl-i { width: 16px; height: 16px; stroke-width: 2.6; }

/* ---------- Desktop: wide cinematic band ---------- */
@media (min-width: 900px) {
    :root { --gutter: 28px; }
    .pl-top .pl-wrap { height: 68px; }
    .pl-band { position: relative; margin-top: 8px; }
    .pl-band::before {
        /* the poster, huge and blurred, as the band's backdrop */
        content: ""; position: absolute; inset: 0; z-index: -1;
        background: var(--pl-backdrop, none) center 30% / cover no-repeat;
        filter: blur(40px) brightness(.35) saturate(1.3); opacity: .9;
        -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent);
    }
    .pl-hero {
        grid-template-columns: 280px minmax(0, 1fr); column-gap: 56px; align-items: center;
        justify-items: start; text-align: left; padding-top: 36px; padding-bottom: 28px;
    }
    .pl-orbit { grid-row: span 6; width: 230px; height: 330px; margin: 0 auto; }
    .pl-orbit::before { width: 380px; height: 120px; }
    .pl-orbit::after { left: calc(50% + 168px); top: calc(50% - 50px); width: 12px; height: 12px; }
    .pl-glow { display: none; }
    .pl-title { font-size: 40px; max-width: 24ch; -webkit-line-clamp: 3; }
    .pl-kicker { font-size: 12px; }
    .pl-actions { width: 100%; max-width: 520px; }
    .pl-links { justify-content: flex-start; }
    .pl-ticket { min-height: 70px; }
    .pl-main-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
    .pl-main-grid > :only-child { grid-column: 1 / -1; max-width: 720px; justify-self: center; width: 100%; }
    .pl-screen, .pl-help { margin-top: 0; }
    .pl-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; padding-top: 22px; }
    .pl-foot-sec { border: 0; }
    .pl-foot-sec > summary { pointer-events: none; padding: 0 0 8px; color: var(--ice); }
    .pl-foot-sec > summary .pl-chev { display: none; }
    .pl-copy { border-top: 1px solid var(--rim); margin-top: 18px; }
    .pl-dock { left: 50%; right: auto; top: 12px; width: min(560px, 92vw); border-radius: var(--r-pill); border: 1px solid var(--rim-strong); transform: translate(-50%, -160%); padding: 6px 6px 6px 8px; }
    .pl-dock.is-on { transform: translate(-50%, 0); }
    .pl-dock img { width: 30px; height: 30px; border-radius: 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .pl-dock, .pl-chev, .pl-ticket { transition: none; }
}

/* =====================================================================
 * Main site pages (plutomovies.com): header + nav, sections, cards,
 * paging, post and series pages. Same tokens as the download page above.
 * ===================================================================== */

/* ---------- Site header ---------- */
.pl-top--site {
    position: sticky; top: 0; z-index: 20;
    background: rgba(5, 4, 11, .84); border-bottom: 1px solid var(--rim);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.pl-top--site .pl-wrap:first-child { gap: 12px; height: 54px; }
.pl-search {
    position: relative; flex: 1; max-width: 420px; margin: 0;
}
.pl-search .pl-i { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.pl-search input {
    width: 100%; height: 38px; padding: 0 12px 0 34px;
    border-radius: var(--r-pill); border: 1px solid var(--rim-strong);
    background: rgba(22, 19, 40, .8); color: var(--text);
    font: 500 14px/1 var(--font); outline: none; -webkit-appearance: none; appearance: none;
}
.pl-search input::placeholder { color: var(--muted); }
.pl-search input:focus { border-color: var(--ice); box-shadow: 0 0 0 3px var(--ice-tint); }
.pl-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.pl-top--site .pl-nav {
    display: flex; justify-content: flex-start; gap: 6px; height: auto; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none;
}
.pl-nav::-webkit-scrollbar { display: none; }
.pl-nav a {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 14px; border-radius: var(--r-pill);
    color: var(--text-2); font: 700 13.5px/1 var(--display); border: 1px solid transparent;
}
.pl-nav a .pl-i { width: 16px; height: 16px; }
.pl-nav a.is-on { color: #2a1200; background: linear-gradient(100deg, var(--sun), var(--flare)); }
@media (hover: hover) { .pl-nav a:not(.is-on):hover { border-color: var(--rim-strong); color: var(--text); } }
@media (max-width: 420px) {
    .pl-top--site .pl-brand { font-size: 0; gap: 0; }   /* planet only: the search box needs the room */
    .pl-top--site .pl-brand em { font-size: 0; }
    .pl-top--site .pl-nav { gap: 2px; }                 /* all four tabs fit on a 360px phone */
    .pl-top--site .pl-nav a { padding: 0 9px; gap: 5px; font-size: 13px; }
}

/* ---------- Page heads, sections, chips ---------- */
.pl-page-head { padding-top: 18px; }
.pl-page-head h1 { margin: 0; font: 700 26px/1.15 var(--display); letter-spacing: -.02em; }
.pl-page-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.pl-section { margin-top: 24px; scroll-margin-top: 112px; }   /* clear the sticky header on #episodes */
.pl-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pl-section-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 19px/1.2 var(--display); letter-spacing: -.01em; }
.pl-section-head h2 .pl-i { color: var(--flare); width: 18px; height: 18px; }
.pl-section-head a { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; color: var(--ice); font: 700 13px/1 var(--display); }
.pl-section-head a .pl-i { width: 15px; height: 15px; }
.pl-chips { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pl-chips::-webkit-scrollbar { display: none; }
.pl-chips a {
    flex: 0 0 auto; height: 32px; display: inline-flex; align-items: center; padding: 0 13px;
    border-radius: var(--r-pill); border: 1px solid var(--rim-strong); background: var(--panel);
    color: var(--ice-soft); font-size: 13px; font-weight: 600;
}
.pl-chips a.is-on { border-color: var(--flare); color: var(--sun); }
.pl-empty { padding: 18px; border-radius: var(--r-md); border: 1px dashed var(--rim-strong); color: var(--text-2); text-align: center; }

/* ---------- Cards ---------- */
.pl-cards { display: grid; gap: 14px 12px; }
.pl-cards--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pl-card { display: block; min-width: 0; color: var(--text); -webkit-tap-highlight-color: transparent; }
.pl-card-img {
    position: relative; display: grid; place-items: center; overflow: hidden;
    aspect-ratio: 2 / 3; border-radius: var(--r-md); background: var(--panel-2);
    box-shadow: 0 0 0 1px var(--rim), 0 14px 28px -18px rgba(0, 0, 0, .9);
    transition: transform .2s ease, box-shadow .2s ease;
}
.pl-card-img img { width: 100%; height: 100%; object-fit: cover; }
.pl-card-img > svg { width: 44px; height: 44px; opacity: .8; }
.pl-card-body { display: block; padding: 8px 2px 0; }
.pl-card-body b {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 13.5px; font-weight: 650; line-height: 1.3;
}
.pl-card-body small { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) {
    .pl-card:hover .pl-card-img { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--ice), 0 18px 34px -16px rgba(109, 74, 255, .5); }
}

/* trending rail: swipe sideways, big outlined rank numbers */
.pl-cards--rail {
    grid-auto-flow: column; grid-auto-columns: 40%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scroll-padding: 0 var(--gutter);
}
.pl-cards--rail::-webkit-scrollbar { display: none; }
.pl-cards--rail .pl-card { scroll-snap-align: start; }
.pl-rank {
    position: absolute; z-index: 1; left: 6px; bottom: -10px;
    font: 700 64px/1 var(--display); letter-spacing: -.04em;
    color: transparent; -webkit-text-stroke: 2px var(--sun); text-shadow: 0 0 18px rgba(255, 138, 61, .55);
}
.pl-cards--rail .pl-card-img::after {
    content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(5, 4, 11, .85));
}

/* episode list */
.pl-cards--list { gap: 0; border-top: 1px solid var(--rim); }
.pl-cards--list .pl-card {
    display: grid; grid-template-columns: 52px minmax(0, 1fr) 20px; align-items: center; gap: 12px;
    padding: 10px 2px; border-bottom: 1px solid var(--rim);
}
.pl-cards--list .pl-card-img { aspect-ratio: 2 / 3; border-radius: 8px; }
.pl-cards--list .pl-card-body { padding: 0; }
.pl-cards--list .pl-card-body b { font-size: 14.5px; }
.pl-card-go { color: var(--muted); width: 18px; height: 18px; }
@media (hover: hover) { .pl-cards--list .pl-card:hover { background: var(--ice-tint); } .pl-cards--list .pl-card:hover .pl-card-img { transform: none; } }

/* ---------- Paging ---------- */
.pl-paging { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; }
.pl-page-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pl-page {
    min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    border-radius: var(--r-pill); border: 1px solid var(--rim-strong); background: var(--panel);
    color: var(--text-2); font: 700 14px/1 var(--display);
}
.pl-page .pl-i { width: 16px; height: 16px; }
.pl-page.is-on { border-color: transparent; color: #2a1200; background: linear-gradient(100deg, var(--sun), var(--flare)); }
.pl-page--gap { border-color: transparent; background: none; min-width: 20px; padding: 0; }
.pl-page--step { color: var(--ice-soft); }
@media (max-width: 559px) {
    .pl-page-list { order: 3; width: 100%; }   /* phones: Prev + Next side by side, numbers below */
}

/* ---------- Search home ---------- */
.pl-find { padding: 26px 0 6px; text-align: center; }
.pl-find h1 { margin: 0; font: 700 28px/1.15 var(--display); letter-spacing: -.02em; }
.pl-find p { margin: 6px 0 16px; color: var(--muted); font-size: 14px; }
.pl-find .pl-search { max-width: 560px; margin: 0 auto; }
.pl-find .pl-search input { height: 52px; font-size: 16px; padding-left: 42px; }
.pl-find .pl-search .pl-i { left: 15px; width: 19px; height: 19px; }
.pl-find .pl-chips { justify-content: center; flex-wrap: wrap; overflow: visible; }

/* ---------- Post + series pages ---------- */
.pl-panel { margin-top: 20px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--rim); background: var(--panel); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pl-panel > h2 { margin: 0 0 10px; font: 700 17px/1.2 var(--display); }
.pl-prose { color: var(--text-2); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.pl-prose > :first-child { margin-top: 0; }
.pl-prose > :last-child { margin-bottom: 0; }
.pl-prose p { margin: 0 0 12px; }
.pl-prose b, .pl-prose strong { color: var(--text); }
/* post bodies carry editor paste like <span style="color: rgb(0,0,0)">, black on this dark panel:
   !important here beats those inline colours, backgrounds and fonts */
.pl-prose *:not(a):not(b):not(strong):not(img):not(iframe):not(video) { color: inherit !important; background-color: transparent !important; font-family: inherit !important; }
.pl-prose b, .pl-prose strong, .pl-prose b *, .pl-prose strong * { color: var(--text) !important; }
.pl-prose a, .pl-prose a * { color: var(--ice) !important; }
.pl-prose img, .pl-prose iframe, .pl-prose video { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.pl-prose iframe { aspect-ratio: 16 / 9; width: 100%; border: 0; }
.pl-prose h1, .pl-prose h2, .pl-prose h3 { color: var(--text); font: 700 17px/1.3 var(--display); margin: 16px 0 8px; }
.pl-prose ul, .pl-prose ol { padding-left: 20px; }
.pl-prose table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pl-prose td, .pl-prose th { padding: 6px 8px; border-bottom: 1px solid var(--rim); text-align: left; }

.pl-ticket-link { text-decoration: none; }
/* movie page "Go to Download": step 1, violet, so the orange ticket on the dl page reads as the final step */
.pl-ticket--step {
    color: #fff;
    background: linear-gradient(100deg, #8f74ff, #6d4cff 55%, #4a2bd8);
    filter: drop-shadow(0 12px 22px rgba(124, 92, 255, .45));
}
.pl-ticket--step .pl-ticket-stub { border-left-color: rgba(255, 255, 255, .45); }
@media (hover: hover) { .pl-ticket--step:hover { filter: drop-shadow(0 14px 28px rgba(124, 92, 255, .55)) brightness(1.05); } }
.pl-story-cta { margin-top: 18px; }
.pl-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.pl-pn {
    display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px;
    border-radius: var(--r-md); border: 1px solid var(--rim); background: var(--panel); color: var(--text);
}
.pl-pn img { flex: 0 0 auto; width: 40px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--panel-2); }
.pl-pn span { min-width: 0; }
.pl-pn small { display: block; color: var(--ice); font: 700 10.5px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.pl-pn b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-size: 13px; line-height: 1.3; }
.pl-pn--next { grid-column: 2; flex-direction: row-reverse; text-align: right; }

.pl-status { margin: 40px auto 0; max-width: 520px; padding: 22px; text-align: center; }
.pl-status svg { width: 64px; height: 64px; }
.pl-status h1 { margin: 10px 0 6px; font: 700 21px/1.25 var(--display); }
.pl-status p { margin: 0 0 14px; color: var(--text-2); }
.pl-status a.pl-page { display: inline-flex; }

@media (min-width: 560px) {
    .pl-cards--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pl-cards--rail { grid-auto-columns: 28%; }
}
@media (min-width: 760px) {
    .pl-cards--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pl-cards--rail { grid-auto-columns: 21%; }
}
@media (min-width: 900px) {
    .pl-top--site .pl-wrap:first-child { height: 64px; }
    .pl-page-head h1 { font-size: 34px; }
    .pl-section { margin-top: 32px; }
    .pl-section-head h2 { font-size: 22px; }
    .pl-cards--grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 18px; }
    .pl-cards--rail { grid-auto-columns: calc((100% - 4 * 16px) / 5.4); gap: 16px; margin: 0; padding: 0 0 6px; scroll-padding: 0; }
    .pl-rank { font-size: 80px; }
    .pl-find h1 { font-size: 38px; }
    .pl-post-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
    .pl-post-grid > .pl-panel { margin-top: 20px; }
    .pl-cards--list { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}
@media (min-width: 1100px) {
    .pl-cards--grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
