/* ScoreProb shell v1: Concept C (>= 761px, sidebar) and Concept B (<= 760px, app shell).
   Loaded after sp-home.css. "html .sp-home-v1 " expands to "html .sp-home-v1 " at build time so the
   rules out-rank the older dark-theme overrides without !important. */

html .sp-home-v1 {
    --sh-accent-soft: #e6edfc;
    --sh-line2: #c9d2e2;
    --sh-star: #c47f0a;
    --sh-live: #d6362b;
    --sh-on-accent: #ffffff;
    --sh-side: 248px;
}

html[data-theme="dark"] .sp-home-v1 {
    --sh-accent-soft: #1b2a4d;
    --sh-line2: #3a4d6b;
    --sh-star: #e0a028;
    --sh-live: #ff6b5f;
    --sh-on-accent: #0b1220;
}

html .sp-home-v1 .sp-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
html .sp-home-v1 .sp-legend-short { display: none; }
html .sp-home-v1 .sp-side-label { display: none; }
html .sp-home-v1 .sp-row-star { display: inline-block; flex: none; width: 12px; height: 12px; background: var(--sh-star); -webkit-mask: var(--ico-star) center / contain no-repeat; mask: var(--ico-star) center / contain no-repeat; }
html .sp-home-v1 .sp-hub-fixture:target, html .sp-home-v1 .sp-hub-fixture.sp-fte-linked-fixture { scroll-margin-top: 90px; }
html .sp-home-v1 #predictions { scroll-margin-top: 70px; }

/* ================================================================== */
/* >= 761px : title bar + sticky sidebar + list                        */
/* ================================================================== */
@media (min-width: 761px) {
    body:has(.sp-home-v1) { background: #f5f7fa; }

    html .sp-home-v1 { max-width: 1280px; padding: 14px 24px 54px; }

    /* title bar */
    html .sp-home-v1 .sp-home-v1-hero { position: static; display: block; overflow: visible; margin: 0 0 12px; padding: 0; border: 0; border-radius: 0; background: none; }
    html .sp-home-v1 .sp-home-v1-hero-main { display: flex; align-items: center; justify-content: space-between; gap: 6px 24px; min-height: 40px; }
    html .sp-home-v1 .sp-home-v1-kicker { display: none; }
    html .sp-home-v1 .sp-home-v1-hero h1 { flex: 1 1 auto; min-width: 0; max-width: none; margin: 0; font-size: clamp(16px, 1.55vw, 19px); line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
    html .sp-home-v1 .sp-titlebar-meta { flex: none; display: flex; align-items: center; gap: 14px; }
    html .sp-home-v1 .sp-meta-count { margin: 0; color: var(--sp-muted); font-size: 12.5px; white-space: nowrap; }
    html .sp-home-v1 .sp-meta-count b { color: var(--sp-ink); font-weight: 700; font-variant-numeric: tabular-nums; }

    html .sp-home-v1 .sp-about-pop { position: relative; }
    html .sp-home-v1 .sp-about-pop > summary { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 12px; border: 1px solid var(--sh-line2); border-radius: 9px; background: var(--sp-card); color: var(--sp-ink); font-size: 12px; font-weight: 600; list-style: none; cursor: pointer; user-select: none; }
    html .sp-home-v1 .sp-about-pop > summary::-webkit-details-marker { display: none; }
    html .sp-home-v1 .sp-about-pop > summary::after { content: ""; width: 13px; height: 13px; background: var(--sp-muted); -webkit-mask: var(--ico-chev) center / contain no-repeat; mask: var(--ico-chev) center / contain no-repeat; transition: transform .15s ease; }
    html .sp-home-v1 .sp-about-pop[open] > summary::after { transform: rotate(180deg); }
    html .sp-home-v1 .sp-about-pop > summary:hover { border-color: var(--sp-accent); }
    html .sp-home-v1 .sp-about-pop-body { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: min(440px, calc(100vw - 32px)); padding: 16px 18px; border: 1px solid var(--sp-line); border-radius: 14px; background: var(--sp-card); box-shadow: 0 18px 40px rgba(16, 24, 40, .16); }
    html .sp-home-v1 .sp-about-pop-body .sp-home-v1-hero-copy { max-width: none; margin: 0; font-size: 14px; line-height: 1.6; color: var(--sp-muted); }
    html .sp-home-v1 .sp-about-pop-body .sp-home-v1-actions { margin-top: 12px; }
    html .sp-home-v1 .sp-about-pop-body .sp-home-v1-button { min-height: 38px; font-size: 13px; }

    /* Top matches: replaced by the toggle + stars */
    html .sp-home-v1 .sp-top { display: none; }

    /* hub = sidebar | list */
    html .sp-home-v1 #predictions.sp-home-v1-section { margin-top: 0; }
    html .sp-home-v1 .sp-hub { display: grid; grid-template-columns: var(--sh-side) minmax(0, 1fr); column-gap: 24px; align-items: start; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
    html .sp-home-v1 .sp-hub > * { grid-column: 2; min-width: 0; }
    html .sp-home-v1 .sp-hub > .sp-hub-head { position: absolute; }
    html .sp-home-v1 .sp-hub > .sp-hub-sticky-controls { grid-column: 1; grid-row: 1 / span 6; }

    html .sp-home-v1 .sp-hub-sliced { margin-bottom: 10px; padding: 10px 14px; border: 1px solid var(--sp-line); border-radius: 12px; }

    html .sp-home-v1 .sp-hub-groups,
    html .sp-home-v1 .sp-hub-empty,
    html .sp-home-v1 .sp-hub-no-results { border: 1px solid var(--sp-line); border-radius: 12px; background: var(--sp-card); overflow: clip; }
    html .sp-home-v1 .sp-hub-groups { container: list / inline-size; }
    html .sp-home-v1 .sp-hub-no-results { margin-top: 10px; }
    html .sp-home-v1 .sp-hub-empty { padding: 34px 20px; }

    /* sidebar */
    html .sp-home-v1 .sp-hub-sticky-controls { position: sticky; top: 68px; z-index: 5; display: flex; flex-direction: column; max-height: calc(100vh - 80px); padding: 14px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border: 1px solid var(--sp-line); border-radius: 12px; background: var(--sp-card); box-shadow: none; backdrop-filter: none; }
    html .sp-home-v1 .sp-hub-sticky-controls .sp-hub-tools { display: contents; }
    html .sp-home-v1 .sp-hub-sticky-controls .sp-hub-search { order: 1; }
    html .sp-home-v1 .sp-hub-sticky-controls .sp-side-label-date { order: 2; }
    html .sp-home-v1 .sp-hub-sticky-controls .sp-hub-calendar-wrap { order: 3; }
    html .sp-home-v1 .sp-hub-sticky-controls .sp-side-label-status { order: 4; }
    html .sp-home-v1 .sp-hub-sticky-controls .sp-hub-filters { order: 5; }
    html .sp-home-v1 .sp-hub-sticky-controls .sp-side-label-sort { order: 6; }
    html .sp-home-v1 .sp-hub-sticky-controls .sp-hub-sort { order: 7; }
    html .sp-home-v1 .sp-hub-sticky-controls .sp-side-top { order: 8; }
    html .sp-home-v1 .sp-hub-sticky-controls .sp-side-legend { order: 9; }
    html .sp-home-v1 .sp-side-label { display: block; margin: 14px 0 6px 2px; color: var(--sp-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

    html .sp-home-v1 .sp-hub-search { position: relative; display: block; }
    html .sp-home-v1 .sp-hub-search input { min-height: 36px; padding: 0 12px 0 34px; border: 1px solid var(--sp-line); border-radius: 10px; background: var(--sp-card); color: var(--sp-ink); font-size: 13px; font-weight: 500; }
    html .sp-home-v1 .sp-hub-search::before { content: ""; left: 11px; width: 16px; height: 16px; font-size: 0; transform: translateY(-50%); background: var(--sp-muted); -webkit-mask: var(--ico-search) center / contain no-repeat; mask: var(--ico-search) center / contain no-repeat; }

    html .sp-home-v1 .sp-hub-calendar-wrap { padding: 0; border: 0; background: none; }
    html .sp-home-v1 .sp-hub-calendar { position: relative; display: flex; flex-direction: column; gap: 2px; max-height: 172px; padding: 0 2px 0 0; overflow-x: hidden; overflow-y: auto; scroll-snap-type: none; scrollbar-width: thin; }
    html .sp-home-v1 .sp-hub-day { flex: none; display: flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--sp-muted); text-align: left; transform: none; }
    html .sp-home-v1 .sp-hub-day:hover { background: var(--sp-soft); transform: none; }
    html .sp-home-v1 .sp-hub-day.is-selected { background: var(--sh-accent-soft); box-shadow: inset 0 0 0 1px var(--sp-accent); color: var(--sp-ink); }
    html .sp-home-v1 .sp-hub-day-date { flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: flex-start; gap: 4px; color: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; text-transform: none; letter-spacing: 0; }
    html .sp-home-v1 .sp-hub-day-date strong { color: inherit; font-size: inherit; font-weight: 700; }
    html .sp-home-v1 .sp-hub-day.is-selected .sp-hub-day-date { font-weight: 700; }
    html .sp-home-v1 .sp-hub-day-count { margin-left: auto; color: var(--sp-muted); font-size: 12px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
    html .sp-home-v1 .sp-hub-day.is-today:not(.is-selected) .sp-hub-day-date { color: var(--sp-ink); }

    html .sp-home-v1 .sp-hub-filters { display: flex; flex-direction: column; gap: 2px; overflow: visible; }
    html .sp-home-v1 .sp-hub-filter { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--sp-muted); font-size: 13px; font-weight: 600; text-align: left; }
    html .sp-home-v1 .sp-hub-filter:hover { background: var(--sp-soft); }
    html .sp-home-v1 .sp-hub-filter b { min-width: 0; height: auto; margin-left: auto; padding: 0; background: none; color: var(--sp-muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
    html .sp-home-v1 .sp-hub-filter.is-active { background: var(--sh-accent-soft); box-shadow: inset 0 0 0 1px var(--sp-accent); color: var(--sp-ink); font-weight: 700; }
    html .sp-home-v1 .sp-hub-filter.is-active b { background: none; color: var(--sp-muted); }
    html .sp-home-v1 .sp-hub-filter[data-status-filter="live"]::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--sh-live); }

    html .sp-home-v1 .sp-hub-sort { position: relative; display: block; }
    html .sp-home-v1 .sp-hub-sort::before { content: none; }
    html .sp-home-v1 .sp-hub-sort::after { content: ""; position: absolute; right: 11px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); background: var(--sp-muted); pointer-events: none; -webkit-mask: var(--ico-chev) center / contain no-repeat; mask: var(--ico-chev) center / contain no-repeat; }
    html .sp-home-v1 .sp-hub-sort select { width: 100%; min-height: 34px; padding: 0 30px 0 12px; border: 1px solid var(--sp-line); border-radius: 10px; background: var(--sp-card); color: var(--sp-ink); font-size: 13px; font-weight: 600; -webkit-appearance: none; appearance: none; }

    html .sp-home-v1 .sp-side-top { position: relative; display: flex; align-items: center; gap: 8px; min-height: 36px; margin-top: 10px; padding: 0 10px; border: 1px solid var(--sp-line); border-radius: 9px; color: var(--sp-ink); font-size: 13px; font-weight: 600; cursor: pointer; }
    html .sp-home-v1 .sp-side-top input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
    html .sp-home-v1 .sp-side-top .sp-ico-star { width: 15px; height: 15px; color: var(--sh-star); }
    html .sp-home-v1 .sp-side-top-text { flex: 1; min-width: 0; line-height: 1.2; }
    html .sp-home-v1 .sp-side-top b { color: var(--sp-muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
    html .sp-home-v1 .sp-switch { position: relative; flex: none; width: 30px; height: 18px; border-radius: 9px; background: var(--sp-track); transition: background .15s ease; }
    html .sp-home-v1 .sp-switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--sp-card); box-shadow: 0 0 0 1px var(--sh-line2); transition: transform .15s ease; }
    html .sp-home-v1 .sp-side-top input:checked ~ .sp-switch { background: var(--sp-accent); }
    html .sp-home-v1 .sp-side-top input:checked ~ .sp-switch::after { transform: translateX(12px); background: #fff; box-shadow: none; }
    html .sp-home-v1 .sp-side-top input:focus-visible ~ .sp-switch { outline: 3px solid var(--sp-accent); outline-offset: 2px; }
    html .sp-home-v1 .sp-side-top.is-on { border-color: var(--sp-accent); background: var(--sh-accent-soft); }

    html .sp-home-v1 .sp-side-legend .sp-side-label { margin-top: 16px; }
    html .sp-home-v1 .sp-side-legend .sp-hub-legend { flex-direction: column; flex-wrap: nowrap; gap: 6px; margin: 0; padding: 0; border: 0; font-size: 11.5px; }
    html .sp-home-v1 .sp-side-legend .sp-hub-legend span { display: none; }
    html .sp-home-v1 .sp-side-legend .sp-hub-legend b { min-width: 0; padding: 0; background: none; color: var(--sp-ink); font-size: 11.5px; letter-spacing: 0; }

    /* feature-guide pins under the site header now */
    html .sp-home-v1 .sp-feature-team-sticky { top: 66px; }
}

@media (min-width: 761px) and (max-width: 1023px) {
    html .sp-home-v1 { --sh-side: 216px; padding-left: 16px; padding-right: 16px; }
    html .sp-home-v1 .sp-hub { column-gap: 16px; }
    html .sp-home-v1 .sp-hub-sticky-controls { padding: 12px; }
}

/* ------------------------------------------------------------------ */
/* rows adapt to the list width (the sidebar changes how much room     */
/* the list has), so they use container queries, not viewport ones      */
/* ------------------------------------------------------------------ */
@container list (min-width: 860px) {
    html .sp-home-v1 .sp-hub-fixture-summary.sp-row { grid-template-columns: 64px minmax(0, 196px) minmax(0, 1fr) 168px 132px 22px; grid-template-areas: "time teams outcome goals verdict chev"; gap: 0 14px; min-height: 76px; padding: 11px 14px; }
    html .sp-home-v1 .sp-row > .sp-row-pendingwrap { grid-area: auto; grid-row: 1; grid-column: outcome-start / verdict-end; align-self: center; }
    html .sp-home-v1 .sp-row > .sp-row-verdict { align-self: center; justify-self: stretch; }
    html .sp-home-v1 .sp-row-goals { grid-template-columns: none; gap: 8px; }
    html .sp-home-v1 .sp-row .sp-hub-kickoff { display: grid; text-align: center; }
    html .sp-home-v1 .sp-row-star { justify-self: center; margin-top: 1px; }
}

@container list (min-width: 620px) and (max-width: 859.98px) {
    html .sp-home-v1 .sp-hub-fixture-summary.sp-row { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.3fr) 24px; grid-template-areas: "time teams outcome chev" "time verdict goals chev"; gap: 8px 14px; min-height: 0; padding: 12px 14px; }
    html .sp-home-v1 .sp-row > .sp-row-pendingwrap { grid-area: auto; grid-row: 1 / span 2; grid-column: outcome-start / outcome-end; align-self: center; }
    html .sp-home-v1 .sp-row > .sp-row-verdict { align-self: start; justify-self: stretch; }
    html .sp-home-v1 .sp-row-goals { grid-template-columns: 1fr 1fr; gap: 14px; }
    html .sp-home-v1 .sp-row .sp-hub-kickoff { display: grid; text-align: center; }
    html .sp-home-v1 .sp-row-star { justify-self: center; margin-top: 1px; }
}

@container list (max-width: 619.98px) {
    html .sp-home-v1 .sp-hub-fixture-summary.sp-row { grid-template-columns: minmax(0, 1fr) auto 22px; grid-template-areas: "time verdict chev" "teams teams teams" "outcome outcome outcome" "goals goals goals"; gap: 9px 8px; min-height: 0; padding: 12px 14px 14px; overflow: visible; }
    html .sp-home-v1 .sp-row > .sp-row-pendingwrap { grid-area: outcome; grid-row: 3; grid-column: 1 / -1; align-self: auto; }
    html .sp-home-v1 .sp-row .sp-hub-kickoff { display: flex; align-items: baseline; justify-content: flex-start; gap: 8px; text-align: left; }
    html .sp-home-v1 .sp-row .sp-hub-kickoff strong { font-size: 13px; }
    html .sp-home-v1 .sp-row .sp-hub-kickoff span { font-size: 11px; font-weight: 500; line-height: 1.2; }
    html .sp-home-v1 .sp-hub-fixture[data-status="live"] .sp-row .sp-hub-kickoff { justify-self: start; padding: 3px 10px; }
    html .sp-home-v1 .sp-row > .sp-hub-teams { gap: 3px; }
    html .sp-home-v1 .sp-row .sp-hub-team { font-size: 14px; line-height: 1.3; }
    html .sp-home-v1 .sp-row .sp-team-score { font-size: 14px; }
    html .sp-home-v1 .sp-row > .sp-row-verdict { align-self: center; justify-self: end; }
    html .sp-home-v1 .sp-row > .sp-hub-chevron { align-self: center; justify-self: end; font-size: 16px; text-align: center; }
    html .sp-home-v1 .sp-row-goals { grid-template-columns: 1fr 1fr; gap: 14px; }
    html .sp-home-v1 .sp-gl { gap: 6px; }
    html .sp-home-v1 .sp-gl-name { width: 28px; }
    html .sp-home-v1 .sp-gl-val { width: 28px; }
    html .sp-home-v1 .sp-row-star { align-self: center; margin: 0 0 0 2px; }
}

/* ================================================================== */
/* <= 760px : app shell (Concept B)                                    */
/* ================================================================== */
@media (max-width: 760px) {
    html { --sp-nav-h: 48px; }
    html.sp-nav-hidden { --sp-nav-h: 0px; }

    html .sp-home-v1 { padding: 0 0 38px; }

    /* title block: heading, then count + legend on one line */
    html .sp-home-v1 .sp-home-v1-hero { order: -20; display: block; margin: 0; padding: 10px 16px 6px; border: 0; border-radius: 0; background: none; }
    html .sp-home-v1 .sp-home-v1-hero h1 { margin: 0; font-size: 16px; line-height: 20px; font-weight: 700; letter-spacing: -.01em; }
    html .sp-home-v1 .sp-titlebar-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-top: 5px; }
    html .sp-home-v1 .sp-meta-count { margin: 0; color: var(--sp-muted); font-size: 11.5px; line-height: 14px; }
    html .sp-home-v1 .sp-meta-count b { color: var(--sp-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
    html .sp-home-v1 .sp-about-pop { display: none; }
    html .sp-home-v1 .sp-legend-short { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--sp-ink); font-size: 10.5px; font-weight: 700; line-height: 14px; }
    html .sp-home-v1 .sp-legend-short li { display: inline-flex; align-items: center; gap: 4px; }
    html .sp-home-v1 .sp-legend-short li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; }
    html .sp-home-v1 .sp-legend-short .is-1x2::before { width: 16px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--sp-c-home) 0 36%, var(--sp-c-draw) 36% 66%, var(--sp-c-away) 66% 100%); }
    html .sp-home-v1 .sp-legend-short .is-over::before { background: var(--sp-c-over); }
    html .sp-home-v1 .sp-legend-short .is-btts::before { background: var(--sp-c-btts); }

    /* Top picks rail */
    html .sp-home-v1 .sp-top { order: -15; display: flex; align-items: center; gap: 10px; margin: 0; padding: 4px 0 8px 16px; }
    html .sp-home-v1 .sp-top .sp-home-v1-section-head { flex: none; margin: 0; }
    html .sp-home-v1 .sp-top .sp-home-v1-section-head h2 { max-width: 58px; margin: 0; color: var(--sp-muted); font-size: 10px; font-weight: 700; line-height: 12px; letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; }
    html .sp-home-v1 .sp-top-grid { flex: 1; min-width: 0; display: flex; gap: 8px; margin: 0; padding: 0 16px 0 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
    html .sp-home-v1 .sp-top-grid::-webkit-scrollbar { display: none; }
    html .sp-home-v1 .sp-top-grid > li { flex: none; scroll-snap-align: start; }
    html .sp-home-v1 .sp-top-card { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px; border-radius: 999px; white-space: nowrap; transform: none; }
    html .sp-home-v1 .sp-top-card:hover { transform: none; box-shadow: none; }
    html .sp-home-v1 .sp-top-league { display: none; }
    html .sp-home-v1 .sp-top-teams { display: inline-flex; align-items: baseline; gap: 0; min-width: 0; }
    html .sp-home-v1 .sp-top-teams b { max-width: 120px; overflow: hidden; font-size: 12.5px; font-weight: 600; text-overflow: ellipsis; }
    html .sp-home-v1 .sp-top-teams b + b::before { content: " – "; color: var(--sp-muted); font-weight: 500; white-space: pre; }
    html .sp-home-v1 .sp-top-meta { display: contents; }
    html .sp-home-v1 .sp-top-meta time { order: -1; color: var(--sp-muted); font-size: 12px; }
    html .sp-home-v1 .sp-top-pick { display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; color: var(--sp-ink); font-size: 12px; font-weight: 700; }
    html .sp-home-v1 .sp-top-pick::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--sp-c-home); }
    html .sp-home-v1 .sp-top-pick-d::before { background: var(--sp-c-draw); }
    html .sp-home-v1 .sp-top-pick-a::before { background: var(--sp-c-away); }
    html .sp-home-v1 .sp-top-pick-h, html .sp-home-v1 .sp-top-pick-d, html .sp-home-v1 .sp-top-pick-a { color: var(--sp-ink); }

    /* one sticky toolbar: [search] / date pills / status chips + sort */
    html .sp-home-v1 .sp-hub { display: block; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
    html .sp-home-v1 .sp-hub-sticky-controls { position: sticky; top: var(--sp-nav-h); z-index: 45; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "search search" "cal cal" "filt sort"; align-items: center; margin: 0; padding: 0; border: 0; border-top: 1px solid var(--sp-line); border-bottom: 1px solid var(--sp-line); border-radius: 0; background: var(--sp-card); box-shadow: 0 6px 14px rgba(16, 24, 40, .06); backdrop-filter: none; transition: top .22s ease; }
    html[data-theme="dark"] .sp-home-v1 .sp-hub-sticky-controls { box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
    html .sp-home-v1 .sp-hub-sticky-controls .sp-hub-tools { display: contents; }
    html .sp-home-v1 .sp-side-label, html .sp-home-v1 .sp-side-top, html .sp-home-v1 .sp-side-legend { display: none; }

    html .sp-home-v1 .sp-hub-search { display: none; grid-area: search; padding: 8px 12px 0; }
    html .sp-home-v1 .sp-hub.is-search-open .sp-hub-search { display: block; }
    html .sp-home-v1 .sp-hub-search input { min-height: 40px; padding: 0 12px 0 36px; border: 1px solid var(--sp-line); border-radius: 10px; background: var(--sp-card); color: var(--sp-ink); font-size: 16px; font-weight: 500; }
    html .sp-home-v1 .sp-hub-search::before { content: ""; left: 24px; top: calc(50% + 4px); width: 16px; height: 16px; font-size: 0; transform: translateY(-50%); background: var(--sp-muted); -webkit-mask: var(--ico-search) center / contain no-repeat; mask: var(--ico-search) center / contain no-repeat; }

    html .sp-home-v1 .sp-hub-calendar-wrap { grid-area: cal; position: static; padding: 8px 12px 6px; border: 0; background: none; }
    html .sp-home-v1 .sp-hub-calendar { display: grid; grid-auto-flow: column; grid-auto-columns: 56px; gap: 6px; padding: 0; overflow-x: auto; scroll-padding-inline: 12px; scrollbar-width: none; }
    html .sp-home-v1 .sp-hub-calendar::-webkit-scrollbar { display: none; }
    html .sp-home-v1 .sp-hub-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; height: 42px; min-height: 42px; padding: 0; border: 1px solid var(--sp-line); border-radius: 10px; background: var(--sp-card); color: var(--sp-ink); text-align: center; transform: none; }
    html .sp-home-v1 .sp-hub-day:hover { transform: none; background: var(--sp-card); }
    html .sp-home-v1 .sp-hub-day-date { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: baseline; column-gap: 3px; row-gap: 2px; color: inherit; line-height: 1; }
    html .sp-home-v1 .sp-hub-day-date > span:first-child { grid-column: 1 / -1; color: var(--sp-muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
    html .sp-home-v1 .sp-hub-day-date strong { color: var(--sp-ink); font-size: 13px; font-weight: 700; }
    html .sp-home-v1 .sp-hub-day-date > span:last-child { color: var(--sp-ink); font-size: 13px; font-weight: 700; text-transform: none; letter-spacing: 0; }
    html .sp-home-v1 .sp-hub-day-count { display: none; }
    html .sp-home-v1 .sp-hub-day.is-today:not(.is-selected) { border-color: var(--sh-line2); }
    html .sp-home-v1 .sp-hub-day.is-selected { border-color: var(--sp-accent); background: var(--sp-accent); box-shadow: none; }
    html .sp-home-v1 .sp-hub-day.is-selected .sp-hub-day-date > span:first-child { color: var(--sh-on-accent); opacity: .85; }
    html .sp-home-v1 .sp-hub-day.is-selected .sp-hub-day-date strong,
    html .sp-home-v1 .sp-hub-day.is-selected .sp-hub-day-date > span:last-child { color: var(--sh-on-accent); }

    html .sp-home-v1 .sp-hub-filters { grid-area: filt; display: flex; gap: 5px; padding: 0 0 8px 12px; overflow-x: auto; scrollbar-width: none; }
    html .sp-home-v1 .sp-hub-filters::-webkit-scrollbar { display: none; }
    html .sp-home-v1 .sp-hub-filter { flex: none; display: inline-flex; align-items: center; width: auto; height: 30px; min-height: 30px; padding: 0 10px; border: 1px solid var(--sp-line); border-radius: 999px; background: var(--sp-card); color: var(--sp-muted); font-size: 12px; font-weight: 600; overflow: visible; }
    html .sp-home-v1 .sp-hub-filter b { min-width: 0; height: auto; margin-left: 4px; padding: 0; background: none; color: inherit; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
    html .sp-home-v1 .sp-hub-filter.is-active { border-color: var(--sp-accent); background: var(--sh-accent-soft); color: var(--sp-ink); }
    html .sp-home-v1 .sp-hub-filter.is-active b { background: none; color: inherit; }
    html .sp-home-v1 .sp-hub-filter[data-status-filter="live"]:not(.is-active) b { color: var(--sh-live); }

    html .sp-home-v1 .sp-hub-sort { grid-area: sort; position: relative; display: block; width: 32px; height: 32px; margin: 0 12px 8px 6px; }
    html .sp-home-v1 .sp-hub-sort::before { content: ""; position: absolute; inset: 0; z-index: 0; font-size: 0; transform: none; border: 1px solid var(--sp-line); border-radius: 10px; background: var(--sp-card); }
    html .sp-home-v1 .sp-hub-sort::after { content: ""; position: absolute; left: 50%; top: 50%; width: 17px; height: 17px; transform: translate(-50%, -50%); background: var(--sp-ink); pointer-events: none; -webkit-mask: var(--ico-sort) center / contain no-repeat; mask: var(--ico-sort) center / contain no-repeat; }
    html .sp-home-v1 .sp-hub-sort select { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; min-height: 0; padding: 0; opacity: 0; font-size: 16px; }

    html .sp-home-v1 .sp-hub-sliced { margin: 0; padding: 10px 14px; }
    html .sp-home-v1 .sp-feature-team-sticky { top: calc(var(--sp-nav-h) + 100px); }
    html .sp-home-v1 .sp-hub-fixture:target, html .sp-home-v1 .sp-hub-fixture.sp-fte-linked-fixture { scroll-margin-top: 154px; }
}

@media (max-width: 360px) {
    html .sp-home-v1 .sp-hub-day { height: 40px; min-height: 40px; }
    html .sp-home-v1 .sp-hub-calendar { grid-auto-columns: 52px; }
    html .sp-home-v1 .sp-top-teams b { max-width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
    .site-header, html .sp-home-v1 .sp-hub-sticky-controls { transition: none; }
}

html .sp-home-v1 input::placeholder{text-overflow:ellipsis}
html .sp-home-v1 .sp-hub-search input,html .sp-home-v1 input[type=search]{text-overflow:ellipsis}
