/* =====================================================================
   MangaList shell: header, search palette, mobile tab bar + sheets,
   announcement bar and footer ("Night Market" design).
   Loaded on every front-end page after header.css/footer.css, so the
   rules here are scoped to .ml-* classes and win over the old bundle.
   Two themes, as in the mockups (docs/ui-mockups/night-shell.css):
   dark by default (body.t-dd) and light (body.t-d). The shell follows
   the theme too; colours come from the --ml-* tokens below.
   ===================================================================== */

:root {
    --ml-ink: #0a1015;
    --ml-s1: #10191f;
    --ml-s2: #16232b;
    --ml-s3: #1e2f39;
    --ml-line: rgba(255, 255, 255, .08);
    --ml-line-2: rgba(255, 255, 255, .14);
    --ml-tx: #e8eef0;
    --ml-tx-2: #a9b8bf;
    --ml-tx-3: #6f828c;
    --ml-hi: #5ec4d6;
    --ml-amber: #ffb547;
    --ml-on-amber: #1d1302;
    --ml-hot: #ff5d73;
    --ml-max: 1320px;
    --ml-gut: clamp(16px, 3vw, 32px);
    --ml-tab-h: 64px;
    --ml-f-d: "Unbounded", "Onest", system-ui, sans-serif;
    --ml-f-b: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* light theme: the mockup's [data-theme="light"] palette */
body.t-d {
    --ml-ink: #f3f5f6;
    --ml-s1: #ffffff;
    --ml-s2: #eef2f4;
    --ml-s3: #e2e9ec;
    --ml-line: rgba(16, 30, 38, .09);
    --ml-line-2: rgba(16, 30, 38, .16);
    --ml-tx: #0e1a21;
    --ml-tx-2: #3f525c;
    --ml-tx-3: #73858e;
    --ml-hi: #204051;
    --ml-amber: #e8930c;
    --ml-on-amber: #1d1302; /* dark text on amber in light theme too (white was 2.4:1) */
}

/* the logo file is white; light theme shows it in ink, like the mockup's currentColor logo */
body.t-d .ml-logo img {
    filter: brightness(0);
    opacity: .9;
}

.ml-wrap {
    max-width: var(--ml-max);
    margin: 0 auto;
    padding: 0 var(--ml-gut);
}

.ml-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ml-ico {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ml-hdr :focus-visible,
.ml-pal :focus-visible,
.ml-tabbar :focus-visible,
.ml-sheet :focus-visible,
.ml-ftr :focus-visible,
.ml-notice :focus-visible {
    outline: 2px solid var(--ml-amber);
    outline-offset: 2px;
    border-radius: 8px;
}

/* ---------- shared buttons ---------- */
.ml-btn,
a.ml-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: 99px;
    border: 1px solid transparent;
    font: 700 14px/1 var(--ml-f-b);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s, filter .2s, background-color .2s, border-color .2s;
}

.ml-btn:active {
    transform: scale(.97);
}

.ml-btn-amber,
a.ml-btn-amber,
a.ml-btn-amber:hover {
    background: var(--ml-amber);
    color: var(--ml-on-amber);
}

.ml-btn-amber:hover {
    filter: brightness(1.08);
}

.ml-btn-ghost,
a.ml-btn-ghost {
    background: transparent;
    border-color: var(--ml-line-2);
    color: var(--ml-tx);
}

.ml-btn-ghost:hover,
a.ml-btn-ghost:hover {
    background: var(--ml-s2);
    color: var(--ml-tx);
}

.ml-ibtn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 99px;
    border: 1px solid var(--ml-line-2);
    background: var(--ml-s1);
    color: var(--ml-tx-2);
    cursor: pointer;
}

.ml-ibtn:hover {
    color: var(--ml-tx);
}

/* ---------- announcement ---------- */
.ml-notice {
    background: linear-gradient(90deg, #204051, #2b5a6e);
    color: #e8f6fa;
    font: 500 13px/1.4 var(--ml-f-b);
}

.ml-notice .ml-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
}

.ml-notice-dot {
    width: 7px;
    height: 7px;
    border-radius: 9px;
    background: var(--ml-amber);
    box-shadow: 0 0 0 4px rgba(255, 181, 71, .25);
    flex-shrink: 0;
}

.ml-notice-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ml-notice-text,
.ml-notice-text * {
    color: #e8f6fa !important;
    margin: 0 !important;
    display: inline !important;
    font-size: 13px !important;
}

.ml-notice-text a {
    text-decoration: underline;
}

.ml-notice button {
    border: 0;
    background: none;
    color: inherit;
    display: grid;
    padding: 4px;
    cursor: pointer;
    opacity: .7;
}

.ml-notice button:hover {
    opacity: 1;
}

.ml-notice .ml-ico {
    width: 18px;
    height: 18px;
}

/* ---------- header ---------- */
.ml-hdr {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: color-mix(in srgb, var(--ml-ink) 78%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    backdrop-filter: blur(16px) saturate(1.5);
    border-bottom: 1px solid var(--ml-line);
    color: var(--ml-tx);
    font-family: var(--ml-f-b);
}

.ml-hdr .ml-wrap {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ml-logo {
    display: flex;
    flex-shrink: 0;
}

.ml-logo img {
    height: 34px;
    width: auto;
}

.ml-seg {
    display: flex;
    gap: 2px;
    padding: 4px;
    margin: 0 auto;
    border-radius: 99px;
    background: var(--ml-s1);
    border: 1px solid var(--ml-line);
}

.ml-dd {
    position: relative;
}

.ml-seg a,
.ml-seg .ml-dd > button {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border-radius: 99px;
    border: 0;
    background: none;
    color: var(--ml-tx-2);
    font: 600 14px/1 var(--ml-f-b);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}

.ml-seg a:hover,
.ml-seg .ml-dd > button:hover,
.ml-seg .ml-open > button {
    color: var(--ml-tx);
}

.ml-seg a[aria-current="page"] {
    background: var(--ml-s3);
    color: var(--ml-tx);
}

.ml-seg .ml-ico {
    width: 16px;
    height: 16px;
    transition: transform .2s;
}

.ml-seg .ml-open > button .ml-ico {
    transform: rotate(180deg);
}

.ml-pop {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 5;
    padding: 8px;
    background: var(--ml-s1);
    border: 1px solid var(--ml-line-2);
    border-radius: 18px;
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .6);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}

.ml-open > .ml-pop {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.ml-pop-right {
    left: auto;
    right: 0;
    transform: translateY(-6px);
}

.ml-open > .ml-pop-right {
    transform: none;
}

.ml-mega {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    width: 460px;
}

.ml-mega a,
.ml-seg .ml-mega a {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    height: auto;
    padding: 10px;
    border-radius: 12px;
    color: var(--ml-tx);
    white-space: normal;
}

.ml-mega a:hover,
.ml-seg .ml-mega a:hover {
    background: var(--ml-s2);
    color: var(--ml-tx);
}

.ml-mega i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--ml-s3);
    display: grid;
    place-items: center;
    color: var(--ml-hi);
}

.ml-mega i .ml-ico,
.ml-seg .ml-mega i .ml-ico {
    width: 18px;
    height: 18px;
    transform: none;
}

.ml-mega b {
    display: block;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
}

.ml-mega small {
    display: block;
    color: var(--ml-tx-3);
    font-size: 12px;
    line-height: 1.3;
    margin-top: 2px;
}

.ml-menu {
    min-width: 210px;
}

.ml-menu a,
.ml-menu button,
.ml-seg .ml-menu a {
    display: flex;
    width: 100%;
    height: auto;
    padding: 9px 12px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--ml-tx-2);
    font: 500 14px/1.3 var(--ml-f-b);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.ml-menu a:hover,
.ml-menu button:hover,
.ml-seg .ml-menu a:hover {
    background: var(--ml-s2);
    color: var(--ml-tx);
}

.ml-menu-head {
    padding: 8px 12px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--ml-line);
    font: 700 14px/1.3 var(--ml-f-b);
    color: var(--ml-tx);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ml-menu-label {
    padding: 10px 12px 4px;
    font: 600 11px/1 var(--ml-f-b);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ml-tx-3);
}

.ml-menu [aria-pressed="true"] {
    color: var(--ml-amber);
}

.ml-menu [aria-pressed="true"]::after {
    content: "";
    width: 7px;
    height: 7px;
    margin: auto 0 auto auto;
    border-radius: 9px;
    background: var(--ml-amber);
}

.ml-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ml-ksearch {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    min-width: 270px;
    padding: 0 10px 0 14px;
    border-radius: 99px;
    border: 1px solid var(--ml-line-2);
    background: var(--ml-s1);
    color: var(--ml-tx-3);
    font: 500 14px/1 var(--ml-f-b);
    cursor: pointer;
}

.ml-ksearch:hover {
    border-color: var(--ml-tx-3);
    color: var(--ml-tx-2);
}

.ml-ksearch-text {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ml-ksearch kbd {
    padding: 4px 6px;
    border: 1px solid var(--ml-line-2);
    border-radius: 6px;
    background: none;
    box-shadow: none;
    color: var(--ml-tx-3);
    font: 600 11px/1 var(--ml-f-b);
}

.ml-ksearch .ml-ico {
    width: 18px;
    height: 18px;
}

.ml-avatar {
    display: block; /* inline-block left a baseline gap that pushed it 2px above its neighbours */
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 99px;
    border: 2px solid var(--ml-amber);
    background: linear-gradient(135deg, #204051, #5ec4d6);
    overflow: hidden;
    cursor: pointer;
}

.ml-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- search palette ---------- */
.ml-pal {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: none;
    padding: 10vh 16px 16px;
    background: rgba(3, 7, 10, .6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    font-family: var(--ml-f-b);
    color: var(--ml-tx);
}

.ml-pal.ml-show {
    display: block;
}

.ml-pal-box {
    max-width: 620px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--ml-s1);
    border: 1px solid var(--ml-line-2);
    border-radius: 20px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7);
    animation: ml-pop .2s cubic-bezier(.2, .8, .2, 1);
}

@keyframes ml-pop {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(.98);
    }
}

.ml-pal-in {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px 0 16px;
    border-bottom: 1px solid var(--ml-line);
}

.ml-pal-in > .ml-ico {
    color: var(--ml-tx-3);
}

.ml-pal-in input {
    flex: 1;
    min-width: 0;
    height: 58px;
    border: 0;
    outline: 0;
    background: none;
    color: var(--ml-tx);
    font: 500 17px/1 var(--ml-f-b);
}

/* The input fills the row and the dialog clips its edges, so a ring around it gets cut off.
   It is always the focused element while the palette is open; the caret shows that. */
.ml-pal-in input:focus-visible {
    outline: 0;
}

.ml-pal-in input::placeholder {
    color: var(--ml-tx-3);
}

.ml-pal-in input::-webkit-search-cancel-button {
    display: none;
}

.ml-pal-tabs {
    display: flex;
    gap: 6px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--ml-line);
}

.ml-ptab {
    padding: 6px 13px;
    border: 1px solid var(--ml-line-2);
    border-radius: 99px;
    background: none;
    color: var(--ml-tx-2);
    font: 600 13px/1 var(--ml-f-b);
    cursor: pointer;
}

.ml-ptab[aria-pressed="true"] {
    background: var(--ml-tx);
    border-color: var(--ml-tx);
    color: var(--ml-ink);
}

.ml-pal-body {
    max-height: 52vh;
    overflow: auto;
    overscroll-behavior: contain;
}

.ml-pal-hint {
    padding: 16px;
    color: var(--ml-tx-3);
    font-size: 14px;
}

.ml-pal-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 16px;
}

.ml-pal-quick a {
    padding: 7px 12px;
    border-radius: 99px;
    background: var(--ml-s2);
    color: var(--ml-tx-2);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.ml-pal-quick a:hover {
    color: var(--ml-tx);
    background: var(--ml-s3);
}

ul.ml-pal-results {
    list-style: none;
    margin: 0;
    padding: 8px;
}

/* The search endpoint returns a type heading <li> first; the tabs already show the type. */
.ml-pal-results li:not(.search_li_results) {
    display: none;
}

.ml-pal-results li.search_li_results {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit !important;
}

.ml-pal-results a.a_search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 12px;
    color: var(--ml-tx);
    text-decoration: none;
}

.ml-pal-results a.a_search:hover,
.ml-pal-results a.a_search:focus,
.ml-pal-results li.ml-active a.a_search {
    background: var(--ml-s2);
    color: var(--ml-tx);
    outline: 0;
}

.ml-pal-results img.search_profile_image {
    width: 36px;
    height: 52px;
    margin: 0;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.ml-pal-results .searchtxt_color {
    padding: 0 !important;
    color: var(--ml-tx) !important;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.3;
}

.ml-pal-results .searchtxt_color b,
.ml-pal-results .searchtxt_color strong,
.ml-pal-results .searchtxt_color span {
    color: var(--ml-amber) !important;
    background: none !important;
}

.ml-pal-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-top: 1px solid var(--ml-line);
    color: var(--ml-tx-3);
    font-size: 12.5px;
}

.ml-pal-foot a,
.ml-pal-foot a:hover {
    color: var(--ml-hi);
    font-weight: 600;
    text-decoration: none;
}

.ml-pal-foot button {
    border: 0;
    background: none;
    padding: 0;
    color: var(--ml-hi);
    font: 600 12.5px var(--ml-f-b);
    cursor: pointer;
}

.ml-pal-foot a,
.ml-pal-foot button {
    white-space: nowrap;
}

@media (max-width: 479.98px) {
    .ml-pal-foot {
        flex-wrap: wrap;
        row-gap: 6px;
    }
}

/* ---------- mobile tab bar + sheets ---------- */
.ml-tabbar,
.ml-sheet,
.ml-scrim {
    display: none;
}

.ml-scrim {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, .5);
}

.ml-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1041;
    max-height: 85vh;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 10px 16px calc(var(--ml-tab-h) + 16px + env(safe-area-inset-bottom));
    background: var(--ml-s1);
    border-top: 1px solid var(--ml-line-2);
    border-radius: 24px 24px 0 0;
    color: var(--ml-tx);
    font-family: var(--ml-f-b);
    animation: ml-sheet .28s cubic-bezier(.2, .8, .2, 1);
}

@keyframes ml-sheet {
    from {
        transform: translateY(100%);
    }
}

.ml-sheet-grab {
    width: 40px;
    height: 4px;
    margin: 0 auto 14px;
    border-radius: 9px;
    background: var(--ml-line-2);
}

.ml-sheet h4 {
    margin: 4px 4px 10px;
    color: var(--ml-tx);
    font: 700 15px/1.2 var(--ml-f-d);
}

.ml-sheet .ml-mega {
    width: auto;
}

.ml-sheet .ml-menu {
    min-width: 0;
}

.ml-sheet-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
}

/* ---------- back to top ---------- */
a.ml-totop {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1020;
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 99px;
    background: var(--ml-amber);
    color: var(--ml-on-amber);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5);
}

a.ml-totop:hover {
    color: var(--ml-on-amber);
}

a.ml-totop .ml-ico {
    position: absolute;
    top: 13px;
    left: 13px;
}

/* ---------- footer ---------- */
.ml-ftr {
    margin-top: 72px;
    background: var(--ml-s1);
    border-top: 1px solid var(--ml-line);
    color: var(--ml-tx-2);
    font: 400 15px/1.55 var(--ml-f-b);
}

.ml-ftr-top {
    display: grid;
    grid-template-columns: 1.3fr 2fr;
    gap: 40px;
    padding: 48px 0 32px;
}

.ml-ftr .ml-logo img {
    height: 40px;
}

.ml-ftr-about p {
    max-width: 38ch;
    margin: 14px 0 20px;
    color: var(--ml-tx-2) !important;
}

.ml-discord {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 380px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--ml-line-2);
    background: linear-gradient(135deg, rgba(94, 196, 214, .14), rgba(255, 181, 71, .1));
}

.ml-discord b {
    display: block;
    color: var(--ml-tx);
}

.ml-discord small {
    color: var(--ml-tx-3);
}

.ml-discord .ml-btn {
    margin-left: auto;
    height: 36px;
}

.ml-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ml-cols summary {
    display: block;
    margin-bottom: 14px;
    list-style: none;
    pointer-events: none;
    color: var(--ml-tx-3);
    font: 700 12px/1 var(--ml-f-b);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ml-cols summary::-webkit-details-marker {
    display: none;
}

.ml-cols summary .ml-ico {
    display: none;
}

.ml-cols ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ml-cols li {
    margin: 0;
}

.ml-cols a {
    color: var(--ml-tx-2);
    text-decoration: none;
}

.ml-cols a:hover {
    color: var(--ml-amber);
}

.ml-ftr-bot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px 64px 18px 0;
    border-top: 1px solid var(--ml-line);
    color: var(--ml-tx-3);
    font-size: 13px;
}

.ml-soc {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ml-soc a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 99px;
    border: 1px solid var(--ml-line-2);
    color: var(--ml-tx-2);
    font-weight: 600;
    font-size: 12.5px;
    text-decoration: none;
}

.ml-soc a:hover {
    border-color: var(--ml-tx-3);
    color: var(--ml-tx);
}

/* ---------- alerts under the sticky header ---------- */
.alert-fix {
    top: 76px;
    z-index: 1035;
}

@media (prefers-reduced-motion: reduce) {
    .ml-pop,
    .ml-pal-box,
    .ml-sheet {
        animation: none;
        transition: none;
    }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
    .ml-ksearch {
        width: 40px;
        min-width: 0;
        padding: 0;
        justify-content: center;
    }

    .ml-ksearch-text,
    .ml-ksearch kbd {
        display: none;
    }
}

@media (max-width: 1023px) {
    .ml-ftr-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Tablets: logo + blurb on the left, Discord card on the right, instead of a narrow stack. */
@media (min-width: 640px) and (max-width: 1023px) {
    .ml-ftr-about {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
        column-gap: 40px;
        align-items: center;
        padding-bottom: 28px;
        border-bottom: 1px solid var(--ml-line);
    }

    .ml-ftr-about .ml-logo,
    .ml-ftr-about p {
        grid-column: 1;
    }

    .ml-ftr-about p {
        margin: 12px 0 0;
    }

    .ml-ftr-about .ml-discord {
        grid-column: 2;
        grid-row: 1 / span 2;
        max-width: none;
    }
}

/* Phones and portrait tablets get the app layout: bottom tab bar, sheets, no top nav. */
@media (max-width: 899.98px) {
    .ml-seg,
    .ml-hdr .ml-hide-sm {
        display: none !important;
    }

    .ml-hdr .ml-wrap {
        height: 56px;
        gap: 10px;
    }

    .ml-logo img {
        height: 28px;
    }

    .ml-right {
        flex: 1;
        min-width: 0;
        margin-left: auto;
        justify-content: flex-end;
    }

    .ml-ksearch {
        flex: 1;
        width: auto;
        max-width: 420px;
        padding: 0 14px;
        justify-content: flex-start;
    }

    .ml-ksearch-text {
        display: block;
    }

    .ml-pal {
        padding: 12px;
    }

    .ml-tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1042;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        height: calc(var(--ml-tab-h) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: color-mix(in srgb, var(--ml-s1) 92%, transparent);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border-top: 1px solid var(--ml-line);
        font-family: var(--ml-f-b);
    }

    .ml-tabbar a,
    .ml-tabbar button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 0;
        border: 0;
        background: none;
        color: var(--ml-tx-3);
        font: 600 11px/1 var(--ml-f-b);
        text-decoration: none;
        cursor: pointer;
    }

    .ml-tabbar a:hover,
    .ml-tabbar button:hover {
        color: var(--ml-tx-2);
    }

    .ml-tabbar [aria-current="page"],
    .ml-tabbar [aria-expanded="true"] {
        color: var(--ml-amber);
    }

    .ml-tabbar .ml-ico {
        width: 22px;
        height: 22px;
    }

    .ml-tabbar img {
        width: 24px;
        height: 24px;
        border-radius: 99px;
        object-fit: cover;
        border: 1.5px solid currentColor;
    }

    body.ml-has-tabbar {
        padding-bottom: calc(var(--ml-tab-h) + env(safe-area-inset-bottom));
    }

    .ml-sheet-open .ml-scrim,
    .ml-sheet.ml-show {
        display: block;
    }

    .ml-sheet .ml-mega a {
        padding: 8px;
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .ml-sheet .ml-mega small {
        display: none;
    }

    a.ml-totop {
        bottom: calc(var(--ml-tab-h) + 14px + env(safe-area-inset-bottom));
    }

    .sticky-ads.fixed {
        bottom: calc(var(--ml-tab-h) + env(safe-area-inset-bottom)) !important;
    }

    .alert-fix {
        top: 66px;
        left: 12px;
        right: 12px;
        min-width: 0;
    }

    .ml-ftr {
        margin-top: 56px;
    }

    .ml-ftr-top {
        padding-top: 36px;
        gap: 28px;
    }

    .ml-cols {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .ml-cols details {
        border-bottom: 1px solid var(--ml-line);
    }

    .ml-cols summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0;
        padding: 16px 0;
        pointer-events: auto;
        cursor: pointer;
        color: var(--ml-tx-2);
        font-size: 13px;
    }

    .ml-cols summary .ml-ico {
        display: block;
        width: 18px;
        height: 18px;
        transition: transform .2s;
    }

    .ml-cols details[open] summary .ml-ico {
        transform: rotate(180deg);
    }

    .ml-cols ul {
        padding-bottom: 16px;
    }

    .ml-ftr-bot {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 0;
    }
}

@media (max-width: 360px) {
    .ml-logo img {
        height: 24px;
    }

    .ml-ksearch {
        padding: 0 12px;
    }
}
