/* =====================================================================
   Tribün — iOS tasarım dili (Apple Human Interface Guidelines'tan esinlenme)
   Açık tema varsayılan; [data-theme="dark"] koyu tema.
   Renk: iOS sistem renkleri + uygulama vurgusu (tint) = tuttuğun takımın rengi (JS --accent).
   Tip ölçeği (pt): Large Title 34 · Title2 22 · Title3 20 · Headline/Body 17 · Subhead 15 · Footnote 13 · Caption 12/11
   WebView performansı: backdrop-filter / blur ve sonsuz animasyon YOK; çubuklar yarı saydam düz renk.
   ===================================================================== */

:root {
  color-scheme: light;
  --bg: #F2F2F7;             /* systemGroupedBackground */
  --surface: #FFFFFF;        /* secondarySystemGroupedBackground */
  --surface-2: #F2F2F7;      /* kart içi ikinci yüzey */
  --fill: rgba(118, 118, 128, .12);   /* tertiarySystemFill: segment yuvası, çip */
  --fill-2: rgba(118, 118, 128, .2);
  --line: rgba(60, 60, 67, .2);       /* separator */
  --text: #000000;
  --muted: rgba(60, 60, 67, .6);      /* secondaryLabel */
  --faint: rgba(60, 60, 67, .3);      /* tertiaryLabel */
  --tab-off: #8E8E93;
  --bar: rgba(249, 249, 249, .96);
  --seg-on: #FFFFFF;
  --seg-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04);
  --card-shadow: none;
  --live: #FF3B30;
  --win: #34C759;
  --loss: #FF3B30;
  --draw: #8E8E93;
  --yc: #FFCC00;
  --gold: #C9A227;
  --blue: #007AFF;
  --accent: #007AFF;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(0, 122, 255, .12);
  --r: 12px;
  --r-lg: 16px;
  --nav-h: 50px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #1C1C1E;
  --surface-2: #2C2C2E;
  --fill: rgba(118, 118, 128, .24);
  --fill-2: rgba(118, 118, 128, .36);
  --line: rgba(84, 84, 88, .65);
  --text: #FFFFFF;
  --muted: rgba(235, 235, 245, .6);
  --faint: rgba(235, 235, 245, .3);
  --tab-off: #8E8E93;
  --bar: rgba(22, 22, 23, .96);
  --seg-on: #636366;
  --seg-shadow: 0 3px 8px rgba(0, 0, 0, .3);
  --live: #FF453A;
  --win: #30D158;
  --loss: #FF453A;
  --draw: #8E8E93;
  --yc: #FFD60A;
  --blue: #0A84FF;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.35 var(--font); -webkit-font-smoothing: antialiased; letter-spacing: -.01em; }
body { min-height: 100dvh; -webkit-tap-highlight-color: transparent; }
#view { max-width: 600px; margin: 0 auto; min-height: 100dvh; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 24px); outline: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; letter-spacing: inherit; }
h1, h2, h3, h4, p { margin: 0; }
.ic { flex: none; display: block; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; }
.gap { gap: 10px; flex-wrap: wrap; justify-content: center; }
.pad { padding: 56px 24px; }
.pad-x { padding: 0 20px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 99; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.num, .big, .mr-score, .standings td, .fm, .k-v, .b-pts { font-variant-numeric: tabular-nums; }

/* ---------- büyük başlık + kayan küçük başlık ---------- */
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: calc(16px + var(--safe-t)) 20px 12px; }
.tb-l { min-width: 0; }
.cap { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); margin-bottom: 2px; }
.lt { font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: .01em; }
.tb-r { padding-bottom: 4px; }
.team-chip { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 .5px var(--line); }

.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: calc(44px + var(--safe-t)); padding-top: var(--safe-t); display: flex; align-items: center; justify-content: center;
  background: var(--bar); box-shadow: 0 .5px 0 var(--line); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.navbar.show { opacity: 1; }
.navbar span { font-size: 17px; font-weight: 600; }

/* ---------- sekme çubuğu ---------- */
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; background: var(--bar); box-shadow: 0 -.5px 0 var(--line); padding-bottom: var(--safe-b); }
.bottomnav a { flex: 1; max-width: 120px; height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--tab-off); font-size: 10.5px; font-weight: 500; letter-spacing: 0; }
.bottomnav a .ic { width: 25px; height: 25px; }
.bottomnav a.on { color: var(--accent); }
.bottomnav a.on .ic { stroke-width: 2.3; }

/* ---------- düğmeler ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: var(--r); background: var(--fill); color: var(--accent); font-size: 17px; font-weight: 600; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.block { width: 100%; min-height: 50px; }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 15px; border-radius: 999px; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn:active:not(:disabled) { opacity: .7; }
.iconbtn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); color: #fff; }
.iconbtn .ic { width: 20px; height: 20px; stroke-width: 2.4; }
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; background: var(--fill); font-weight: 600; font-size: 13px; }
.pill { padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: 12px; }
.linkbtn { color: var(--accent); font-weight: 500; font-size: 15px; margin-top: 6px; min-height: 36px; }

/* ---------- segment seçici (iOS) ---------- */
.seg { display: flex; gap: 0; margin: 0 16px 14px; padding: 2px; border-radius: 9px; background: var(--fill); overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1 0 auto; min-height: 32px; padding: 0 10px; border-radius: 7px; color: var(--text); font-weight: 500; font-size: 13px; position: relative; }
.seg button + button::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--fill-2); }
.seg button[aria-selected="true"] { background: var(--seg-on); box-shadow: var(--seg-shadow); font-weight: 600; }
.seg button[aria-selected="true"]::before, .seg button[aria-selected="true"] + button::before { display: none; }
.seg.sm { margin: 0 16px 12px; }
.seg.in-list { margin: 0; }
.pad-row { padding: 10px 12px; }

/* ---------- bölümler ve gruplu listeler ---------- */
.block { margin-top: 22px; }
.sec { display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 700; letter-spacing: .01em; color: var(--text); padding: 0 20px 8px; }
.sec .ic { color: var(--accent); width: 18px; height: 18px; }
.sec-foot { font-size: 13px; color: var(--muted); padding: 6px 32px 0; }
.lg-dot { width: 9px; height: 9px; border-radius: 3px; background: #E30A17; }
.list { margin: 0 16px; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--card-shadow); }

/* ---------- öne çıkan maç kartı (Apple Sports benzeri skor kartı) ---------- */
.featured { display: block; margin: 4px 16px 6px; padding: 14px 16px 18px; border-radius: var(--r-lg); color: #fff; }
.fc-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: rgba(255, 255, 255, .8); margin-bottom: 12px; }
.fc-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.fc-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 15px; }
.fc-team b { font-weight: 600; line-height: 1.15; }
.fc-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 112px; }
.fc-score { font-size: 40px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fc-score i, .big i { font-style: normal; opacity: .55; margin: 0 6px; }
.fc-time { font-size: 32px; font-weight: 700; letter-spacing: -.01em; }
.fc-sub { font-size: 13px; color: rgba(255, 255, 255, .85); text-align: center; }
.fc-sub.live { color: #fff; background: var(--live); padding: 2px 9px; border-radius: 999px; font-weight: 700; }

/* ---------- hafta şeridi ---------- */
.daystrip { display: flex; justify-content: space-between; gap: 2px; overflow-x: auto; padding: 14px 12px 4px; scrollbar-width: none; }
.daystrip::-webkit-scrollbar { display: none; }
.daystrip a { flex: 1 0 42px; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; min-height: 64px; color: var(--text); }
.ds-d { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--muted); letter-spacing: .02em; }
.ds-n { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: 19px; font-weight: 500; font-variant-numeric: tabular-nums; }
.daystrip a.today .ds-n { color: var(--accent); font-weight: 700; }
.daystrip a.on .ds-n { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.daystrip a i { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.daystrip a.has i { background: var(--faint); }
.daystrip a:not(.has) .ds-n { color: var(--faint); }
.daystrip a.on:not(.has) .ds-n { color: var(--accent-ink); }

/* ---------- maç satırı ---------- */
.mrow { display: grid; grid-template-columns: 52px 1fr; align-items: center; min-height: 72px; padding: 10px 16px 10px 8px; position: relative; }
.mrow + .mrow::after { content: ""; position: absolute; top: 0; left: 60px; right: 0; height: .5px; background: var(--line); }
.mrow:active { background: var(--fill); }
.mrow.live::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--live); }
.mr-status { text-align: center; font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.mr-status small { display: block; font-size: 11px; font-weight: 500; color: var(--faint); margin-top: 2px; }
.mr-status.live { color: var(--live); font-weight: 700; }
.mr-status.off { color: var(--loss); }
.mr-teams { display: grid; grid-template-columns: 1fr auto; row-gap: 7px; column-gap: 10px; align-items: center; }
.mr-team { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 16px; }
.mr-team.win .mr-name, .mr-score.win { font-weight: 600; }
.mr-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-fav { color: var(--accent); }
.mr-score { font-size: 17px; font-weight: 500; min-width: 18px; text-align: right; }
.mrow.live .mr-score { color: var(--live); font-weight: 700; }
.mrow.ft .mr-score:not(.win) { color: var(--muted); }

.empty { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; color: var(--muted); padding: 44px 24px; }
.empty b { color: var(--text); }
.empty .ic { color: var(--faint); }
.foot-note { text-align: center; color: var(--muted); font-size: 12px; margin: 22px 0 0; }
.foot-note b { color: var(--yc); font-weight: 600; }

/* ---------- ilk açılış ---------- */
.welcome { min-height: 100dvh; display: flex; flex-direction: column; transition: background .3s ease; }
.w-head { padding: calc(28px + var(--safe-t)) 20px 16px; display: flex; flex-direction: column; gap: 8px; }
.w-head h1 { font-size: 34px; line-height: 1.12; font-weight: 700; }
.w-head p { color: var(--muted); font-size: 17px; }
.w-head .iconbtn { background: var(--fill); color: var(--accent); margin-bottom: 6px; }
.w-step { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.w-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 6px 16px 160px; align-content: start; }
.w-team { position: relative; min-height: 108px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px 6px; border-radius: 14px; background: var(--surface); text-align: center; box-shadow: 0 0 0 .5px var(--line); }
.w-team.on { box-shadow: 0 0 0 2.5px var(--ring); }
.w-team.locked { opacity: .55; cursor: default; }
.w-name { font-size: 13px; font-weight: 500; line-height: 1.2; }
.w-check { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.w-tag { position: absolute; top: 7px; right: 7px; font-size: 10.5px; font-weight: 600; padding: 2px 6px; border-radius: 6px; background: var(--fill); }
.w-foot { position: fixed; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding: 16px 20px calc(16px + var(--safe-b)); background: var(--bar); box-shadow: 0 -.5px 0 var(--line); max-width: 600px; margin: 0 auto; }

/* ---------- maç / takım başlığı (takım rengi, beyaz yazı — iki temada da aynı) ---------- */
.m-hero, .t-hero { padding: calc(10px + var(--safe-t)) 16px 20px; color: #fff; }
.m-bar { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; }
.date-chip { justify-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-weight: 600; font-size: 13px; }
.m-league { text-align: center; margin: 16px 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.m-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 6px; }
.m-team { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px; padding-top: 4px; }
.m-team b { font-size: 16px; font-weight: 700; line-height: 1.15; }
.m-team small { color: rgba(255, 255, 255, .72); font-size: 12px; }
.m-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 8px; min-width: 124px; }
.big { font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.big.ko { font-size: 38px; }
.ht { font-size: 13px; color: rgba(255, 255, 255, .78); }
.st-pill { white-space: nowrap; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-weight: 700; font-size: 12px; letter-spacing: .04em; }
.st-pill.live { background: var(--live); color: #fff; }
.st-pill.soft { font-weight: 600; letter-spacing: 0; }
.m-scorers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.m-scorers ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: rgba(255, 255, 255, .92); }
.m-scorers li { display: flex; align-items: center; gap: 6px; }
.m-scorers .r li { flex-direction: row-reverse; text-align: right; }
.m-ref { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .75); }

/* ---------- maç sekmeleri: yapışkan iOS segment seçici ---------- */
.tabs { position: sticky; top: 0; z-index: 10; display: flex; padding: 10px 16px; background: var(--bg); }
.tabs::before { content: ""; position: absolute; inset: 10px 16px; border-radius: 9px; background: var(--fill); }
.tabs button { flex: 1 1 0; min-width: 0; min-height: 32px; padding: 0 4px; margin: 2px 0; border-radius: 7px; color: var(--text); font-weight: 500; font-size: 13px; position: relative; z-index: 1; white-space: nowrap; }
.tabs button:first-child { margin-left: 2px; }
.tabs button:last-child { margin-right: 2px; }
.tabs button[aria-selected="true"] { background: var(--seg-on); box-shadow: var(--seg-shadow); font-weight: 600; }
.tabpanel { padding: 4px 16px 28px; display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--surface); border-radius: var(--r); padding: 16px; box-shadow: var(--card-shadow); }
.card h3, .sec-h { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.sec-h { margin: 6px 4px -4px; font-size: 20px; font-weight: 700; }

/* istatistik */
.stat { padding: 7px 0; }
.stat-top { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; font-size: 15px; }
.stat-top span { text-align: center; color: var(--muted); font-size: 13px; }
.stat-top b { font-weight: 500; }
.stat-top b:last-child { text-align: right; }
.stat-top b.lead { font-weight: 700; }
.bar { display: flex; gap: 3px; margin-top: 6px; height: 6px; }
.bar i { display: block; height: 100%; border-radius: 3px; min-width: 3px; }
.bar i.h { background: var(--acc-h); }
.bar i.a { background: var(--acc-a); }

/* önemli anlar */
.keylist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.keylist li { display: grid; grid-template-columns: 46px 22px 1fr auto; align-items: center; gap: 8px; padding: 10px 4px 10px 10px; position: relative; }
.keylist li + li::after { content: ""; position: absolute; top: 0; left: 10px; right: 0; height: .5px; background: var(--line); }
.keylist .km { font-weight: 600; color: var(--muted); font-size: 13px; }
.keylist .kt { display: flex; flex-direction: column; }
.keylist .kt b { font-weight: 600; }
.keylist .kt small { color: var(--muted); font-size: 13px; }
.keylist .ks { font-weight: 700; }
.keylist li.h::before, .keylist li.a::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--acc-h); }
.keylist li.a::before { background: var(--acc-a); }

/* olaylar */
.timeline { padding: 18px 18px 12px; }
.tl-track { position: relative; height: 26px; }
.tl-m { position: absolute; top: 4px; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: 0 0 0 1.5px var(--acc-h); }
.tl-track.a .tl-m { box-shadow: 0 0 0 1.5px var(--acc-a); top: 0; }
.tl-axis { position: relative; height: 18px; border-top: 2px solid var(--fill-2); margin-top: 2px; }
.tl-axis i { position: absolute; top: 2px; transform: translateX(-50%); font-style: normal; font-size: 11px; color: var(--muted); }
.tl-axis i:first-child { transform: none; }
.tl-axis i:last-child { transform: translateX(-100%); }
.tl-legend { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.tl-legend span { display: flex; align-items: center; gap: 6px; }
.evlist { display: flex; flex-direction: column; gap: 10px; }
.ev { background: var(--surface); border-radius: var(--r); padding: 13px 16px; position: relative; overflow: hidden; }
.ev::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--acc-h); }
.ev.a::before { background: var(--acc-a); }
.ev header { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.ev header b { font-weight: 700; color: var(--text); }
.ev header b.yc { color: #B38600; }
[data-theme="dark"] .ev header b.yc { color: var(--yc); }
.ev header b.rc { color: var(--loss); }
.ev header .min { margin-left: auto; font-weight: 600; letter-spacing: 0; font-size: 13px; }
.ev-main { font-size: 17px; font-weight: 600; margin-top: 8px; }
.ev-main small { color: var(--muted); font-weight: 500; font-size: 13px; }
.ev-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.sub-row { display: grid; grid-template-columns: 20px 52px 1fr; align-items: center; gap: 6px; margin-top: 8px; font-weight: 500; }
.sub-row small { font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.sub-row.in .ic { color: var(--win); }
.sub-row.out .ic { color: var(--loss); }

/* anlatım */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0; scrollbar-width: none; }
.chips button { flex: none; min-height: 34px; padding: 0 15px; border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 500; font-size: 15px; }
.chips button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.feed { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--r); overflow: hidden; }
.fd { display: grid; grid-template-columns: 52px 22px 1fr auto; align-items: center; gap: 10px; padding: 11px 14px 11px 10px; position: relative; }
.fd + .fd::after, .fd-sep + .fd::after { content: ""; position: absolute; top: 0; left: 62px; right: 0; height: .5px; background: var(--line); }
.fm { justify-self: start; padding: 3px 7px; border-radius: 6px; background: var(--fill); font-weight: 600; font-size: 12px; }
.ft { font-size: 15px; }
.fd.goal { background: var(--accent-soft); }
.fd.goal .fm { background: var(--live); color: #fff; }
.fs { background: var(--live); color: #fff; font-weight: 700; padding: 3px 9px; border-radius: 7px; font-size: 14px; }
.fd-sep { list-style: none; text-align: center; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 14px; background: var(--surface-2); }
.fd-sep.strong { color: var(--text); }

/* kadro (saha iki temada da yeşil) */
.lu-state { display: flex; align-items: center; gap: 8px; font-weight: 600; padding: 0 4px; }
.pitch-card { border-radius: var(--r); overflow: hidden; background: #1E6B3A; color: #fff; }
.lu-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #175A30; }
.lu-head > span:not(.chip) { display: flex; flex-direction: column; flex: 1; }
.lu-head small { color: rgba(255, 255, 255, .7); }
.lu-head .chip { background: rgba(255, 255, 255, .2); color: #fff; }
.pitch { position: relative; background: repeating-linear-gradient(180deg, #2A8048 0 44px, #267443 44px 88px); padding: 10px 4px; }
.half { display: flex; flex-direction: column; gap: 10px; padding: 6px 0; }
.prow { display: flex; justify-content: space-around; gap: 2px; }
.pl { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 25%; max-width: 92px; text-align: center; }
.pl-no { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; border: 2px solid; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.pl-n { font-size: 11.5px; line-height: 1.15; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.midline { height: 2px; background: rgba(255, 255, 255, .35); margin: 6px 0; position: relative; }
.midline::after { content: ""; position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; border: 2px solid rgba(255, 255, 255, .28); border-radius: 50%; transform: translate(-50%, -50%); }
.subs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.subs h4 { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.subs ul { list-style: none; margin: 0; padding: 0; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.subs .no { display: inline-block; width: 26px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* bilgi */
.kv { margin: 0; display: flex; flex-direction: column; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; position: relative; }
.kv > div + div::before { content: ""; position: absolute; top: 0; left: 28px; right: 0; height: .5px; background: var(--line); }
.kv dt { display: flex; align-items: center; gap: 10px; color: var(--text); }
.kv dt .ic { color: var(--muted); }
.kv dd { margin: 0; color: var(--muted); text-align: right; }
.card .small { margin-top: 8px; }
.h2h-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; }
.h2h-boxes div { display: flex; flex-direction: column; align-items: center; padding: 12px 4px; border-radius: 10px; background: var(--surface-2); }
.h2h-boxes b { font-size: 28px; font-weight: 700; }
.h2h-boxes span { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.h2h-list { list-style: none; margin: 10px 0 0; padding: 0; }
.h2h-list li { display: grid; grid-template-columns: 26px 84px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-top: .5px solid var(--line); font-size: 14px; }
.h2h-list .d { color: var(--muted); }
.h2h-list .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form { display: inline-flex; gap: 5px; }
.fc { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-size: 12px; font-weight: 700; color: #fff; }
.form.lg .fc { width: 34px; height: 34px; font-size: 15px; border-radius: 9px; }
.fc-G { background: var(--win); }
.fc-B { background: var(--draw); }
.fc-M { background: var(--loss); }
.form-row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 4px 10px; padding: 9px 0; border-top: .5px solid var(--line); }
.form-row:first-of-type { border-top: 0; }
.form-row small { grid-column: 2 / 4; color: var(--muted); }

/* ---------- puan durumu ---------- */
.table-wrap { margin: 0 16px; background: var(--surface); border-radius: var(--r); overflow: hidden; }
.standings { width: 100%; border-collapse: collapse; font-size: 15px; }
.standings th { font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 4px 8px; text-align: center; }
.standings td { padding: 0 4px; height: 46px; text-align: center; border-top: .5px solid var(--line); }
.standings .l { text-align: left; }
.standings td.l a { display: flex; align-items: center; gap: 9px; min-height: 46px; }
.standings td.l span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 124px; }
.standings .fav { color: var(--accent); }
.standings .pts { font-weight: 700; }
.standings .pos { position: relative; font-weight: 600; width: 34px; color: var(--muted); }
.standings tr[class*="z-"] .pos::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--zc); }
.standings tr.me td { background: var(--accent-soft); }
.z-ucl { --zc: var(--blue); } .z-uel { --zc: #FF9500; } .z-uecl { --zc: var(--win); } .z-rel { --zc: var(--loss); } .z-other { --zc: var(--draw); }
.legend { list-style: none; margin: 12px 20px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--zc); }

/* ---------- takım ---------- */
.t-id { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 4px; text-align: center; }
.t-id h1 { font-size: 28px; font-weight: 700; }
.t-id p { color: rgba(255, 255, 255, .78); font-size: 15px; }
.t-stats { display: flex; justify-content: center; gap: 8px; margin: 16px 0 14px; }
.t-stats div { min-width: 88px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .16); display: flex; flex-direction: column; align-items: center; }
.t-stats b { font-size: 20px; font-weight: 700; }
.t-stats span { font-size: 11px; color: rgba(255, 255, 255, .78); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.t-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.t-hero .btn { background: rgba(255, 255, 255, .22); color: #fff; min-height: 40px; font-size: 15px; border-radius: 999px; }
.t-hero .btn.primary { background: #fff; color: #000; }
.t-hero .badge { background: rgba(255, 255, 255, .22) !important; color: #fff !important; }
.live-t { color: var(--live) !important; }

/* ---------- ayarlar ---------- */
.srow { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 16px; position: relative; }
.srow + .srow::after { content: ""; position: absolute; top: 0; left: 58px; right: 0; height: .5px; background: var(--line); }
.srow > span:not(.stack) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.srow small { color: var(--muted); font-size: 13px; }
.srow b { font-weight: 400; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow > .ic:first-child { color: var(--accent); }
.srow > .ic:last-child { color: var(--faint); }
.srow .stack { display: flex; }
.srow .stack .crest + .crest { margin-left: -6px; }
.legal { margin: 22px 32px 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.legal.warn { color: #B38600; }

/* ---------- bildirim ---------- */
#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); transform: translate(-50%, 16px); opacity: 0; background: rgba(28, 28, 30, .94); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: .2s; pointer-events: none; z-index: 50; white-space: nowrap; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ======== taraftar özellikleri, krallık, haberler, grafik ======== */

/* maç özeti videosu */
.hl { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.hl img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl-play { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: #000; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.hl-play svg { margin-left: 3px; }
.hl-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .78)); display: flex; flex-direction: column; color: #fff; }
.hl-cap b { font-size: 16px; font-weight: 600; }
.hl-cap small { color: rgba(255, 255, 255, .8); font-size: 13px; }

/* Kim kazanır? */
.fan h3 { margin-bottom: 12px; }
.wv-opts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.wv-btn { min-height: 50px; padding: 6px 8px; border-radius: 10px; background: var(--fill); font-weight: 600; font-size: 14px; line-height: 1.15; }
.wv-btn:hover, .wv-btn:focus-visible { box-shadow: inset 0 0 0 2px var(--acc); }
.wv-btn:disabled { opacity: .5; }
.wv-results { display: flex; flex-direction: column; gap: 11px; }
.wv-res { display: grid; grid-template-columns: 110px 1fr 42px; align-items: center; gap: 10px; font-size: 15px; }
.wv-l { display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wv-res.mine .wv-l { font-weight: 700; }
.wv-res b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.wv-bar { height: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.wv-bar i { display: block; height: 100%; border-radius: 4px; min-width: 2px; }

/* skor tahmini — iOS stepper */
.predict .pr-row { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: 8px; margin-bottom: 16px; }
.pr-team { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 13px; }
.pr-dash { color: var(--muted); font-weight: 700; }
.stepper { display: inline-flex; flex-direction: column; align-items: center; background: var(--fill); border-radius: 12px; overflow: hidden; }
.stepper button { width: 50px; height: 34px; font-size: 22px; font-weight: 500; color: var(--accent); }
.stepper button:active { background: var(--fill-2); }
.stepper output { font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; padding: 2px 0; }
.stepper.sm { flex-direction: row; border-radius: 9px; }
.stepper.sm button { width: 34px; height: 34px; font-size: 20px; }
.stepper.sm output { font-size: 19px; min-width: 20px; text-align: center; }
.pr-done { text-align: center; }
.pr-done .pr-big { font-size: 36px; font-weight: 700; }
.pr-done.gold { box-shadow: inset 0 0 0 2px var(--gold); }

/* maçın adamı */
.pc-h { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin: 14px 0 8px; color: var(--muted); }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 5px; border-radius: 999px; background: var(--fill); font-size: 14px; font-weight: 500; }
.pchip i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; }
.pchip:disabled { opacity: .5; }
.motm-res { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.motm-res li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 9px 0; border-top: .5px solid var(--line); }
.motm-res li:first-child { border-top: 0; }
.motm-res li.mine { color: var(--accent); font-weight: 600; }
.mr-i { color: var(--muted); font-weight: 600; }

/* reytingler */
.potm { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; background: var(--surface-2); margin-bottom: 12px; }
.potm .ic { color: #FF9500; }
.potm span:not(.rt) { flex: 1; display: flex; flex-direction: column; }
.potm small { color: var(--muted); font-size: 12px; }
.potm b { font-weight: 600; }
.rt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.rt-list li { display: grid; grid-template-columns: 38px 1fr 16px; align-items: center; gap: 6px; }
.rt-list li span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt { display: inline-grid; place-items: center; min-width: 36px; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--draw); color: #fff; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.rt.mid { background: var(--win); }
.rt.hi { background: var(--blue); }

/* krallık */
.kings { list-style: none; margin: 0 16px; padding: 0; background: var(--surface); border-radius: var(--r); overflow: hidden; }
.kings li { display: grid; grid-template-columns: 26px 22px 1fr auto; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px; position: relative; }
.kings li + li::after { content: ""; position: absolute; top: 0; left: 54px; right: 0; height: .5px; background: var(--line); }
.kings li.me { background: var(--accent-soft); }
.k-i { color: var(--muted); font-weight: 600; text-align: center; }
.k-n { display: flex; flex-direction: column; min-width: 0; }
.k-n b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-n small { color: var(--muted); font-size: 13px; }
.k-v { font-size: 22px; font-weight: 700; }

/* tahmin ligi */
.me-card { margin: 0 16px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 8px; align-items: center; }
.me-card > div { display: flex; flex-direction: column; min-width: 0; }
.me-card small { color: var(--muted); font-size: 12px; font-weight: 500; }
.me-card b { font-size: 22px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-card > div:first-child b { color: var(--accent); }
.me-card p { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
.me-card .btn { grid-column: 1 / -1; }
.prow2 { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; position: relative; }
.prow2 + .prow2::after { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--line); }
.prow2 .pw { font-size: 13px; color: var(--muted); font-weight: 500; }
.pline { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: 6px; }
.pline .pt:last-child { justify-content: flex-end; }
.pt { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; min-width: 0; }
.prow2 .btn.sm { align-self: stretch; border-radius: 10px; min-height: 38px; }
.prow2 .btn.dirty { background: var(--accent); color: var(--accent-ink); }
.prow2.closed { flex-direction: row; align-items: center; gap: 10px; }
.prow2.closed .sc { font-variant-numeric: tabular-nums; min-width: 34px; text-align: center; font-weight: 600; }
.prow2.closed .pr-r { margin-left: auto; }
.pbadge { padding: 3px 8px; border-radius: 6px; background: var(--fill); font-weight: 600; font-size: 13px; white-space: nowrap; }
.pbadge.p3 { background: var(--gold); color: #fff; }
.pbadge.p1 { background: var(--win); color: #fff; }
.board { list-style: none; margin: 0 16px; padding: 0; background: var(--surface); border-radius: var(--r); overflow: hidden; }
.board li { display: grid; grid-template-columns: 30px 18px 1fr auto 40px; align-items: center; gap: 10px; min-height: 50px; padding: 6px 16px; position: relative; }
.board li + li::after { content: ""; position: absolute; top: 0; left: 56px; right: 0; height: .5px; background: var(--line); }
.board li.mine { background: var(--accent-soft); }
.b-rank { font-weight: 700; color: var(--muted); text-align: center; }
.b-nick { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-ex { color: var(--gold); font-size: 13px; font-weight: 600; }
.b-pts { text-align: right; font-size: 17px; font-weight: 700; }
.empty.small { padding: 28px; }

/* alttan açılan pencere (iOS sheet) */
dialog.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 600px; background: var(--surface); color: var(--text); border-radius: 14px 14px 0 0; }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .4); }
.sheet-in { padding: 10px 20px calc(20px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; }
.sheet-in::before { content: ""; align-self: center; width: 36px; height: 5px; border-radius: 3px; background: var(--fill-2); margin-bottom: 6px; }
.sheet-in h3 { font-size: 20px; font-weight: 700; }
.sheet-in input { min-height: 48px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--fill); color: var(--text); font: inherit; font-size: 17px; }
.sheet-in input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.sheet-err { color: var(--loss); font-size: 13px; min-height: 1em; }
.sheet-in .row { justify-content: flex-end; }
.sheet-in .btn { min-width: 110px; }

/* haberler */
.news { list-style: none; margin: 0; padding: 0; }
.news li { position: relative; }
.news li + li::after { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--line); }
.news a { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; min-height: 56px; }
.news b { font-weight: 600; line-height: 1.3; font-size: 16px; }
.nw-s { color: var(--muted); font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news small { color: var(--faint); font-size: 12px; font-weight: 500; }
.more { display: block; text-align: right; padding: 8px 24px 0; color: var(--accent); font-weight: 500; font-size: 15px; }

/* sıralama grafiği + iç/dış */
.chart-card { margin: 0 16px; padding: 12px 12px 10px; }
.chart { margin: 0; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-ax { fill: var(--muted); font-size: 10px; font-family: var(--font); }
.ch-dl { fill: var(--text); font-size: 11px; font-weight: 700; font-family: var(--font); }
.ch-hit { cursor: pointer; outline: none; }
.ch-hit:focus-visible { stroke: var(--text); stroke-width: 1.5; }
.ch-tip { text-align: center; font-size: 13px; color: var(--muted); margin-top: 4px; }
.splits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 16px; }
.split { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); }
.split small { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.split b { font-size: 22px; font-weight: 700; }
.split span { font-size: 14px; }
.split em { font-style: normal; color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 360px) {
  .bottomnav a { font-size: 10px; }
  .me-card { grid-template-columns: 1fr 1fr; }
  .lt { font-size: 30px; }
}
@media (min-width: 640px) {
  body { background: var(--bg); }
  .bottomnav { max-width: 600px; margin: 0 auto; }
}
