/* SPORTZ mobile — one design for iOS and Android, light + dark (follows the phone, can be fixed in settings) */
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(../fonts/source-sans-3-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(../fonts/source-sans-3-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --brand: #DB0022; --brand-ink: #FFFFFF;
  --bg: #F2F3F5; --card: #FFFFFF; --field: #E4E6EA; --text: #111418; --sub: #5B6470; --muted: #3A414B; --line: #E3E5E9; --row: #EEF0F2;
  --pill: #E3E5E9; --pill-text: #3A414B; --sel: #111418; --sel-text: #FFFFFF; --accent: #DB0022; --dash: #B8BEC6;
  --nav: rgba(255,255,255,.94); --track: #EEF0F2; --yellow: #F2B705; --red: #E03A2F; --green: #1E8E4B; --home: #DB0022; --away: #1D4ED8;
  --demo: #FFF4CC; --demo-text: #6B4E00; --shadow: 0 1px 2px rgba(0,0,0,.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0C0F; --card: #171A1F; --field: #262B33; --text: #F2F4F7; --sub: #A3ACB8; --muted: #C9CFD6; --line: #2A2F37; --row: #262A31;
    --pill: #23272E; --pill-text: #C9CFD6; --sel: #F2F4F7; --sel-text: #0E1014; --accent: #FF5A67; --dash: #4A515B;
    --nav: rgba(20,22,27,.94); --track: #2A2F37; --away: #4F7BFF; --demo: #3A2F0A; --demo-text: #F5D97A; --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0C0F; --card: #171A1F; --field: #262B33; --text: #F2F4F7; --sub: #A3ACB8; --muted: #C9CFD6; --line: #2A2F37; --row: #262A31;
  --pill: #23272E; --pill-text: #C9CFD6; --sel: #F2F4F7; --sel-text: #0E1014; --accent: #FF5A67; --dash: #4A515B;
  --nav: rgba(20,22,27,.94); --track: #2A2F37; --away: #4F7BFF; --demo: #3A2F0A; --demo-text: #F5D97A; --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.3;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

#app { min-height: 100dvh; display: flex; flex-direction: column; max-width: 640px; margin: 0 auto;
  padding-top: env(safe-area-inset-top); }

/* top bar */
.top { height: 60px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; position: sticky; top: 0;
  z-index: 5; background: var(--bg); }
.top .logo { height: 19px; width: auto; color: var(--brand); }
.top .acts { display: flex; align-items: center; gap: 8px; }
.livebtn { height: 36px; padding: 0 12px; border-radius: 18px; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 14px;
  letter-spacing: .6px; display: flex; align-items: center; gap: 6px; }
.livebtn .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.livebtn .n { background: rgba(255,255,255,.25); border-radius: 9px; padding: 0 6px; min-width: 18px; text-align: center; }
.iconbtn { width: 44px; height: 44px; border-radius: 22px; background: var(--card); display: flex; align-items: center; justify-content: center; color: var(--text); }
.iconbtn svg { width: 20px; height: 20px; }
.back { display: flex; align-items: center; gap: 4px; height: 44px; padding-right: 8px; font-weight: 600; color: var(--text); }
.back svg { width: 22px; height: 22px; }

main { flex: 1; padding: 4px 16px calc(32px + env(safe-area-inset-bottom)); }
.demo-bar { margin: 0 16px 8px; padding: 6px 12px; border-radius: 10px; background: var(--demo); color: var(--demo-text); font-size: 14px; font-weight: 600; }

/* cards & lists */
.card { background: var(--card); border-radius: 20px; padding: 6px 16px; box-shadow: var(--shadow); }
.card + .card, .card + .sect, .sect + .card { margin-top: 12px; }
.sect { margin: 16px 0 8px; font-size: 14px; font-weight: 700; letter-spacing: .2px; color: var(--sub);
  display: flex; align-items: center; gap: 8px; }
.sect img { width: 18px; height: 18px; object-fit: contain; }
.sect.cap { font-size: 13px; letter-spacing: .9px; }
.empty { padding: 28px 8px; text-align: center; color: var(--sub); font-size: 16px; }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }
.err { color: var(--accent); }
.foot { margin: 10px 4px 0; font-size: 13px; color: var(--sub); }

/* match rows (lists) */
.mrow { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 64px; padding: 8px 0;
  border-bottom: 1px solid var(--row); width: 100%; text-align: left; }
.mrow:last-child { border-bottom: 0; }
.mrow .st { font-size: 15px; font-weight: 700; color: var(--sub); text-align: center; }
.mrow .st.live { color: var(--accent); }
.mrow .st.bad { color: var(--accent); font-size: 12px; }
.mrow .tm { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mrow .t { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; min-width: 0; }
.mrow .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .t img { width: 20px; height: 20px; object-fit: contain; flex: none; }
.mrow .sc { display: flex; flex-direction: column; gap: 4px; font-size: 17px; font-weight: 800; text-align: right; min-width: 24px; }
.mrow .ht { font-size: 12px; font-weight: 600; color: var(--sub); text-align: right; }
.mrow .sc .w { color: var(--text); } .mrow .sc .l { color: var(--sub); }

/* segmented chips */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 36px; padding: 0 14px; border-radius: 18px; background: var(--pill); color: var(--pill-text); font-weight: 600; font-size: 15px;
  flex: none; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--sel); color: var(--sel-text); font-weight: 700; }
.chips.sticky { position: sticky; top: 56px; z-index: 4; background: var(--bg); }

/* match header */
.mh { background: var(--card); border-radius: 20px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.mh .lg { font-size: 14px; color: var(--sub); font-weight: 600; text-align: center; }
.mh .row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.mh .team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.mh .team img { width: 48px; height: 48px; object-fit: contain; }
.mh .team span { font-size: 18px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.mh .mid { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 110px; }
.mh .score { font-size: 48px; font-weight: 800; letter-spacing: -1px; line-height: 1; font-variant-numeric: tabular-nums; }
.mh .score i { font-style: normal; color: var(--dash); margin: 0 8px; }
.mh .score.ns { font-size: 34px; letter-spacing: 0; }
.mh .min { font-size: 16px; font-weight: 700; color: var(--sub); }
.mh .min.live { color: var(--accent); }
.mh .htl { font-size: 13px; font-weight: 600; color: var(--sub); }
.mh .scorers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 14px; color: var(--sub); }
.mh .scorers div:last-child { text-align: right; }
.mh .scorers p { margin: 0 0 2px; }
.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { color: var(--accent); transform: scale(1.08); } 100% { transform: none; } }

/* stats */
.srow { padding: 10px 0; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--row); }
.srow:last-child { border-bottom: 0; }
.srow .nums { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; }
.srow .v { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.srow .v.r { text-align: right; }
.srow .v.lo { color: var(--sub); font-weight: 700; }
.srow .lb { font-size: 15px; font-weight: 600; color: var(--muted); text-align: center; }
.srow .bars { display: flex; gap: 4px; height: 6px; }
.srow .bars i { flex: 1; background: var(--track); border-radius: 3px; overflow: hidden; display: flex; }
.srow .bars i:first-child { justify-content: flex-end; }
.srow .bars b { display: block; height: 100%; border-radius: 3px; }

/* events */
.ev { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); align-items: center; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--row); }
.ev:last-child { border-bottom: 0; }
.ev .m { text-align: center; font-weight: 800; color: var(--sub); font-size: 15px; }
.ev .m.g { color: var(--accent); }
.ev .s { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 15px; }
.ev .s.h { justify-content: flex-end; text-align: right; }
.ev .s .tx { display: flex; flex-direction: column; min-width: 0; }
.ev .s.h .tx { align-items: flex-end; }
.ev .s b { font-weight: 700; } .ev .s small { color: var(--sub); font-size: 13px; }
.ev .ic { flex: none; display: flex; }
.sep { text-align: center; padding: 10px 0; font-size: 12px; font-weight: 700; letter-spacing: .8px; color: var(--sub); border-bottom: 1px solid var(--row); }

/* recent events on summary */
.rev { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--row); font-size: 16px; }
.rev:last-child { border-bottom: 0; }
.rev .m { font-weight: 800; color: var(--accent); width: 40px; flex: none; }
.rev .who { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rev .tm { color: var(--sub); font-size: 14px; flex: none; }

/* lineups */
.lu-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 8px; font-size: 14px; color: var(--sub); font-weight: 600; }
.lu-h b { color: var(--text); font-size: 16px; }
.pr { display: grid; grid-template-columns: 34px 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--row); }
.pr:last-child { border-bottom: 0; }
.pr .no { font-weight: 800; font-size: 16px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.pr .ph { width: 30px; height: 30px; border-radius: 50%; background: var(--pill); object-fit: cover; }
.pr .nm { display: flex; flex-direction: column; min-width: 0; }
.pr .nm b { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr .nm small { color: var(--sub); font-size: 13px; }
.pr .tags { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--sub); }
.pr .tags span { display: flex; align-items: center; gap: 2px; }
.pr.small .nm b { font-weight: 500; color: var(--muted); }
.rtg { padding: 1px 6px; border-radius: 6px; color: #fff; font-size: 13px; font-weight: 700; }

/* table */
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { font-size: 12px; font-weight: 700; color: var(--sub); text-align: center; padding: 10px 2px 6px; letter-spacing: .4px; }
.tbl th.tn { text-align: left; }
.tbl td { padding: 9px 2px; text-align: center; font-size: 15px; border-top: 1px solid var(--row); }
.tbl td.rk { width: 26px; font-weight: 700; color: var(--sub); }
.tbl td.tn { text-align: left; }
.tbl td.tn div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tbl td.tn img { width: 20px; height: 20px; object-fit: contain; flex: none; }
.tbl td.tn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; font-weight: 600; }
.tbl td.pt { font-weight: 800; }
.tbl tr.me td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
/* 0.8.9: no line above the relegation places (asked 16 Nov) */
.tbl tr.relz td.rk { color: var(--accent); }

/* leaders */
.lr { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--row); }
.lr:last-child { border-bottom: 0; }
.lr .rk { font-weight: 700; color: var(--sub); text-align: center; }
.lr .nm { display: flex; flex-direction: column; min-width: 0; }
.lr .nm b { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr .nm small { color: var(--sub); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.lr .nm small img { width: 16px; height: 16px; object-fit: contain; }
.lr .val { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* date strip */
.dates { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; margin-bottom: 4px; }
.dates .d { text-align: center; font-weight: 700; font-size: 17px; }
.dates .d small { display: block; font-weight: 600; font-size: 13px; color: var(--sub); }

/* bottom nav */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--nav); border-top: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
.nav .in { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; justify-content: center; color: var(--sub);
  font-size: 12px; font-weight: 600; }
.nav a svg { width: 26px; height: 26px; }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }

/* sign-in */
.login { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 32px 24px calc(32px + env(safe-area-inset-bottom)); }
.login .logo { height: 26px; width: auto; color: var(--brand); align-self: flex-start; }
.login h1 { margin: 0; font-size: 26px; font-weight: 800; }
.login p { margin: 0; color: var(--sub); font-size: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; }
.field input { height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit;
  font-size: 17px; padding: 0 14px; }
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.primary { height: 52px; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 700; font-size: 17px; }
.primary:disabled { opacity: .6; }
.msg { min-height: 22px; font-size: 15px; }

/* settings sheet */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 640px; background: var(--card); border-radius: 22px 22px 0 0; padding: 18px 20px calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 16px; }
.sheet h2 { margin: 0; font-size: 20px; }
.sheet .rowx { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 16px; }
.sheet .rowx small { color: var(--sub); }
.ghost { height: 48px; border-radius: 14px; background: var(--pill); font-weight: 700; color: var(--text); }
.danger { color: var(--accent); }
.status-line { font-size: 13px; color: var(--sub); text-align: center; margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .flash { animation: none; } }

/* team links + team page */
.tbl td.tn a { display: flex; align-items: center; gap: 8px; min-width: 0; color: inherit; min-height: 28px; }
.mh a.team { color: inherit; }
.th { align-items: center; text-align: center; gap: 6px; }
.th img { width: 72px; height: 72px; object-fit: contain; }
.th h1 { margin: 4px 0 0; font-size: 24px; font-weight: 800; }
.form { display: flex; gap: 6px; margin-top: 6px; }
.res { font-style: normal; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px;
  font-size: 13px; font-weight: 800; color: #fff; }
.res.G { background: #1E8E4B; } .res.B { background: #7A828C; } .res.M { background: #C0392B; }
.tfx { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--row); color: inherit; }
.tfx:last-child { border-bottom: 0; }
.tfx .d { display: flex; flex-direction: column; font-size: 14px; font-weight: 700; }
.tfx .d small { font-size: 13px; font-weight: 600; color: var(--sub); }
.tfx .d .lv { color: var(--accent); }
.tfx .o { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tfx .o .t { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; min-width: 0; }
.tfx .o .t img { width: 20px; height: 20px; object-fit: contain; flex: none; }
.tfx .o .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tfx .o small { color: var(--sub); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tfx .r { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.tbl tr[data-href] { cursor: pointer; }
.tbl tr[data-href]:active td { background: var(--row); }

.tfx .d { white-space: nowrap; }
.ha { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .4px; padding: 2px 5px; border-radius: 5px; background: var(--pill); color: var(--sub); flex: none; }
.pr span.ph { display: block; }

/* ---- 0.2.0: home, calendar, leagues, search ---- */
.search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 24px; background: var(--field); color: var(--sub);
  font-size: 17px; font-weight: 600; margin: 2px 0 12px; }
.search svg { width: 22px; height: 22px; color: var(--text); flex: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 26px; background: var(--field); margin-bottom: 12px; }
.seg.seg3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
.seg a { height: 42px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
  letter-spacing: .4px; color: var(--sub); text-align: center; }
.seg.seg3 a { font-size: 14px; letter-spacing: 0; }
.seg a[aria-current="page"] { background: var(--sel); color: var(--sel-text); }
.frow { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.livechip, .fchip { height: 44px; padding: 0 16px; border-radius: 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px;
  background: var(--card); border: 2px solid var(--line); color: var(--text); }
.livechip { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.livechip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.livechip .n { font-size: 13px; min-width: 22px; height: 22px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 18%, transparent); padding: 0 6px; }
.livechip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.livechip[aria-pressed="true"] .n { background: rgba(255,255,255,.25); }
.fchip svg { width: 20px; height: 20px; }
.fchip { margin-left: auto; color: var(--muted); }
.datebar { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; height: 56px; border-radius: 28px; background: var(--field);
  margin-bottom: 6px; padding: 0 2px; }
.db-arrow { height: 52px; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.db-arrow svg { width: 24px; height: 24px; }
.db-arrow.off { visibility: hidden; }
.db-mid { height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 17px; color: var(--text); min-width: 0; }
.db-mid svg { width: 19px; height: 19px; color: var(--accent); flex: none; }
.db-mid small { font-weight: 600; font-size: 15px; color: var(--sub); white-space: nowrap; }
.db-mid span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-mid.static { flex-direction: column; gap: 0; line-height: 1.15; }
.ghost.wide { display: flex; align-items: center; justify-content: center; margin-top: 12px; width: 100%; }
.opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); }
.opt b { font-size: 17px; } .opt small { color: var(--sub); font-size: 14px; }
.opt[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* calendar */
.cal-bg { align-items: flex-start; padding: calc(10px + env(safe-area-inset-top)) 10px 0; }
.cal { width: 100%; max-width: 520px; background: var(--card); border-radius: 22px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.cal-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 0 20px; font-size: 20px; }
.cal-m { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; padding: 6px 8px; text-align: center; font-size: 18px; }
.cal-m b::first-letter { text-transform: uppercase; }
.cal-m .iconbtn, .cal-h .iconbtn { background: transparent; }
.cal-w { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--field); padding: 10px 6px; text-align: center; font-size: 14px; font-weight: 700; color: var(--sub); }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 8px 6px; }
.cd { height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 14px; font-size: 17px; font-weight: 700;
  font-variant-numeric: tabular-nums; }
.cd span { width: 36px; height: 36px; border-radius: 18px; display: flex; align-items: center; justify-content: center; }
.cd.today span { box-shadow: inset 0 0 0 2px var(--accent); }
.cd.sel span { background: var(--brand); color: #fff; box-shadow: none; }
.cd .dots { display: flex; gap: 3px; height: 5px; }
.cd .dots b { width: 9px; height: 5px; border-radius: 3px; }
.cd:active span { background: var(--row); }
.cal-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 6px 18px 12px; font-size: 13px; color: var(--sub); border-bottom: 1px solid var(--line); }
.cal-leg span { display: inline-flex; align-items: center; gap: 6px; }
.cal-leg b { width: 14px; height: 6px; border-radius: 3px; }
.cal-f { padding: 12px; display: flex; justify-content: center; }
.cal-f .primary { width: 160px; height: 46px; letter-spacing: .6px; }

/* leagues */
.lrow { display: grid; grid-template-columns: 32px minmax(0, 1fr) 20px; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--row); min-height: 56px; color: inherit; }
.lrow:last-child { border-bottom: 0; }
.lrow img.lg { width: 30px; height: 30px; object-fit: contain; }
.lrow .nm { display: flex; flex-direction: column; min-width: 0; }
.lrow .nm b { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .nm small { font-size: 13px; color: var(--sub); }
.lrow > svg { width: 18px; height: 18px; color: var(--sub); }
.ctry { border-bottom: 1px solid var(--row); } .ctry:last-child { border-bottom: 0; }
.crow { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) 24px; align-items: center; gap: 12px; min-height: 54px; text-align: left; font-size: 16px; font-weight: 700; }
.crow .flag, .crow img.flag { width: 28px; height: 20px; border-radius: 3px; object-fit: cover; background: var(--pill); }
.crow .chev svg { width: 20px; height: 20px; color: var(--sub); transition: transform .15s; }
.crow[aria-expanded="true"] .chev svg { transform: rotate(180deg); }
.clist { padding: 0 0 6px 42px; }
.lh { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 20px; padding: 14px 16px; }
.lh img { width: 52px; height: 52px; object-fit: contain; }
.lh h1 { margin: 0; font-size: 22px; font-weight: 800; }
.lh small { color: var(--sub); font-size: 14px; }

/* team fixture: competition colour stripe, next match */
.tfx.cat { box-shadow: inset 3px 0 0 var(--cat); padding-left: 10px; margin-left: -6px; }
.tfx.next { background: color-mix(in srgb, var(--accent) 9%, transparent); border-radius: 10px; }
.tfx.next .d::after { content: 'SIRADAKİ'; font-size: 10px; font-weight: 800; color: var(--accent); letter-spacing: .5px; }
.cdot { display: inline-block; width: 10px; height: 10px; border-radius: 5px; margin-right: 6px; }
.chip { display: inline-flex; align-items: center; }

/* search */
.sbox { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 26px; background: var(--field); margin: 2px 0 12px; }
.sbox svg { width: 22px; height: 22px; color: var(--text); flex: none; }
.sbox input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 17px; font-weight: 600; outline: none; }
.sbox:focus-within { box-shadow: 0 0 0 2px var(--accent); }

/* search box on home: real input; search mode in place */
.sbox .sx { display: none; font-weight: 700; font-size: 16px; color: var(--accent); padding: 0 2px 0 8px; height: 44px; }
main.searching .sbox .sx { display: block; }
main.searching > :not(.sbox):not(#sres) { display: none !important; }
.sbox input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* header: back arrow + logo on every page (logo = home) */
.top .lead { display: flex; align-items: center; gap: 2px; min-width: 0; }
.top .back { width: 40px; height: 44px; padding: 0; justify-content: flex-start; margin-left: -6px; }
.top .back svg { width: 26px; height: 26px; }
.top .home { display: flex; align-items: center; height: 44px; }
.top .back + .home .logo { height: 16px; }

/* player links + player page */
a.pr, a.lr { color: inherit; }
.lrow.pl .ph { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--pill); display: block; }
.th img.pph { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--pill); }
.th a.lg { color: var(--accent); font-weight: 700; }
.tbl.pst td.tn span { max-width: 130px; font-weight: 600; }
.tbl tr.tot td { font-weight: 800; }

/* ===================================================================================
   0.3 — SPORTZ app visual language: white ground, hairlines, thin icons, regular-weight text,
   zebra rows, underline tabs, red only as an accent. Layout and order stay as they are.
   =================================================================================== */
:root { --bg: #FFFFFF; --card: #FFFFFF; --field: #F0F0F3; --zebra: #F4F4F6; --line: #E4E4E8; --row: #ECECEF; --text: #15171A; --sub: #6B7079;
  --muted: #3D4148; --pill: #F0F0F3; --hair: 1px; --shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0A0C0F; --card: #0A0C0F; --field: #1B1F25; --zebra: #13161B; --line: #262A31; --row: #1E2228; } }
:root[data-theme="dark"] { --bg: #0A0C0F; --card: #0A0C0F; --field: #1B1F25; --zebra: #13161B; --line: #262A31; --row: #1E2228; }
:root[data-theme="light"] { --bg: #FFFFFF; --card: #FFFFFF; --field: #F0F0F3; --zebra: #F4F4F6; --line: #E4E4E8; --row: #ECECEF; }

body { font-weight: 400; }
svg[stroke="currentColor"] { stroke-width: 1.6; }

/* header: back | logo centred | live + settings */
.top { display: grid; grid-template-columns: 88px 1fr 88px; height: 56px; padding: 0 12px; border-bottom: var(--hair) solid var(--line); background: var(--bg); }
.top .lead { justify-self: start; }
.top .home { justify-self: center; height: 56px; }
.top .home .logo, .top .back + .home .logo { height: 16px; }
.top .acts { justify-self: end; gap: 2px; }
.top .back { width: 40px; margin-left: 0; color: var(--text); }
.top .iconbtn { background: transparent; width: 40px; height: 44px; }
.top .iconbtn svg { width: 23px; height: 23px; }
.livemini { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px; border-radius: 15px; border: var(--hair) solid var(--brand);
  color: var(--brand); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.livemini .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
main { padding-top: 12px; }

/* search: light grey pill, centred placeholder (left when typing) */
.sbox { height: 44px; border-radius: 10px; background: var(--field); margin: 0 0 10px; padding: 0 12px; }
.sbox svg { width: 20px; height: 20px; color: var(--sub); }
.sbox input { font-weight: 400; font-size: 17px; height: 44px; }
.sbox input:placeholder-shown { text-align: center; padding-right: 30px; }
.sbox:focus-within { box-shadow: none; }
.sbox:focus-within input { text-align: left; padding-right: 0; }
main.searching .sbox { box-shadow: inset 0 0 0 var(--hair) var(--brand); }

/* tabs: text with a red underline (MAÇLAR | LİGLER, league + team + match sections) */
.seg, .seg.seg3 { background: transparent; padding: 0; gap: 0; border-radius: 0; border-bottom: var(--hair) solid var(--line); margin: 0 -16px 12px; padding: 0 16px; }
.seg.seg3 { margin-top: 8px; }
.seg a, .seg.seg3 a { height: 46px; border-radius: 0; font-size: 17px; font-weight: 400; letter-spacing: 0; color: var(--sub); position: relative; text-transform: none; }
.seg a[aria-current="page"] { background: transparent; color: var(--text); font-weight: 700; }
.seg a[aria-current="page"]::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 3px; border-radius: 2px; background: var(--brand); }
.chips[role="tablist"] { gap: 0; padding: 0 16px; border-bottom: var(--hair) solid var(--line); background: var(--bg); margin-top: 8px !important; }
.chips[role="tablist"] .chip { background: transparent; border-radius: 0; height: 46px; padding: 0 12px; font-size: 17px; font-weight: 400; color: var(--sub); position: relative; }
.chips[role="tablist"] .chip[aria-pressed="true"] { background: transparent; color: var(--text); font-weight: 700; }
.chips[role="tablist"] .chip[aria-pressed="true"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 2px; background: var(--brand); }

/* other chips (filters): thin outline, selected = red outline (like the selected day) */
.chip { background: var(--field); font-weight: 400; color: var(--muted); border-radius: 8px; height: 36px; }
.chip[aria-pressed="true"] { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--brand); font-weight: 600; }
.livechip, .fchip { height: 38px; border-radius: 8px; border-width: var(--hair); font-size: 16px; font-weight: 500; background: var(--bg); }
.livechip { border-color: var(--line); color: var(--text); }
.livechip .dot { color: var(--brand); }
.livechip .n { background: var(--field); color: var(--text); font-weight: 600; }
.livechip[aria-pressed="true"] { background: transparent; color: var(--brand); border-color: var(--brand); box-shadow: inset 0 0 0 .5px var(--brand); }
.livechip[aria-pressed="true"] .n { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.fchip { border-color: var(--line); color: var(--muted); }

/* date bar: grey box, thin red arrows */
.datebar { height: 48px; border-radius: 10px; grid-template-columns: 48px minmax(0, 1fr) 48px; margin-bottom: 4px; }
.db-arrow, .db-mid { height: 48px; }
.db-arrow svg { width: 22px; height: 22px; }
.db-mid { font-weight: 600; font-size: 17px; }
.db-mid small { font-weight: 400; }

/* lists: no big cards; zebra rows for matches, hairlines for info */
.card { background: var(--card); border-radius: 8px; padding: 0 12px; box-shadow: none; }
.card + .card, .card + .sect, .sect + .card { margin-top: 6px; }
.sect { margin: 18px 0 6px; font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: 0; }
.sect img { width: 22px; height: 22px; }
.sect.cap { font-size: 15px; font-weight: 700; letter-spacing: .3px; color: var(--text); text-transform: none; padding-bottom: 8px; border-bottom: var(--hair) solid var(--line); margin-bottom: 4px; }
.card:has(> .mrow), .card:has(> .tfx), .card:has(> .lr) { padding: 0; overflow: hidden; }
.mrow, .tfx, .lr { border-bottom: 0; padding-left: 12px; padding-right: 12px; }
.card > .mrow:nth-child(odd), .card > .tfx:nth-child(odd), .card > .lr:nth-child(odd) { background: var(--zebra); }
.mrow { min-height: 62px; }
.mrow .st { font-weight: 400; font-size: 16px; }
.mrow .st.live { font-weight: 700; }
.mrow .t { font-weight: 400; font-size: 17px; }
.mrow .sc { font-weight: 700; font-size: 17px; }
.mrow .sc .l { font-weight: 400; }
.rev, .lrow, .pr, .srow, .ev, .sep, .ctry { border-bottom-width: var(--hair); border-color: var(--line); }
.rev .who { font-weight: 400; }
.lrow .nm b, .crow { font-weight: 500; }
.pr .nm b { font-weight: 500; }
.lr .nm b { font-weight: 600; }
.lr .val { font-weight: 700; font-size: 20px; }
.tbl td { border-top: var(--hair) solid var(--line); }
.tbl tbody tr:nth-child(odd) td { background: var(--zebra); }
.tbl td.tn span { font-weight: 500; }
.tbl td.pt { font-weight: 700; }

/* match header: grey band, big logos, form dots, date · VS · time */
.mh { background: var(--field); border-radius: 0; margin: -12px -16px 0; padding: 14px 16px 16px; box-shadow: none; gap: 10px; }
.mh .lg { font-weight: 400; font-size: 15px; }
.mh .team img { width: 64px; height: 64px; }
.mh .team span { font-size: 18px; font-weight: 700; }
.mh .score { font-size: 44px; font-weight: 700; }
.mh .score.vs { font-size: 34px; font-weight: 800; letter-spacing: 1px; }
.mh .min { font-weight: 600; }
.mh .htl { font-weight: 400; font-size: 14px; }
.mh .scorers { font-size: 14px; }
.fdots { display: flex; gap: 5px; justify-content: center; margin-top: 2px; }
.fdots i { width: 13px; height: 13px; border-radius: 50%; display: block; }
.fdots i.G { background: #22B05B; } .fdots i.B { background: #9AA0A8; } .fdots i.M { background: #E5333B; }
.th { border-radius: 0; margin: -12px -16px 0; padding: 18px 16px; }
.lh { background: var(--field); border-radius: 0; margin: -12px -16px 0; padding: 14px 16px; }

/* stats: thinner */
.srow .v { font-size: 17px; font-weight: 600; }
.srow .v.lo { font-weight: 400; }
.srow .lb { font-weight: 400; font-size: 15px; }
.srow .bars { height: 4px; }
.res { border-radius: 50%; width: 22px; height: 22px; font-size: 11px; }
.ha { background: transparent; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.ghost { background: transparent; box-shadow: inset 0 0 0 var(--hair) var(--line); font-weight: 600; border-radius: 10px; }
.primary { border-radius: 10px; font-weight: 600; }
.sheet { border-radius: 16px 16px 0 0; }
.opt { border-width: var(--hair); border-radius: 10px; }
.cal { border-radius: 14px; }
.demo-bar { border-radius: 8px; margin: 10px 16px 0; font-weight: 500; }
.chips[role="tablist"] .chip[aria-pressed="true"] { box-shadow: none; }

/* text weight + size matched to the SPORTZ app (measured from its screenshots): Source Sans at ~15–16 px,
   a touch lighter than Source Sans 3 "regular" (their app likely uses the older Source Sans Pro). Dark ground: lighter still. */
:root { --w-reg: 370; --w-mid: 480; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --w-reg: 340; --w-mid: 450; } }
:root[data-theme="dark"] { --w-reg: 340; --w-mid: 450; }
:root[data-theme="light"] { --w-reg: 370; --w-mid: 480; }
body { font-weight: var(--w-reg); }
.mrow .t { font-size: 15.25px; font-weight: var(--w-reg); }
.mrow .st { font-size: 15px; font-weight: var(--w-reg); }
.mrow .sc .l, .srow .v.lo, .srow .lb, .rev .who, .rev .tm, .mh .lg, .mh .htl, .sbox input, .seg a, .chips[role="tablist"] .chip,
.chip, .fchip, .livechip, .db-mid small, .foot, .lrow .nm small, .pr .nm small, .tfx .o small, .lr .nm small { font-weight: var(--w-reg); }
.lrow .nm b, .pr .nm b, .crow, .tbl td.tn span, .tfx .o .t, .ev .s b { font-weight: var(--w-mid); }
.tfx .o .t { font-size: 16px; }
.rev { font-size: 16px; }
.srow .lb { font-size: 15px; }

/* 0.3.1 — tighter two-line match rows (Sofascore-like spacing), half-time under the status, "Öne çıkan" tag */
.mrow { min-height: 0; padding-top: 7px; padding-bottom: 7px; gap: 10px; }
.mrow .stc { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; }
.mrow .stc .ht { font-size: 11.5px; font-weight: var(--w-reg); color: var(--sub); white-space: nowrap; text-align: center; }
.mrow .tm, .mrow .sc { gap: 3px; }
.mrow .t, .mrow .sc > span { line-height: 21px; }
.mrow .t img { width: 18px; height: 18px; }
.sect .ftag { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 4px;
  padding: 1px 5px; margin-left: 4px; vertical-align: 2px; white-space: nowrap; letter-spacing: .02em; text-transform: uppercase; }

/* 0.4.0 — match tabs: Aralarındaki summary, Sakat & Cezalı */
.h2s { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 14px 8px; text-align: center; }
.h2s .h2t { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.h2s .h2t img { width: 32px; height: 32px; object-fit: contain; }
.h2s .h2t b { font-size: 26px; font-weight: 700; line-height: 1; }
.h2s .h2t small { font-size: 13px; color: var(--sub); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcat { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sub); padding: 12px 12px 4px; }
.lr.mis { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 9px 12px; color: inherit; }
.lr.mis .nm { font-weight: var(--w-mid); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr.mis .rs { font-size: 13px; color: var(--sub); text-align: right; }
.lr.mis .tag { font-style: normal; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 2px 6px; letter-spacing: .03em; }
.tag.x { background: var(--accent); color: #fff; } .tag.q { background: #E8890C; color: #fff; } .tag.k { background: transparent; color: #E8890C; border: 1px solid #E8890C; }
.h2s .h2t .h2sp { width: 32px; height: 32px; }
.tfx .d small.yr { color: var(--text); font-weight: var(--w-mid); }

/* 0.4.1 — easier to read at a glance: status (MS, minute, time) and the winning team in bold */
.mrow .st { font-weight: 700; }
.mrow .t.w { font-weight: 700; }
.mrow .t.l { color: var(--sub); }

/* 0.4.2 — one step heavier everywhere: iPhone draws Source Sans 3 thinner than a desktop browser, light text was hard to read */
:root, :root[data-theme="light"] { --w-reg: 450; --w-mid: 580; }
:root[data-theme="dark"] { --w-reg: 430; --w-mid: 560; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --w-reg: 430; --w-mid: 560; } }

/* 0.5.0 — Oyuncular, Sezon, Tahmin & Oranlar, Detaylı İstatistik */
.sbh { display: grid; grid-template-columns: 22px 1fr 1fr 22px; align-items: center; gap: 8px; padding: 10px 2px 6px; font-weight: var(--w-mid); font-size: 14px; }
.sbh img { width: 22px; height: 22px; object-fit: contain; } .sbh .r { text-align: right; }
.motm { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; color: inherit; }
.motm .ph { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--field); }
.motm .who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.motm .who b { font-size: 19px; font-weight: 700; } .motm .who small { display: flex; align-items: center; gap: 6px; color: var(--sub); font-size: 14px; }
.motm .who small img { width: 18px; height: 18px; object-fit: contain; }
.motm .big { color: #fff; font-size: 24px; font-weight: 800; border-radius: 10px; padding: 8px 12px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.tile { background: var(--field); border-radius: 10px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.tile b { font-size: 20px; font-weight: 700; } .tile span { font-size: 12px; color: var(--sub); }
.lr.ld { display: grid; grid-template-columns: auto 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; color: inherit; }
.card > .lr.ld:not(:has(.rk)) { grid-template-columns: 22px minmax(0, 1fr) auto; }
.lr.ld img { width: 22px; height: 22px; object-fit: contain; }
.lr.ld .nm { display: flex; flex-direction: column; min-width: 0; font-weight: var(--w-mid); } .lr.ld .nm small { font-size: 12.5px; color: var(--sub); font-weight: var(--w-reg); }
.lr.ld .rk { width: 18px; text-align: center; font-weight: 700; color: var(--sub); } .lr.ld .vv { font-size: 18px; font-weight: 700; }
.lgrid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.lc h4 { margin: 0; padding: 10px 12px 4px; font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--sub); }
.rtg { color: #fff; font-size: 13px; font-weight: 700; border-radius: 5px; padding: 2px 6px; }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 !important; }
.ptbl { min-width: 560px; } .ptbl td, .ptbl th { white-space: nowrap; }
.ptbl td.tn, .ptbl th.tn { position: sticky; left: 0; background: var(--card, var(--bg)); z-index: 1; max-width: 150px; }
.ptbl td.tn a { display: flex; align-items: center; gap: 8px; color: inherit; overflow: hidden; } .ptbl td.tn span { overflow: hidden; text-overflow: ellipsis; }
.ptbl .no { font-style: normal; color: var(--sub); width: 20px; text-align: right; flex: none; } .ptbl small { color: var(--sub); }
.ogrid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.oc h4 { margin: 0 0 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--sub); }
.oc { padding: 12px; } .oc .ob { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; }
.oc .ob > div { background: var(--field); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.oc .ob span { font-size: 12.5px; color: var(--sub); } .oc .ob b { font-size: 18px; font-weight: 700; } .oc .ob .susp { opacity: .45; }
.ldot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; }

/* 0.5.1 — team page: SIRALAMALAR, İstatistik, Eksikler */
.seg.seg5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.seg.seg5 a { font-size: 15px; }
.rev.cat { border-left: 3px solid var(--cat); padding-left: 10px; color: inherit; }
.tile small { font-size: 11.5px; color: var(--sub); }
.fstrip { display: flex; gap: 6px; padding: 12px; flex-wrap: wrap; }

/* 0.5.5 — half-time score as large as MS and in the text colour (grey was hard to read); MS stays grey */
.mrow { grid-template-columns: 60px minmax(0, 1fr) auto; }
.mrow .stc .ht { font-size: 15px; font-weight: var(--w-mid); color: var(--text); letter-spacing: -.01em; }
.mh .htl.iy { color: var(--text); font-weight: var(--w-mid); }

/* 0.5.7 — season picker on league pages */
.ssel { font: inherit; font-size: 14px; font-weight: var(--w-mid); color: var(--text); background: var(--field); border: 0; border-radius: 8px; padding: 4px 8px; margin-left: 2px; max-width: 100%; }
.ssel.past { background: #3A424B; color: #fff; }
:root[data-theme="dark"] .ssel.past { background: #5A636E; color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ssel.past { background: #5A636E; color: #fff; } }
/* 0.5.8 — season context bar (past season research) */
.ctxbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 8px 0; padding: 8px 12px; border-radius: 10px; background: #3A424B; color: #fff; font-size: 14px; font-weight: 700; }
.ctxbar a { color: #fff; font-weight: var(--w-mid); text-decoration: underline; }

/* 0.6.0: "Tarihe git" chip (native date wheel under it), BUGÜN on the date bar, search inside the day's list, year row in the calendar */
.dchip { margin-left: 0 !important; position: relative; overflow: hidden; padding: 0 12px; }
.dchip input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; margin: 0; font-size: 16px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.frow .fchip:last-child { margin-left: auto; }
.datebar.wt { grid-template-columns: 48px minmax(0, 1fr) auto 48px; }
.db-today { height: 30px; padding: 0 10px; border-radius: 15px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: var(--text); background: var(--bg); border: var(--hair) solid var(--line); }
.dqbox { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; margin: 8px 0 4px; border-radius: 10px; border: var(--hair) solid var(--line); background: var(--bg); }
.dqbox svg { width: 17px; height: 17px; color: var(--sub); flex: none; }
.dq { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; }
.dq::placeholder { color: var(--sub); }
#list [hidden] { display: none !important; }
.cal-y { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; padding: 2px 8px 0; text-align: center; font-size: 15px; color: var(--muted); }
.cal-y .iconbtn { background: transparent; }
@media (max-width: 380px) { .livechip, .fchip { padding: 0 11px; } .datebar.wt .db-mid { font-size: 16px; gap: 6px; } .datebar.wt .db-mid small { font-size: 14px; } }

/* 0.6.1: KADRO pitch (both teams, vertical) + compact score while scrolling */
.mstick { position: sticky; top: 56px; z-index: 4; background: var(--bg); }
.mstick .chips { margin-top: 0 !important; }
.mini { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 12px; color: var(--text); border-bottom: var(--hair) solid var(--line); font-size: 15px; }
.mini[hidden] { display: none; }
.mini img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.mini span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34%; font-weight: var(--w-mid, 600); }
.mini .mh1 { text-align: right; }
.mini b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini small { font-size: 12px; color: var(--sub); font-weight: 700; white-space: nowrap; }
.mini small.live { color: var(--accent); }
.pt-team { display: flex; align-items: center; gap: 8px; padding: 10px 2px; font-size: 15px; }
.pt-team img { width: 24px; height: 24px; object-fit: contain; }
.pt-team b { font-weight: 700; }
.pt-team span { font-weight: 700; color: var(--sub); }
.pt-team small { margin-left: auto; color: var(--sub); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pitch { position: relative; height: calc(100svh - 160px); min-height: 660px; max-height: 1000px; border-radius: 12px; overflow: hidden;
  background: repeating-linear-gradient(180deg, #2F6E43 0 10%, #2A663D 10% 20%); border: 2px solid rgba(255,255,255,.35); }
.pitch > i { position: absolute; border: 2px solid rgba(255,255,255,.35); pointer-events: none; }
.pl-mid { left: 0; right: 0; top: 50%; height: 0; border-width: 2px 0 0 !important; }
.pl-circ { left: 50%; top: 50%; width: 26%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.pl-box { left: 22%; right: 22%; height: 13%; }
.pl-box.t { top: -2px; } .pl-box.b { bottom: -2px; }
.pl-six { left: 37%; right: 37%; height: 5%; }
.pl-six.t { top: -2px; } .pl-six.b { bottom: -2px; }
.pm { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; width: 23%; color: #fff; text-decoration: none; z-index: 1; }
.pph { position: relative; width: 38px; height: 38px; border-radius: 50%; background: #E9ECEF; border: 2px solid rgba(255,255,255,.85); }
.pph img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pph i { position: absolute; display: flex; align-items: center; font-style: normal; }
.pc { left: -7px; top: -4px; }
.pg { right: -9px; top: -5px; background: #fff; border-radius: 9px; padding: 1px 2px; color: #111; gap: 1px; }
.pg b { font-size: 10px; font-weight: 800; }
.po { left: -8px; bottom: -2px; background: #fff; border-radius: 50%; width: 15px; height: 15px; justify-content: center; }
.po svg { width: 9px; height: 11px; }
.pr8 { left: 50%; bottom: -9px; transform: translateX(-50%); padding: 0 4px; border-radius: 4px; font-size: 11px; font-weight: 800; color: #fff; line-height: 15px; }
.pm .nm { margin-top: 5px; max-width: 100%; font-size: 12px; font-weight: 700; line-height: 1.15; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.pm .nm em { font-style: normal; opacity: .75; font-weight: 600; }
@media (min-width: 600px) { .pph { width: 52px; height: 52px; } .pm .nm { font-size: 14px; } }

/* 0.6.3: Sportmonks numbers are marked red (same rule as the desktop buttons) */
.smtag { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 1px; padding: 2px 5px; border-radius: 4px; background: var(--brand); color: #fff; margin-left: 6px; }
.sect.smsrc { color: var(--brand); }
.card.smcard { box-shadow: inset 0 0 0 2px var(--brand); }

/* 0.6.4: under the pitch — team average rating, coach, came on, bench */
.pt-avg { font-style: normal; font-size: 12px; font-weight: 800; color: #fff; padding: 1px 5px; border-radius: 4px; }
.bnchips { margin-top: 14px; }
.pr.bn { grid-template-columns: 34px 40px minmax(0, 1fr) auto; }
.pr.bn .ph { width: 40px; height: 40px; }
.pr.coach { grid-template-columns: 40px minmax(0, 1fr); }
.pr .nm small .in { font-style: normal; display: inline-flex; align-items: center; gap: 2px; color: #1E8E4B; font-weight: 700; margin-right: 4px; }

/* 0.6.7: why the Sportmonks box is missing */
.foot.smwhy { color: var(--brand); margin: 10px 4px; font-size: 13px; }

/* 0.6.8: goal cancelled by VAR */
.ev .gx { text-decoration: line-through; color: var(--sub); }
.ev .gxt { color: var(--brand); font-weight: 700; }

/* 0.6.8: qualification / relegation stripes + key */
.tbl tr[data-z] td.rk { box-shadow: inset 4px 0 0 var(--zc); }
.zleg { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 4px 12px; font-size: 12px; color: var(--sub); }
.zleg span { display: inline-flex; align-items: center; gap: 5px; }
.zleg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* 0.6.8: half picker on İstatistik */
.hchips { margin: 0; padding: 6px 0 8px; border-bottom: var(--hair) solid var(--line); }
#hpick:empty { display: none; }

/* 0.6.8: coach links */
.clink { color: var(--brand) !important; }
.lu-h a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); }
.tile .fdots { display: flex; gap: 4px; }
.tile .fdots i { width: 12px; height: 12px; }

/* 0.7.6: live chip left of the logo with the word Canlı; header scorers are links */
.top { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.top .lead { gap: 2px; min-width: 0; }
.top .lead .back { width: 34px; min-width: 34px; }
.livemini { height: 28px; padding: 0 8px; gap: 4px; font-size: 12.5px; white-space: nowrap; flex-shrink: 0; }
.livemini .dot { width: 6px; height: 6px; }
.livemini b { font-weight: 800; }
.scorers a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.sect.carry { color: var(--brand); }

/* 0.7.9: coach name check warning */
.cwarn { background: #FDECEA; border: 1px solid #E03A2F; color: #B3261E; border-radius: 10px; padding: 8px 12px; font-size: 13px; line-height: 1.35; margin: 0 0 10px; }

/* 0.8.8: live table */
.tbl .lvx { display: inline-flex; gap: 3px; align-items: baseline; margin-left: 6px; font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted, #6b7280); white-space: nowrap; }
.tbl .lvx i { font-style: normal; font-weight: 600; opacity: .8; }
.tbl .lvx.on { color: #E03A2F; }
.tbl .lvx.r-G:not(.on) { color: #2e9e5b; } .tbl .lvx.r-M:not(.on) { color: #d43c32; }
.tbl .mv { font-style: normal; font-size: 9px; font-weight: 800; margin-left: 2px; } .tbl .mv.up { color: #2e9e5b; } .tbl .mv.dn { color: #d43c32; }
.lvnote { font-size: 12px; color: var(--muted, #6b7280); margin: 6px 4px; } .lvnote b { background: #E03A2F; color: #fff; border-radius: 4px; padding: 1px 5px; font-size: 10px; letter-spacing: .5px; margin-right: 4px; }

/* 0.8.9: six team tabs (Puan added) */
.seg.seg6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.seg.seg6 a { font-size: 13.5px; padding: 0 2px; white-space: nowrap; }
