/* find-v1 (12 Nov 2026): site-wide search box, filter and sort panel, filtered results. */
:root {
    --fx-ink: #18212f; --fx-muted: #667085; --fx-line: #e3e8ef; --fx-card: #fff; --fx-soft: #f5f7fa;
    --fx-accent: #2857d9; --fx-accent-soft: rgba(40, 87, 217, .10); --fx-on-accent: #fff;
    --fx-live: #e5484d; --fx-hit: #1a8c54; --fx-home: #2857d9; --fx-draw: #7e89a6; --fx-away: #bf8216;
    --fx-shadow: 0 30px 80px rgba(9, 17, 31, .24), 0 2px 8px rgba(9, 17, 31, .08); --fx-scrim: rgba(9, 17, 31, .42);
    --fx-r: 16px;
}
html[data-theme="dark"] {
    --fx-ink: #ecf2ff; --fx-muted: #aab7ca; --fx-line: #2a3a52; --fx-card: #111a29; --fx-soft: #182235;
    --fx-accent: #7397ff; --fx-accent-soft: rgba(115, 151, 255, .15); --fx-on-accent: #0b1220;
    --fx-live: #f0746a; --fx-hit: #3bbf7f; --fx-home: #7397ff; --fx-draw: #8b95ad; --fx-away: #e0a028;
    --fx-shadow: 0 30px 80px rgba(0, 0, 0, .6); --fx-scrim: rgba(0, 0, 0, .58);
}
/* colors-v1: the filter panel keeps football's colours on basketball pages too */
html.fx-lock, html.fx-lock body { overflow: hidden; }

/* header button */
.sp-find-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid transparent; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.sp-find-btn:hover { background: rgba(127, 140, 160, .14); }
.sp-find-btn:focus-visible { outline: 2px solid var(--fx-accent); outline-offset: 2px; }

/* shared */
.fx-scrim { position: absolute; inset: 0; background: var(--fx-scrim); opacity: 0; transition: opacity .18s ease; }
.is-open > .fx-scrim { opacity: 1; }
.fx-search, .fx-panel { position: fixed; inset: 0; z-index: 1000; color: var(--fx-ink); font-family: inherit; }
.fx-search[hidden], .fx-panel[hidden] { display: none; }

/* ---------------------------------------------------------------- search */
.fx-search-panel { position: relative; display: flex; flex-direction: column; width: min(720px, calc(100% - 32px)); max-height: min(78vh, 760px); margin: 9vh auto 0; border: 1px solid var(--fx-line); border-radius: 18px; background: var(--fx-card); box-shadow: var(--fx-shadow); overflow: hidden; transform: translateY(-8px) scale(.985); opacity: 0; transition: transform .18s ease, opacity .18s ease; }
.fx-search.is-open .fx-search-panel { transform: none; opacity: 1; }
.fx-search-bar { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--fx-line); }
.fx-search-ico { display: inline-flex; color: var(--fx-muted); }
.fx-search-input { flex: 1; min-width: 0; height: 30px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--fx-ink); font: inherit; font-size: 18px; font-weight: 500; }
.fx-search-input::-webkit-search-cancel-button { display: none; }
.fx-search-input::placeholder { color: var(--fx-muted); opacity: .85; }
.fx-search-close { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--fx-soft); color: var(--fx-muted); cursor: pointer; }
.fx-search-close:hover { color: var(--fx-ink); }
.fx-search-bar::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 2px; background: var(--fx-accent); opacity: 0; }
.fx-search.is-busy .fx-search-bar::after { opacity: 1; animation: fx-load 1s ease-in-out infinite; }
@keyframes fx-load { 0% { left: 0; right: 100%; } 50% { left: 20%; right: 20%; } 100% { left: 100%; right: 0; } }
.fx-search-body { flex: 1; min-height: 0; padding: 6px 8px 12px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.fx-hint, .fx-empty { margin: 0; padding: 22px 14px; color: var(--fx-muted); font-size: 14px; text-align: center; }
.fx-sec { padding-top: 6px; }
.fx-sec + .fx-sec { margin-top: 4px; border-top: 1px solid var(--fx-line); }
.fx-sec-title { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 10px 6px; color: var(--fx-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fx-sec-title i { padding: 1px 7px; border-radius: 999px; background: var(--fx-soft); font-style: normal; font-size: 11px; letter-spacing: 0; }
.fx-sec.is-today .fx-sec-title { color: var(--fx-accent); }
.fx-sec.is-today .fx-sec-title i { background: var(--fx-accent-soft); }
.fx-item { display: grid; align-items: center; gap: 12px; min-height: 52px; padding: 8px 10px; border-radius: 12px; color: var(--fx-ink); text-decoration: none; }
.fx-item:hover, .fx-item.is-active { background: var(--fx-soft); }
.fx-item.is-active { box-shadow: inset 0 0 0 1px var(--fx-accent); }
.fx-item:focus-visible { outline: 2px solid var(--fx-accent); outline-offset: -2px; }
.fx-ent { grid-template-columns: 32px minmax(0, 1fr) auto; }
.fx-fx { grid-template-columns: 54px minmax(0, 1fr) auto; }
:where(.fx-search, .fx-panel, .fx-results) .fx-crest, :where(.fx-search, .fx-panel, .fx-results) .fx-mini { display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; color: var(--fx-muted); font-size: 11px; font-weight: 800; }
:where(.fx-search, .fx-panel, .fx-results) .fx-crest { width: 32px; height: 32px; border-radius: 9px; background: var(--fx-soft); }
:where(.fx-search, .fx-panel, .fx-results) .fx-crest img { width: 26px; height: 26px; object-fit: contain; }
:where(.fx-search, .fx-panel, .fx-results) .fx-crest.is-flag img { width: 30px; height: 22px; border-radius: 3px; object-fit: cover; }
:where(.fx-search, .fx-panel, .fx-results) .fx-mini { width: 18px; height: 18px; border-radius: 5px; font-size: 8px; }
:where(.fx-search, .fx-panel, .fx-results) .fx-mini img { width: 18px; height: 18px; object-fit: contain; }
.fx-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fx-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-ent .fx-name { font-size: 15px; font-weight: 700; }
:where(.fx-search, .fx-panel, .fx-results) .fx-sub { overflow: hidden; color: var(--fx-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.fx-side { display: inline-flex; align-items: center; gap: 8px; }
.fx-sport { display: inline-flex; color: var(--fx-muted); opacity: .75; }
.fx-when { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0; border-radius: 9px; background: var(--fx-soft); line-height: 1.15; text-align: center; }
.fx-when b { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fx-when small { max-width: 52px; overflow: hidden; color: var(--fx-muted); font-size: 10.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.fx-when .is-live { color: var(--fx-live); }
.fx-when .is-off { color: var(--fx-muted); font-size: 11.5px; }
.fx-fx.is-live .fx-when { background: color-mix(in srgb, var(--fx-live) 12%, transparent); }
:where(.fx-search, .fx-panel, .fx-results) .fx-teams { display: flex; flex-direction: column; gap: 3px; }
:where(.fx-search, .fx-panel, .fx-results) .fx-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; font-weight: 600; }
:where(.fx-search, .fx-panel, .fx-results) .fx-team .fx-name { flex: 1; min-width: 0; }
:where(.fx-search, .fx-panel, .fx-results) .fx-score { min-width: 18px; color: var(--fx-muted); font-variant-numeric: tabular-nums; text-align: right; }
:where(.fx-search, .fx-panel, .fx-results) .fx-score.is-won, :where(.fx-search, .fx-panel, .fx-results) .fx-fx.is-live .fx-score { color: var(--fx-ink); }
:where(.fx-search, .fx-panel, .fx-results) .fx-fx .fx-sub { margin-top: 2px; font-size: 11.5px; }
.fx-pick { display: inline-flex; align-items: baseline; gap: 5px; max-width: 150px; padding: 5px 9px; border-radius: 999px; background: var(--fx-soft); font-size: 12px; white-space: nowrap; }
.fx-pick-l { overflow: hidden; color: var(--fx-muted); font-weight: 600; text-overflow: ellipsis; }
.fx-pick b { font-variant-numeric: tabular-nums; }
.fx-pick.is-home b { color: var(--fx-home); }
.fx-pick.is-draw b { color: var(--fx-draw); }
.fx-pick.is-away b { color: var(--fx-away); }
@media (max-width: 640px) {
    .fx-search-panel { width: 100%; max-height: none; height: 100%; margin: 0; border: 0; border-radius: 0; }
    .fx-search-bar { padding: 10px 10px 10px 14px; }
    .fx-search-input { font-size: 17px; }
    .fx-item { gap: 10px; padding: 8px 6px; }
    .fx-fx { grid-template-columns: 50px minmax(0, 1fr) auto; }
    .fx-pick { flex-direction: column; align-items: flex-end; gap: 0; padding: 4px 8px; border-radius: 10px; max-width: 92px; }
    .fx-pick-l { max-width: 76px; font-size: 10.5px; }
    .fx-sport { display: none; }
}

/* ---------------------------------------------------------------- filter button (status row) */
.sp-fx-open { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--fx-line); border-radius: 999px; background: var(--fx-card); color: var(--fx-ink); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.sp-fx-open:hover { border-color: var(--fx-accent); }
.sp-fx-open.is-on { border-color: var(--fx-accent); background: var(--fx-accent-soft); color: var(--fx-accent); }
.sp-fx-open svg { flex: none; }
.sp-fx-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--fx-accent); color: var(--fx-on-accent); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sp-fx-badge[hidden] { display: none; }
/* football hub: the button sits right of the status chips; it carries the sorting, so the old sort control goes */
html .sp-home-v1 .sp-hub-sort, html .sp-home-v1 .sp-side-label-sort { display: none !important; }
@media (min-width: 761px) {
    html .sp-home-v1 .sp-hub-sticky-controls .sp-fx-open { order: 6; width: 100%; height: 38px; margin-top: 8px; border-radius: 10px; justify-content: flex-start; }
    html .sp-home-v1 .sp-hub-sticky-controls .sp-fx-open .sp-fx-badge { margin-left: auto; }
}
@media (max-width: 760px) {
    html .sp-home-v1 .sp-hub-sticky-controls { grid-template-areas: "search search" "cal cal" "filt fx" !important; }
    html .sp-home-v1 .sp-hub-sticky-controls .sp-fx-open { grid-area: fx; width: auto; height: 32px; margin: 0 12px 8px 6px; padding: 0 9px; border-radius: 10px; }
    html .sp-home-v1 .sp-fx-open-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    html .sp-home-v1 .sp-fx-open .sp-fx-badge { position: absolute; top: -6px; right: -6px; }
}
/* basketball hub: the button closes the status chips */
.bb [data-bb-status] .sp-fx-open { height: auto; min-height: 32px; }

/* ---------------------------------------------------------------- the panel */
.fx-sheet { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(460px, 100%); background: var(--fx-card); box-shadow: var(--fx-shadow); transform: translateX(24px); opacity: 0; transition: transform .2s ease, opacity .2s ease; }
.fx-panel.is-open .fx-sheet { transform: none; opacity: 1; }
.fx-sheet-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px 22px; border-bottom: 1px solid var(--fx-line); }
.fx-sheet-head h2 { flex: 1; margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.fx-grip { display: none; }
.fx-sheet-close { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--fx-soft); color: var(--fx-muted); cursor: pointer; }
.fx-sheet-body { flex: 1; min-height: 0; padding: 4px 22px 18px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.fx-sheet-foot { display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--fx-line); background: var(--fx-card); }
:where(.fx-search, .fx-panel, .fx-results) .fx-btn { height: 44px; padding: 0 16px; border: 1px solid var(--fx-line); border-radius: 12px; background: var(--fx-card); color: var(--fx-ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.fx-btn-main { flex: 1; border-color: var(--fx-accent); background: var(--fx-accent); color: var(--fx-on-accent); transition: opacity .15s; }
.fx-btn-main.is-busy { opacity: .7; }
:where(.fx-search, .fx-panel, .fx-results) .fx-btn:focus-visible, .fx-seg-b:focus-visible, :where(.fx-search, .fx-panel, .fx-results) .fx-chip:focus-visible { outline: 2px solid var(--fx-accent); outline-offset: 2px; }
.fx-group { padding: 16px 0 4px; }
.fx-group + .fx-group { border-top: 1px solid var(--fx-line); }
.fx-group-title { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
:where(.fx-search, .fx-panel, .fx-results) .fx-note { margin: 0 0 10px; color: var(--fx-muted); font-size: 12.5px; line-height: 1.45; }
:where(.fx-search, .fx-panel, .fx-results) .fx-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--fx-soft); }
:where(.fx-search, .fx-panel, .fx-results) .fx-seg.is-4 { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
.fx-seg-b { min-height: 38px; padding: 6px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--fx-muted); font: inherit; font-size: 13px; font-weight: 700; line-height: 1.2; cursor: pointer; }
.fx-seg-b:hover { color: var(--fx-ink); }
.fx-seg-b.is-on { background: var(--fx-card); color: var(--fx-ink); box-shadow: 0 1px 3px rgba(9, 17, 31, .14), inset 0 0 0 1px var(--fx-line); }
html[data-theme="dark"] .fx-seg-b.is-on { background: #22304a; }
.fx-sortm { margin-top: 12px; }
.fx-sortm[hidden] { display: none; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
:where(.fx-search, .fx-panel, .fx-results) .fx-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid var(--fx-line); border-radius: 999px; background: var(--fx-card); color: var(--fx-ink); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
:where(.fx-search, .fx-panel, .fx-results) .fx-chip.is-on { border-color: var(--fx-accent); background: var(--fx-accent-soft); color: var(--fx-accent); }
:where(.fx-search, .fx-panel, .fx-results) .fx-chip i { display: inline-flex; }
.fx-picked { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.fx-picked[hidden] { display: none; }
.fx-find { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--fx-line); border-radius: 10px; background: var(--fx-soft); color: var(--fx-ink); font: inherit; font-size: 14px; }
.fx-find:focus { outline: 0; border-color: var(--fx-accent); background: var(--fx-card); }
:where(.fx-search, .fx-panel, .fx-results) .fx-list { max-height: 216px; margin-top: 6px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.fx-opt { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 4px 8px; border-radius: 9px; cursor: pointer; }
.fx-opt:hover { background: var(--fx-soft); }
.fx-opt input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--fx-accent); }
.fx-opt-name { flex: 1; min-width: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.fx-opt-name small { margin-left: 6px; color: var(--fx-muted); font-size: 12px; }
.fx-opt-n { color: var(--fx-muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-ranges { display: flex; flex-direction: column; gap: 12px; }
.fx-range-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 600; }
.fx-range-val { color: var(--fx-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.fx-range.is-set .fx-range-val { color: var(--fx-accent); }
.fx-dual { position: relative; height: 30px; }
:where(.fx-search, .fx-panel, .fx-results) .fx-track { position: absolute; left: 9px; right: 9px; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--fx-line); }
:where(.fx-search, .fx-panel, .fx-results) .fx-track i { position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: 3px; background: var(--fx-muted); opacity: .45; }
:where(.fx-search, .fx-panel, .fx-results) .fx-range.is-set .fx-track i { background: var(--fx-accent); opacity: 1; }
.fx-dual input { position: absolute; inset: 0; width: 100%; height: 30px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.fx-dual input::-webkit-slider-runnable-track { height: 30px; background: none; }
.fx-dual input::-moz-range-track { height: 30px; background: none; }
.fx-dual input::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: 4px; border: 2px solid var(--fx-card); border-radius: 50%; background: var(--fx-accent); box-shadow: 0 1px 4px rgba(9, 17, 31, .35); pointer-events: auto; cursor: grab; -webkit-appearance: none; appearance: none; }
.fx-dual input::-moz-range-thumb { width: 18px; height: 18px; border: 2px solid var(--fx-card); border-radius: 50%; background: var(--fx-accent); box-shadow: 0 1px 4px rgba(9, 17, 31, .35); pointer-events: auto; cursor: grab; }
.fx-dual input:focus { outline: none; }
.fx-dual input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--fx-accent-soft), 0 1px 4px rgba(9, 17, 31, .35); }
.fx-dual input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px var(--fx-accent-soft); }
.fx-range:not(.is-set) .fx-dual input::-webkit-slider-thumb { background: var(--fx-card); border-color: var(--fx-muted); }
.fx-range:not(.is-set) .fx-dual input::-moz-range-thumb { background: var(--fx-card); border-color: var(--fx-muted); }
@media (max-width: 640px) {
    .fx-sheet { top: auto; left: 0; width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; transform: translateY(40px); }
    .fx-grip { position: absolute; top: 6px; left: 50%; display: block; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--fx-line); }
    .fx-sheet-head { position: relative; padding: 18px 12px 10px 18px; }
    .fx-sheet-body { padding: 0 18px 14px; }
}

/* ---------------------------------------------------------------- results */
.fx-on .sp-hub-groups, .fx-on .sp-hub-no-results, .fx-on .sp-hub-sliced, .fx-on .sp-hub-empty, .fx-on [data-sd-root],
.fx-on .bb-main > section[data-group], .fx-on .bb-main > .bb-empty, .fx-on [data-bb-leagues] { display: none !important; }
.fx-results[hidden] { display: none; }
.fx-results { position: relative; margin-bottom: 14px; scroll-margin-top: 76px; }
.fx-res-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
:where(.fx-search, .fx-panel, .fx-results) .fx-res-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fx-res-count { margin-right: auto; color: var(--fx-ink); font-size: 15px; font-weight: 800; }
.fx-res-edit, .fx-res-clear { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--fx-line); border-radius: 999px; background: var(--fx-card); color: var(--fx-ink); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.fx-res-clear { border-color: transparent; background: transparent; color: var(--fx-accent); }
.fx-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 11px; border: 1px solid var(--fx-accent); border-radius: 999px; background: var(--fx-accent-soft); color: var(--fx-ink); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.fx-tag i { display: inline-flex; color: var(--fx-accent); }
.fx-res-list { border: 1px solid var(--fx-line); border-radius: 12px; background: var(--fx-card); overflow: clip; container: list / inline-size; transition: opacity .15s; }
.fx-res-list:empty { display: none; }
.fx-res-list.is-bb { border: 0; background: none; overflow: visible; display: flex; flex-direction: column; gap: 12px; }
.fx-results.is-busy .fx-res-list { opacity: .55; }
.sp-fx-sec + .sp-fx-sec { border-top: 1px solid var(--fx-line); }
.sp-fx-sec-title { margin: 0; padding: 9px 14px; border-bottom: 1px solid var(--fx-line); background: var(--fx-soft); color: var(--fx-ink); font-size: 13px; font-weight: 800; }
.sp-fx-item + .sp-fx-item { border-top: 1px solid var(--fx-line); }
.sp-fx-ctx { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 14px 0; color: var(--fx-muted); font-size: 11.5px; font-weight: 600; }
.sp-fx-ctx span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-fx-val { flex: none; padding: 1px 8px; border-radius: 999px; background: var(--fx-accent-soft); color: var(--fx-accent); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.fx-res-list .sp-hub-fixture { border: 0; }
.fx-res-list .sp-hub-chevron { visibility: hidden; }
.fx-res-list .sp-hub-fixture:has(.sp-row-link) .sp-hub-chevron { visibility: visible; }
.sp-fx-bb .sp-fx-ctx { padding: 8px 16px 0; }
.fx-res-empty { margin: 0; padding: 30px 16px; border: 1px solid var(--fx-line); border-radius: 12px; background: var(--fx-card); color: var(--fx-muted); text-align: center; }
.fx-res-empty[hidden] { display: none; }
.fx-more { display: block; width: 100%; height: 44px; margin-top: 10px; border: 1px solid var(--fx-line); border-radius: 12px; background: var(--fx-card); color: var(--fx-accent); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.fx-more[hidden] { display: none; }
.fx-more:hover { border-color: var(--fx-accent); }
@media (max-width: 760px) {
    .fx-results { margin: 10px 0 14px; scroll-margin-top: 190px; }
    html .sp-home-v1 .fx-results { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .fx-search-panel, .fx-sheet, .fx-scrim { transition: none; }
    .fx-search.is-busy .fx-search-bar::after { animation: none; }
}

/* busyday-v1b: the compact row's most likely outcome is shown only by the smart day's Compact rows */
.sp-row-mini { display: none; }

/* ---------------------------------------------------------------- search-v2 (23 Nov 2026): one search for all six sports */
:root { --f2-live-bg: #c9363b; --f2-live-ink: #fff; --f2-live-soft: rgba(201, 54, 59, .10); --f2-live-text: #b4262c; --f2-hit-soft: rgba(26, 140, 84, .12); --f2-hit-text: #12703f; --f2-miss-text: #b4262c; }
html[data-theme="dark"] { --f2-live-bg: #f0746a; --f2-live-ink: #1a0306; --f2-live-soft: rgba(240, 116, 106, .14); --f2-live-text: #ffb0aa; --f2-hit-soft: rgba(59, 191, 127, .15); --f2-hit-text: #8ff0c4; --f2-miss-text: #ffc2c7; }
.f2 { position: fixed; inset: 0; z-index: 1000; color: var(--fx-ink); font-family: inherit; }
.f2[hidden] { display: none; }
.f2-scrim { position: absolute; inset: 0; background: var(--fx-scrim); opacity: 0; transition: opacity .18s ease; }
.f2.is-open .f2-scrim { opacity: 1; }
.f2-panel { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--fx-card); overflow: hidden; }
.f2-bar { position: relative; flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 4px; border-bottom: 1px solid var(--fx-line); }
.f2-back, .f2-clear { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--fx-muted); cursor: pointer; }
.f2-back { color: var(--fx-ink); }
.f2-clear[hidden] { display: none; }
.f2-ico, .f2-meta, .f2-esc { display: none; }
.f2-input { flex: 1; min-width: 0; height: 42px; box-sizing: border-box; padding: 0 12px; border: 1.5px solid var(--fx-line); border-radius: 11px; outline: 0; background: var(--fx-soft); color: var(--fx-ink); font: inherit; font-size: 16px; font-weight: 500; }
.f2-input:focus { border-color: var(--fx-accent); }
.f2-input::-webkit-search-cancel-button { display: none; }
.f2-input::placeholder { color: var(--fx-muted); opacity: .9; }
.f2-bar::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 2px; background: var(--fx-accent); opacity: 0; }
.f2.is-busy .f2-bar::after { opacity: 1; animation: fx-load 1s ease-in-out infinite; }
.f2-chips { flex: none; display: flex; gap: 7px; padding: 10px 12px 2px; overflow-x: auto; scrollbar-width: none; }
.f2-chips:empty, .f2-tabs:empty { display: none; }
.f2-chips::-webkit-scrollbar, .f2-tabs::-webkit-scrollbar { display: none; }
.f2-chip { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 34px; padding: 0 12px 0 9px; border: 1px solid var(--fx-line); border-radius: 999px; background: transparent; color: var(--fx-ink); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.f2-chip:first-child { padding-left: 13px; }
.f2-chip i { color: var(--fx-muted); font-style: normal; font-variant-numeric: tabular-nums; }
.f2-chip.is-on { border-color: var(--fx-accent); background: var(--fx-accent-soft); font-weight: 650; }
.f2-chip.is-on i { color: var(--fx-accent); }
.f2-tabs { flex: none; display: flex; gap: 20px; padding: 4px 16px 0; border-bottom: 1px solid var(--fx-line); overflow-x: auto; scrollbar-width: none; }
.f2-tab { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 9px 0 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--fx-muted); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.f2-tab i { font-style: normal; font-variant-numeric: tabular-nums; }
.f2-tab.is-on { border-bottom-color: var(--fx-accent); color: var(--fx-ink); font-weight: 650; }
.f2-body { flex: 1; min-height: 0; padding: 12px 10px 28px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.f2-foot { display: none; }
.f2-hint, .f2-empty { margin: 0; padding: 28px 16px; color: var(--fx-muted); font-size: 14px; text-align: center; }
.f2-cols, .f2-main, .f2-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.f2-sec { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.f2-sec-title { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 6px 4px; color: var(--fx-muted); font-size: 11.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.f2-sec-title.is-live { color: var(--f2-live-text); }
.f2-link { margin-left: auto; padding: 4px 6px; border: 0; background: none; color: var(--fx-accent); font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; }
.f2-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--f2-live-bg); animation: f2-pulse 1.6s ease-in-out infinite; }
@keyframes f2-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .f2-dot { animation: none; } }
.f2-sym { flex: none; display: block; }
.f2-opt { color: var(--fx-ink); text-decoration: none; border-radius: 12px; }
.f2-opt:hover, .f2-opt.is-active { background: var(--fx-soft); }
.f2-opt.is-active { box-shadow: inset 0 0 0 1.5px var(--fx-accent); }
.f2-opt:focus-visible { outline: 2px solid var(--fx-accent); outline-offset: -2px; }

/* match rows */
.f2-row { display: grid; grid-template-columns: 62px 20px minmax(0, 1fr); align-items: center; column-gap: 10px; row-gap: 3px; min-height: 52px; padding: 8px 8px; }
.f2-row.is-live { background: var(--f2-live-soft); }
.f2-when { grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 2px; color: var(--fx-muted); font-size: 11.5px; line-height: 1.2; }
.f2-when b { color: var(--fx-ink); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.f2-when small { font-size: 11.5px; white-space: nowrap; }
.f2-when .is-off { color: var(--f2-miss-text); }
.f2-live { align-self: flex-start; padding: 1px 5px; border-radius: 5px; background: var(--f2-live-bg); color: var(--f2-live-ink) !important; font-size: 10px !important; font-weight: 800 !important; letter-spacing: .06em; }
.f2-clock { color: var(--f2-live-text); font-weight: 600; }
.f2-row > .f2-sym { grid-row: 1 / span 2; }
.f2-mainc { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.f2-teams { overflow: hidden; font-size: 14.5px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.f2-teams b.f2-tn { font-weight: 700; }
.f2-score { font-weight: 800; font-variant-numeric: tabular-nums; }
.f2-sub { display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; color: var(--fx-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.f2-pick { grid-column: 3; justify-self: start; display: inline-flex; align-items: center; gap: 3px; max-width: 100%; overflow: hidden; color: var(--fx-accent); font-size: 12px; white-space: nowrap; }
.f2-pick .f2-pl { overflow: hidden; text-overflow: ellipsis; }
.f2-pick.is-right { color: var(--f2-hit-text); }
.f2-pick.is-wrong { color: var(--f2-miss-text); }
.f2-pi { display: inline-flex; }

/* teams, players, leagues, countries */
.f2-ent { display: flex; align-items: center; gap: 4px; }
.f2-ent-a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; padding: 7px 8px; }
.f2-ent-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.f2-name { overflow: hidden; font-size: 14.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.f2-crest { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; overflow: hidden; border-radius: 50%; background: var(--fx-soft); color: var(--fx-muted); font-size: 12px; font-weight: 800; }
.f2-crest img { width: 26px; height: 26px; object-fit: contain; }
.f2-crest.is-flag { border-radius: 6px; }
.f2-crest.is-flag img { width: 30px; height: 22px; border-radius: 3px; object-fit: cover; }
.f2-crest.is-big { width: 50px; height: 50px; font-size: 16px; }
.f2-crest.is-big img { width: 40px; height: 40px; }
.f2-star { flex: none; }

/* the top result */
.f2-top { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1.5px solid var(--fx-accent); border-radius: 14px; background: var(--fx-soft); }
.f2-top-h { display: flex; align-items: flex-start; gap: 8px; }
.f2-top-a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 13px; padding: 2px; }
.f2-top-a:hover { background: none; }
.f2-top-n { overflow: hidden; font-size: 19px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.f2-top-l { flex: none; padding-top: 4px; color: var(--fx-accent); font-size: 10.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.f2-top-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.f2-spill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 7px; border: 1px solid var(--fx-line); border-radius: 8px; background: var(--fx-card); font-size: 12.5px; white-space: nowrap; }
.f2-spill.is-live { border-color: transparent; background: var(--f2-live-soft); color: var(--f2-live-text); font-weight: 650; }
.f2-top-next { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; gap: 4px 8px; padding: 4px 2px; color: var(--fx-muted); font-size: 12.5px; }
.f2-top-next .f2-pick { grid-column: 2; }
.f2-day { padding: 10px 8px 2px; color: var(--fx-ink); font-size: 13px; font-weight: 650; }

/* before typing */
.f2-recent { display: flex; align-items: center; }
.f2-recent-q { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 9px 10px; color: var(--fx-ink); font-size: 14.5px; }
.f2-recent-q svg { flex: none; color: var(--fx-muted); }
.f2-x { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--fx-muted); cursor: pointer; }
.f2-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.f2-tile { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--fx-soft); }
.f2-tile-t { display: flex; flex-direction: column; min-width: 0; }
.f2-tile-t b { font-size: 14px; }
.f2-live-n { color: var(--f2-live-text); font-size: 12px; font-weight: 600; }
.f2-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.f2-pill { display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border: 1px solid var(--fx-line); border-radius: 999px; font-size: 13px; }

/* tablets: a centred box */
@media (min-width: 641px) {
    .f2-panel { inset: auto; position: relative; width: min(760px, calc(100% - 40px)); height: min(86vh, 880px); margin: 6vh auto 0; border: 1px solid var(--fx-line); border-radius: 18px; box-shadow: var(--fx-shadow); transform: translateY(-8px) scale(.985); opacity: 0; transition: transform .18s ease, opacity .18s ease; }
    .f2.is-open .f2-panel { transform: none; opacity: 1; }
    .f2-back { display: none; }
    .f2-bar { gap: 12px; padding: 12px 14px 12px 20px; }
    .f2-ico { display: inline-flex; color: var(--fx-accent); }
    .f2-input { height: 40px; padding: 0; border: 0; background: transparent; font-size: 19px; }
    .f2-meta { display: inline; flex: none; color: var(--fx-muted); font-size: 12.5px; white-space: nowrap; }
    .f2-esc { display: inline-block; flex: none; padding: 2px 8px; border: 1px solid var(--fx-line); border-radius: 6px; color: var(--fx-muted); font-family: inherit; font-size: 12px; }
    .f2-clear { width: 34px; height: 34px; }
    .f2-chips { padding: 12px 20px 2px; }
    .f2-tabs { padding: 6px 24px 0; gap: 24px; }
    .f2-body { padding: 16px 16px 24px; }
    .f2-row { grid-template-columns: 72px 22px minmax(0, 1fr) auto; column-gap: 12px; }
    .f2-row > .f2-pick { grid-column: 4; grid-row: 1 / span 2; justify-self: end; padding: 4px 10px; border-radius: 999px; background: var(--fx-accent-soft); font-size: 12.5px; }
    .f2-row > .f2-pick.is-right { background: var(--f2-hit-soft); }
    .f2-row > .f2-pick.is-wrong { background: var(--f2-live-soft); }
    .f2-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .f2-foot { display: flex; flex: none; align-items: center; gap: 18px; height: 42px; padding: 0 20px; border-top: 1px solid var(--fx-line); color: var(--fx-muted); font-size: 12px; }
    .f2-foot kbd { margin-right: 3px; padding: 1px 6px; border: 1px solid var(--fx-line); border-radius: 5px; font-family: inherit; font-size: 11.5px; }
    .f2-order { margin-left: auto; }
    .f2-top { padding: 16px; }
    .f2-top-n { font-size: 21px; }
}
/* desktops: matches on the left, names on the right */
@media (min-width: 900px) {
    .f2-panel { width: min(960px, calc(100% - 48px)); height: min(88vh, 940px); margin-top: 4vh; }
    .f2-cols.is-two { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0; }
    .f2-cols.is-two .f2-main { padding-right: 16px; border-right: 1px solid var(--fx-line); }
    .f2-cols.is-two .f2-side { padding-left: 14px; }
}
