/* =========================================================
   LIVE SEARCH (js/lumycrib-live-search.js)
   Loaded on every page after header.css. Class prefix: ls-ls-.
   Site colors (as the phone category pages): text var(--ls-text), blue #0b5fd8, navy #071D33, borders #dce5ef.
   ========================================================= */
.lumicrib-live-results.ls-ls {
    left: auto;
    right: 0;
    width: max(100%, min(560px, calc(100vw - 24px)));
    max-height: min(600px, calc(100vh - 120px));
    padding: 0;
    overflow: hidden;
    display: none;
    flex-direction: column;
    border: 1px solid #dce5ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(7, 29, 51, .22);
    color: var(--ls-text, #000);
    text-align: left;
    font-size: 14px;
    line-height: 1.4;
}
.lumicrib-live-results.ls-ls.is-visible { display: flex; }
.ls-sr-form .lumicrib-live-results.ls-ls { left: 0; right: auto; width: min(620px, 100%); }
.ls-ls .ls-ls-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 6px; }
.ls-ls.is-loading .ls-ls-body { opacity: .6; transition: opacity .15s; }
.ls-ls .ls-ls-ico { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ls-ls mark { padding: 0 1px; border-radius: 3px; background: #fff1b8; color: inherit; }
.ls-ls a { color: inherit; text-decoration: none !important; }

/* Tabs */
.lumicrib-live-results.ls-ls .ls-ls-tabs { position: static; display: flex; flex: none; gap: 6px; padding: 10px 12px; margin: 0; border-bottom: 1px solid #e7edf2; background: #fff; overflow-x: auto; scrollbar-width: none; }
.ls-ls .ls-ls-tabs::-webkit-scrollbar { display: none; }
.lumicrib-live-results.ls-ls .ls-ls-tab {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    height: auto; min-height: 0; padding: 5px 11px; margin: 0;
    border: 1px solid #dce5ef; border-radius: 999px; background: #fff;
    color: var(--ls-text, #000); font: inherit; font-size: 13px; font-weight: 700; line-height: 1.3; cursor: pointer; box-shadow: none;
}
.lumicrib-live-results.ls-ls .ls-ls-tab span { min-width: 0; padding: 0 7px; border-radius: 999px; background: #e7effb; color: var(--ls-text, #000); font-size: 11.5px; font-weight: 800; }
.lumicrib-live-results.ls-ls .ls-ls-tab:hover:not(:disabled) { border-color: #0b5fd8; }
.lumicrib-live-results.ls-ls .ls-ls-tab.is-active,
.lumicrib-live-results.ls-ls .ls-ls-tab.is-active:hover { border-color: #071d33; background: #071d33; color: #fff; }
.lumicrib-live-results.ls-ls .ls-ls-tab.is-active span { background: rgba(255, 255, 255, .18); color: #fff; }
.lumicrib-live-results.ls-ls .ls-ls-tab:disabled { opacity: .45; cursor: default; }
.lumicrib-live-results.ls-ls .ls-ls-tab:focus-visible { outline: 2px solid #2f7bf5; outline-offset: 1px; }

/* Sections */
.ls-ls .ls-ls-sec { padding: 10px 12px 2px; }
.ls-ls .ls-ls-sec-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 2px 6px; color: var(--ls-text-soft, #000); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.ls-ls .ls-ls-sec-h a,
.ls-ls .ls-ls-clear { border: 0; background: none; padding: 0; color: #0b5fd8; font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: 0; text-transform: none; cursor: pointer; }
.ls-ls .ls-ls-opt.is-active,
.ls-ls .ls-ls-opt:hover { background: #f2f7fd; }
.ls-ls .ls-ls-opt.is-active { box-shadow: inset 0 0 0 2px #d6e4fb; }

/* Top match */
.ls-ls .ls-ls-top { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid #dce5ef; border-radius: 12px; background: #f8fbff; }
.ls-ls .ls-ls-top:hover { background: #f2f7fd; }
.ls-ls .ls-ls-top-link { display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: center; min-width: 0; }
.ls-ls .ls-ls-top-pic { display: flex; align-items: center; justify-content: center; height: 96px; }
.ls-ls .ls-ls-top-pic img { display: block; max-width: 100%; max-height: 96px; width: auto; height: auto; object-fit: contain; }
.ls-ls .ls-ls-top-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ls-ls .ls-ls-top-brand { color: #0b5fd8; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.ls-ls .ls-ls-top-name { font-size: 16px; font-weight: 800; line-height: 1.25; }
.ls-ls .ls-ls-specs { display: flex; flex-wrap: wrap; gap: 3px 12px; margin: 3px 0 2px; color: var(--ls-text, #000); font-size: 12.5px; }
.ls-ls .ls-ls-specs > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ls-ls .ls-ls-specs .ls-ls-ico { color: #0b5fd8; }
.ls-ls .ls-ls-price { font-size: 14px; font-weight: 800; }
.ls-ls .ls-ls-price.is-none,
.ls-ls .ls-ls-row-price.is-none { color: var(--ls-text-soft, #000); font-size: 12px; font-weight: 700; }
.ls-ls .ls-ls-top-btns { display: flex; flex-direction: column; gap: 6px; }
.ls-ls .ls-ls-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 0; padding: 8px 12px; border: 1px solid #dce5ef; border-radius: 9px; background: #fff; color: var(--ls-text, #000); font: inherit; font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; cursor: pointer; }
.ls-ls .ls-ls-btn.is-primary { border-color: #0b5fd8; background: #0b5fd8; color: #fff !important; }
.ls-ls .ls-ls-btn.is-primary:hover { background: #0849a8; }
.ls-ls .ls-ls-btn .ls-ls-ico { width: 14px; height: 14px; color: #0b5fd8; }

/* Badges */
.ls-ls .ls-ls-st { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; vertical-align: 2px; }
.ls-ls .ls-ls-st.is-new { background: #0b5fd8; color: #fff; }
.ls-ls .ls-ls-st.is-rumored { background: #c62828; color: #fff; }
.ls-ls .ls-ls-st.is-expected { background: #b45309; color: #fff; }

/* Device rows */
.ls-ls .ls-ls-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; }
.ls-ls .ls-ls-row-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.ls-ls .ls-ls-pic { display: flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 58px; }
.ls-ls .ls-ls-pic img { display: block; max-width: 46px; max-height: 58px; width: auto; height: auto; object-fit: contain; }
.ls-ls .ls-ls-noimg { width: 22px; height: 22px; fill: none; stroke: var(--ls-text-soft, #000); stroke-width: 1.8; stroke-linecap: round; }
.ls-ls .ls-ls-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ls-ls .ls-ls-text strong { display: -webkit-box; overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ls-ls .ls-ls-text small { display: block; margin-top: 2px; overflow: hidden; color: var(--ls-text-soft, #000); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ls-ls .ls-ls-row-price { flex: none; font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.ls-ls .ls-ls-cmp { display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; border: 1px solid #dce5ef; border-radius: 8px; background: #fff; color: #0b5fd8; cursor: pointer; }
.ls-ls .ls-ls-cmp .ls-ls-ico { width: 15px; height: 15px; }
.ls-ls .ls-ls-cmp:hover { border-color: #0b5fd8; }
.ls-ls .ls-ls-cmp.is-in-tray { border-color: #0b5fd8; background: #0b5fd8; color: #fff; }
.ls-ls .ls-ls-cmp.is-in-tray .ls-ls-ico { color: #fff; }
.ls-ls .ls-ls-cmp.has-text { display: inline-flex; width: auto; height: auto; padding: 8px 12px; }

/* Brands */
.ls-ls .ls-ls-brands { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 2px 4px; }
.ls-ls .ls-ls-brand { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid #dce5ef; border-radius: 10px; }
.ls-ls .ls-ls-brand-logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #e7effb; color: #0b5fd8; font-weight: 800; overflow: hidden; }
.ls-ls .ls-ls-brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; background: #fff; }
.ls-ls .ls-ls-brand-text strong { display: block; font-size: 13.5px; }
.ls-ls .ls-ls-brand-text small { display: block; color: var(--ls-text-soft, #000); font-size: 11.5px; font-weight: 600; }

/* News & reviews */
.ls-ls .ls-ls-art { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 10px; }
.ls-ls .ls-ls-art-pic { display: grid; place-items: center; flex: none; width: 64px; height: 42px; border-radius: 7px; background: #f8fbff; overflow: hidden; }
.ls-ls .ls-ls-art-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ls-ls .ls-ls-art .ls-ls-text strong { font-size: 13.5px; }
.ls-ls .ls-ls-score { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 5px; background: #071d33; color: #fff; font-size: 11.5px; font-weight: 800; vertical-align: 1px; }

/* While typing: three columns (Device specs | News | Reviews) */
.lumicrib-live-results.ls-ls[data-cols="3"] { width: min(880px, calc(100vw - 24px)); }
.lumicrib-live-results.ls-ls[data-cols="2"] { width: min(640px, calc(100vw - 24px)); }
.lumicrib-live-results.ls-ls[data-cols="1"] { width: max(100%, min(420px, calc(100vw - 24px))); }
.ls-ls .ls-ls-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; padding: 0; }
.ls-ls .ls-ls-col { min-width: 0; padding: 16px 14px 10px; }
.ls-ls .ls-ls-col + .ls-ls-col { border-left: 1px solid #e7edf2; }
.ls-ls .ls-ls-col.is-device { flex: 0 0 auto; }
.ls-ls[data-cols="3"] .ls-ls-cols { grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1.1fr); grid-auto-flow: row; }
.ls-ls .ls-ls-col-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 4px 10px; }
.ls-ls .ls-ls-col-h span { color: var(--ls-text, #000); font-size: 17px; font-weight: 800; }
.ls-ls .ls-ls-col-h a { color: #0b5fd8; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ls-ls .ls-ls-dev { display: flex; align-items: center; gap: 12px; padding: 6px 6px; border-radius: 9px; }
.ls-ls .ls-ls-dev-pic { display: flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 44px; }
.ls-ls .ls-ls-dev-pic img { display: block; max-width: 34px; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.ls-ls .ls-ls-dev-name { min-width: 0; color: var(--ls-text, #000); font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.ls-ls .ls-ls-post { display: flex; align-items: flex-start; gap: 12px; padding: 6px; border-radius: 9px; }
.ls-ls .ls-ls-post-pic { display: block; flex: none; width: 78px; height: 54px; border-radius: 6px; background: #f8fbff; overflow: hidden; }
.ls-ls .ls-ls-post-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ls-ls .ls-ls-post-pic .ls-ls-noimg { margin: 16px auto 0; }
.ls-ls .ls-ls-post-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ls-ls .ls-ls-post-text strong { display: -webkit-box; overflow: hidden; color: var(--ls-text, #000); font-size: 13px; font-weight: 700; line-height: 1.35; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.ls-ls .ls-ls-post-text small { color: var(--ls-text-soft, #000); font-size: 11.5px; font-weight: 600; }
.ls-ls .ls-ls-cols .ls-ls-st { margin-left: 5px; }

/* Before typing */
.ls-ls .ls-ls-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px 8px; }
.ls-ls .ls-ls-chip { display: inline-flex; align-items: center; border: 1px solid #dce5ef; border-radius: 999px; overflow: hidden; }
.ls-ls .ls-ls-chip a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 4px 5px 11px; font-size: 13px; font-weight: 600; }
.ls-ls .ls-ls-chip a .ls-ls-ico { color: var(--ls-text-soft, #000); }
.ls-ls .ls-ls-chip-x { display: grid; place-items: center; width: 26px; height: 28px; padding: 0; border: 0; background: none; color: var(--ls-text-soft, #000); cursor: pointer; }
.ls-ls .ls-ls-chip-x:hover { color: var(--ls-text, #000); }
.ls-ls .ls-ls-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 2px 8px; }
.ls-ls .ls-ls-tile { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid #dce5ef; border-radius: 10px; font-size: 12.5px; font-weight: 700; line-height: 1.3; text-align: center; }
.ls-ls .ls-ls-tile-pic { display: flex; align-items: center; justify-content: center; height: 80px; }
.ls-ls .ls-ls-tile-pic img { display: block; max-width: 100%; max-height: 80px; width: auto; height: auto; object-fit: contain; }
.ls-ls .ls-ls-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 2px 10px; }
.ls-ls .ls-ls-tool { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid #dce5ef; border-radius: 10px; font-size: 13px; font-weight: 700; line-height: 1.25; }
.ls-ls .ls-ls-tool-ico { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: #e7effb; color: #0b5fd8; }
.ls-ls .ls-ls-tool.is-quiz .ls-ls-tool-ico { background: #e7effb; color: #0b5fd8; }
.ls-ls .ls-ls-tool-ico .ls-ls-ico { width: 16px; height: 16px; }

/* Nothing found */
.ls-ls .ls-ls-none { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; }
.ls-ls .ls-ls-none strong { font-size: 15px; }
.ls-ls .ls-ls-none span { color: var(--ls-text-soft, #000); font-size: 13px; }

/* Footer */
.ls-ls .ls-ls-foot { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid #e7edf2; background: #f8fbff; }
.ls-ls .ls-ls-keys { color: var(--ls-text-soft, #000); font-size: 12px; white-space: nowrap; }
.ls-ls kbd { display: inline-block; margin: 0 2px; padding: 0 5px; border: 1px solid #d3deec; border-bottom-width: 2px; border-radius: 4px; background: #fff; color: var(--ls-text, #000); font: 600 11px/1.5 inherit; }
.lumicrib-live-results.ls-ls .ls-ls-all { position: static; margin: 0 0 0 auto; padding: 0; border: 0; background: none; color: #0b5fd8 !important; font-size: 13.5px; font-weight: 800; text-align: right; }
.lumicrib-live-results.ls-ls .ls-ls-all:hover { background: none; text-decoration: underline !important; }
.ls-ls .lumicrib-search-loading,
.ls-ls .lumicrib-search-empty { padding: 14px 16px; color: var(--ls-text-soft, #000); font-size: 13px; }

/* Phones: results fill the screen under the search box */
@media (max-width: 768px) {
    .lumicrib-live-results.ls-ls.is-sheet,
    .ls-msearch-drop .lumicrib-live-results.ls-ls.is-sheet,
    .lumischema-mobile-search-panel .lumicrib-live-results.ls-ls.is-sheet {
        position: fixed !important;
        top: var(--ls-sheet-top, 64px);
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        max-height: none;
        border: 0;
        border-top: 1px solid #dce5ef;
        border-radius: 0;
        box-shadow: 0 -6px 20px rgba(7, 29, 51, .12);
        z-index: 100000;
    }
    .ls-ls.is-sheet .ls-ls-top { grid-template-columns: 1fr; }
    .ls-ls.is-sheet .ls-ls-top-link { grid-template-columns: 66px 1fr; }
    .ls-ls.is-sheet .ls-ls-top-pic { height: 84px; }
    .ls-ls.is-sheet .ls-ls-top-pic img { max-height: 84px; }
    .ls-ls.is-sheet .ls-ls-top-btns { flex-direction: row; }
    .ls-ls.is-sheet .ls-ls-top-btns .ls-ls-btn { flex: 1; padding: 10px 12px; }
    .ls-ls.is-sheet .ls-ls-row-price { display: none; }
    .ls-ls.is-sheet .ls-ls-tiles,
    .ls-ls.is-sheet .ls-ls-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ls-ls.is-sheet .ls-ls-tool { flex-direction: column; text-align: center; font-size: 12px; }
    .ls-ls.is-sheet .ls-ls-foot { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; }
    .lumicrib-live-results.ls-ls.is-sheet .ls-ls-all { display: block; flex: 1; margin: 0; padding: 12px; border-radius: 10px; background: #071d33; color: #fff !important; font-size: 14.5px; text-align: center; }
    .ls-ls.is-sheet .ls-ls-cols,
    .ls-ls.is-sheet[data-cols="3"] .ls-ls-cols { display: block; }
    .ls-ls.is-sheet .ls-ls-col { padding: 12px 12px 6px; }
    .ls-ls.is-sheet .ls-ls-col + .ls-ls-col { border-left: 0; border-top: 1px solid #e7edf2; }
    .ls-ls.is-sheet .ls-ls-col-h span { font-size: 15px; }
    html.ls-ls-sheet-open { overflow: hidden; }
    .ls-msearch-drop:has(.lumicrib-live-results.is-sheet.is-visible) { transform: none !important; } /* a moving parent would carry the sheet with it */
}
