/* busyday-v1b (14 Nov 2026): the football home page's smart day: sections, country lines, the time view, Compact
   rows, the sidebar's View / Rows / Quick filters / Jump to, and the phone's toolbar and Jump to sheet. */

/* ---------------------------------------------------------------- the list */
html .sp-home-v1 .sd-root { display: flex; flex-direction: column; gap: 12px; container: list / inline-size; transition: opacity .15s ease; }
html .sp-home-v1 .sp-hub.sd-busy .sd-root { opacity: .55; }
html .sp-home-v1 .sd-sec { border: 1px solid var(--sp-line); border-radius: 12px; background: var(--sp-card); overflow: clip; scroll-margin-top: 80px; }
html .sp-home-v1 .sd-sec-head { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 14px; }
html .sp-home-v1 .sd-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sp-muted); }
html .sp-home-v1 .sd-sec.is-live .sd-dot { background: var(--sh-live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sh-live) 18%, transparent); }
html .sp-home-v1 .sd-sec.is-following .sd-dot { background: var(--sh-star); }
html .sp-home-v1 .sd-sec.is-top .sd-dot { background: var(--sh-star); border-radius: 2px; }
html .sp-home-v1 .sd-sec.is-competitions .sd-dot, html .sp-home-v1 .sd-sec.is-soon .sd-dot { background: var(--sp-accent); }
html .sp-home-v1 .sd-sec.is-home .sd-dot { background: #159a70; }
html .sp-home-v1 .sd-sec.is-started .sd-dot { background: #bf8216; }
/* pending-v1: kicked off over 2½ hours ago, no result yet (at the foot of the time view) */
html .sp-home-v1 .sd-sec.is-pending .sd-dot { background: #8a94a6; }
html .sp-home-v1 .sd-sec.is-slot .sd-dot { display: none; }
html .sp-home-v1 .sd-sec-title { margin: 0; color: var(--sp-ink); font-size: 15px; font-weight: 800; letter-spacing: -.005em; line-height: 1.25; }
html .sp-home-v1 .sd-sec.is-slot .sd-sec-title { font-size: 17px; font-variant-numeric: tabular-nums; }
html .sp-home-v1 .sd-sec-sub { min-width: 0; overflow: hidden; color: var(--sp-muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
html .sp-home-v1 .sd-sec-n { margin-left: auto; color: var(--sp-muted); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
html .sp-home-v1 .sd-closeall { flex: none; height: 28px; padding: 0 10px; border: 1px solid var(--sp-line); border-radius: 999px; background: var(--sp-card); color: var(--sp-accent); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
html .sp-home-v1 .sd-closeall[hidden] { display: none; }
html .sp-home-v1 .sd-more { display: block; width: 100%; min-height: 44px; padding: 0 14px; border: 0; border-top: 1px solid var(--sp-line); background: transparent; color: var(--sp-accent); font: inherit; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; }
html .sp-home-v1 .sd-more:hover { background: var(--sp-soft); }
html .sp-home-v1 .sd-more.is-busy { opacity: .6; cursor: progress; }
html .sp-home-v1 .sd-empty { margin: 0; padding: 30px 16px; border: 1px solid var(--sp-line); border-radius: 12px; background: var(--sp-card); color: var(--sp-muted); text-align: center; }

/* flat lists: the competition above each row */
html .sp-home-v1 .sd-item { border-top: 1px solid var(--sp-line); }
html .sp-home-v1 .sd-item .sp-hub-fixture { border-top: 0; }
html .sp-home-v1 .sd-item .sp-fx-ctx { padding: 8px 14px 0; color: var(--sp-muted); }

/* leagues */
html .sp-home-v1 .sd-league + .sd-league { border-top: 0; }
html .sp-home-v1 .sd-league-head { display: flex; align-items: center; border-top: 1px solid var(--sp-line); }
html .sp-home-v1 .sd-league-head .sp-hub-league-title { flex: 1; min-width: 0; }
html .sp-home-v1 .sd-league-head .sp-hub-league-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html .sp-home-v1 .sd-league-head .sp-hub-league-country-inline { font-weight: 600; }
html .sp-home-v1 .sd-live-n { flex: none; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--sh-live) 12%, transparent); color: var(--sh-live); font-size: 11px; font-weight: 700; line-height: 1.5; white-space: nowrap; }

/* country lines */
html .sp-home-v1 .sd-country { border-top: 1px solid var(--sp-line); scroll-margin-top: 80px; }
html .sp-home-v1 .sd-country-sum { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 6px 14px; list-style: none; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
html .sp-home-v1 .sd-country-sum::-webkit-details-marker { display: none; }
html .sp-home-v1 .sd-country-sum:hover { background: var(--sp-soft); }
html .sp-home-v1 .sd-country-sum:focus-visible { outline: 2px solid var(--sp-accent); outline-offset: -2px; }
html .sp-home-v1 .sd-country[open] > .sd-country-sum { background: var(--sp-soft); }
.sd-flag { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 21px; overflow: hidden; border-radius: 4px; background: var(--fx-soft); box-shadow: inset 0 0 0 1px var(--fx-line); color: var(--fx-muted); font-size: 9px; font-weight: 800; letter-spacing: .02em; }
.sd-flag img { display: block; width: 100%; height: 100%; object-fit: cover; }
html .sp-home-v1 .sd-country-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
html .sp-home-v1 .sd-country-name { overflow: hidden; color: var(--sp-ink); font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
html .sp-home-v1 .sd-country-sub { overflow: hidden; color: var(--sp-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
html .sp-home-v1 .sd-country-sub time { font-variant-numeric: tabular-nums; }
html .sp-home-v1 .sd-n { min-width: 28px; color: var(--sp-ink); font-size: 13px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
html .sp-home-v1 .sd-chev { flex: none; width: 16px; height: 16px; 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 .sd-country[open] > .sd-country-sum .sd-chev { transform: rotate(180deg); }
html .sp-home-v1 .sd-loading { margin: 0; padding: 16px 14px; border-top: 1px solid var(--sp-line); color: var(--sp-muted); font-size: 13px; }
html .sp-home-v1 .sd-country-link { display: block; padding: 11px 14px; border-top: 1px solid var(--sp-line); color: var(--sp-accent); font-size: 12.5px; font-weight: 700; text-decoration: none; }
html .sp-home-v1 .sd-country-link:hover { background: var(--sp-soft); }

/* ---------------------------------------------------------------- Compact rows */
html .sp-home-v1 .sp-hub.sd-compact .sp-row > .sp-row-outcome,
html .sp-home-v1 .sp-hub.sd-compact .sp-row > .sp-row-goals,
html .sp-home-v1 .sp-hub.sd-compact .sp-row > .sp-row-verdict { display: none; }
html .sp-home-v1 .sp-hub.sd-compact .sp-row > .sp-row-mini { grid-area: mini; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 1px; min-width: 0; line-height: 1.15; text-align: right; }
html .sp-home-v1 .sp-row-mini b { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
html .sp-home-v1 .sp-row-mini.is-home b { color: var(--sp-c-home); }
html .sp-home-v1 .sp-row-mini.is-draw b { color: var(--sp-muted); }
html .sp-home-v1 .sp-row-mini.is-away b { color: var(--sp-c-away); }
html .sp-home-v1 .sp-row-mini span { overflow: hidden; color: var(--sp-muted); font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
html .sp-home-v1 .sp-hub-fixture[data-verdict="hit"] .sp-row-mini span::after { content: " ✓"; color: #1a8c54; font-weight: 800; }
html .sp-home-v1 .sp-hub-fixture[data-verdict="miss"] .sp-row-mini span::after { content: " ✗"; color: #c2333a; font-weight: 800; }
html[data-theme="dark"] .sp-home-v1 .sp-hub-fixture[data-verdict="hit"] .sp-row-mini span::after { color: #3bbf7f; }
html[data-theme="dark"] .sp-home-v1 .sp-hub-fixture[data-verdict="miss"] .sp-row-mini span::after { color: #f0746a; }
html .sp-home-v1 .sp-hub.sd-compact .sp-row > .sp-row-pendingwrap { grid-area: mini; align-self: center; justify-self: end; min-width: 0; max-width: 100%; }
html .sp-home-v1 .sp-hub.sd-compact .sp-row .sp-hub-pending { display: block; font-size: 10px; line-height: 1.3; letter-spacing: .04em; text-align: right; white-space: normal; }
/* the kick-off column on two lines: time and status, the trophy and the match star beside them */
html .sp-home-v1 .sp-hub.sd-compact .sp-row .sp-hub-kickoff { display: grid; grid-template-columns: auto auto; grid-template-areas: "p mk" "s mk"; align-items: center; align-content: center; justify-content: center; column-gap: 5px; row-gap: 1px; text-align: center; }
html .sp-home-v1 .sp-hub.sd-compact .sp-row .sp-hub-kickoff [data-state-primary] { grid-area: p; }
html .sp-home-v1 .sp-hub.sd-compact .sp-row .sp-hub-kickoff [data-state-secondary] { grid-area: s; }
html .sp-home-v1 .sp-hub.sd-compact .sp-row .sp-hub-kickoff .sp-row-marks { grid-area: mk; display: flex; flex-direction: column; align-items: center; gap: 3px; margin: 0; }
html .sp-home-v1 .sp-hub.sd-compact .sp-row .sp-hub-kickoff .sp-row-marks:empty { display: none; }
html .sp-home-v1 .sd-sec.is-live .sd-league-head .sd-live-n, html .sp-home-v1 .sp-hub[data-sd-status="live"] .sd-live-n { display: none; }
html .sp-home-v1 .sp-hub.sd-compact .sp-hub-fixture[data-status="finished"] .sp-row .sp-hub-kickoff [data-state-secondary] { display: none; }

@container list (min-width: 620px) {
    html .sp-home-v1 .sp-hub.sd-compact .sp-hub-fixture-summary.sp-row { grid-template-columns: 76px minmax(0, 1fr) 118px 22px; grid-template-areas: "time teams mini chev"; gap: 0 14px; min-height: 56px; padding: 6px 14px; }
}
@container list (max-width: 619.98px) {
    html .sp-home-v1 .sp-hub.sd-compact .sp-hub-fixture-summary.sp-row { grid-template-columns: 66px minmax(0, 1fr) minmax(0, auto) 12px; grid-template-areas: "time teams mini chev"; gap: 0 10px; min-height: 54px; padding: 6px 12px; }
    html .sp-home-v1 .sp-hub.sd-compact .sp-row > .sp-row-pendingwrap { max-width: 84px; }
    html .sp-home-v1 .sp-hub.sd-compact .sp-row .sp-hub-kickoff span { font-size: 10px; }
    html .sp-home-v1 .sp-hub.sd-compact .sp-hub-fixture[data-status="live"] .sp-row .sp-hub-kickoff { justify-self: stretch; padding: 4px 2px; }
    html .sp-home-v1 .sp-hub.sd-compact .sp-row .sp-hub-team { font-size: 13.5px; }
    html .sp-home-v1 .sp-hub.sd-compact .sp-row > .sp-hub-chevron { font-size: 14px; }
}

/* ---------------------------------------------------------------- switches and chips */
.sd-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; border-radius: 10px; background: var(--fx-soft); box-shadow: inset 0 0 0 1px var(--fx-line); }
.sd-seg button { min-height: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--fx-muted); font: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.sd-seg button:hover { color: var(--fx-ink); }
.sd-seg button.is-on { background: var(--fx-card); color: var(--fx-ink); font-weight: 700; box-shadow: 0 1px 2px rgba(9, 17, 31, .12), inset 0 0 0 1px var(--fx-line); }
.sd-seg button:focus-visible, .sd-chip:focus-visible, .sd-j:focus-visible { outline: 2px solid var(--fx-accent); outline-offset: 1px; }
.sd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sd-chip { flex: none; min-height: 30px; padding: 0 11px; border: 1px solid var(--fx-line); border-radius: 999px; background: var(--fx-card); color: var(--fx-ink); font: inherit; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.sd-chip:hover { border-color: var(--fx-accent); }
.sd-chip.is-on { border-color: var(--fx-accent); background: var(--fx-accent-soft); color: var(--fx-accent); }

/* ---------------------------------------------------------------- Jump to */
.sd-jump-find { display: block; }
.sd-jump .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; }
.sd-jump-find input { width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--fx-line); border-radius: 10px; background: var(--fx-soft); color: var(--fx-ink); font: inherit; font-size: 13px; }
.sd-jump-find input:focus { outline: 0; border-color: var(--fx-accent); background: var(--fx-card); }
.sd-jump-list { display: flex; flex-direction: column; gap: 1px; margin-top: 6px; }
.sd-j { display: flex; align-items: center; gap: 9px; min-height: 32px; padding: 0 8px; border-radius: 8px; color: var(--fx-ink); font-size: 13px; text-decoration: none; }
.sd-j:hover { background: var(--fx-soft); color: var(--fx-ink); }
.sd-j[hidden], .sd-j.is-filtered { display: none; }
.sd-j .sd-flag { width: 24px; height: 17px; }
.sd-j-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 17px; border-radius: 4px; background: var(--fx-soft); color: var(--fx-muted); font-size: 8.5px; font-weight: 800; }
.sd-j.is-following .sd-j-mark { background: rgba(224, 160, 40, .18); color: #c47f0a; font-size: 11px; }
.sd-j.is-live .sd-j-mark::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fx-live); }
.sd-j.is-live .sd-j-mark { background: color-mix(in srgb, var(--fx-live) 14%, transparent); }
.sd-j.is-competitions .sd-j-mark { background: var(--fx-accent-soft); color: var(--fx-accent); }
.sd-j.is-home .sd-flag { box-shadow: inset 0 0 0 1px #159a70; }
.sd-j-name { flex: 1; min-width: 0; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sd-j-n { min-width: 22px; color: var(--fx-muted); font-size: 12px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.sd-j .sd-live-n { flex: none; color: var(--fx-live); font-size: 11px; font-weight: 700; white-space: nowrap; }
.sd-j-label { margin: 10px 8px 4px; color: var(--fx-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sd-jump.is-finding .sd-j-label { display: none; }
.sd-j-none { margin: 0; padding: 12px 8px; color: var(--fx-muted); font-size: 13px; }
.sd-j-none[hidden] { display: none; }
.sd-letters { display: none; }

/* ---------------------------------------------------------------- desktop: the sidebar */
@media (min-width: 761px) {
    html .sp-home-v1 .sp-hub-sticky-controls .sd-side { order: 8; display: flex; flex-direction: column; }
    /* the sidebar scrolls as a whole; nothing in it is squeezed */
    html .sp-home-v1 .sp-hub[data-smart] .sp-hub-sticky-controls > *, html .sp-home-v1 .sp-hub[data-smart] .sp-hub-sticky-controls > .sp-hub-tools > * { flex-shrink: 0; }
    html .sp-home-v1 .sp-hub-sticky-controls .sp-side-legend { order: 12; }
    html .sp-home-v1 .sd-side .sd-seg + .sp-side-label { margin-top: 10px; }
    html .sp-home-v1 .sd-jump-btn, html .sp-home-v1 .sd-bar { display: none; }
}

/* ---------------------------------------------------------------- phones: toolbar, list, the Jump to sheet */
@media (max-width: 760px) {
    html .sp-home-v1 .sp-hub[data-smart] .sp-hub-sticky-controls { grid-template-columns: minmax(0, 1fr) auto auto !important; grid-template-areas: "search search search" "cal cal cal" "filt fx jump" !important; }
    html .sp-home-v1 .sp-hub[data-smart] .sp-hub-sticky-controls .sp-fx-open { margin-right: 6px; }
    html .sp-home-v1 .sd-jump-btn { grid-area: jump; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 32px; margin: 0 12px 8px 0; padding: 0; border: 1px solid var(--sp-line); border-radius: 10px; background: var(--sp-card); color: var(--sp-ink); cursor: pointer; }
    html .sp-home-v1 .sd-side { display: none; }
    html .sp-home-v1 .sd-bar { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 0; }
    html .sp-home-v1 .sd-bar-row { display: flex; gap: 8px; }
    html .sp-home-v1 .sd-bar .sd-seg { flex: 1; }
    html .sp-home-v1 .sd-bar .sd-chips { flex-wrap: nowrap; margin: 0 -12px; padding: 0 12px 2px; overflow-x: auto; scrollbar-width: none; }
    html .sp-home-v1 .sd-bar .sd-chips::-webkit-scrollbar { display: none; }
    html .sp-home-v1 .sd-root { gap: 10px; padding: 10px 12px 0; }
    html .sp-home-v1 .sd-sec, html .sp-home-v1 .sd-country { scroll-margin-top: 150px; }
    html .sp-home-v1 .sd-sec.is-top { display: none; }   /* the Top matches rail above has them */
    html .sp-home-v1 .sd-sec-head { padding: 8px 12px; }
    html .sp-home-v1 .sd-country-sum { padding: 6px 12px; }
}

.sd-sheet { position: fixed; inset: 0; z-index: 1000; color: var(--fx-ink); font-family: inherit; }
.sd-sheet[hidden] { display: none; }
.sd-sheet-scrim { position: absolute; inset: 0; background: var(--fx-scrim); opacity: 0; transition: opacity .18s ease; }
.sd-sheet.is-open .sd-sheet-scrim { opacity: 1; }
.sd-sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; height: min(86vh, 760px); border-radius: 20px 20px 0 0; background: var(--fx-card); box-shadow: var(--fx-shadow); transform: translateY(40px); opacity: 0; transition: transform .2s ease, opacity .2s ease; }
.sd-sheet.is-open .sd-sheet-panel { transform: none; opacity: 1; }
.sd-sheet-grip { position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--fx-line); }
.sd-sheet-head { display: flex; align-items: center; gap: 10px; padding: 18px 12px 8px 18px; }
.sd-sheet-head h2 { flex: 1; margin: 0; font-size: 17px; font-weight: 800; }
.sd-sheet-close { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--fx-soft); color: var(--fx-muted); cursor: pointer; }
.sd-sheet-body { flex: 1; min-height: 0; display: flex; }
.sd-sheet .sd-jump { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 28px; grid-template-rows: auto minmax(0, 1fr); }
.sd-sheet .sd-jump-find { grid-column: 1 / -1; padding: 2px 18px 10px; }
.sd-sheet .sd-jump-find input { height: 42px; font-size: 16px; border-radius: 12px; }
.sd-sheet .sd-jump-list { margin: 0; padding: 0 4px calc(16px + env(safe-area-inset-bottom)) 18px; overflow-y: auto; overscroll-behavior: contain; }
.sd-sheet .sd-j { min-height: 46px; padding: 0 4px; border-bottom: 1px solid var(--fx-line); border-radius: 0; font-size: 14.5px; }
.sd-sheet .sd-j .sd-flag, .sd-sheet .sd-j-mark { width: 30px; height: 21px; }
.sd-sheet .sd-j-n { font-size: 13px; color: var(--fx-ink); }
.sd-sheet .sd-j-label { margin: 16px 0 6px; }
.sd-sheet .sd-letters { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 2px 0 12px; overflow-y: auto; scrollbar-width: none; }
.sd-sheet .sd-letters button { width: 26px; min-height: 22px; padding: 0; border: 0; background: none; color: var(--fx-accent); font: inherit; font-size: 10.5px; font-weight: 700; cursor: pointer; }
.sd-sheet .sd-jump.is-finding .sd-letters { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
    html .sp-home-v1 .sd-root, html .sp-home-v1 .sd-chev, .sd-sheet-scrim, .sd-sheet-panel { transition: none; }
}

/* ---------------------------------------------------------------- basketball hub (busyday-v1b) */
.bb-main.bb-sd-time > section[data-group]:not([data-sd-copy]) { display: none; }
.bb-sd .sd-seg { max-width: 260px; }
.bb-sd-sec.is-mine .bb-group-head b::before { content: "★ "; color: #c47f0a; }
.bb-sd-sec.is-t .bb-group-head b { font-variant-numeric: tabular-nums; }
