/* =========================================================
   LEXPICK MOBILE V5
   Phone-first application shell
   ========================================================= */

:root {
    --lp-bg: #080b12;
    --lp-panel: #111621;
    --lp-panel-2: #151b28;
    --lp-border: rgba(255,255,255,.08);
    --lp-text: #f7f8fb;
    --lp-muted: #8e97aa;
    --lp-blue: #65d0ff;
    --lp-purple: #a987ff;
    --lp-pink: #ff78bf;
    --lp-danger: #ff718f;
}


/* =========================================================
   BOTTOM NAVIGATION
   ========================================================= */

.lp-mobile-nav {
    position: fixed;

    left: 50%;
    bottom:
        max(
            12px,
            env(safe-area-inset-bottom)
        );

    transform:
        translateX(-50%);

    z-index: 12000;

    width:
        min(
            calc(100% - 24px),
            520px
        );

    min-height: 68px;

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

    gap: 4px;

    padding: 6px;

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

    border-radius: 24px;

    background:
        rgba(14,18,28,.90);

    box-shadow:
        0 20px 55px
        rgba(0,0,0,.48);

    backdrop-filter:
        blur(24px);
}

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

.lp-mobile-nav-item {
    min-width: 0;
    min-height: 56px;

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

    gap: 4px;

    border: 0;
    border-radius: 18px;

    background: transparent;

    color: #737d91;

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

    cursor: pointer;
}

.lp-mobile-nav-item svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lp-mobile-nav-item.active {
    background:
        linear-gradient(
            135deg,
            rgba(94,200,255,.10),
            rgba(169,134,255,.12),
            rgba(255,114,188,.09)
        );

    color: #f6f7fb;
}

.lp-mobile-nav-item.active svg {
    color: #b99cff;
}


/* =========================================================
   CUSTOM FULL APP VIEWS
   ========================================================= */

.lp-mobile-view {
    position: fixed;

    inset: 0;

    z-index: 8000;

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

    background:
        radial-gradient(
            circle at 5% 0%,
            rgba(94,200,255,.08),
            transparent 27%
        ),
        radial-gradient(
            circle at 95% 3%,
            rgba(255,114,188,.07),
            transparent 28%
        ),
        var(--lp-bg);

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

.lp-mobile-view.hidden {
    display: none !important;
}

.lp-mobile-view-inner {
    width:
        min(
            100%,
            980px
        );

    min-height: 100%;

    margin: 0 auto;

    padding:
        26px
        18px
        120px;
}

.lp-mobile-view-header {
    max-width: 600px;

    margin-bottom: 25px;
}

.lp-mobile-brand {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 38px;

    color: #f7f8fb;

    font-size: 14px;
    font-weight: 780;
}

.lp-mobile-brand > span {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 11px;

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

    color: #080a10;

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

.lp-view-eyebrow {
    color: #a894ee;

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

    letter-spacing: .16em;
}

.lp-mobile-view-header h1 {
    margin:
        8px 0
        7px;

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

    line-height: 1;

    letter-spacing: -2px;
}

.lp-mobile-view-header p {
    margin: 0;

    color: var(--lp-muted);

    font-size: 14px;
}


/* =========================================================
   RATED LIBRARY
   ========================================================= */

.lp-rated-summary {
    min-height: 28px;

    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 16px;

    color: var(--lp-muted);

    font-size: 12px;
}

.lp-rated-summary strong {
    color: var(--lp-text);
}

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

    gap:
        18px
        12px;
}

.lp-rated-card {
    min-width: 0;

    padding: 0;

    border: 0;

    background: transparent;

    color: inherit;

    text-align: left;

    cursor: pointer;
}

.lp-rated-poster {
    position: relative;

    width: 100%;

    aspect-ratio: 2 / 3;

    overflow: hidden;

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

    border-radius: 18px;

    background: #121722;

    box-shadow:
        0 16px 35px
        rgba(0,0,0,.30);
}

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

    display: block;

    object-fit: cover;
}

.lp-rated-poster-fallback {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            145deg,
            #121a28,
            #1b1827
        );

    color: #9d8bd6;

    font-size: 28px;
    font-weight: 900;
}

.lp-rated-score {
    position: absolute;

    left: 9px;
    bottom: 9px;

    padding:
        6px
        9px;

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

    border-radius: 999px;

    background:
        rgba(6,8,13,.80);

    backdrop-filter:
        blur(12px);

    color: #d3bdff;

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

.lp-rated-card-copy {
    padding:
        10px
        3px
        0;
}

.lp-rated-card-copy strong {
    display: block;

    overflow: hidden;

    color: #f5f6fa;

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

    line-height: 1.25;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-rated-card-copy > span {
    display: block;

    margin-top: 4px;

    overflow: hidden;

    color: #788296;

    font-size: 10px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-rated-card-copy p {
    display: -webkit-box;

    margin:
        8px 0 0;

    overflow: hidden;

    color: #9aa3b5;

    font-size: 11px;
    line-height: 1.4;

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

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

    min-height: 260px;

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

    gap: 8px;

    padding: 35px;

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

    border-radius: 24px;

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

    text-align: center;
}

.lp-rated-empty-star {
    margin-bottom: 8px;

    color: #b69aff;

    font-size: 38px;
}

.lp-rated-empty strong {
    font-size: 18px;
}

.lp-rated-empty span {
    max-width: 270px;

    color: var(--lp-muted);

    font-size: 12px;
    line-height: 1.5;
}


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

.lp-profile-card {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 18px;

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

    border-radius: 22px;

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

.lp-profile-avatar {
    width: 58px;
    height: 58px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 19px;

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

    color: #080a10;

    font-size: 23px;
    font-weight: 900;
}

.lp-profile-copy {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.lp-profile-copy strong {
    overflow: hidden;

    font-size: 17px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

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

    font-size: 11px;
}

.lp-profile-stats {
    display: grid;
    grid-template-columns: 1fr;

    margin-top: 14px;
}

.lp-profile-stats > div {
    padding: 20px;

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

    border-radius: 20px;

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

.lp-profile-stats strong {
    display: block;

    font-size: 27px;
}

.lp-profile-stats span {
    display: block;

    margin-top: 3px;

    color: var(--lp-muted);

    font-size: 11px;
}

.lp-profile-logout {
    width: 100%;
    min-height: 52px;

    margin-top: 24px;

    border:
        1px solid
        rgba(255,113,143,.20);

    border-radius: 16px;

    background:
        rgba(255,113,143,.07);

    color: #ff93aa;

    font-weight: 750;

    cursor: pointer;
}


/* =========================================================
   CURRENT MOVIE / PICK ACTIONS
   ========================================================= */

.lp-mobile-current {
    width:
        min(
            calc(100vw - 26px),
            430px
        );

    margin: 0 auto;

    display: grid;

    gap: 11px;
}

.lp-current-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    min-height: 43px;

    padding:
        0
        3px;
}

.lp-current-copy h2 {
    margin: 0;

    overflow: hidden;

    color: #f7f8fb;

    font-size: 17px;
    font-weight: 760;

    letter-spacing: -.35px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-current-meta {
    min-height: 15px;

    margin-top: 3px;

    overflow: hidden;

    color: #7f899c;

    font-size: 10px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-pick-actions {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);

    gap: 8px;
}

.lp-pick-action {
    min-width: 0;
    min-height: 58px;

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

    gap: 2px;

    padding: 5px;

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

    border-radius: 17px;

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

    color: #dce0e9;

    box-shadow: none;

    cursor: pointer;
}

.lp-pick-action > span {
    font-size: 20px;
    line-height: 1;
}

.lp-pick-action > small {
    color: #929bad;

    font-size: 9px;
    font-weight: 700;
}

.lp-pick-action.lp-pass {
    border-color:
        rgba(255,113,143,.18);

    color: #ff839d;
}

.lp-pick-action.lp-pick {
    border-color:
        rgba(101,208,255,.20);

    background:
        linear-gradient(
            135deg,
            rgba(101,208,255,.12),
            rgba(169,135,255,.13),
            rgba(255,120,191,.12)
        );

    color: #ff9bd0;
}


/* =========================================================
   MOBILE HOME
   ========================================================= */

@media (max-width: 740px) {

    body {
        padding-bottom:
            calc(
                88px
                + env(safe-area-inset-bottom)
            );
    }

    #main-menu {
        padding-bottom:
            100px !important;
    }

    #main-menu .lp-nav {
        display: none !important;
    }

    .lp-header {
        height: 66px !important;

        padding:
            11px
            16px !important;
    }

    .lp-home {
        padding:
            32px
            16px
            112px !important;
    }

    .lp-hero {
        max-width: 420px !important;
    }

    .lp-hero h2 {
        margin:
            12px 0
            13px !important;

        font-size:
            clamp(
                37px,
                11.5vw,
                53px
            ) !important;

        line-height:
            .98 !important;

        letter-spacing:
            -2.3px !important;
    }

    .lp-hero p {
        max-width: 340px !important;

        font-size: 13px !important;

        line-height: 1.5 !important;
    }

    .lp-mode-grid {
        grid-template-columns:
            1fr !important;

        gap: 12px !important;

        margin-top:
            34px !important;
    }

    .lp-mode-card {
        min-height:
            205px !important;

        padding:
            22px !important;

        border-radius:
            23px !important;
    }

    .lp-mode-card h3 {
        font-size:
            22px !important;
    }

    .lp-mode-card p {
        font-size:
            12px !important;

        line-height:
            1.5 !important;
    }

    .lp-mode-content {
        margin-top:
            20px !important;
    }


    /* ---------------------------------------------
       PICK VIEW
       --------------------------------------------- */

    #game-area.lp-game:not(.hidden) {
        grid-template-rows:
            auto
            auto
            minmax(0, 1fr)
            auto !important;

        gap:
            7px !important;

        padding:
            max(
                8px,
                env(safe-area-inset-top)
            )
            10px
            max(
                8px,
                env(safe-area-inset-bottom)
            )
            !important;
    }

    #game-area .lp-swipe-guide {
        display: none !important;
    }

    #game-area .lp-game-header {
        min-height:
            43px !important;
    }

    #game-area .lp-filter-row {
        min-height:
            38px !important;
    }

    #game-area #swipe-deck {
        width:
            min(
                calc(100vw - 28px),
                40dvh,
                370px
            ) !important;

        max-width:
            370px !important;

        margin:
            0 auto !important;
    }

    #game-area .movie-card,
    #game-area .card-inner,
    #game-area .card-front,
    #game-area .card-back {
        border-radius:
            21px !important;
    }

    #game-area .card-front img {
        object-fit:
            cover !important;
    }

    #game-area #genre-pill {
        min-width:
            92px !important;

        height:
            38px !important;

        border-radius:
            13px !important;

        font-size:
            10px !important;
    }

    #game-area #matches-pill {
        min-width:
            84px !important;

        height:
            40px !important;

        padding:
            0 12px !important;

        border-radius:
            13px !important;

        font-size:
            10px !important;
    }

    #game-area #undo-btn,
    #game-area #quit-pill {
        width:
            40px !important;

        min-width:
            40px !important;

        height:
            40px !important;

        border-radius:
            13px !important;
    }

    #game-area #solo-badge {
        padding:
            7px
            10px !important;

        font-size:
            9px !important;
    }
}


/* Very narrow phones */

@media (max-width: 360px) {

    .lp-mobile-nav {
        width:
            calc(100% - 14px);

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

    .lp-mobile-nav-item {
        min-height: 53px;
    }

    .lp-rated-grid {
        gap:
            15px
            9px;
    }

    #game-area #swipe-deck {
        width:
            min(
                calc(100vw - 22px),
                38dvh,
                330px
            ) !important;
    }

    .lp-pick-action {
        min-height:
            54px;
    }
}


/* Larger screens adapt upward from mobile */

@media (min-width: 741px) {

    .lp-rated-grid {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );

        gap: 24px 16px;
    }

    .lp-mobile-view-inner {
        padding:
            42px
            30px
            120px;
    }

    .lp-mobile-current {
        width:
            min(
                430px,
                90vw
            );
    }
}


/* =========================================================
   LEXPICK MOBILE V6 FINAL PASS
   ========================================================= */


/* ---------------------------------------------------------
   MODALS MUST ALWAYS APPEAR ABOVE THE PICK SCREEN
   --------------------------------------------------------- */

#genre-modal,
#matches-modal,
#quit-modal,
#delete-modal,
#delete-modal-overlay,
#jellyfin-modal {
    z-index: 40000 !important;
}

#match-overlay {
    z-index: 41000 !important;
}

.lp-rating-sheet,
.lp-rating-backdrop,
[id*="rating"][class*="modal"],
[id*="rating"][class*="sheet"] {
    z-index: 42000 !important;
}


/* ---------------------------------------------------------
   NAV
   --------------------------------------------------------- */

.lp-mobile-nav {
    z-index: 30000 !important;

    box-sizing: border-box;

    min-height: 70px;

    padding:
        6px
        7px;

    border-radius: 23px;
}

.lp-mobile-nav-item {
    position: relative;

    box-sizing: border-box;

    width: 100%;
    min-width: 0;
    height: 56px;
    min-height: 56px;

    margin: 0;
    padding: 0;

    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;

    gap: 4px;

    line-height: 1;
}

.lp-mobile-nav-item svg {
    display: block;

    width: 21px;
    height: 21px;

    margin: 0;

    flex: 0 0 auto;
}

.lp-mobile-nav-item > span:last-child {
    display: block;

    width: 100%;

    margin: 0;

    text-align: center;

    line-height: 12px;
}

.lp-nav-icon-wrap {
    position: relative;

    width: 23px !important;
    height: 23px;

    display: grid !important;
    place-items: center;
}

.lp-rated-badge {
    position: absolute;

    top: -7px;
    right: -11px;

    min-width: 17px;
    height: 17px;

    display: grid;
    place-items: center;

    padding: 0 4px;

    border:
        2px solid
        #0d111a;

    border-radius: 99px;

    background:
        linear-gradient(
            135deg,
            #81d7ff,
            #ad8dff,
            #ff7ec2
        );

    color: #080a0f;

    font-size: 8px;
    font-style: normal;
    font-weight: 900;

    line-height: 1;
}

.lp-rated-badge.hidden {
    display: none !important;
}


/* ---------------------------------------------------------
   PICK ACTION BUTTONS
   --------------------------------------------------------- */

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

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

    align-items: stretch;

    gap: 8px;
}

.lp-pick-action {
    box-sizing: border-box;

    width: 100%;
    min-width: 0;
    height: 62px;
    min-height: 62px;

    margin: 0;
    padding: 6px 2px;

    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;

    gap: 3px;

    border-radius: 17px;

    line-height: 1;
}

.lp-action-icon {
    width: 27px;
    height: 27px;

    display: grid !important;
    place-items: center !important;

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

    font-size: 20px !important;
    font-weight: 700;

    line-height: 27px !important;

    text-align: center;
}

.lp-info-icon {
    font-family:
        Georgia,
        serif;

    font-size: 19px !important;
    font-weight: 800;
}

.lp-pick-action small {
    width: 100%;

    display: block;

    margin: 0;
    padding: 0;

    text-align: center;

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

    line-height: 11px;
}


/* ---------------------------------------------------------
   CURRENT MOVIE INFORMATION
   --------------------------------------------------------- */

.lp-mobile-current {
    box-sizing: border-box;

    width:
        min(
            calc(100vw - 28px),
            430px
        );

    margin:
        10px auto
        0 !important;

    gap: 11px;
}

.lp-current-copy {
    box-sizing: border-box;

    width: 100%;
    min-height: 42px;

    padding:
        0
        3px;

    display: block;
}

.lp-current-copy h2 {
    width: 100%;

    margin: 0 !important;

    text-align: left;
}

.lp-current-meta {
    margin-top: 5px;

    text-align: left;
}


/* ---------------------------------------------------------
   TOP GAME CONTROLS
   --------------------------------------------------------- */

@media (max-width: 740px) {

    /*
     * Remove the old instruction that was creating
     * the large dead gap beneath the poster.
     */
    #poster-instruction,
    #game-area .match-instruction {
        display: none !important;
    }


    #game-area:not(.hidden) {
        box-sizing: border-box;

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

        padding-bottom:
            calc(
                108px
                + env(safe-area-inset-bottom)
            ) !important;
    }


    /*
     * All four legacy top controls use a consistent
     * height and true flex centering.
     */

    #genre-pill,
    #undo-btn,
    #matches-pill,
    #quit-pill,
    #solo-badge {
        box-sizing: border-box !important;

        margin: 0 !important;

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

        line-height: 1 !important;

        text-align: center !important;
    }


    #genre-pill {
        min-width: 92px !important;
        height: 42px !important;

        padding:
            0
            14px !important;

        border-radius: 14px !important;
    }


    #undo-btn {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;

        padding: 0 !important;

        border-radius: 14px !important;

        font-size: 17px !important;
    }


    #matches-pill {
        min-width: 88px !important;
        height: 42px !important;

        padding:
            0
            14px !important;

        border-radius: 14px !important;

        font-size: 10px !important;
        font-weight: 800 !important;
    }


    #quit-pill {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;

        padding: 0 !important;

        border-radius: 14px !important;

        font-size: 16px !important;
    }


    #solo-badge {
        min-height: 30px !important;

        padding:
            0
            12px !important;

        border-radius: 999px !important;
    }


    /*
     * Keep the poster large without allowing it
     * to push the controls off-screen.
     */

    #game-area #swipe-deck {
        width:
            min(
                calc(100vw - 34px),
                330px
            ) !important;

        max-width:
            330px !important;

        margin:
            58px auto
            0 !important;
    }


    #game-area .movie-card {
        width: 100% !important;
    }


    /*
     * Bottom navigation is ALWAYS available while
     * picking, so Rated is never hidden.
     */

    .lp-mobile-nav {
        bottom:
            max(
                8px,
                env(safe-area-inset-bottom)
            );
    }


    /*
     * Rated view has room for the fixed nav.
     */

    .lp-mobile-view-inner {
        padding:
            24px
            16px
            calc(
                108px
                + env(safe-area-inset-bottom)
            );
    }
}


/* ---------------------------------------------------------
   RATED PAGE POLISH
   --------------------------------------------------------- */

.lp-rated-grid {
    align-items: start;
}

.lp-rated-card {
    width: 100%;

    margin: 0;
}

.lp-rated-poster {
    box-sizing: border-box;
}

.lp-rated-score {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 28px;

    line-height: 1;
}


/* ---------------------------------------------------------
   LOGIN - MOBILE / KEYBOARD POLISH
   --------------------------------------------------------- */

#jf-username,
#jf-password {
    box-sizing: border-box;
}

#jellyfin-modal .login-form button {
    min-height: 48px;

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

    line-height: 1 !important;
}


/* ---------------------------------------------------------
   PHONE HEIGHT TUNING
   --------------------------------------------------------- */

@media (
    max-width: 740px
)
and (
    max-height: 760px
) {

    #game-area #swipe-deck {
        width:
            min(
                calc(100vw - 38px),
                285px
            ) !important;

        max-width:
            285px !important;
    }

    .lp-pick-action {
        height: 56px;
        min-height: 56px;
    }

    .lp-mobile-current {
        margin-top:
            6px !important;
    }
}


/* =========================================================
   OFFICIAL LEXPICK BRANDING
   ========================================================= */

.lp-mobile-brand {
    width: auto;

    display: flex;
    align-items: center;

    margin-bottom: 34px;
}

.lp-mobile-brand img {
    display: block;

    width: auto;
    height: 38px;

    max-width: 190px;

    object-fit: contain;
    object-position: left center;
}

.lp-logo-image {
    display: block;

    width: auto;
    height: 34px;

    max-width: 180px;

    object-fit: contain;
}

@media (max-width: 740px) {

    .lp-mobile-brand img {
        height: 34px;
        max-width: 170px;
    }

    .lp-logo-image {
        height: 31px;
        max-width: 155px;
    }
}


/* =========================================================
   LEXPICK V7
   OFFICIAL BRANDING + COMMUNITY RATINGS
   ========================================================= */


/* ---------------------------------------------------------
   OFFICIAL BRANDING
   --------------------------------------------------------- */

.lp-header-official-brand {
    flex: 0 0 auto;

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

    min-width: 0;
}

.lp-header-official-logo {
    display: block;

    width: auto;
    height: 34px;

    max-width: 185px;

    object-fit: contain;
    object-position: left center;
}

.lp-official-logo {
    display: block;

    width: auto;
    height: 38px;

    max-width: 200px;

    object-fit: contain;
    object-position: left center;
}

.lp-page-official-logo {
    display: block;

    width: auto;
    height: 52px;

    max-width: min(
        250px,
        80vw
    );

    margin:
        0 auto;

    object-fit: contain;
}


/* ---------------------------------------------------------
   COMMUNITY RATING BACKDROP
   --------------------------------------------------------- */

.lp-community-rating-backdrop {
    position: fixed;

    inset: 0;

    z-index: 49990;

    background:
        rgba(
            3,
            5,
            10,
            .72
        );

    backdrop-filter:
        blur(8px);
}

.lp-community-rating-backdrop.hidden {
    display: none !important;
}


/* ---------------------------------------------------------
   COMMUNITY RATING SHEET
   --------------------------------------------------------- */

.lp-community-rating-sheet {
    position: fixed;

    left: 50%;
    bottom: 0;

    z-index: 50000;

    box-sizing: border-box;

    width:
        min(
            100%,
            560px
        );

    max-height:
        min(
            92dvh,
            900px
        );

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

    transform:
        translateX(-50%);

    padding:
        10px
        20px
        calc(
            24px
            + env(
                safe-area-inset-bottom
            )
        );

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

    border-bottom: 0;

    border-radius:
        28px
        28px
        0
        0;

    background:
        linear-gradient(
            180deg,
            #141925 0%,
            #0b0f17 100%
        );

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

    color: #f7f8fb;
}

.lp-community-rating-sheet.hidden {
    display: none !important;
}

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

.lp-rating-handle {
    width: 42px;
    height: 4px;

    margin:
        0 auto
        17px;

    border-radius: 99px;

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


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.lp-community-rating-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 25px;
}

.lp-rating-eyebrow {
    display: block;

    margin-bottom: 5px;

    color: #a991ff;

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

    letter-spacing: .14em;
}

.lp-community-rating-header h2 {
    margin: 0;

    color: #f7f8fb;

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

    line-height: 1.15;

    letter-spacing: -.7px;
}

.lp-community-close {
    box-sizing: border-box;

    width: 40px;
    height: 40px;

    flex:
        0
        0
        40px;

    display: grid;
    place-items: center;

    margin: 0;
    padding: 0;

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

    border-radius: 14px;

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

    color: #c4cad6;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;
}


/* ---------------------------------------------------------
   YOUR RATING
   --------------------------------------------------------- */

.lp-community-own-rating {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.lp-rating-label {
    margin-bottom: 9px;

    color: #8d96a8;

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

.lp-star-picker {
    position: relative;

    align-self: flex-start;

    margin: 0;
    padding: 0;

    border: 0;

    background: transparent;

    color: inherit;

    font-family:
        Arial,
        sans-serif;

    font-size:
        clamp(
            36px,
            10vw,
            44px
        );

    line-height: 1;

    letter-spacing: 5px;

    cursor: pointer;

    touch-action: manipulation;
}

.lp-star-base {
    display: block;

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

    white-space: nowrap;
}

.lp-star-fill {
    position: absolute;

    top: 0;
    left: 0;

    width: 0%;

    overflow: hidden;

    color: #b99cff;

    white-space: nowrap;

    pointer-events: none;

    transition:
        width
        .12s
        ease;
}

.lp-rating-number {
    min-height: 19px;

    margin-top: 7px;

    color: #b8bfcc;

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

.lp-community-review {
    box-sizing: border-box;

    width: 100%;
    min-height: 92px;

    margin-top: 18px;

    resize: vertical;

    padding:
        13px
        14px;

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

    border-radius: 16px;

    outline: none;

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

    color: #f4f6fa;

    font: inherit;
    font-size: 13px;

    line-height: 1.45;
}

.lp-community-review:focus {
    border-color:
        rgba(
            174,
            143,
            255,
            .55
        );

    box-shadow:
        0 0 0 3px
        rgba(
            174,
            143,
            255,
            .08
        );
}

.lp-community-save {
    box-sizing: border-box;

    width: 100%;
    min-height: 50px;

    margin-top: 12px;

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

    border-radius: 16px;

    background:
        linear-gradient(
            115deg,
            #6ed1ff,
            #a987ff 52%,
            #ff78bf
        );

    color: #090b11;

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

    cursor: pointer;
}

.lp-community-save:disabled {
    opacity: .6;
    cursor: wait;
}

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

    margin-top: 8px;

    color: #85dfb0;

    font-size: 11px;
    font-weight: 650;

    text-align: center;
}

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


/* ---------------------------------------------------------
   COMMUNITY
   --------------------------------------------------------- */

.lp-community-divider {
    height: 1px;

    margin:
        20px
        0;

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

.lp-community-summary {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 14px;

    margin-bottom: 14px;
}

.lp-community-summary > div {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.lp-community-summary
> div
> span {
    color: #818b9e;

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

    text-transform: uppercase;

    letter-spacing: .08em;
}

.lp-community-summary strong {
    color: #d2bdff;

    font-size: 22px;
}

.lp-community-count {
    color: #7f899b;

    font-size: 10px;
}

.lp-community-list {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.lp-community-review-row {
    padding:
        13px
        14px;

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

    border-radius: 16px;

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

.lp-community-review-row.is-me {
    border-color:
        rgba(
            169,
            135,
            255,
            .25
        );

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

.lp-community-review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

.lp-community-review-top strong {
    min-width: 0;

    overflow: hidden;

    color: #f1f3f7;

    font-size: 12px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-community-review-top span {
    flex: 0 0 auto;

    color: #c7aeff;

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

.lp-community-review-row p {
    margin:
        8px
        0
        0;

    color: #9da5b5;

    font-size: 12px;

    line-height: 1.5;

    white-space: pre-wrap;
}

.lp-community-empty {
    padding:
        22px
        14px;

    border:
        1px dashed
        rgba(
            255,
            255,
            255,
            .08
        );

    border-radius: 15px;

    color: #7f899b;

    font-size: 11px;

    text-align: center;
}


/* ---------------------------------------------------------
   MOBILE BRANDING SIZING
   --------------------------------------------------------- */

@media (max-width: 740px) {

    .lp-header-official-logo {
        height: 31px;
        max-width: 160px;
    }

    .lp-official-logo {
        height: 34px;
        max-width: 175px;
    }

    .lp-community-rating-sheet {
        width: 100%;

        max-height: 94dvh;

        padding-left: 17px;
        padding-right: 17px;
    }
}


/* =========================================================
   LEXPICK V8
   RESPONSIVE FINAL PASS
   ========================================================= */

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


/* =========================================================
   ACCOUNT MENU
   ========================================================= */

.lp-account-wrap {
    position: fixed;

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

    right: 15px;

    z-index: 35000;
}

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

.lp-account-button {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    margin: 0;
    padding: 0;

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

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #6dd3ff,
            #a888ff,
            #ff79bf
        );

    color: #090b11;

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

    cursor: pointer;
}

.lp-account-dropdown {
    position: absolute;

    top: 49px;
    right: 0;

    width: 160px;

    padding: 6px;

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

    border-radius: 16px;

    background:
        rgba(16,21,32,.97);

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

    backdrop-filter:
        blur(20px);
}

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

.lp-account-dropdown button {
    width: 100%;
    min-height: 42px;

    display: flex;
    align-items: center;

    padding:
        0
        12px;

    border: 0;

    border-radius: 11px;

    background: transparent;

    color: #e5e8ef;

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

    text-align: left;

    cursor: pointer;
}

.lp-account-dropdown button:hover {
    background:
        rgba(255,255,255,.06);
}


/* =========================================================
   ACTIVE SESSION
   Completely separate responsive layout.
   ========================================================= */

body.lp-session-active {
    overflow: hidden !important;

    padding: 0 !important;
}

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

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

#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:
        max(
            10px,
            env(safe-area-inset-top)
        )
        12px
        max(
            10px,
            env(safe-area-inset-bottom)
        )
        !important;

    display: grid !important;

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

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

    gap: 10px !important;

    overflow: hidden !important;

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(83,202,255,.08),
            transparent 34%
        ),
        radial-gradient(
            circle at 100% 0%,
            rgba(255,105,190,.08),
            transparent 34%
        ),
        #070b12 !important;
}


/* Hide old floating pieces */

#game-area:not(.hidden)
#glow-left,

#game-area:not(.hidden)
#glow-right,

#game-area:not(.hidden)
#poster-instruction,

#game-area:not(.hidden)
.match-instruction {
    display: none !important;
}


/* =========================================================
   SESSION TOOLBAR
   ========================================================= */

.lp-session-toolbar {
    grid-row: 1;

    width:
        min(
            100%,
            760px
        );

    margin:
        0 auto;

    display: grid;

    gap: 8px;
}

.lp-session-row {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 8px;
}

.lp-session-row-main {
    justify-content:
        space-between;
}

.lp-session-main-controls {
    min-width: 0;

    display: flex;
    align-items: center;

    justify-content: flex-end;

    gap: 7px;
}

.lp-session-logo {
    width: auto;
    height: 31px;

    max-width: 155px;

    display: block;

    object-fit: contain;
    object-position:
        left center;
}

.lp-session-row-filter {
    min-height: 38px;

    justify-content:
        space-between;
}

#lp-session-filter-control,
#lp-session-mode-control {
    min-width: 0;

    display: flex;
    align-items: center;
}


/* Override ALL old absolute/fixed control layout */

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

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

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

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

body.lp-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;

    white-space: nowrap;

    line-height: 1 !important;
}

body.lp-session-active
#genre-pill {
    width: auto !important;
    max-width: min(48vw, 210px);

    height: 38px !important;

    padding:
        0
        14px !important;

    overflow: hidden;

    border-radius:
        13px !important;

    text-overflow:
        ellipsis;

    font-size:
        10px !important;
}

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

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

    padding: 0 !important;

    border-radius:
        13px !important;

    font-size:
        16px !important;
}

body.lp-session-active
#matches-pill {
    width: auto !important;
    min-width: 82px !important;
    max-width: 120px;

    height: 40px !important;

    padding:
        0
        13px !important;

    border-radius:
        13px !important;

    font-size:
        9px !important;
    font-weight:
        850 !important;
}

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

    padding:
        0
        11px !important;

    border-radius:
        999px !important;

    font-size:
        9px !important;
}


/* =========================================================
   SESSION POSTER
   ========================================================= */

#game-area:not(.hidden)
#swipe-deck {
    grid-row: 2;

    align-self: center;
    justify-self: center;

    position: relative !important;

    /*
     * Width reacts to both viewport WIDTH and HEIGHT.
     * This prevents controls/text from disappearing on
     * short browser windows.
     */
    width:
        min(
            82vw,
            380px,
            calc(
                (
                    100dvh
                    - 260px
                )
                * .6667
            )
        )
        !important;

    height: auto !important;

    aspect-ratio:
        2 / 3;

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

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

    margin: 0 !important;
}

#game-area:not(.hidden)
#swipe-deck
.movie-card {
    position: absolute !important;

    inset: 0 !important;

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

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

    margin: 0 !important;
}

#game-area:not(.hidden)
#swipe-deck
.card-inner,

#game-area:not(.hidden)
#swipe-deck
.card-front,

#game-area:not(.hidden)
#swipe-deck
.card-back {
    width: 100% !important;
    height: 100% !important;

    border-radius:
        clamp(
            16px,
            4vw,
            23px
        )
        !important;
}

#game-area:not(.hidden)
.card-front img {
    width: 100% !important;
    height: 100% !important;

    display: block;

    object-fit: cover !important;
}


/* =========================================================
   SESSION TITLE + ACTIONS
   ========================================================= */

.lp-mobile-current {
    grid-row: 3;

    width:
        min(
            100%,
            470px
        )
        !important;

    margin:
        0 auto !important;

    display: grid;

    gap: 9px;
}

.lp-current-copy {
    width: 100%;

    min-width: 0;
    min-height: 0;

    padding:
        0
        3px !important;
}

.lp-current-copy h2 {
    width: 100%;

    margin: 0 !important;

    overflow: visible !important;

    color: #f5f7fa;

    font-size:
        clamp(
            15px,
            3vw,
            18px
        )
        !important;

    line-height: 1.22 !important;

    letter-spacing:
        -.3px;

    white-space:
        normal !important;

    text-overflow:
        clip !important;

    overflow-wrap:
        anywhere;
}

.lp-current-meta {
    width: 100%;

    margin-top:
        4px !important;

    overflow: visible !important;

    color: #818b9e;

    font-size:
        10px !important;

    line-height:
        1.3 !important;

    white-space:
        normal !important;

    text-overflow:
        clip !important;
}

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

    display: grid !important;

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

    gap: 7px;
}

.lp-pick-action {
    width: 100% !important;
    min-width: 0 !important;
    height: 56px !important;
    min-height: 56px !important;

    margin: 0 !important;
    padding:
        4px
        2px !important;

    display: flex !important;
    flex-direction: column;

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

    gap: 2px;

    border-radius:
        16px !important;

    line-height:
        1 !important;
}

.lp-action-icon {
    width: 25px !important;
    height: 25px !important;

    display: grid !important;

    place-items:
        center !important;

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

    font-size:
        19px !important;

    line-height:
        25px !important;

    text-align:
        center !important;
}

.lp-pick-action small {
    width: 100%;

    display: block;

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

    font-size:
        9px !important;

    line-height:
        11px !important;

    text-align:
        center !important;
}


/* =========================================================
   DO NOT SHOW BOTTOM BAR IN ACTIVE SESSION
   ========================================================= */

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


/* =========================================================
   GENRE MODAL
   Fix overflowing final rows.
   ========================================================= */

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

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

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

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

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

    max-width:
        520px !important;

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

    height: auto !important;

    margin: 0 !important;

    padding:
        20px !important;

    overflow-y:
        auto !important;

    border-radius:
        22px !important;
}

#genre-list {
    width: 100% !important;

    display: grid !important;

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

    gap: 7px !important;

    margin-top:
        16px !important;
}

#genre-list
.genre-item {
    box-sizing:
        border-box;

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

    margin: 0 !important;

    padding:
        8px
        11px !important;

    display: flex;
    align-items: center;

    overflow: visible !important;

    white-space:
        normal !important;

    overflow-wrap:
        anywhere;

    line-height:
        1.2 !important;

    font-size:
        11px !important;
}


/* =========================================================
   OTHER MODALS
   ========================================================= */

#quit-modal:not(.hidden),

#delete-modal:not(.hidden) {
    width:
        min(
            calc(100vw - 28px),
            440px
        )
        !important;

    max-width:
        440px !important;

    height: auto !important;

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

    overflow-y:
        auto !important;
}


/* =========================================================
   RATINGS / WATCHED LIBRARY
   ========================================================= */

.lp-mobile-view {
    overflow-y:
        auto !important;

    overflow-x:
        hidden !important;
}

.lp-library-shell,
.lp-profile-shell {
    width:
        min(
            calc(
                100%
                - 32px
            ),
            1040px
        );

    min-height:
        100dvh;

    margin:
        0 auto;

    padding:
        26px
        0
        120px;
}

.lp-library-logo {
    display: block;

    width: auto;
    height: 38px;

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

    margin-bottom:
        36px;

    object-fit:
        contain;

    object-position:
        left center;
}

.lp-library-header {
    max-width: 620px;
}

.lp-library-header h1,
.lp-profile-shell h1 {
    margin:
        8px
        0
        8px;

    color: #f7f8fb;

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

    line-height:
        .98;

    letter-spacing:
        -2px;
}

.lp-library-header p {
    max-width: 470px;

    margin:
        0;

    color: #8c96a9;

    font-size:
        13px;

    line-height:
        1.5;
}


/* Tabs */

.lp-library-tabs {
    width: 100%;

    display: flex;

    gap: 6px;

    margin-top:
        28px;

    padding: 5px;

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

    border-radius:
        16px;

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

.lp-library-tabs button {
    flex: 1;

    min-height:
        42px;

    border: 0;

    border-radius:
        12px;

    background:
        transparent;

    color: #7f899d;

    font-size:
        11px;

    font-weight:
        800;

    cursor: pointer;
}

.lp-library-tabs button.active {
    background:
        linear-gradient(
            115deg,
            rgba(100,207,255,.14),
            rgba(169,135,255,.16),
            rgba(255,120,191,.13)
        );

    color: #f3f4f8;
}


/* Search / filter / sort */

.lp-library-tools {
    display: grid;

    grid-template-columns:
        minmax(180px, 1fr)
        minmax(130px, .45fr)
        minmax(130px, .45fr);

    gap: 9px;

    margin-top:
        13px;
}

.lp-library-tools label {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 5px;
}

.lp-library-tools
label > span {
    padding-left: 2px;

    color: #6f798d;

    font-size: 8px;

    font-weight:
        850;

    letter-spacing:
        .08em;

    text-transform:
        uppercase;
}

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

    padding:
        0
        11px;

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

    border-radius:
        13px;

    outline: none;

    background:
        #111722;

    color: #e9ebf1;

    font-size:
        11px;
}

.lp-library-tools input:focus,
.lp-library-tools select:focus {
    border-color:
        rgba(169,135,255,.55);
}


/* Summary */

.lp-rated-summary {
    min-height: 42px;

    display: flex;
    align-items: center;

    gap: 10px;

    margin:
        12px
        0
        4px;

    color: #7f899c;

    font-size:
        11px;
}

.lp-rated-summary strong {
    color: #f2f3f7;
}


/* Cards */

.lp-library-grid {
    display: grid;

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

    gap:
        22px
        13px;
}

.lp-library-card {
    min-width: 0;
}

.lp-library-poster {
    position: relative;

    width: 100%;

    aspect-ratio:
        2 / 3;

    display: block;

    margin: 0;
    padding: 0;

    overflow: hidden;

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

    border-radius:
        18px;

    background:
        #111722;

    box-shadow:
        0 14px 34px
        rgba(0,0,0,.28);

    cursor: pointer;
}

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

    display: block;

    object-fit: cover;
}

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

    padding:
        10px
        2px
        0;
}

.lp-library-card h3 {
    min-width: 0;

    margin: 0;

    color: #f4f5f8;

    font-size:
        13px;

    font-weight:
        800;

    line-height:
        1.28;

    /*
     * Two lines rather than cutting the
     * movie title off after one line.
     */
    display: -webkit-box;

    overflow: hidden;

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

    white-space:
        normal;
}

.lp-library-meta {
    min-height: 14px;

    margin-top:
        4px;

    color: #768095;

    font-size:
        9px;

    line-height:
        1.3;
}

.lp-library-scores {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;

    margin-top:
        8px;
}

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

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

    padding:
        0
        8px;

    border:
        1px solid
        rgba(174,145,255,.16);

    border-radius:
        999px;

    background:
        rgba(174,145,255,.07);

    color: #cdbbff;

    font-size:
        8px;

    font-weight:
        800;

    line-height: 1;
}

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

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

    color: #788296;
}

.lp-library-review {
    display: -webkit-box;

    margin:
        8px
        0
        0;

    overflow: hidden;

    color: #979faf;

    font-size:
        10px;

    line-height:
        1.45;

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

.lp-library-actions {
    display: grid;

    grid-template-columns:
        1fr;

    gap: 6px;

    margin-top:
        10px;
}

.lp-library-actions button {
    width: 100%;
    min-height: 38px;

    margin: 0;

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

    border-radius:
        12px;

    font-size:
        9px;

    font-weight:
        850;

    cursor: pointer;
}

.lp-library-rate {
    border:
        1px solid
        rgba(178,148,255,.24);

    background:
        linear-gradient(
            115deg,
            rgba(98,204,255,.12),
            rgba(170,134,255,.16),
            rgba(255,116,189,.12)
        );

    color: #ded2ff;
}

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

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

    color: #939caf;
}

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

    min-height:
        220px;

    display: flex;
    flex-direction: column;

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

    gap: 7px;

    padding: 30px;

    border:
        1px dashed
        rgba(255,255,255,.08);

    border-radius:
        22px;

    text-align:
        center;
}

.lp-library-empty strong {
    color: #f1f3f7;

    font-size: 16px;
}

.lp-library-empty span {
    max-width: 300px;

    color: #818b9e;

    font-size: 11px;

    line-height: 1.5;
}


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

.lp-profile-shell {
    max-width: 680px;
}

.lp-profile-card {
    margin-top:
        28px;
}


/* =========================================================
   MOBILE NAV - OUTSIDE SESSION ONLY
   ========================================================= */

.lp-mobile-nav {
    width:
        min(
            calc(100% - 22px),
            520px
        );

    min-height: 68px;

    z-index: 30000;
}

.lp-mobile-nav-item {
    min-width: 0;

    overflow: visible;
}

.lp-mobile-nav-item > span:last-child {
    overflow: visible;

    white-space: nowrap;
}


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

@media (min-width: 680px) {

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

        gap:
            28px
            18px;
    }

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


@media (min-width: 980px) {

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


/* =========================================================
   SMALL / NARROW WINDOWS
   ========================================================= */

@media (max-width: 620px) {

    .lp-library-shell,
    .lp-profile-shell {
        width:
            calc(
                100%
                - 24px
            );

        padding-top:
            20px;
    }

    .lp-library-logo {
        height: 31px;

        margin-bottom:
            30px;
    }

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

    .lp-library-search {
        grid-column:
            1 / -1;
    }

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

        gap:
            20px
            10px;
    }

    .lp-account-wrap {
        top:
            max(
                9px,
                env(
                    safe-area-inset-top
                )
            );

        right: 11px;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

    .lp-session-logo {
        height: 26px;
        max-width: 115px;
    }

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

        padding:
            0
            9px !important;
    }

    #game-area:not(.hidden)
    #swipe-deck {
        width:
            min(
                80vw,
                calc(
                    (
                        100dvh
                        - 248px
                    )
                    * .6667
                )
            )
            !important;
    }

    .lp-library-grid {
        gap:
            17px
            8px;
    }

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

    .lp-library-search {
        grid-column:
            auto;
    }
}


/* =========================================================
   SHORT BROWSER WINDOWS
   ========================================================= */

@media (max-height: 700px) {

    #game-area:not(.hidden)
    #swipe-deck {
        width:
            min(
                75vw,
                calc(
                    (
                        100dvh
                        - 225px
                    )
                    * .6667
                )
            )
            !important;
    }

    .lp-session-toolbar {
        gap: 5px;
    }

    .lp-mobile-current {
        gap: 5px;
    }

    .lp-pick-action {
        height:
            50px !important;

        min-height:
            50px !important;
    }
}
