:root {
    color-scheme: dark;
    --pf-bg: #07080c;
    --pf-card: #141722;
    --pf-card-soft: #1b2030;
    --pf-text: #f5f7fb;
    --pf-muted: #9aa3b8;
    --pf-accent: #e50914;
    --pf-warning: #ffd166;
    --pf-error: #ff6b6b;
    --pf-border: rgba(255,255,255,.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(229,9,20,.2), transparent 32rem),
        linear-gradient(135deg, #07080c, #10131d 55%, #06070a);
    color: var(--pf-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: var(--pf-text);
    text-decoration: none;
}

code {
    background: rgba(255,255,255,.08);
    border: 1px solid var(--pf-border);
    border-radius: .35rem;
    padding: .1rem .3rem;
}

.fa-solid,
.fa-regular,
.fa-brands {
    line-height: 1;
}

.pf-logo {
    display: flex;
    align-items: center;
}

.pf-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.pf-brand img {
    display: block;
    height: 36px;
    width: auto;
}

.pf-logo span {
    color: var(--pf-accent);
}

.pf-login-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 9vh 24px 24px;
}

.pf-login-body {
    display: grid;
    place-items: center;
    padding: 1.25rem;
}



.pf-login-card {
    width: min(100%, 27rem);
    padding: clamp(1.25rem, 5vw, 2rem);
    padding-top: 10px;
    border: 1px solid var(--pf-border);
    border-radius: 1.25rem;
    background: rgba(20,23,34,.88);
    box-shadow: 0 1.5rem 5rem rgba(0,0,0,.45);
    backdrop-filter: blur(16px);
}

.pf-muted {
    color: var(--pf-muted);
}

.pf-error,
.pf-warning {
    margin: 1rem 0;
    padding: .85rem 1rem;
    border-radius: .75rem;
    background: rgba(255,255,255,.08);
    border: 1px solid var(--pf-border);
}

.pf-error {
    color: var(--pf-error);
}

.pf-warning {
    color: var(--pf-warning);
}

label {
    display: block;
    margin-top: 1rem;
    color: var(--pf-muted);
    font-size: .92rem;
}

label small {
    opacity: .7;
}

input,
textarea,
button {
    width: 100%;
    margin-top: .35rem;
    border-radius: .8rem;
    border: 1px solid var(--pf-border);
    font: inherit;
}

input,
textarea {
    padding: .9rem 1rem;
    background: #090b11;
    color: var(--pf-text);
}



.pf-login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.pf-code-label {
    display: block;
    margin-bottom: 10px;
}

.pf-code-boxes {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 12px 0 22px;
}

.pf-code-boxes input {
    width: 88px;
    height: 88px;
    box-sizing: border-box;
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
}




button {
    margin-top: 1.25rem;
    padding: .95rem 1rem;
    border: 0;
    background: var(--pf-accent);
    color: white;
    font-weight: 800;
    cursor: pointer;
}

button.pf-card-open {
    position: absolute;
    right: 7px;
    bottom: 7px;
    z-index: 3;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;

    background: transparent;
    color: #fff;
    cursor: pointer;

    font-size: 16px;
    line-height: 1;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.75);
}

button.pf-card-open:hover {
    color: #fff;
    transform: scale(1.12);
}

.pf-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 2rem);
    border-bottom: 1px solid var(--pf-border);
    background: rgba(0,0,0,.25);
}

.pf-topbar .pf-logo {
    font-size: 2rem;
}

.pf-shell {
    width: min(72rem, 100%);
    margin: 0 auto;
    padding: clamp(1rem, 4vw, 2rem);
}

.pf-hero,
.pf-panel {
    border: 1px solid var(--pf-border);
    border-radius: 1.25rem;
    background: rgba(20,23,34,.74);
    padding: clamp(1.25rem, 5vw, 2rem);
    margin-bottom: 1rem;
}

.pf-hero h1 {
    margin: 0 0 .5rem;
    font-size: clamp(2.25rem, 7vw, 5rem);
    letter-spacing: -.06em;
}







body.pf-app-page {
    min-height: 100vh;
    margin: 0;
    background: #080d12;
    color: #f6f7fb;
    overflow-x: hidden;
}

.pf-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    padding: 0 28px;
    background: rgba(8, 13, 18, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
}

.pf-topnav a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 22px;
}

.pf-library {
    padding: 12px 10px 60px;
}

.pf-shelf-section {
    margin-bottom: 10px;
}


.pf-shelf-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 8px;
}

.pf-shelf-title h2 {
    margin: 0;
}

.pf-add-button {
    position: relative;
    top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;
    min-width: 20px;
    padding: 0;
    margin: 0 0 0 2px;

    border: 0;
    border-radius: 50%;
    background: #ef0712;
    color: #fff;

    font-size: 14px;
    line-height: 1;
    text-align: center;
    cursor: pointer;
}

.pf-add-button i {
    font-size: 14px;
    line-height: 1;
}

.pf-shelf-wrap {
    position: relative;
    background: rgba(0, 0, 0, 0.14);
    padding: 0 34px;
}

.pf-shelf {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 22px;
    scroll-behavior: smooth;
    /* scrollbar-width: none; */
}

.pf-shelf::-webkit-scrollbar {
    /* display: none; */
}


.pf-shelf {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) rgba(255, 255, 255, 0.08);
}

.pf-shelf::-webkit-scrollbar {
    height: 10px;
}

.pf-shelf::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.pf-shelf::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
}

.pf-shelf::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.55);
}

.pf-card {
    flex: 0 0 auto;
    width: 260px;
    aspect-ratio: 16 / 9;
    border-radius: 7px;
    overflow: hidden;
    background: #111821;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.pf-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #101820;
}


.pf-card-art {
    position: relative;
    width: 100%;
    height: 100%;
    background: #101820;
    overflow: hidden;
}

.pf-card-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.04) 55%
    );
    opacity: 0;
    transition: opacity 160ms ease;
}

.pf-card:hover .pf-card-art::after {
    opacity: 1;
}

.pf-card-open {
    position: absolute;
    right: 6px;
    bottom: 6px;
    z-index: 2;
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 5px;
    cursor: pointer;
}

.pf-card-fallback-title {
    position: absolute;
    left: 10px;
    bottom: 9px;
    right: 38px;
    z-index: 2;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.05;
    text-shadow: 0 2px 5px black;
    opacity: 0;
}

.pf-card:hover .pf-card-fallback-title {
    opacity: 1;
}

.pf-card-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(239, 7, 18, 0.88);
    color: white;
    font-size: 12px;
    font-weight: 800;
}



.pf-empty {
    max-width: 760px;
    margin: 80px auto;
    padding: 36px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
}





.pf-shelf-wrap {
    position: relative;
}

.pf-shelf-nav {
    position: absolute;
    top: -20px;
    bottom: auto;
    height: 150px;
    z-index: 5;

    width: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    background: rgba(0, 0, 0, 0.16);
    color: rgba(255, 255, 255, 0.34);

    font-size: 42px;
    cursor: pointer;

    opacity: 0;
    transition: opacity 160ms ease, background 160ms ease, color 160ms ease;
}

.pf-shelf-wrap:hover .pf-shelf-nav {
    opacity: 1;
}

.pf-shelf-nav:hover {
    background: rgba(0, 0, 0, 0.34);
    color: rgba(255, 255, 255, 0.78);
}

.pf-shelf-nav-left {
    left: 0;
    border-radius: 0 14px 14px 0;
}

.pf-shelf-nav-right {
    right: 0;
    border-radius: 14px 0 0 14px;
}

.pf-shelf-nav i {
    pointer-events: none;
}














body.pf-playbill-open {
    overflow: hidden;
}

.pf-playbill-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin: 0 0 54px 0;
    padding: 0;

    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.84);

    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.pf-playbill-back:hover {
    color: #fff;
}


.pf-playbill {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    overflow: hidden;
    background: #0f171e;
    color: #fff;
}

.pf-playbill.is-open {
    display: block;
}

.pf-playbill-bg {
    position: absolute;
    inset: 0;
    z-index: 0;

    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;

    transform: scale(1.02);
    filter: saturate(0.95) brightness(0.95);
}

.pf-playbill-shield {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(15, 23, 30, 0.92) 0%,
            rgba(15, 23, 30, 0.86) 24%,
            rgba(15, 23, 30, 0.58) 48%,
            rgba(15, 23, 30, 0.22) 72%,
            rgba(15, 23, 30, 0.08) 100%
        ),
        linear-gradient(
            0deg,
            rgba(15, 23, 30, 0.58) 0%,
            rgba(15, 23, 30, 0.12) 38%,
            rgba(15, 23, 30, 0.36) 100%
        );
}



.pf-playbill-content {
    position: relative;
    z-index: 2;

    height: 100%;
    box-sizing: border-box;
    padding: 34px 52px 52px;

    overflow-x: hidden;
    overflow-y: auto;
}

.pf-playbill-content h1 {
    margin: 42px 0 8px 0;
    max-width: 760px;

    font-size: clamp(36px, 4.5vw, 68px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pf-playbill-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    max-width: 760px;
    color: rgba(255, 255, 255, 0.76);

    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pf-playbill-lower {
    position: absolute;
    left: 52px;
    bottom: 52px;

    width: min(620px, calc(100vw - 104px));
}

.pf-playbill-main {
    display: block;
    width: 100%;
}




.pf-playbill-close {
    position: absolute;
    top: 34px;
    right: 34px;
    z-index: 3;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.72);
    color: #071018;
    font-size: 36px;
    cursor: pointer;
}

.pf-playbill-close:hover {
    background: #fff;
    transform: scale(1.04);
}

.pf-playbill-main {
    display: block;
    max-width: 620px;
}


.pf-playbill-text {
    max-width: 520px;
}

.pf-playbill-synopsis:empty {
    display: none;
}




.pf-playbill-list {
    margin-top: 24px;
    max-width: 620px;
    padding: 16px;

    border: 1px solid rgba(239, 7, 18, 0.85);
    background: rgba(0, 0, 0, 0.22);
}



.pf-playbill-text h3 {
    margin: 0 0 8px;
    color: #e6ff00;
    font-size: 17px;
}

.pf-playbill-stars {
    min-height: 22px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.84);
}

.pf-playbill-synopsis {
    max-width: 520px;
    margin-bottom: 22px;

    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
    line-height: 1.5;
}

.pf-playbill-play,
.pf-playbill-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 360px;
    max-width: 100%;
    height: 62px;
    padding: 0 28px;

    border: 0;
    border-radius: 6px;

    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.pf-playbill-play {
    background: #ef0712;
    color: #fff;
}

.pf-playbill-play:hover {
    background: #ff1824;
    transform: scale(1.015);
}

.pf-playbill-continue {
    margin-left: 0;
    margin-top: 12px;

    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.pf-playbill-continue:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: scale(1.015);
}

.pf-playbill-play i,
.pf-playbill-continue i {
    font-size: 22px;
}


.pf-playbill-season-title {
    margin-bottom: 12px;

    color: rgba(255, 255, 255, 0.72);
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
}

.pf-playbill-items {
    display: flex;
    flex-direction: column;
    gap: 4px;

    max-height: 38vh;
    overflow-y: auto;
    padding-right: 8px;
}



.pf-playbill-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    width: 100%;
    min-height: 28px;
    padding: 0 8px;

    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: #fff;

    text-align: left;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.pf-playbill-item:last-child {
    border-bottom: 0;
}

.pf-playbill-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.pf-playbill-item i {
    color: #00d9ff;
}








.pf-playbill-list {
    position: relative;

    margin-top: 20px;
    max-width: 620px;
    padding: 16px;

    border: 1px solid rgba(239, 7, 18, 0.42);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.24);
}

.pf-playbill-items {
    max-height: 330px;
    overflow-y: auto;
    padding: 0 0;
    scroll-behavior: auto;

    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.06);
}

.pf-playbill-items::-webkit-scrollbar {
    width: 8px;
}

.pf-playbill-items::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
}

.pf-playbill-items::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}

.pf-playbill-scroll {
    width: 100%;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.38);

    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.pf-playbill-scroll:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.pf-playbill-scroll-up {
    margin: 10px 0 6px 0;
    border-radius: 8px 8px 3px 3px;
}

.pf-playbill-scroll-down {
    margin: 6px 0 0 0;
    border-radius: 3px 3px 8px 8px;
}

.pf-playbill-scroll i {
    font-size: 14px;
}






.pf-playbill-more {
    margin-top: 8px;
    padding: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

.pf-player {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: none;
    background: #000;
}

.pf-player.is-open {
    display: block;
}

.pf-player-video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    background: #000;
}



.pf-player-info {
    position: absolute;
    top: 28px;
    left: 42px;
    z-index: 99998;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;

    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.pf-player-info.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.pf-player-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    border: 0;
    background: rgba(0, 0, 0, 0.48);
    color: rgba(255, 255, 255, 0.86);

    padding: 12px 16px;
    border-radius: 999px;

    font-size: 16px;
    font-weight: 800;
    cursor: pointer;

    transition: background 180ms ease, color 180ms ease;
}

.pf-player-back:hover {
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
}

.pf-player-title {
    max-width: min(760px, calc(100vw - 100px));

    padding: 10px 16px;
    border-radius: 8px;

    background: rgba(0, 0, 0, 0.42);
    color: rgba(255, 255, 255, 0.92);

    font-size: clamp(20px, 3vw, 38px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.035em;
    text-transform: uppercase;

    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.pf-player-endcard {
    position: absolute;
    right: 64px;
    bottom: 56px;
    z-index: 40;
    display: none;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.pf-player-endcard.is-visible {
    display: flex;
}

.pf-player-endcard-button {
    appearance: none;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(0,0,0,0.72);
    color: #fff;
    width: 150px;
    height: 68px;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.pf-player-endcard-button:hover {
    background: rgba(255,255,255,0.18);
}




.pf-player-endcard-next {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    --pf-next-progress: 0%;

    background:
        linear-gradient(
            to right,
            rgba(255,255,255,0.88) 0%,
            rgba(255,255,255,0.88) var(--pf-next-progress),
            rgba(255,255,255,0.42) var(--pf-next-progress),
            rgba(255,255,255,0.42) 100%
        );

    color: #111;
    border: 1px solid rgba(255,255,255,0.55);
}

.pf-player-endcard-next:hover {
    background:
        linear-gradient(
            to right,
            rgba(255,255,255,1) 0%,
            rgba(255,255,255,1) var(--pf-next-progress),
            rgba(255,255,255,0.72) var(--pf-next-progress),
            rgba(255,255,255,0.72) 100%
        );

    color: #111;
    border-color: rgba(255,255,255,0.85);
}










@media (max-width: 800px) {
    .pf-playbill {
        inset: 0;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .pf-playbill-content {
        padding: 28px 22px;
    }

    .pf-playbill-close {
        top: 18px;
        right: 18px;
        width: 46px;
        height: 46px;
        font-size: 28px;
    }

    .pf-playbill-main {
        grid-template-columns: 1fr;
    }

    .pf-playbill-list {
        max-width: none;
        background: #222;
        z-index: 999;
    }

    .pf-playbill-items {
        max-height: 240px;
    }
}


@media (max-width: 800px) and (orientation: landscape) {
    /*
    .pf-playbill-list {
        top: 40px;
        margin-left: 68%;
        max-width: 330px;
        max-height: 360px;
        overflow-x: hidden;
        overflow-y: auto;

    }
    */


    .pf-playbill-lower {
        position: absolute;
        left: auto;
        right: 5px;
        bottom: 5px;
        top: 5px;
        width: 320px;
        /* border: 1px solid #0f0; */
    }

    .pf-playbill-list {
        margin-top: 5px;
        padding: 5px 5px 25px 5px;
        max-height: 244px;
        overflow-x: hidden;
        overflow-y: auto;
        /* border: 1px solid #ff0; */
    }

    .pf-playbill-items {
        max-height:150px;
        /* border: 1px solid #f0f; */
    }

    .pf-playbill-season-title {
        display: none;
    }



    .pf-player-endcard {
        position: absolute;
        right: 10px;
        bottom: auto;
        top: 10px;
    }
}


@media (max-width: 800px) {
    .pf-playbill-shield {
        background:
            linear-gradient(
                0deg,
                rgba(15, 23, 30, 0.94) 0%,
                rgba(15, 23, 30, 0.76) 48%,
                rgba(15, 23, 30, 0.54) 100%
            );
    }

    .pf-playbill-content {
        padding: 26px 22px 42px;
    }

    .pf-playbill-back {
        margin-bottom: 34px;
    }
}




@media (max-width: 700px) {
    .pf-topbar {
        height: 54px;
        padding: 0 16px;
    }

    .pf-library {
        padding-left: 0;
        padding-right: 0;
    }

    .pf-shelf-title h2 {
        font-size: 22px;
    }

    .pf-shelf-wrap {
        padding: 0 12px;
    }

    .pf-card {
        width: 220px;
    }

    .pf-row-nav {
        display: none;
    }
}























@media (max-width: 640px) {
    .pf-brand img {
        height: 30px;
    }
}


@media (max-width: 520px) {
    .pf-code-boxes {
        gap: 8px;
    }

    .pf-code-boxes input {
        width: 64px;
        height: 64px;
        font-size: 32px;
    }
}
