/* Pelipaikalle — one shared design system, from the first search to match details. */
:root {
  --bg:#f4f5f2; --surface:#fff; --ink:#18201d; --muted:#667069;
  --green:#263d2a; --green-light:#eef3e8; --lime:#c9f64a; --line:#dfe4dc;
  --red:#a63732; --radius:16px;
  --font:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color-scheme:light;
}
*,*::before,*::after { box-sizing:border-box; }
body,h1,h2,h3,p,fieldset { margin:0; }
button,input,select { font:inherit; color:inherit; }
button,a,input,select { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; background:none; border:0; }
a { color:inherit; text-decoration:none; }
fieldset { padding:0; border:0; min-width:0; }
svg { display:block; }
[hidden] { display:none!important; }
html { scroll-behavior:smooth; scroll-padding-top:100px; }
body { background:var(--bg); color:var(--ink); font:14px/1.55 var(--font); -webkit-font-smoothing:antialiased; }
input,select { min-width:0; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible { outline:3px solid #618b19; outline-offset:4px; }
::selection { background:var(--lime); color:var(--ink); }
.icon { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.icon-definitions { position:absolute; width:0; height:0; overflow:hidden; }
.shell { width:min(1320px,calc(100% - 80px)); margin-inline:auto; }
.eyebrow { color:var(--muted); font-size:10px; font-weight:750; letter-spacing:1.7px; line-height:1.5; }
.text-button { display:inline-flex; align-items:center; gap:7px; padding:4px 0; color:var(--green); font-size:12px; font-weight:650; text-underline-offset:4px; }
.text-button:hover { text-decoration:underline; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:46px; padding:12px 19px; border-radius:8px; font-size:12px; font-weight:750; transition:background .18s,transform .18s; }
.button:hover { transform:translateY(-1px); }
.button-primary { color:var(--ink); background:var(--lime); }
.button-primary:hover { background:#b9e63b; }
.button-secondary { border:1px solid var(--line); background:var(--surface); }
.button-secondary:hover { background:var(--green-light); }
.icon-button { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border:1px solid var(--line); border-radius:9px; background:var(--surface); }
.icon-button:hover { background:var(--green-light); }
button:disabled { cursor:wait; opacity:.5; }
.skip-link { position:fixed; top:-70px; left:20px; z-index:100; padding:12px 20px; background:var(--lime); border-radius:6px; }
.skip-link:focus { top:12px; }
.status-dot { display:inline-block; width:6px; height:6px; flex-shrink:0; border-radius:50%; background:#70a82e; }
/* Navigation */
.site-header { position:sticky; top:0; z-index:20; border-bottom:1px solid var(--line); background:var(--surface); }
.header-inner { display:flex; align-items:center; justify-content:space-between; min-height:78px; gap:28px; }
.brand { display:inline-flex; align-items:center; gap:9px; font-size:24px; font-weight:850; letter-spacing:-1.2px; white-space:nowrap; line-height:1; }
.brand-mark { width:36px; height:36px; background:var(--lime); border-radius:8px; fill:var(--ink); }
.brand-period { color:#6a9a13; }
.main-nav { display:flex; align-items:center; gap:12px; }
.nav-link { position:relative; display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:10px 17px; color:var(--muted); border-radius:7px; font-size:12px; font-weight:650; white-space:nowrap; }
.nav-link.active { color:var(--ink); background:var(--green-light); }
.nav-link:hover { color:var(--ink); background:#f2f4ee; }
.nav-link .icon { width:16px; height:16px; }
.nav-count { display:inline-flex; align-items:center; justify-content:center; min-width:21px; height:21px; padding:0 5px; border-radius:5px; background:#e8eccf; color:var(--green); font-size:10px; }
/* Matchday introduction */
.hero { display:grid; grid-template-columns:1.1fr 1fr; align-items:center; gap:48px; padding-block:46px; }
.hero-copy .eyebrow { display:flex; align-items:center; gap:9px; font-size:9px; }
h1 { font-size:clamp(48px,5.1vw,72px); font-weight:850; line-height:1.02; letter-spacing:-3.8px; }
.hero h1 { margin-top:16px; }
.hero h1 span { color:#628527; }
.hero-description { max-width:380px; margin-top:18px; color:var(--muted); font-size:14px; line-height:1.75; }
.hero-link { margin-top:23px; }
.hero-link .icon { width:18px; }
.hero-art { position:relative; align-self:stretch; min-height:300px; overflow:hidden; display:flex; flex-direction:column; justify-content:space-between; padding:25px 28px; background:#18221d; border-radius:17px; color:var(--lime); }
.art-topline,.art-bottomline { position:relative; z-index:1; display:flex; align-items:center; justify-content:flex-end; gap:16px; }
.art-topline { justify-content:space-between; font-size:12px; font-weight:750; letter-spacing:2px; }
.art-topline .icon { width:23px; height:23px; }
.arena-art { position:absolute; width:100%; height:100%; inset:0; object-fit:cover; opacity:.85; }
.art-bottomline { align-items:flex-end; }
.art-badge { display:flex; align-items:center; gap:7px; padding:8px 9px; border:1px solid #657248; border-radius:5px; font-size:7px; font-weight:650; letter-spacing:.7px; transform:rotate(-5deg); background:#243024; }
.art-badge .icon { width:16px; height:16px; }
/* Discovery and filters */
.discovery-title { font-size:18px; letter-spacing:-.4px; }
.section-heading:has(.discovery-title) { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.preview-note { margin-top:16px; color:var(--muted); font-size:12px; }
.preview-details { min-width:0; }
.preview-details p { margin-top:10px; color:var(--muted); font-size:11px; }
.preview-details summary { cursor:pointer; }
.info-page { max-width:900px; padding-block:48px 64px; }
.info-page h1 { margin-top:16px; font-size:clamp(36px,5vw,60px); letter-spacing:-2px; overflow-wrap:anywhere; }
.info-intro { margin-top:24px; color:var(--muted); font-size:17px; line-height:1.8; }
.info-page section { margin-block:32px; }
.info-page h2 { margin-bottom:12px; font-size:24px; letter-spacing:-.5px; }
.info-page section p { margin-top:12px; color:var(--muted); line-height:1.85; }
.info-page p a { color:var(--green); text-decoration:underline; text-underline-offset:3px; }
.discovery { padding-block:8px 64px; }
.section-heading { display:none; align-items:center; gap:12px; margin-bottom:25px; }
.filter-toggle,.filter-done { display:none; }
.discovery-grid { display:grid; grid-template-columns:236px minmax(0,1fr); align-items:start; gap:28px; }
.filters { padding:21px 18px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); }
.filter-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-bottom:20px; }
.filter-heading h3 { font-size:14px; letter-spacing:-.25px; }
.filter-heading .text-button { color:var(--muted); font-size:10px; }
.filter-group { padding-block:20px; border-top:1px solid #edf0e9; }
.field-label { display:block; margin-bottom:9px; font-size:11px; font-weight:700; }
.field-hint { color:var(--muted); margin-top:7px; font-size:10px; }
.input-with-icon { position:relative; }
.input-with-icon>.icon { position:absolute; top:50%; left:13px; transform:translateY(-50%); width:17px; height:17px; color:#7d887f; pointer-events:none; }
input[type=search],input[type=date] { display:block; width:100%; height:43px; padding:10px 12px; background:#f7f8f5; border:1px solid var(--line); border-radius:7px; font-size:12px; transition:border-color .15s,background .15s; }
input[type=search] { padding-left:39px; padding-right:9px; }
input:hover { border-color:#a6b39d; }
input:focus { background:var(--surface); border-color:#759c31; }
input::placeholder { color:#778177; opacity:1; }
.sport-fieldset { padding-bottom:13px; }
.sport-fieldset legend,.filter-group legend { float:left; width:100%; }
#sport-options { clear:both; display:grid; gap:3px; }
.sport-option { position:relative; display:flex; align-items:center; gap:10px; min-height:43px; padding:9px 10px; border:1px solid transparent; border-radius:7px; cursor:pointer; font-size:12px; color:var(--muted); }
.sport-option:has(input:checked) { background:#eef5df; border-color:#e1edc8; color:#304716; font-weight:700; }
.sport-option:hover { background:#f3f6ed; }
.sport-option:has(input:focus-visible) { outline:3px solid #618b19; outline-offset:2px; }
.sport-option input { position:absolute; width:1px; height:1px; opacity:0; }
.sport-icon { width:18px; height:18px; }
.check-box { margin-left:auto; width:15px; height:15px; border:1px solid var(--line); border-radius:50%; }
.check-box .icon { display:none; width:13px; height:13px; }
.sport-option:has(input:checked) .check-box { background:var(--ink); border-color:var(--ink); color:var(--lime); }
.sport-option:has(input:checked) .check-box .icon { display:block; }
.filter-footnote { display:flex; align-items:flex-start; gap:8px; padding-top:16px; border-top:1px solid var(--line); color:var(--muted); font-size:10px; }
.filter-footnote .icon { width:14px; height:14px; margin-top:2px; }
.results-column { min-width:0; }
.match-search { margin:0; }
.date-toolbar { display:flex; align-items:center; gap:12px; padding-bottom:20px; border-bottom:1px solid var(--line); }
.date-presets { display:flex; gap:4px; min-width:0; flex:1; }
.date-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px; }
.date-reset { min-height:44px; padding:8px; }
.date-tab { display:flex; flex-direction:column; align-items:flex-start; gap:2px; min-height:52px; padding:9px 14px; border-radius:8px; font-size:11px; font-weight:700; color:var(--muted); white-space:nowrap; flex:1; }
.date-tab span { font-size:9px; font-weight:450; opacity:.8; }
.date-tab:hover { background:#e9eee0; }
.date-tab.active { background:var(--ink); color:var(--surface); }
.custom-date-button { display:flex; align-items:center; justify-content:center; gap:8px; padding:10px 12px; min-height:46px; border:1px solid var(--line); border-radius:8px; background:var(--surface); font-size:10px; font-weight:650; }
.custom-date-button .icon { width:16px; height:16px; }
.custom-date-button.active,.custom-date-button[aria-expanded=true] { background:#eaf3d9; border-color:#9cbb65; }
.date-form { display:flex; flex-wrap:wrap; align-items:flex-end; gap:14px; margin-top:14px; padding:20px; background:var(--surface); border:1px solid var(--line); border-radius:10px; }
.date-form>div { flex:1; min-width:135px; }
.date-form .field-label { margin-bottom:6px; }
.date-form .field-hint { width:100%; margin:0; }
.date-error { width:100%; color:var(--red); font-size:12px; }
.date-error:empty { display:none; }
.results-meta { display:flex; justify-content:space-between; align-items:center; gap:12px; padding-block:20px; }
.results-meta>p { color:var(--muted); font-size:11px; }
.results-meta strong { color:var(--ink); font-weight:750; }
.meta-right { display:flex; align-items:center; gap:14px; }
.updated-at { color:var(--muted); font-size:9px; }
.sort-label { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:10px; white-space:nowrap; }
.sort-label select { border:0; background:transparent; color:var(--ink); min-height:36px; font-size:10px; cursor:pointer; }
.active-filters { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:15px; }
.active-filters:empty { display:none; }
.filter-pill { display:inline-flex; align-items:center; gap:8px; min-height:34px; padding:6px 11px; background:#e8eddc; border-radius:6px; font-size:11px; }
.filter-pill .icon { width:13px; height:13px; }
/* Fixtures */
.day-group+.day-group { margin-top:27px; }
.day-heading { display:flex; align-items:center; gap:12px; margin-bottom:13px; font-size:12px; font-weight:700; }
.day-heading::after { content:""; height:1px; background:var(--line); flex:1; }
.day-heading span { display:inline-flex; align-items:center; padding:2px 7px; border-radius:4px; color:var(--muted); background:#e9ece5; font-size:9px; font-weight:500; }
.match-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
.match-card { display:flex; flex-direction:column; min-width:0; padding:18px 19px 0; background:var(--surface); border:1px solid var(--line); border-radius:12px; transition:border-color .18s,box-shadow .18s,transform .18s; }
.match-card:hover { border-color:#afbe9d; box-shadow:0 5px 18px #1c30100a; transform:translateY(-2px); }
.match-meta { min-width:0; }
.match-card-head { display:flex; align-items:center; gap:8px; }
.competition-label { display:grid; grid-template-columns:17px minmax(0,1fr); column-gap:7px; align-items:center; flex:1; min-width:0; }
.competition-label>.icon { width:16px; height:16px; color:#638637; grid-row:1 / span 2; }
.sport-name { font-size:9px; font-weight:800; letter-spacing:.8px; text-transform:uppercase; }
.competition-name { grid-column:2; font-size:10px; color:var(--muted); overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.save-match { display:flex; align-items:center; justify-content:center; flex-shrink:0; width:40px; height:40px; margin:-6px -8px -6px 0; border-radius:8px; color:#788374; }
.save-match:hover { background:#f0f5e5; color:#486621; }
.save-match .icon { width:19px; height:19px; }
.save-match.saved { color:#4e751c; }
.save-match.saved .icon { fill:var(--lime); }
.match-time-row { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:6px; margin-top:15px; }
.match-time { display:flex; align-items:center; gap:5px; font-size:10px; font-weight:600; font-variant-numeric:tabular-nums; }
.match-time .icon { width:13px; height:13px; color:var(--muted); }
.match-status { display:inline-flex; align-items:center; gap:5px; padding:3px 6px; border-radius:4px; background:#eff3e7; color:#5b722f; font-size:8px; font-weight:700; letter-spacing:.4px; }
.match-status.live { background:#e7f5db; color:#3b7020; }
.match-status.live::before { content:""; width:5px; height:5px; border-radius:50%; background:currentColor; }
.match-status.finished { color:#747970; background:#f0f1ed; }
.match-status.cancelled { color:var(--red); background:#faeae7; }
.match-teams { display:grid; gap:10px; margin-block:20px; }
.team-row { display:flex; align-items:center; gap:10px; min-width:0; }
.team-crest { display:flex; align-items:center; justify-content:center; flex-shrink:0; width:32px; height:34px; border-radius:7px 7px 11px 11px; background:#edf1e5; color:#5a713a; font-size:9px; font-weight:850; letter-spacing:-.3px; }
.team-row.away .team-crest { background:#edf0f4; color:#5e7188; }
.team-title { flex:1; min-width:0; font-size:14px; font-weight:750; letter-spacing:-.3px; line-height:1.35; overflow-wrap:anywhere; }
.team-score { margin-left:auto; font-size:18px; font-weight:800; font-variant-numeric:tabular-nums; }
.card-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:auto; margin-inline:-19px; padding:11px 14px 11px 19px; border-top:1px solid #edf0e9; }
.match-location { flex:1; min-width:0; }
.venue-label { display:flex; align-items:center; gap:5px; min-height:28px; font-size:9px; color:var(--muted); }
a.venue-label:hover { color:var(--green); text-decoration:underline; text-underline-offset:3px; }
.venue-label>.icon { width:13px; height:13px; }
.venue-label span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.stream-label { color:var(--muted); font-size:9px; margin-top:2px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.match-link { display:flex; justify-content:center; align-items:center; gap:6px; min-height:36px; padding:7px 9px; flex-shrink:0; border-radius:6px; color:#436123; background:#eff4e6; font-size:10px; font-weight:750; }
.match-link .icon { width:14px; height:14px; }
.match-link:hover { background:#dff1c0; }
.load-more { display:flex; margin:25px auto 0; min-width:210px; }
.load-more .icon { width:15px; height:15px; transform:rotate(90deg); }
.results-note { display:flex; gap:7px; align-items:flex-start; justify-content:center; margin-top:27px; color:var(--muted); font-size:10px; }
.results-note>.icon { width:14px; height:14px; margin-top:3px; }
.results-note .text-button { font-size:10px; padding:0; text-decoration:underline; }
.source-warning { display:flex; align-items:flex-start; gap:9px; padding:12px 14px; margin-bottom:10px; background:#fbf4e2; border:1px solid #eee2bd; border-radius:8px; font-size:11px; color:#79632b; }
.source-warning .icon { width:16px; height:16px; margin-top:1px; }
.source-status { margin-bottom:12px; padding:12px 14px; border:1px solid #eee2bd; border-radius:8px; background:#fbf4e2; color:#79632b; }
.source-status summary { min-height:24px; font-size:11px; font-weight:650; cursor:pointer; }
.source-status[open] summary { margin-bottom:10px; }
.source-status .source-warning { padding:8px 0; margin:0; border:0; border-radius:0; }
.source-warning .text-button { font-size:11px; text-decoration:underline; }
.favorites-note { background:#edf2e7; color:#556947; border-color:#dce6d4; }
.empty-state { padding:55px 24px; text-align:center; background:var(--surface); border:1px dashed #cbd5c2; border-radius:12px; }
.empty-state>.icon { width:29px; height:29px; margin:0 auto 18px; color:#789450; }
.empty-state h3 { font-size:20px; letter-spacing:-.6px; }
.empty-state p { max-width:410px; margin:10px auto 22px; font-size:12px; color:var(--muted); line-height:1.8; }
.skeleton-title { width:180px; height:13px; margin-bottom:16px; border-radius:5px; background:#e3e8dc; }
.skeleton-card { height:235px; border-radius:12px; border:1px solid var(--line); background:linear-gradient(100deg,#ecefe6 25%,#f8faf4 50%,#ecefe6 75%); background-size:200% 100%; animation:skeleton-pulse 1.6s infinite; }
.is-refreshing { opacity:.55; }
@keyframes skeleton-pulse { to { background-position:-200% 0; } }
/* Shared footer and dialogs */
.site-footer { background:#19221d; color:#d5ddd0; }
.footer-top { display:flex; align-items:center; justify-content:space-between; gap:24px; padding-block:37px; }
.footer-brand { font-size:23px; color:#fff; gap:0; }
.footer-brand .brand-period { color:var(--lime); }
.footer-top p { margin-top:12px; font-size:11px; color:#9da99d; }
.footer-top nav { display:flex; align-items:center; gap:28px; }
.footer-top .text-button { color:#d5ddd0; font-size:11px; min-height:40px; }
.footer-top .icon { width:14px; height:14px; }
.footer-bottom { display:flex; align-items:center; justify-content:space-between; gap:20px; padding-block:20px; border-top:1px solid #354033; font-size:9px; color:#9aa795; }
dialog { position:fixed; width:min(610px,calc(100% - 40px)); max-height:calc(100dvh - 48px); padding:30px; border:1px solid var(--line); border-radius:18px; background:var(--surface); color:var(--ink); box-shadow:0 25px 100px #111a1433; overflow-y:auto; overscroll-behavior:contain; }
dialog::backdrop { background:#0c190fad; backdrop-filter:blur(4px); }
body:has(dialog[open]) { overflow:hidden; }
.dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:17px; }
.dialog-heading .icon-button { width:36px; height:36px; }
dialog h2 { font-size:29px; line-height:1.2; letter-spacing:-1px; overflow-wrap:anywhere; }
dialog h3 { margin-top:24px; font-size:15px; }
dialog p { margin-top:13px; color:var(--muted); font-size:12px; line-height:1.8; }
.source-list { display:grid; margin-top:15px; }
.source-list>a { display:grid; grid-template-columns:90px minmax(0,1fr) 16px; align-items:center; gap:12px; padding:13px 0; border-bottom:1px solid var(--line); color:var(--muted); font-size:11px; }
.source-list>a:hover { color:var(--green); }
.source-list>a>span { color:var(--ink); font-weight:700; }
.source-list .icon { width:15px; height:15px; }
dialog .small-print { font-size:10px; }
.match-detail-grid { margin:21px 0; }
.match-detail-grid>div { display:grid; grid-template-columns:110px minmax(0,1fr); gap:16px; padding:11px 0; border-bottom:1px solid var(--line); font-size:12px; }
.match-detail-grid dt { color:var(--muted); }
.match-detail-grid dd { margin:0; overflow-wrap:anywhere; }
.match-attribution { border-top:1px solid var(--line); padding-top:15px; }
.match-attribution a { text-decoration:underline; text-underline-offset:3px; }
.detail-map { margin-bottom:15px; }
.toast { position:fixed; bottom:25px; left:50%; transform:translateX(-50%); z-index:100; width:max-content; max-width:calc(100% - 32px); border:1px solid #566344; padding:14px 20px; border-radius:10px; color:#fff; background:#25311f; box-shadow:0 8px 25px #18251526; font-size:12px; }
/* Optional, clearly marked sponsor placements */
.ad-placement { overflow:hidden; padding:15px; margin-block:17px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.ad-label { display:inline-block; padding:3px 7px; background:#eef1e8; border-radius:4px; font-size:9px; font-weight:700; color:var(--muted); }
.ad-content { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(100px,.8fr); align-items:center; gap:15px; margin-top:9px; }
.ad-image { display:block; width:100%; aspect-ratio:3.6 / 1; object-fit:cover; border-radius:7px; }
.ad-company { font-size:15px; font-weight:750; overflow-wrap:anywhere; }
.ad-infeed { grid-column:1 / -1; margin:0; }
.ad-infeed .ad-image,.ad-partner .ad-image { aspect-ratio:2.5 / 1; }
.skeleton-ad { height:130px; border-radius:12px; background:#e9ede1; margin-top:15px; }
/* Partner page */
.advertising-page { padding-block:65px 75px; }
.advertising-page>.eyebrow { color:#6b882f; }
.advertising-page>h1 { margin-top:17px; }
.advertising-page>h1 span { color:#628527; }
.advertising-intro { max-width:670px; color:var(--muted); font-size:16px; line-height:1.8; margin-top:23px; }
.advertising-page>h2 { margin-top:48px; font-size:26px; letter-spacing:-.8px; }
.ad-product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:21px; }
.ad-product { display:flex; flex-direction:column; padding:25px; background:var(--surface); border:1px solid var(--line); border-radius:14px; }
.ad-product-number { font-size:12px; color:#60822d; font-weight:750; letter-spacing:1px; }
.ad-product h3 { margin-top:20px; margin-bottom:11px; font-size:19px; letter-spacing:-.5px; line-height:1.3; }
.ad-product p { color:var(--muted); font-size:12px; line-height:1.8; margin-bottom:22px; }
.ad-product-preview { height:77px; margin-top:auto; padding:10px; border:1px dashed #9caf7a; border-radius:7px; background:#f1f5e9; }
.ad-product-preview span { display:inline-block; padding:2px 7px; background:#e0e9ce; border-radius:3px; font-size:9px; color:#5d703e; }
.preview-feed { margin-inline:15px; }
.preview-partner { width:70%; }
.advertising-contact { display:flex; justify-content:space-between; align-items:center; gap:35px; padding:32px; margin-top:30px; border-radius:14px; background:#e9f2d4; }
.advertising-contact>div { max-width:650px; }
.advertising-contact h2 { margin-top:8px; font-size:26px; line-height:1.2; letter-spacing:-.8px; }
.advertising-contact p:not(.eyebrow) { margin-top:12px; color:#59694b; font-size:12px; line-height:1.8; }
.advertising-contact .button { flex-shrink:0; }
.contact-unavailable { max-width:260px; }
/* Responsive layouts */
@media(min-width:641px) {
  .match-card { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr) minmax(0,1.1fr); align-items:center; gap:20px; min-height:100px; padding:14px 18px; }
  .match-meta { display:grid; gap:9px; }
  .match-time-row { justify-content:flex-start; margin-top:0; }
  .match-teams { gap:6px; margin-block:0; }
  .team-crest { width:28px; height:30px; }
  .team-title { font-size:13px; }
  .team-score { font-size:16px; }
  .card-footer { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; min-width:0; margin:0; padding:0; border-top:0; }
  .venue-label span { white-space:normal; overflow-wrap:anywhere; }
  .match-link { min-height:42px; }
  .skeleton-card { height:100px; }
}
@media(min-width:1450px) { .hero { padding-block:52px; } }
@media(max-width:1150px) {
  .shell { width:calc(100% - 48px); }
  .hero { gap:30px; }
  .hero-art { min-height:285px; padding:23px; }
  .hero h1 { font-size:60px; }
  .discovery-grid { grid-template-columns:210px minmax(0,1fr); gap:22px; }
  .filters { padding-inline:15px; }
  .date-toolbar { flex-wrap:wrap; gap:10px; }
  .custom-date-button { margin-left:auto; }
  .date-presets { flex-basis:100%; }
  .date-tab { align-items:center; }
  .updated-at { display:none; }
  .team-title { font-size:13px; }
}
@media(min-width:641px) and (max-width:1100px) {
  .match-card { grid-template-columns:minmax(0,1fr) minmax(0,1.5fr); gap:12px 20px; padding:14px 16px; }
  .match-meta { grid-column:1; grid-row:1; }
  .match-teams { grid-column:2; grid-row:1; }
  .card-footer { grid-column:1 / -1; padding-top:10px; border-top:1px solid #edf0e9; }
  .skeleton-card { height:145px; }
}
@media(max-width:900px) {
  .hero { grid-template-columns:1fr .85fr; padding-block:34px; gap:25px; }
  .hero h1 { font-size:52px; letter-spacing:-2.7px; }
  .hero-art { min-height:290px; }
  .art-badge { display:none; }
  .main-nav { gap:3px; }
  .nav-link { padding-inline:12px; }
  .discovery-grid { grid-template-columns:1fr; }
  .section-heading { display:flex; }
  .filter-toggle { display:inline-flex; }
  .filters { display:none; grid-template-columns:1fr 1fr; gap:0 24px; padding:22px; }
  .filters.open { display:grid; }
  .filter-heading,.match-search,.filter-done,.filter-footnote { grid-column:1 / -1; }
  .filter-done { display:inline-flex; margin-top:10px; margin-bottom:18px; }
  .filter-footnote { padding-top:14px; }
  .date-toolbar { flex-wrap:nowrap; }
  .date-presets { flex-basis:auto; }
  .date-tab { align-items:flex-start; }
  .custom-date-button { min-width:130px; }
  .ad-product-grid { gap:12px; }
  .ad-product { padding:19px; }
  .ad-product h3 { font-size:17px; }
  .advertising-contact { align-items:flex-start; flex-direction:column; gap:10px; }
  .contact-unavailable { max-width:none; }
}
@media(max-width:640px) {
  html { scroll-padding-top:145px; }
  .shell { width:calc(100% - 32px); }
  .header-inner { min-height:104px; flex-wrap:wrap; justify-content:center; gap:5px; padding-block:13px 7px; }
  .brand { font-size:23px; }
  .brand-mark { width:31px; height:31px; }
  .main-nav { width:100%; justify-content:center; gap:8px; }
  .nav-link { min-height:39px; padding:8px 12px; font-size:11px; }
  .nav-link .icon { width:14px; height:14px; }
  .nav-count { height:18px; min-width:18px; font-size:9px; }
  .hero { grid-template-columns:1fr; gap:22px; padding-block:29px; }
  .hero-copy .eyebrow { font-size:7px; letter-spacing:1.4px; }
  .hero h1 { margin-top:13px; font-size:52px; line-height:1.02; letter-spacing:-2.8px; }
  .hero h1 br { display:none; }
  .hero h1 span { display:block; }
  .hero-description { max-width:335px; margin-top:13px; font-size:12px; line-height:1.7; }
  .hero-link { min-height:44px; margin-top:17px; font-size:11px; padding:10px 15px; }
  .hero-art { min-height:150px; height:150px; padding:17px 19px; border-radius:12px; }
  .arena-art { width:70%; left:auto; right:-15px; height:190px; top:-20px; }
  .art-topline .icon { width:18px; height:18px; }
  .art-topline { font-size:10px; letter-spacing:1.5px; }
  .discovery { padding-top:4px; padding-bottom:37px; }
  .section-heading { gap:8px; flex-wrap:wrap; margin-bottom:18px; }
  .filter-toggle { margin-left:0; flex:1; justify-content:flex-start; min-height:42px; padding:10px 13px; }
  .filters { grid-template-columns:1fr; padding:19px; gap:0; }
  .filter-group { padding-block:18px; }
  .field-label { font-size:12px; }
  input[type=search],input[type=date],.match-search input[type=search] { font-size:16px; }
  .field-hint,.filter-footnote { font-size:11px; }
  .sport-option { min-height:46px; font-size:13px; }
  .filter-done { width:100%; }
  .date-toolbar { flex-wrap:wrap; gap:12px; padding-bottom:14px; }
  .date-presets { flex-basis:100%; gap:3px; }
  .date-tab { align-items:center; justify-content:center; min-height:52px; padding:8px 5px; font-size:10px; }
  .date-tab span { font-size:8px; }
  .custom-date-button { margin-left:0; min-height:40px; font-size:11px; padding:8px 12px; }
  .date-form { padding:16px; gap:12px; }
  .date-form>div { min-width:110px; }
  .date-form .button { width:100%; }
  .results-meta { align-items:flex-start; gap:5px; padding-block:13px; }
  .results-meta>p { padding-block:8px; max-width:55%; font-size:10px; }
  .sort-label { font-size:0; }
  .sort-label select { font-size:10px; max-width:130px; }
  .day-heading { font-size:11px; gap:8px; }
  .day-heading span { font-size:8px; }
  .match-grid { grid-template-columns:1fr; gap:12px; }
  .match-card { padding:18px 19px 0; }
  .team-title { font-size:15px; }
  .match-time { font-size:11px; }
  .sport-name { font-size:10px; }
  .competition-name { font-size:11px; }
  .match-status { font-size:9px; }
  .match-link { min-height:44px; font-size:11px; }
  .save-match { width:44px; height:44px; }
  .venue-label { min-height:40px; font-size:10px; }
  .match-teams { margin-block:18px; }
  .results-note { justify-content:flex-start; font-size:10px; }
  .source-warning { font-size:11px; }
  .empty-state { padding:38px 20px; }
  .empty-state h3 { font-size:19px; }
  .footer-top { align-items:flex-start; flex-direction:column; gap:19px; padding-block:28px 18px; }
  .footer-top nav { width:100%; justify-content:space-between; gap:12px; }
  .footer-top .text-button { font-size:10px; }
  .footer-bottom { align-items:flex-start; flex-direction:column; gap:7px; padding-block:17px; font-size:8px; }
  dialog { padding:22px; width:calc(100% - 24px); max-height:calc(100dvh - 24px); border-radius:13px; }
  dialog h2 { font-size:25px; }
  .match-detail-grid>div { grid-template-columns:95px minmax(0,1fr); gap:12px; font-size:11px; }
  .source-list>a { grid-template-columns:80px minmax(0,1fr) 15px; gap:8px; font-size:10px; min-height:46px; }
  .toast { bottom:15px; font-size:11px; }
  .ad-content { grid-template-columns:1fr; gap:9px; }
  .ad-image { aspect-ratio:2.5 / 1; }
  .ad-company { font-size:14px; }
  .advertising-page { padding-block:35px 45px; }
  .advertising-page>h1 { font-size:43px; letter-spacing:-2.3px; }
  .advertising-intro { font-size:14px; margin-top:18px; }
  .advertising-page>h2 { font-size:24px; margin-top:32px; }
  .ad-product-grid { grid-template-columns:1fr; }
  .ad-product { padding:23px; }
  .ad-product h3 { font-size:20px; margin-top:13px; }
  .ad-product p { font-size:13px; }
  .advertising-contact { padding:23px; }
  .advertising-contact h2 { font-size:24px; }
}
@media(max-width:360px) {
  .nav-link { padding-inline:8px; font-size:10px; }
  .main-nav { gap:4px; }
  .hero h1 { font-size:46px; }
  .day-heading { flex-wrap:wrap; }
  .day-heading::after { min-width:12px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation:none!important; transition:none!important; }
}
