:root {
    --v9-bg: #070b12;
    --v9-panel: #111722;
    --v9-panel2: #171d29;
    --v9-border: rgba(255,255,255,.09);
    --v9-text: #f5f7fb;
    --v9-muted: #8791a4;
    --v9-blue: #69d1ff;
    --v9-purple: #a989ff;
    --v9-pink: #ff79bd;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* =========================================================
   LOGIN BRANDING
   ========================================================= */

.lp-v9-login-logo {
    display: block;

    width: auto;
    height: 48px;

    max-width:
        min(
            230px,
            72vw
        );

    margin:
        0 auto
        18px;

    object-fit: contain;
}

.lp-v9-jf-logo {
    display: block;

    width: auto;
    height: 42px;

    max-width:
        min(
            210px,
            70vw
        );

    margin:
        0 auto
        18px;

    object-fit: contain;
}


/* =========================================================
   ONE ACCOUNT BUTTON
   ========================================================= */

.lp-v9-account {
    position: fixed;

    top:
        max(
            12px,
            env(safe-area-inset-top)
        );

    right: 14px;

    z-index: 36000;
}

.lp-v9-account.hidden {
    display: none !important;
}

.lp-v9-account-btn {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    margin: 0;
    padding: 0;

    border:
        1px solid
        rgba(255,255,255,.13);

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            var(--v9-blue),
            var(--v9-purple),
            var(--v9-pink)
        );

    color: #090b11;

    font-size: 14px;
    font-weight: 900;

    cursor: pointer;
}

.lp-v9-account-menu {
    position: absolute;

    top: 49px;
    right: 0;

    width: 160px;

    padding: 6px;

    border:
        1px solid
        var(--v9-border);

    border-radius: 15px;

    background:
        rgba(16,21,31,.98);

    box-shadow:
        0 20px 50px
        rgba(0,0,0,.45);
}

.lp-v9-account-menu.hidden {
    display: none !important;
}

.lp-v9-account-menu button {
    width: 100%;
    height: 42px;

    display: flex;
    align-items: center;

    padding:
        0
        12px;

    border: 0;
    border-radius: 10px;

    background: transparent;

    color: #e8eaf0;

    font-size: 12px;
    font-weight: 750;

    text-align: left;
}

.lp-v9-account-menu button:hover {
    background:
        rgba(255,255,255,.055);
}


/* =========================================================
   MAIN NAV - NEVER ACTIVE SESSION
   ========================================================= */

.lp-v9-nav {
    position: fixed;

    top: 18px;
    left: 50%;

    z-index: 30000;

    width:
        min(
            420px,
            calc(100vw - 150px)
        );

    min-width: 280px;

    transform:
        translateX(-50%);

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 4px;

    padding: 5px;

    border:
        1px solid
        var(--v9-border);

    border-radius: 15px;

    background:
        rgba(15,20,30,.92);

    backdrop-filter:
        blur(18px);
}

.lp-v9-nav.hidden {
    display: none !important;
}

.lp-v9-nav button {
    min-width: 0;
    height: 36px;

    border: 0;
    border-radius: 10px;

    background: transparent;

    color: #8c96a9;

    font-size: 10px;
    font-weight: 750;

    white-space: nowrap;
}

.lp-v9-nav button:hover {
    background:
        rgba(255,255,255,.05);

    color: #f1f3f7;
}


/* =========================================================
   ACTIVE SESSION
   ========================================================= */

body.lp-v9-session-active {
    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;
}

body.lp-v9-session-active
.lp-v9-nav,

body.lp-v9-session-active
.lp-v9-account,

body.lp-v9-session-active
.lp-header,

body.lp-v9-session-active
.signature {
    display: none !important;
}

body.lp-v9-session-active
#game-area:not(.hidden) {
    position: fixed !important;

    inset: 0 !important;

    z-index: 5000 !important;

    width: 100vw !important;
    height: 100dvh !important;

    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    background:
        radial-gradient(
            circle at 0 0,
            rgba(91,204,255,.07),
            transparent 30%
        ),
        radial-gradient(
            circle at 100% 0,
            rgba(255,108,190,.07),
            transparent 31%
        ),
        var(--v9-bg)
        !important;
}

body.lp-v9-session-active
#game-area >
*:not(#lp-v9-session-shell):not(#match-overlay) {
    /*
     * Legacy session elements have all been moved
     * inside our shell where appropriate.
     */
}

.lp-v9-session-shell {
    width: 100%;
    height: 100dvh;

    display: grid;

    grid-template-rows:
        auto
        minmax(0, 1fr)
        auto;

    gap:
        clamp(
            6px,
            1.2dvh,
            12px
        );

    padding:
        max(
            10px,
            env(safe-area-inset-top)
        )
        clamp(
            10px,
            2.5vw,
            22px
        )
        max(
            10px,
            env(safe-area-inset-bottom)
        );

    overflow: hidden;
}


/* Toolbar */

.lp-v9-session-toolbar {
    min-width: 0;

    display: grid;

    grid-template-columns:
        auto
        1fr;

    grid-template-rows:
        auto
        auto;

    column-gap: 12px;
    row-gap: 8px;

    align-items: center;

    width:
        min(
            100%,
            780px
        );

    margin:
        0 auto;
}

.lp-v9-session-logo {
    grid-column: 1;
    grid-row: 1;

    width: auto;
    height: 34px;

    max-width: 180px;

    display: block;

    object-fit: contain;
}

.lp-v9-session-primary {
    grid-column: 2;
    grid-row: 1;

    min-width: 0;

    display: flex;

    justify-content:
        flex-end;

    align-items: center;

    gap: 7px;
}

.lp-v9-session-secondary {
    grid-column:
        1 / -1;

    grid-row: 2;

    min-width: 0;

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 8px;
}


/* kill inherited floating positioning */

body.lp-v9-session-active
#undo-btn,

body.lp-v9-session-active
#matches-pill,

body.lp-v9-session-active
#quit-pill,

body.lp-v9-session-active
#genre-pill,

body.lp-v9-session-active
#solo-badge {
    position: static !important;

    inset: auto !important;

    transform: none !important;

    float: none !important;

    margin: 0 !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    line-height: 1 !important;

    white-space: nowrap;
}

body.lp-v9-session-active
#undo-btn,

body.lp-v9-session-active
#quit-pill {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;

    padding: 0 !important;

    border-radius: 13px !important;
}

body.lp-v9-session-active
#matches-pill {
    width: auto !important;
    min-width: 88px !important;
    max-width: 130px;

    height: 40px !important;

    padding:
        0
        14px !important;

    overflow: hidden;

    border-radius: 13px !important;

    text-overflow:
        ellipsis;

    font-size:
        10px !important;
}

body.lp-v9-session-active
#genre-pill {
    width: auto !important;
    min-width: 88px !important;
    max-width: 220px;

    height: 38px !important;

    padding:
        0
        14px !important;

    overflow: hidden;

    border-radius: 13px !important;

    text-overflow:
        ellipsis;

    font-size:
        10px !important;
}

body.lp-v9-session-active
#solo-badge {
    min-height: 29px !important;

    padding:
        0
        11px !important;

    border-radius:
        999px !important;

    font-size:
        9px !important;
}


/* Stage */

.lp-v9-stage {
    min-width: 0;
    min-height: 0;

    display: flex;

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

    overflow: hidden;
}

.lp-v9-stage
#swipe-deck {
    position: relative !important;

    /*
     * This is the key scaling rule:
     * poster HEIGHT is bounded by available
     * viewport height, and WIDTH is also
     * bounded by the viewport.
     */
    height:
        min(
            54dvh,
            calc(
                100dvh
                - 270px
            ),
            570px
        )
        !important;

    width: auto !important;

    aspect-ratio:
        2 / 3 !important;

    max-width:
        min(
            78vw,
            380px
        )
        !important;

    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
}

.lp-v9-stage
#swipe-deck
.movie-card {
    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
}

.lp-v9-stage
.card-inner,

.lp-v9-stage
.card-front,

.lp-v9-stage
.card-back {
    width: 100% !important;
    height: 100% !important;

    border-radius:
        clamp(
            15px,
            3vw,
            22px
        )
        !important;
}

.lp-v9-stage
.card-front img {
    width: 100% !important;
    height: 100% !important;

    display: block;

    object-fit: cover !important;
}


/* Footer */

.lp-v9-session-footer {
    width:
        min(
            100%,
            500px
        );

    min-width: 0;

    margin:
        0 auto;

    display: grid;

    gap: 8px;
}

.lp-v9-movie-copy {
    min-width: 0;
}

.lp-v9-movie-copy h2 {
    margin: 0;

    color: var(--v9-text);

    font-size:
        clamp(
            15px,
            3vw,
            19px
        );

    line-height: 1.22;

    white-space: normal;

    overflow-wrap: anywhere;
}

.lp-v9-movie-copy p {
    margin:
        4px
        0
        0;

    color: var(--v9-muted);

    font-size: 10px;

    line-height: 1.3;

    white-space: normal;
}

.lp-v9-actions {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 7px;
}

.lp-v9-actions button {
    min-width: 0;
    height: 56px;

    margin: 0;
    padding:
        4px
        2px;

    display: flex;

    flex-direction: column;

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

    gap: 2px;

    border:
        1px solid
        rgba(255,255,255,.09);

    border-radius: 16px;

    background:
        rgba(255,255,255,.035);

    color: #dce0e8;
}

.lp-v9-actions strong {
    width: 26px;
    height: 26px;

    display: grid;
    place-items: center;

    margin: 0;

    font-size: 19px;

    line-height: 1;
}

.lp-v9-actions span {
    width: 100%;

    color: #9099ab;

    font-size: 9px;
    font-weight: 750;

    line-height: 11px;

    text-align: center;
}

#lp-v9-pass strong {
    color: #ff829c;
}

#lp-v9-rate strong {
    color: #c7b0ff;
}

#lp-v9-pick strong {
    color: #ff8dc6;
}


/* hide prior generated action/footer area */

body.lp-v9-session-active
#lp-mobile-current,

body.lp-v9-session-active
#poster-instruction,

body.lp-v9-session-active
.match-instruction,

body.lp-v9-session-active
#glow-left,

body.lp-v9-session-active
#glow-right,

body.lp-v9-session-active
.lp-mobile-nav,

body.lp-v9-session-active
#lp-mobile-nav {
    display: none !important;
}


/* =========================================================
   GENRE MODAL
   ========================================================= */

#genre-modal:not(.hidden) {
    position: fixed !important;

    top: 50% !important;
    left: 50% !important;

    right: auto !important;
    bottom: auto !important;

    transform:
        translate(
            -50%,
            -50%
        )
        !important;

    z-index: 45000 !important;

    width:
        min(
            calc(100vw - 28px),
            520px
        )
        !important;

    height: auto !important;

    max-height:
        calc(
            100dvh
            - 28px
        )
        !important;

    margin: 0 !important;

    padding:
        20px !important;

    overflow-y:
        auto !important;

    border-radius:
        22px !important;
}

#genre-list {
    display: grid !important;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        )
        !important;

    gap: 7px !important;

    width: 100% !important;

    margin-top:
        15px !important;
}

#genre-list
.genre-item {
    min-width: 0 !important;
    min-height: 36px;

    margin: 0 !important;

    padding:
        8px
        10px !important;

    display: flex;

    align-items: center;

    white-space: normal !important;

    overflow-wrap: anywhere;

    line-height: 1.2 !important;

    font-size:
        11px !important;
}


/* =========================================================
   PAGES
   ========================================================= */

.lp-v9-page {
    position: fixed;

    inset: 0;

    z-index: 8000;

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

    background:
        radial-gradient(
            circle at 0 0,
            rgba(96,204,255,.07),
            transparent 30%
        ),
        radial-gradient(
            circle at 100% 0,
            rgba(255,111,189,.06),
            transparent 30%
        ),
        var(--v9-bg);

    color: var(--v9-text);
}

.lp-v9-page.hidden {
    display: none !important;
}

.lp-v9-page-inner {
    width:
        min(
            calc(100% - 32px),
            1100px
        );

    min-height: 100dvh;

    margin: 0 auto;

    padding:
        26px
        0
        110px;
}

.lp-v9-page-header {
    max-width: 660px;
}

.lp-v9-page-header img {
    display: block;

    width: auto;
    height: 38px;

    max-width: 220px;

    margin-bottom: 34px;

    object-fit: contain;
}

.lp-v9-page-header > span {
    color: #a88dff;

    font-size: 9px;
    font-weight: 850;

    letter-spacing: .15em;
}

.lp-v9-page-header h1 {
    margin:
        8px
        0
        8px;

    color: var(--v9-text);

    font-size:
        clamp(
            34px,
            7vw,
            54px
        );

    line-height: .98;

    letter-spacing: -2px;
}

.lp-v9-page-header p {
    max-width: 490px;

    margin: 0;

    color: var(--v9-muted);

    font-size: 13px;

    line-height: 1.5;
}


/* Ratings tabs */

.lp-v9-rating-tabs {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 5px;

    width: 100%;

    margin-top: 28px;

    padding: 5px;

    border:
        1px solid
        var(--v9-border);

    border-radius: 16px;

    background:
        rgba(255,255,255,.025);
}

.lp-v9-rating-tabs button {
    min-width: 0;
    height: 42px;

    border: 0;

    border-radius: 11px;

    background: transparent;

    color: #7f899d;

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
}

.lp-v9-rating-tabs button.active {
    background:
        linear-gradient(
            115deg,
            rgba(101,208,255,.12),
            rgba(169,137,255,.16),
            rgba(255,121,189,.12)
        );

    color: #f3f5f9;
}


/* Tools */

.lp-v9-library-tools {
    display: grid;

    grid-template-columns:
        minmax(
            170px,
            1fr
        )
        minmax(
            125px,
            .42fr
        )
        minmax(
            125px,
            .42fr
        );

    gap: 8px;

    margin-top: 12px;
}

.lp-v9-library-tools
input,

.lp-v9-library-tools
select {
    width: 100%;
    min-width: 0;
    height: 42px;

    padding:
        0
        11px;

    border:
        1px solid
        var(--v9-border);

    border-radius: 12px;

    outline: none;

    background:
        var(--v9-panel);

    color: #e9ebf1;

    font-size: 11px;
}

.lp-v9-library-summary {
    min-height: 45px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        10px
        2px;

    color: #828ca0;

    font-size: 11px;
}

.lp-v9-library-summary strong {
    color: #eef0f5;
}


/* Cards */

.lp-v9-library-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap:
        28px
        16px;
}

.lp-v9-movie-card {
    min-width: 0;
}

.lp-v9-movie-poster {
    position: relative;

    width: 100%;

    aspect-ratio:
        2 / 3;

    display: block;

    margin: 0;
    padding: 0;

    overflow: hidden;

    border:
        1px solid
        var(--v9-border);

    border-radius: 18px;

    background:
        var(--v9-panel);

    box-shadow:
        0 15px 35px
        rgba(0,0,0,.27);
}

.lp-v9-movie-poster img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.lp-v9-poster-rating {
    position: absolute;

    left: 9px;
    bottom: 9px;

    min-height: 28px;

    display: flex;

    align-items: center;

    padding:
        0
        9px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 999px;

    background:
        rgba(5,8,13,.82);

    color: #cfbcff;

    font-size: 10px;
    font-weight: 850;
}

.lp-v9-card-body {
    min-width: 0;

    padding:
        10px
        2px
        0;
}

.lp-v9-card-body h3 {
    margin: 0;

    min-height: 33px;

    display: -webkit-box;

    overflow: hidden;

    color: #f3f5f8;

    font-size: 13px;
    font-weight: 800;

    line-height: 1.28;

    white-space: normal;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.lp-v9-card-body > p:not(.lp-v9-card-review) {
    min-height: 14px;

    margin:
        4px
        0
        0;

    color: #737d91;

    font-size: 9px;
}

.lp-v9-card-scores {
    display: flex;

    flex-wrap: wrap;

    gap: 5px;

    margin-top: 8px;
}

.lp-v9-score {
    min-height: 24px;

    display: inline-flex;

    align-items: center;

    padding:
        0
        7px;

    border:
        1px solid
        rgba(169,137,255,.18);

    border-radius: 999px;

    background:
        rgba(169,137,255,.07);

    color: #cdbbff;

    font-size: 8px;
    font-weight: 800;
}

.lp-v9-score.community {
    border-color:
        rgba(100,206,255,.15);

    background:
        rgba(100,206,255,.055);

    color: #a7ddf6;
}

.lp-v9-score.muted {
    border-color:
        rgba(255,255,255,.07);

    background:
        rgba(255,255,255,.025);

    color: #747e91;
}

.lp-v9-card-review {
    display: -webkit-box;

    margin:
        8px
        0
        0;

    overflow: hidden;

    color: #939cad;

    font-size: 10px;

    line-height: 1.45;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.lp-v9-card-actions {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 6px;

    margin-top: 10px;
}

.lp-v9-card-actions button {
    min-width: 0;
    min-height: 39px;

    margin: 0;
    padding:
        5px
        7px;

    display: flex;

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

    border-radius: 11px;

    font-size: 9px;

    font-weight: 800;

    line-height: 1.2;

    white-space: normal;

    text-align: center;
}

.lp-v9-rate-btn {
    border:
        1px solid
        rgba(172,141,255,.25);

    background:
        linear-gradient(
            115deg,
            rgba(101,207,255,.11),
            rgba(169,137,255,.15),
            rgba(255,119,189,.11)
        );

    color: #ddcffd;
}

.lp-v9-community-btn {
    border:
        1px solid
        rgba(255,255,255,.08);

    background:
        rgba(255,255,255,.03);

    color: #969fb0;
}

.lp-v9-empty {
    grid-column:
        1 / -1;

    min-height: 220px;

    display: flex;

    flex-direction: column;

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

    gap: 7px;

    border:
        1px dashed
        var(--v9-border);

    border-radius: 22px;

    color: var(--v9-muted);

    text-align: center;
}

.lp-v9-empty strong {
    color: var(--v9-text);

    font-size: 16px;
}

.lp-v9-empty span {
    font-size: 11px;
}


/* =========================================================
   PROFILE
   ========================================================= */

.lp-v9-profile-inner {
    width:
        min(
            calc(100% - 32px),
            620px
        );

    margin: 0 auto;

    padding:
        30px
        0
        110px;
}

.lp-v9-profile-logo {
    display: block;

    width: auto;
    height: 40px;

    max-width: 220px;

    margin-bottom: 38px;
}

.lp-v9-profile-eyebrow {
    color: #a98aff;

    font-size: 9px;
    font-weight: 850;

    letter-spacing: .15em;
}

.lp-v9-profile-inner h1 {
    margin:
        8px
        0
        7px;

    font-size:
        clamp(
            34px,
            8vw,
            52px
        );

    line-height: 1;
}

.lp-v9-profile-inner > p {
    margin: 0;

    color: var(--v9-muted);

    font-size: 12px;
}

.lp-v9-profile-stat {
    margin-top: 28px;

    padding: 20px;

    border:
        1px solid
        var(--v9-border);

    border-radius: 18px;

    background:
        rgba(255,255,255,.025);
}

.lp-v9-profile-stat strong {
    display: block;

    font-size: 28px;
}

.lp-v9-profile-stat span {
    color: var(--v9-muted);

    font-size: 10px;
}

.lp-v9-profile-signout {
    width: 100%;
    min-height: 50px;

    margin-top: 20px;

    border:
        1px solid
        rgba(255,112,142,.20);

    border-radius: 14px;

    background:
        rgba(255,112,142,.06);

    color: #ff93a8;

    font-size: 11px;
    font-weight: 800;
}


/* =========================================================
   RATING DIALOG
   One overlay containing the panel.
   ========================================================= */

.lp-v9-rating-overlay {
    position: fixed;

    inset: 0;

    z-index: 60000;

    display: flex;

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

    padding:
        max(
            14px,
            env(safe-area-inset-top)
        )
        14px
        max(
            14px,
            env(safe-area-inset-bottom)
        );

    background:
        rgba(2,5,10,.76);

    backdrop-filter:
        blur(8px);
}

.lp-v9-rating-overlay.hidden {
    display: none !important;
}

.lp-v9-rating-open {
    overflow: hidden !important;
}

.lp-v9-rating-dialog {
    width:
        min(
            760px,
            100%
        );

    max-height:
        min(
            88dvh,
            780px
        );

    overflow-y: auto;

    padding:
        12px
        20px
        22px;

    border:
        1px solid
        rgba(255,255,255,.11);

    border-radius: 24px;

    background:
        linear-gradient(
            180deg,
            #151b27,
            #0c1119
        );

    box-shadow:
        0 30px 90px
        rgba(0,0,0,.55);

    color: var(--v9-text);
}

.lp-v9-dialog-handle {
    width: 40px;
    height: 4px;

    margin:
        0 auto
        17px;

    border-radius: 99px;

    background:
        rgba(255,255,255,.17);
}

.lp-v9-rating-header {
    display: flex;

    justify-content:
        space-between;

    gap: 15px;

    margin-bottom: 22px;
}

.lp-v9-rating-header span {
    color: #ad90ff;

    font-size: 8px;
    font-weight: 850;

    letter-spacing: .13em;
}

.lp-v9-rating-header h2 {
    margin:
        5px
        0
        0;

    font-size:
        clamp(
            20px,
            4vw,
            27px
        );

    line-height: 1.15;
}

#lp-v9-rating-close {
    width: 40px;
    height: 40px;

    flex:
        0 0
        40px;

    display: grid;
    place-items: center;

    margin: 0;
    padding: 0;

    border:
        1px solid
        var(--v9-border);

    border-radius: 13px;

    background:
        rgba(255,255,255,.04);

    color: #d1d5de;

    font-size: 21px;
}

.lp-v9-rating-columns {
    display: grid;

    grid-template-columns:
        minmax(0, .9fr)
        minmax(0, 1.1fr);

    gap: 24px;
}

.lp-v9-your-rating h3 {
    margin:
        0
        0
        9px;

    font-size: 11px;

    color: #929cad;
}

.lp-v9-star-picker {
    position: relative;

    display: inline-block;

    margin: 0;
    padding: 0;

    border: 0;

    background: transparent;

    font-size:
        clamp(
            32px,
            6vw,
            42px
        );

    line-height: 1;

    letter-spacing: 4px;
}

.lp-v9-star-empty {
    display: block;

    color:
        rgba(255,255,255,.14);

    white-space: nowrap;
}

.lp-v9-star-fill {
    position: absolute;

    top: 0;
    left: 0;

    width: 0;

    overflow: hidden;

    color: #b89dff;

    white-space: nowrap;
}

#lp-v9-rating-number {
    display: block;

    min-height: 17px;

    margin-top: 7px;

    color: #a3abba;

    font-size: 11px;
}

#lp-v9-review {
    width: 100%;
    min-height: 100px;

    margin-top: 16px;

    padding:
        12px
        13px;

    resize: vertical;

    border:
        1px solid
        var(--v9-border);

    border-radius: 14px;

    outline: none;

    background:
        rgba(255,255,255,.03);

    color: #eef0f5;

    font: inherit;
    font-size: 12px;

    line-height: 1.45;
}

.lp-v9-rating-save {
    width: 100%;
    height: 48px;

    margin-top: 10px;

    border:
        1px solid
        rgba(255,255,255,.09);

    border-radius: 14px;

    background:
        linear-gradient(
            115deg,
            var(--v9-blue),
            var(--v9-purple),
            var(--v9-pink)
        );

    color: #080b11;

    font-size: 11px;
    font-weight: 850;
}

.lp-v9-rating-message {
    min-height: 18px;

    margin-top: 7px;

    color: #85dfae;

    font-size: 10px;

    text-align: center;
}

.lp-v9-rating-message.error {
    color: #ff8ca3;
}


/* clear community area */

.lp-v9-community-panel {
    min-width: 0;

    padding-left: 22px;

    border-left:
        1px solid
        rgba(255,255,255,.07);
}

.lp-v9-community-heading {
    display: flex;

    align-items:
        flex-end;

    justify-content:
        space-between;

    gap: 10px;

    margin-bottom: 12px;
}

.lp-v9-community-heading > div {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.lp-v9-community-heading
> div
> span {
    color: #808a9d;

    font-size: 8px;
    font-weight: 850;

    letter-spacing: .10em;
}

.lp-v9-community-heading strong {
    color: #d2c0ff;

    font-size: 24px;
}

#lp-v9-community-count {
    color: #7c8699;

    font-size: 9px;
}

.lp-v9-community-list {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.lp-v9-user-rating {
    padding:
        12px
        13px;

    border:
        1px solid
        rgba(255,255,255,.07);

    border-radius: 13px;

    background:
        rgba(255,255,255,.025);
}

.lp-v9-user-rating.mine {
    border-color:
        rgba(169,137,255,.23);

    background:
        rgba(169,137,255,.045);
}

.lp-v9-user-rating-header {
    display: flex;

    justify-content:
        space-between;

    gap: 10px;
}

.lp-v9-user-rating-header strong {
    min-width: 0;

    overflow: hidden;

    font-size: 11px;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.lp-v9-user-rating-header span {
    flex: 0 0 auto;

    color: #c7b0ff;

    font-size: 10px;
    font-weight: 850;
}

.lp-v9-user-rating p {
    margin:
        7px
        0
        0;

    color: #959eae;

    font-size: 11px;

    line-height: 1.45;

    white-space: pre-wrap;
}

.lp-v9-community-empty {
    padding:
        22px
        12px;

    border:
        1px dashed
        var(--v9-border);

    border-radius: 13px;

    color: #7f899c;

    font-size: 10px;

    text-align: center;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {

    .lp-v9-library-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }
}


@media (max-width: 650px) {

    .lp-v9-nav {
        top: auto;

        bottom:
            max(
                9px,
                env(
                    safe-area-inset-bottom
                )
            );

        width:
            calc(100% - 22px);

        min-width: 0;
    }

    .lp-v9-page-inner {
        width:
            calc(
                100%
                - 24px
            );

        padding-top: 20px;
    }

    .lp-v9-library-tools {
        grid-template-columns:
            1fr
            1fr;
    }

    #lp-v9-search {
        grid-column:
            1 / -1;
    }

    .lp-v9-library-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap:
            20px
            10px;
    }

    .lp-v9-card-actions {
        grid-template-columns:
            1fr;
    }

    .lp-v9-rating-columns {
        grid-template-columns:
            1fr;

        gap: 20px;
    }

    .lp-v9-community-panel {
        padding:
            20px
            0
            0;

        border-left: 0;

        border-top:
            1px solid
            rgba(255,255,255,.07);
    }

    .lp-v9-rating-dialog {
        max-height:
            92dvh;

        padding:
            10px
            16px
            20px;
    }

    .lp-v9-session-logo {
        height: 29px;

        max-width: 145px;
    }
}


@media (max-width: 390px) {

    .lp-v9-session-toolbar {
        column-gap: 7px;
    }

    .lp-v9-session-logo {
        height: 25px;

        max-width: 110px;
    }

    body.lp-v9-session-active
    #matches-pill {
        min-width:
            72px !important;

        padding:
            0
            9px !important;
    }

    .lp-v9-actions {
        gap: 5px;
    }

    .lp-v9-actions button {
        height: 52px;
    }

    .lp-v9-library-tools {
        grid-template-columns:
            1fr;
    }

    #lp-v9-search {
        grid-column: auto;
    }
}


/*
 * Very short desktop/browser windows.
 * The poster keeps shrinking rather than
 * pushing title/actions beyond the viewport.
 */

@media (max-height: 720px) {

    .lp-v9-stage
    #swipe-deck {
        height:
            min(
                48dvh,
                calc(
                    100dvh
                    - 240px
                )
            )
            !important;
    }

    .lp-v9-session-shell {
        gap: 5px;
    }

    .lp-v9-actions button {
        height: 49px;
    }
}


@media (max-height: 600px) {

    .lp-v9-stage
    #swipe-deck {
        height:
            min(
                43dvh,
                calc(
                    100dvh
                    - 215px
                )
            )
            !important;
    }

    .lp-v9-session-logo {
        height: 25px;
    }

    body.lp-v9-session-active
    #undo-btn,

    body.lp-v9-session-active
    #quit-pill,

    body.lp-v9-session-active
    #matches-pill {
        height: 35px !important;

        min-height:
            35px !important;
    }

    .lp-v9-actions button {
        height: 44px;
    }
}
