/* sidebar-v1 (owner, 18 Nov 2026): football's desktop left column for basketball, tennis and hockey. The first part is
   copied from football's own styles (sp-home.css, sp-shell.css) by /home/scoreprob/tmp/sidebar/extract.py, so the
   column looks exactly like football's; the second part places it on each sport's page. */
/* from sp-home.css (52 rules) */
.sp-home-v1 { --sp-ink:#18212f; --sp-muted:#667085; --sp-line:#e3e8ef; --sp-soft:#f5f7fa; --sp-card:#ffffff; --sp-accent:#2857d9; --sp-accent-deep:#173da8; }
.sp-hub-calendar-wrap { padding:14px 16px 10px;border-bottom:1px solid var(--sp-line);background:#fbfcff; }
.sp-hub-calendar { display:grid;grid-auto-flow:column;grid-auto-columns:minmax(74px,1fr);gap:8px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;padding:2px 1px 7px; }
.sp-hub-day { scroll-snap-align:center;display:grid;gap:2px;min-height:68px;align-content:center;padding:8px 7px;border:1px solid var(--sp-line);border-radius:14px;background:#fff;color:var(--sp-ink);text-align:center;text-decoration:none;transition:border-color .16s ease,background .16s ease,transform .16s ease; }
.sp-hub-day:hover { border-color:#b8c7f4;transform:translateY(-1px); }
.sp-hub-day.is-selected { border-color:var(--sp-accent);background:#eef3ff;box-shadow:inset 0 0 0 1px var(--sp-accent); }
.sp-hub-day.is-today:not(.is-selected) { border-color:#c9d3e6; }
.sp-hub-day-count { font-size:10px;color:var(--sp-accent-deep);font-weight:800; }
.sp-hub-tools { display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:12px;align-items:center;padding:14px 16px;border-bottom:1px solid var(--sp-line); }
.sp-hub-search { position:relative; }
.sp-hub-search input { width:100%;min-height:42px;padding:10px 13px 10px 39px;border:1px solid var(--sp-line);border-radius:12px;background:#fff;color:var(--sp-ink);font:inherit;outline:none; }
.sp-hub-search input:focus { border-color:#9db1ef;box-shadow:0 0 0 3px rgba(40,87,217,.10); }
.sp-hub-search::before { content:"⌕";position:absolute;left:13px;top:50%;transform:translateY(-52%);color:var(--sp-muted);font-size:20px;pointer-events:none; }
.sp-hub-filters { display:flex;gap:6px;overflow-x:auto; }
.sp-hub-filter { min-height:38px;padding:8px 12px;border:1px solid var(--sp-line);border-radius:999px;background:#fff;color:var(--sp-muted);font:inherit;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap; }
.sp-hub-filter.is-active { border-color:var(--sp-accent);background:var(--sp-accent);color:#fff; }
@media (max-width:880px) {
  .sp-hub-tools { grid-template-columns:1fr; }
}
@media (max-width:620px) {
  .sp-hub-head,.sp-hub-calendar-wrap,.sp-hub-tools { padding-left:12px;padding-right:12px; }
  .sp-hub-calendar { grid-auto-columns:70px; }
}
.sp-hub-filter b { display:inline-grid;min-width:20px;height:20px;place-items:center;margin-left:4px;padding:0 5px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:10px;font-weight:850; }
.sp-hub-filter.is-active b { background:rgba(255,255,255,.20);color:#fff; }
@media (max-width:760px) {
  .sp-hub-calendar-wrap { position:sticky;top:52px;z-index:42;padding:6px 8px;border-bottom:1px solid var(--sp-line);background:rgba(255,255,255,.97);backdrop-filter:blur(14px); }
  .sp-hub-calendar { grid-auto-columns:58px;gap:5px;padding:0;scroll-padding-inline:calc(50% - 29px); }
  .sp-hub-day { min-height:58px;gap:0;padding:5px 3px;border-radius:10px; }
  .sp-hub-day-count { font-size:8px; }
  .sp-hub-tools { position:sticky;top:117px;z-index:41;display:grid;grid-template-columns:minmax(0,1fr);gap:6px;padding:7px 8px 8px;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);box-shadow:0 5px 12px rgba(16,24,40,.06); }
  .sp-hub-search input { min-height:34px;padding:6px 10px 6px 32px;border-radius:9px;font-size:12px; }
  .sp-hub-search::before { left:10px;font-size:17px; }
  .sp-hub-filters { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;overflow:visible; }
  .sp-hub-filter { min-width:0;min-height:30px;padding:4px 3px;border-radius:8px;font-size:9px;overflow:hidden;text-overflow:ellipsis; }
  .sp-hub-filter b { min-width:16px;height:16px;margin-left:2px;padding:0 3px;font-size:8px; }
}
.sp-hub-sticky-controls { position:sticky;top:52px;z-index:45;border-bottom:1px solid #cfd8e8;background:rgba(244,248,255,.97);box-shadow:0 8px 20px rgba(20,35,65,.08);backdrop-filter:blur(16px); }
.sp-hub-sticky-controls .sp-hub-calendar-wrap,.sp-hub-sticky-controls .sp-hub-tools { position:relative;top:auto;z-index:auto;background:transparent;backdrop-filter:none;box-shadow:none; }
.sp-hub-calendar-wrap { padding:5px 10px 3px; }
.sp-hub-calendar { grid-auto-columns:70px;gap:5px;padding:0 0 4px; }
.sp-hub-day { min-height:45px;gap:1px;padding:4px 4px;border-radius:10px; }
.sp-hub-day-date { display:flex;align-items:baseline;justify-content:center;gap:3px;color:#667085;font-size:8px;font-weight:850;line-height:1;text-transform:uppercase; }
.sp-hub-day-date strong { color:#172033;font-size:15px;line-height:1; }
.sp-hub-day-count { font-size:8px;line-height:1.1; }
.sp-hub-tools { padding:5px 10px 7px; }
.sp-hub-search input { font-size:13px;font-weight:650; }
html[data-theme="dark"] .sp-home-v1 { --sp-ink:#ecf2ff; --sp-muted:#aab7ca; --sp-line:#34445b; --sp-soft:#182235; --sp-card:#111a29; --sp-accent:#7397ff; --sp-accent-deep:#9fb7ff; }
html[data-theme="dark"] .sp-hub-sticky-controls { border-color:#34445b;background:rgba(18,28,43,.98);box-shadow:0 8px 24px rgba(0,0,0,.28); }
html[data-theme="dark"] .sp-hub-day,html[data-theme="dark"] .sp-hub-search input,html[data-theme="dark"] .sp-hub-filter,html[data-theme="dark"] .sp-acc-chip,html[data-theme="dark"] .sp-signal-block,html[data-theme="dark"] .sp-feature-compare,html[data-theme="dark"] .sp-elo-visual,html[data-theme="dark"] .sp-feature-tile { border-color:#34445b;background:#172235;color:#edf3ff; }
html[data-theme="dark"] .sp-hub-day-date,html[data-theme="dark"] .sp-hub-day-count,html[data-theme="dark"] .sp-accuracy-label,html[data-theme="dark"] .sp-acc-chip i,html[data-theme="dark"] .sp-acc-chip small { color:#a9b7ca; }
html[data-theme="dark"] .sp-hub-day-date strong,html[data-theme="dark"] .sp-acc-chip b,html[data-theme="dark"] .sp-signal-values b,html[data-theme="dark"] .sp-confidence-card b,html[data-theme="dark"] .sp-feature-side strong,html[data-theme="dark"] .sp-elo-visual-head b,html[data-theme="dark"] .sp-panel-section-head strong,html[data-theme="dark"] .sp-full-feature-values b,html[data-theme="dark"] .sp-full-elo-summary > div:first-child b,html[data-theme="dark"] .sp-full-elo-summary > div:last-child b { color:#f4f7ff; }
@media (max-width:760px) {
  .sp-hub-sticky-controls { top:52px; }
  .sp-hub-calendar-wrap { padding:3px 6px 2px; }
  .sp-hub-calendar { grid-auto-columns:61px;gap:4px;scroll-padding-inline:calc(50% - 30px); }
  .sp-hub-day { min-height:42px;padding:3px 2px; }
  .sp-hub-day-date { gap:2px;font-size:7px; }
  .sp-hub-day-date strong { font-size:14px; }
  .sp-hub-day-count { font-size:9px;font-weight:850; }
  .sp-hub-tools { gap:5px;padding:4px 6px 6px; }
  .sp-hub-search input { min-height:32px;font-size:12px; }
}
.sp-hub-tools { display:grid;grid-template-columns:minmax(0,1fr) 158px;gap:6px; }
.sp-hub-filters { grid-column:1 / -1; }
@media (max-width:760px) {
  .sp-hub-tools { grid-template-columns:minmax(0,1fr) 126px;gap:5px; }
}
@media (max-width:360px) {
  .sp-hub-tools { grid-template-columns:minmax(0,1fr) 116px; }
}
.sp-hub-legend { display:flex;flex-wrap:wrap;gap:6px 22px;margin:0;padding:12px 22px;border-bottom:1px solid var(--sp-line);list-style:none;color:var(--sp-muted);font-size:12.5px;line-height:1.4; }
.sp-hub-legend li { display:flex;flex-wrap:wrap;align-items:baseline;gap:6px; }
.sp-hub-legend b { display:inline-grid;place-items:center;min-width:34px;padding:2px 7px;border-radius:7px;background:var(--sp-soft);color:var(--sp-accent-deep);font-size:11px;font-weight:900;letter-spacing:.03em; }
@media (max-width:640px) {
  .sp-hub-legend { gap:4px 14px;padding:10px 14px;font-size:12px; }
  .sp-hub-legend span { display:none; }
}
@media (pointer:coarse) {
  .sp-hub-filter { min-height:40px; }
  .sp-hub-search input,.sp-hub-sort select { min-height:44px; }
  .sp-hub-day { min-height:48px; }
}
.sp-home-v1 { --sp-c-home: #2857d9; --sp-c-draw: #8b95ad; --sp-c-away: #c47f0a; --sp-c-over: #159a70; --sp-c-btts: #7958d8; --sp-track: #dbe2f0; --sp-tick: rgba(16, 24, 38, .45); --sp-hit: #1a8c54; --sp-miss: #c8372d; --sp-hit-bg: rgba(26, 140, 84, .10); --sp-hit-line: #8fd0ae; --sp-miss-bg: rgba(200, 55, 45, .08); --sp-miss-line: #e5a39d; --sp-pill-line: #c3cde4; }
html[data-theme="dark"] .sp-home-v1 { --sp-c-home: #4f7df5; --sp-c-draw: #7e89a6; --sp-c-away: #bf8216; --sp-c-over: #16a37a; --sp-c-btts: #8f78f0; --sp-track: #2a3850; --sp-tick: rgba(236, 242, 255, .5); --sp-hit: #3bbf7f; --sp-miss: #f0746a; --sp-hit-bg: rgba(59, 191, 127, .12); --sp-hit-line: #2f7a57; --sp-miss-bg: rgba(240, 116, 106, .10); --sp-miss-line: #8a4640; --sp-pill-line: #3f5271; }
.sp-hub-legend li::before { content: ""; flex: none; align-self: center; width: 18px; height: 8px; border-radius: 4px; }
.sp-hub-legend li:nth-child(1)::before { background: linear-gradient(90deg, var(--sp-c-home) 0 36%, var(--sp-c-draw) 36% 66%, var(--sp-c-away) 66% 100%); }
.sp-hub-legend li:nth-child(2)::before { background: var(--sp-c-over); }
.sp-hub-legend li:nth-child(3)::before { background: var(--sp-c-btts); }
/* from sp-shell.css (9 rules) */
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-side-label { display: none; }
@media (min-width: 761px) {
  html .sp-home-v1 .sp-hub > .sp-hub-sticky-controls { grid-column: 1; grid-row: 1 / span 6; }
  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-sx-status="live"]::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--sh-live); }
  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; }
}
@media (min-width: 761px) and (max-width: 1023px) {
  html .sp-home-v1 { --sh-side: 216px; }
  html .sp-home-v1 .sp-hub-sticky-controls { padding: 12px; }
}
@media (max-width: 760px) {
  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-sx-status="live"]:not(.is-active) b { color: var(--sh-live); }
}
@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; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, html .sp-home-v1 .sp-hub-sticky-controls { transition: none; }
}
html .sp-home-v1 .sp-hub-search input,html .sp-home-v1 input[type=search] { text-overflow:ellipsis }
/* ---- sidebar-v1: placing the column on the sports' day pages (desktop and tablet only; phones use the header rows) */
.sx-side { display: none; }
.sx-hide, .sx-ghide { display: none !important; }
@media (max-width: 760px) { .tn-lside { display: none; } }   /* phones: nothing changes (the header rows do this job) */
@media (min-width: 761px) {
  .sx-side { display: block; }
  .sx-engine { display: none !important; }
  .sx-cols { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: stretch; }
  .sx-cols > .sx-aside { display: block; min-width: 0; max-width: none; flex: none; }
  .sx-cols > .bb-main, .sx-cols > .tn-main { min-width: 0; }
  .sx-cols > .tn-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; gap: 16px; }
  .sx-cols > .tn-side > #tn-howto { display: none; }
  .sx-side .sp-hub-sticky-controls { margin: 0; }
  .sx-cols > .sx-aside > .sx-side { height: 100%; }   /* the column runs the whole list, so the card stays on screen (sticky) */
  .sx-side .sp-hub-sticky-controls > *, .sx-side .sp-hub-tools > *, .sx-side .sd-side > * { flex-shrink: 0; }
  .sx-side a.sd-j { color: inherit; }
  /* tablets: football keeps two columns with a narrower left one */
  .sx-cols { grid-template-columns: 216px minmax(0, 1fr); column-gap: 16px; }
  .sx-cols > .sx-aside { grid-column: 1; grid-row: 1 / span 2; }
  .sx-cols > .bb-main, .sx-cols > .tn-main { grid-column: 2; grid-row: 1; }
  .sx-cols > .tn-side { grid-column: 2; grid-row: 2; }
  .sx-legend li { display: block; line-height: 1.45; }
  .sx-legend li + li { margin-top: 6px; }
  .sx-side .sd-flag { font-size: 9.5px; letter-spacing: .02em; }

  /* rows: Compact on desktop for basketball, hockey and tennis (football has its own) */
  .sh-compact .bb-row.bb-r3 { grid-template-areas: "time teams bar exp pk star"; row-gap: 0; padding-top: 7px; padding-bottom: 7px; align-items: center; }
  .sh-compact .bb-r3 > .bb-flow, .sh-compact .bb-r3 .bb-pk-h, .sh-compact .bb-r3 .bb-expl, .sh-compact .bb-r3 > .bb-exp span { display: none !important; }
  .sh-compact .bb-r3 > .bb-barcell { align-self: center; }
  .sh-compact .bb-r3 .bb-team { min-height: 0; }
  .sh-compact .bb-r3 .bb-crest { width: 20px; height: 20px; }
  .sh-compact .bb-r3 .bb-team { font-size: 14px; line-height: 1.25; }
  .sh-compact .bb-r3 .bb-teams { gap: 2px; }
  .sh-compact .bb-r3 > .bb-pk { padding: 3px 9px; row-gap: 0; gap: 0; align-self: center; }
  .sh-compact .bb-r3 > .bb-pk > .bb-pk-t, .sh-compact .bb-r3 > .bb-pk > .bb-pk-lv { display: none !important; }
  .sh-compact .bb-r3 .bb-pk-k { min-height: 0; padding-top: 0; padding-bottom: 0; font-size: 12px; line-height: 1.32; }
  .sh-compact .tn-row { padding-top: 6px; padding-bottom: 6px; row-gap: 2px; }
  .sh-compact .tn-row .tn-bar, .sh-compact .tn-row .tn-pill { display: none; }

  /* the competitions sheet (tennis, hockey) as a dialog in the middle of the screen */
  body {
    --sh-bg: #ffffff; --sh-line: #e3e8ef; --sh-card: #ffffff; --sh-soft: #f2f5fa; --sh-ink: #18212f; --sh-muted: #667085;
    --sh-accent: #2857d9; --sh-accent-ink: #ffffff; --sh-accent-soft: #e6edfc; --sh-shadow: 0 18px 50px rgba(15, 23, 42, .18);
  }
  html[data-theme="dark"] body {
    --sh-bg: #0b1220; --sh-line: #26354b; --sh-card: #111a29; --sh-soft: #0e1626; --sh-ink: #ecf2ff; --sh-muted: #aab7ca;
    --sh-accent: #7397ff; --sh-accent-ink: #0b1220; --sh-accent-soft: #1b2a4d; --sh-shadow: 0 18px 50px rgba(0, 0, 0, .6);
  }
  html.sh-lock { overflow: hidden; }
  .sh-sheet { position: fixed; inset: 0; z-index: 90; }
  .sh-sheet .sh-scrim { position: absolute; inset: 0; background: rgba(4, 9, 18, .55); opacity: 0; transition: opacity .16s; }
  .sh-sheet .sh-panel {
    position: absolute; top: 50%; left: 50%; width: min(440px, 92vw); max-height: min(78vh, 720px); display: flex; flex-direction: column;
    border: 1px solid var(--sh-line); border-radius: 16px; background: var(--sh-bg); color: var(--sh-ink); box-shadow: var(--sh-shadow);
    transform: translate(-50%, -47%); opacity: 0; transition: transform .16s ease, opacity .16s ease;
  }
  .sh-sheet.is-open .sh-scrim { opacity: 1; }
  .sh-sheet.is-open .sh-panel { transform: translate(-50%, -50%); opacity: 1; }
  .sh-grip { display: none; }
  .sh-phead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 8px 20px; }
  .sh-phead h2 { margin: 0; font-size: 18px; color: var(--sh-ink); }
  .sh-menu-x { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--sh-soft); color: var(--sh-ink); cursor: pointer; }
  .sh-pbody { overflow-y: auto; padding: 4px 16px 18px; }
  .sh-flist { display: flex; flex-direction: column; gap: 6px; }
  .sh-fsec { margin: 10px 4px 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sh-muted); }
  .sh-fbtn { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px; border: 1px solid var(--sh-line); border-radius: 12px; background: var(--sh-card); color: var(--sh-ink); font: inherit; font-size: 14.5px; font-weight: 600; text-align: left; cursor: pointer; }
  .sh-fbtn:hover { border-color: var(--sh-accent); }
  .sh-fbtn .n { margin-left: auto; color: var(--sh-muted); font-weight: 700; font-variant-numeric: tabular-nums; }
  .sh-fbtn::before { content: ""; flex: none; width: 18px; height: 18px; border: 2px solid var(--sh-line); border-radius: 5px; }
  .sh-fbtn[aria-pressed="true"] { border-color: var(--sh-accent); background: var(--sh-accent-soft); }
  .sh-fbtn[aria-pressed="true"]::before { border-color: var(--sh-accent); background: var(--sh-accent); box-shadow: inset 0 0 0 3px var(--sh-card); }
  .sh-fclear { margin-top: 12px; width: 100%; min-height: 44px; border: 0; border-radius: 12px; background: var(--sh-accent); color: var(--sh-accent-ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
}
@media (min-width: 1024px) {
  /* football's two columns: the column on the left (248 px), the list on the right */
  .sx-cols { grid-template-columns: 248px minmax(0, 1fr); column-gap: 24px; }
  .sx-cols > .sx-aside { grid-column: 1; grid-row: 1 / span 2; }
  .sx-cols > .bb-main, .sx-cols > .tn-main { grid-column: 2; grid-row: 1; }
  .sx-cols > .tn-side { grid-column: 2; grid-row: 2; }
}
