/* SkorTahmin: renkler mobil uygulamadan (mobile/src/theme.ts). Koyu tema cihaza göre ya da Ayarlar'dan
   (html[data-theme]). Dış font ve kütüphane yok. */
:root {
  --accent: #06508c;
  --accent-2: #0a6bb8;
  --accent-ink: #ffffff;
  --accent-soft: #e6f0f9;
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --exact: #16a34a;
  --tendency: #b47f05;
  --miss: #dc2626;
  --live: #dc2626;
  --mow: #b8860b;
  --me: #e6f0f9;
  --gold: #c9b037;
  --silver: #a8a8a8;
  --bronze: #ad8a56;
  --ok-bg: #e7f6ec; --ok-line: #b7e1c4; --ok-ink: #14532d;
  --warn-bg: #fdf3dc; --warn-line: #f0d48f; --warn-ink: #6b4d00;
  --error-bg: #fde8e8; --error-line: #f5b5b5; --error-ink: #7f1d1d;
  --info-bg: #e6f0f9; --info-line: #b9d3ea; --info-ink: #06385f;
  --q-cl: #1d4ed8; --q-el: #ea580c; --q-ecl: #16a34a; --q-up: #16a34a; --q-mid: #ca8a04; --q-down: #dc2626;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --radius: 14px;
  --radius-sm: 9px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tabbar-h: 64px;
  --bar-bg: #06508c;
  --hero: linear-gradient(135deg, #06508c 0%, #0a6bb8 100%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #3d8fd6; --accent-2: #5aa6e6; --accent-ink: #06111f; --accent-soft: #16304d;
    --bg: #0b1220; --surface: #151e2e; --surface-2: #1b2638; --ink: #f3f4f6; --muted: #9ca3af; --line: #263247;
    --miss: #ef4444; --live: #ef4444; --me: #1b3150;
    --ok-bg: #12301f; --ok-line: #1f5134; --ok-ink: #a7f3c4;
    --warn-bg: #33270b; --warn-line: #5c4512; --warn-ink: #fcd98a;
    --error-bg: #3a1414; --error-line: #6b2424; --error-ink: #fecaca;
    --info-bg: #13283f; --info-line: #23466c; --info-ink: #bfdbfe;
    --q-cl: #60a5fa; --q-el: #fb923c; --q-ecl: #4ade80; --q-up: #4ade80; --q-mid: #facc15; --q-down: #f87171;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --bar-bg: #0f2a47; --hero: linear-gradient(135deg, #0f2a47 0%, #16406b 100%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent: #3d8fd6; --accent-2: #5aa6e6; --accent-ink: #06111f; --accent-soft: #16304d;
  --bg: #0b1220; --surface: #151e2e; --surface-2: #1b2638; --ink: #f3f4f6; --muted: #9ca3af; --line: #263247;
  --miss: #ef4444; --live: #ef4444; --me: #1b3150;
  --ok-bg: #12301f; --ok-line: #1f5134; --ok-ink: #a7f3c4;
  --warn-bg: #33270b; --warn-line: #5c4512; --warn-ink: #fcd98a;
  --error-bg: #3a1414; --error-line: #6b2424; --error-ink: #fecaca;
  --info-bg: #13283f; --info-line: #23466c; --info-ink: #bfdbfe;
  --q-cl: #60a5fa; --q-el: #fb923c; --q-ecl: #4ade80; --q-up: #4ade80; --q-mid: #facc15; --q-down: #f87171;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --bar-bg: #0f2a47; --hero: linear-gradient(135deg, #0f2a47 0%, #16406b 100%);
  color-scheme: dark;
}

/* ---- Temel ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 750; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; font-weight: 700; }
h3 { font-size: .95rem; font-weight: 650; }
p { margin: 0 0 .6em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
code { font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 0 .3em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -4px; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.num { text-align: center; font-variant-numeric: tabular-nums; }
.end { text-align: right; }
.lead { font-size: 1.02rem; }
.empty { color: var(--muted); padding: 22px 16px; text-align: center; margin: 0; }
.empty .icon { width: 18px; height: 18px; }
.help { margin-top: 14px; }

/* ---- Üst çubuk ---- */
.topbar { background: var(--bar-bg); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.topbar__inner { max-width: 1160px; margin: 0 auto; padding: 0 16px; height: 56px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 9px; color: inherit; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.topbar .brand__mark rect { fill: #fff; }
.topbar .brand__mark circle { stroke: var(--bar-bg); }
.topbar .brand__mark path { fill: var(--bar-bg); }
.mainnav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.mainnav a { color: inherit; opacity: .82; padding: 8px 12px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.mainnav a:hover { opacity: 1; text-decoration: none; background: rgba(255, 255, 255, .1); }
.mainnav a.is-active { opacity: 1; background: rgba(255, 255, 255, .16); }
.usermenu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.usermenu form { margin: 0; }
.usermenu__link { display: inline-flex; align-items: center; gap: 6px; color: inherit; opacity: .88; padding: 7px 10px; border-radius: 8px; font-weight: 600; position: relative; }
.usermenu__link:hover { opacity: 1; text-decoration: none; background: rgba(255, 255, 255, .12); }
.usermenu__link.is-active { opacity: 1; background: rgba(255, 255, 255, .16); }
.link-button { background: none; border: 0; font: inherit; cursor: pointer; }
.count-dot { background: var(--miss); color: #fff; border-radius: 999px; font-size: .7rem; font-weight: 800; padding: 1px 6px; line-height: 1.4; }
.topbar .btn { background: #fff; color: var(--bar-bg); }

/* ---- Sayfa ---- */
.page { width: 100%; max-width: 1160px; margin: 0 auto; padding: 20px 16px 40px; flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin: 4px 0 16px; }
.page-head__sub { color: var(--muted); margin: 4px 0 0; }
.page-head__tools { display: flex; gap: 8px; align-items: center; }
.narrow { max-width: 820px; }
.crumbs { display: flex; gap: 8px; color: var(--muted); font-size: .88rem; margin-bottom: 4px; }

.grid { display: grid; gap: 16px; margin-bottom: 16px; }
.grid > * { min-width: 0; }
.grid--main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stack > .card { margin: 0; }

/* ---- Kart ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; min-width: 0; }
.grid > .card { margin: 0; }
.card--flush { padding: 0; overflow: hidden; }
.card--flush > .empty { padding: 26px 16px; }
.card--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card--accent { background: var(--hero); color: #fff; border: 0; }
.card--accent .card__title { color: #fff; }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.card__head--pad { padding: 14px 16px 10px; margin: 0; border-bottom: 1px solid var(--line); }
.card__head .card__title { margin: 0; }
.card__title { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 10px; }
.card__title--pad { padding: 14px 16px 0; }
.card__sub { font-size: .88rem; color: var(--muted); font-weight: 650; margin: 14px 0 8px; text-transform: uppercase; letter-spacing: .03em; }
.card__link { font-size: .88rem; font-weight: 600; }
.card__foot { display: block; margin: 12px -16px -16px; padding: 11px 16px; border-top: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.card__body { padding: 14px 16px 16px; }
.form .card__title + .field, .form .card__title { margin-top: 4px; }
.form .card__title:not(:first-of-type) { margin-top: 18px; }

/* ---- Bildirimler ---- */
.notice { border: 1px solid var(--info-line); background: var(--info-bg); color: var(--info-ink); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px; }
.notice a { color: inherit; font-weight: 700; text-decoration: underline; }
.notice--ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.notice--warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.notice--error { background: var(--error-bg); border-color: var(--error-line); color: var(--error-ink); }
.notice p { margin: 0 0 6px; }

/* ---- Sekmeler ve seçimler ---- */
.tabs { display: flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; width: max-content; max-width: 100%; }
.tabs a { padding: 6px 14px; border-radius: 8px; color: var(--muted); font-weight: 650; white-space: nowrap; font-size: .92rem; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.card__head .tabs { margin: 0; }
.tabs--admin { margin-bottom: 12px; }
.tab-badge { background: var(--miss); color: #fff; border-radius: 999px; font-size: .7rem; padding: 0 6px; margin-left: 2px; }
.nav-select, select, input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="date"], input:not([type]) {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 11px; min-height: 40px; max-width: 100%;
}
.nav-select { font-weight: 600; padding-right: 30px; }
select { cursor: pointer; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }

/* ---- Düğmeler ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; border: 1px solid transparent; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); padding: 9px 16px; cursor: pointer; text-decoration: none; min-height: 40px; white-space: nowrap; }
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn--small { padding: 5px 11px; min-height: 32px; font-size: .88rem; border-radius: 8px; }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--light { background: #fff; color: #06508c; }
.btn--danger { background: var(--miss); color: #fff; }
.btn--block { width: 100%; }
.btn--icon { padding: 7px; width: 40px; }

/* ---- Hero (ana sayfa) ---- */
.hero { background: var(--hero); color: #fff; border-radius: 18px; padding: 22px 22px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .06); pointer-events: none; }
.hero__kicker { opacity: .8; font-size: .85rem; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.hero h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 6px; }
.hero__line { opacity: .92; margin-bottom: 12px; }
.hero__stats { display: flex; gap: 10px; position: relative; z-index: 1; }
.stat { background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 10px 14px; min-width: 96px; text-align: center; }
.stat__num { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat__num small { font-size: .8rem; opacity: .7; font-weight: 600; }
.stat__label { font-size: .75rem; opacity: .85; }

/* ---- Maç listesi ---- */
.day + .day { border-top: 1px solid var(--line); }
.day__title { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 16px 4px; font-weight: 700; }
.card:not(.card--flush) .matches { margin: 0 -16px -16px; }
.card:not(.card--flush) .card__head + .matches, .card:not(.card--flush) .card__title + .matches { margin-top: 0; }
.match { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; padding: 10px 16px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.day .match:first-of-type, .matches > .match:first-child { border-top: 0; }
.match:target { background: var(--accent-soft); }
.match.is-mow { box-shadow: inset 3px 0 0 var(--mow); }
.match.is-live { box-shadow: inset 3px 0 0 var(--live); }
.match__main { display: grid; grid-template-columns: 150px minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; gap: 10px; color: inherit; min-width: 0; }
.match__main:hover { text-decoration: none; }
a.match__main:hover .team__name { color: var(--accent); }
.match__meta { display: flex; flex-direction: column; gap: 1px; font-size: .78rem; color: var(--muted); min-width: 0; }
/* Turnuvanın uzun adı; dar sütunda en çok iki satır */
.match__comp { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.match__day { font-weight: 650; color: var(--ink); }
.match__ft { font-weight: 700; }
.team { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
.team--home { justify-content: flex-end; text-align: right; }
.team__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match__score { display: flex; align-items: center; justify-content: center; gap: 4px; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; background: var(--surface-2); border-radius: 8px; padding: 4px 0; }
.match__sep { color: var(--muted); font-weight: 600; font-size: .8rem; }
.match__kick { font-weight: 700; font-size: .95rem; color: var(--muted); }
.is-live .match__score { background: var(--error-bg); color: var(--live); }
.match__side { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 80px; }
.mow { color: var(--mow); font-weight: 800; }

.logo { position: relative; width: 28px; height: 28px; flex: none; display: inline-grid; place-items: center; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.logo.is-missing img { display: none; }
.logo.is-missing::before { content: attr(data-initials); width: 100%; height: 100%; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: .58rem; font-weight: 800; display: grid; place-items: center; letter-spacing: -.02em; }
.logo--sm { width: 20px; height: 20px; }
.logo--xl { width: 72px; height: 72px; }
.logo--xl.is-missing::before { font-size: 1.1rem; }

.live { display: inline-flex; align-items: center; gap: 5px; color: var(--live); font-weight: 800; font-size: .78rem; white-space: nowrap; }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; flex: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .live__dot { animation: none; } }

.tip { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; padding: 3px 8px; border-radius: 7px; font-weight: 800; font-variant-numeric: tabular-nums; font-size: .92rem; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.tip--exact { background: var(--exact); border-color: var(--exact); color: #fff; }
.tip--tendency { background: var(--tendency); border-color: var(--tendency); color: #fff; }
.tip--miss { background: var(--miss); border-color: var(--miss); color: #fff; }
.tip--open { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.tip--none { color: var(--muted); font-weight: 600; }
.tip--hidden { color: var(--muted); }
.tip--hidden .icon { width: 16px; height: 16px; }
.pts { font-weight: 800; font-size: .92rem; min-width: 30px; text-align: right; font-variant-numeric: tabular-nums; }
.pts small { font-size: .7rem; color: var(--muted); margin-left: 1px; font-weight: 700; }
.tip-add { font-weight: 700; font-size: .88rem; white-space: nowrap; }

/* ---- Tahmin girişi ---- */
.pick { display: flex; align-items: center; gap: 4px; }
.pick__sep { font-weight: 800; color: var(--muted); }
.pick__state { width: 18px; font-size: .9rem; font-weight: 800; text-align: center; }
.pick__state.ok { color: var(--exact); }
.pick__state.err { color: var(--miss); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.stepper input { width: 34px; min-height: 36px; border: 0; border-radius: 0; text-align: center; font-weight: 800; font-size: 1.05rem; padding: 0; background: transparent; }
.stepper input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.stepper__btn { border: 0; background: var(--surface-2); color: var(--accent); font: inherit; font-weight: 800; font-size: 1.05rem; width: 28px; min-height: 36px; cursor: pointer; padding: 0; }
.stepper__btn:hover { background: var(--accent-soft); }
.savebar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 24px rgba(16, 24, 40, .14); padding: 12px 16px; }
.savebar__info { display: flex; flex-direction: column; gap: 2px; }
.predict .card { margin-bottom: 12px; }

/* ---- Tablolar ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 9px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table thead th { border-top: 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; background: var(--surface-2); white-space: nowrap; }
.table tbody th { font-weight: 650; }
.table .num { text-align: center; }
.table .end { text-align: right; }
.table tr.is-me td, .table tr.is-me th { background: var(--me); }
.table tr.is-me td.sticky { background: var(--me); }
.table--compact td { padding: 7px 4px; }
.table--compact tr:first-child td { border-top: 0; }
.table .sticky { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.table thead .sticky { background: var(--surface-2); }
.table--ranking .col-match { min-width: 52px; font-size: .88rem; }
.table--ranking thead .col-match a { color: inherit; display: flex; flex-direction: column; align-items: center; }
.table--ranking thead .col-match small { color: var(--ink); font-size: .78rem; font-weight: 800; text-transform: none; letter-spacing: 0; }
.table--rules td { padding: 11px 12px; }
.table--results td { font-size: .92rem; }
.card:not(.card--flush) > .table { margin: 0; }
.place { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 999px; font-weight: 800; font-size: .82rem; color: var(--ink); background: var(--surface-2); padding: 0 6px; }
.place--gold { background: var(--gold); color: #fff; }
.place--silver { background: var(--silver); color: #fff; }
.place--bronze { background: var(--bronze); color: #fff; }
.medals { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.medal { display: inline-block; line-height: 0; vertical-align: middle; }
.medal svg { display: block; width: 18px; height: 22px; }
th .medal svg { width: 16px; height: 20px; }
.medal text { font-family: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bot { font-size: .85em; }
.cell { display: inline-block; min-width: 30px; padding: 2px 6px; border-radius: 6px; font-weight: 800; font-size: .86rem; }
.cell--exact { background: var(--exact); color: #fff; }
.cell--tendency { background: var(--tendency); color: #fff; }
.cell--miss { background: color-mix(in srgb, var(--miss) 16%, transparent); color: var(--miss); }
.cell--open { color: var(--muted); font-weight: 650; }
.table--rules .cell--miss { background: var(--miss); color: #fff; }
.cell--lg { min-width: 44px; padding: 4px 8px; font-size: .95rem; text-align: center; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 16px 14px; margin: 0; font-size: .8rem; }
.legend .cell { font-weight: 650; }
.team-cell { display: inline-flex; align-items: center; gap: 8px; }
.qpos { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-weight: 800; font-size: .8rem; }
tr.q-cl .qpos { background: var(--q-cl); color: #fff; }
tr.q-el .qpos { background: var(--q-el); color: #fff; }
tr.q-ecl .qpos, tr.q-success .qpos { background: var(--q-up); color: #fff; }
tr.q-warning .qpos { background: var(--q-mid); color: #fff; }
tr.q-danger .qpos { background: var(--q-down); color: #fff; }
tr.is-highlight td { background: var(--accent-soft); font-weight: 700; }

/* ---- Podyum ---- */
.podium { list-style: none; margin: 0; padding: 0; }
.podium__row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.podium__row:first-child { border-top: 0; }
.podium__names { flex: 1; min-width: 0; font-weight: 600; }
.podium__pts { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }

/* ---- Maç detayı ---- */
.match-hero { background: var(--hero); color: #fff; border-radius: 18px; padding: 20px; margin-bottom: 16px; text-align: center; }
.match-hero.is-live { background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 100%); }
.match-hero__comp { font-size: .82rem; opacity: .85; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.match-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; margin: 14px 0; }
.match-hero__team { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.match-hero__team h2 { font-size: clamp(.95rem, 2.5vw, 1.25rem); overflow-wrap: anywhere; }
.match-hero__team .logo.is-missing::before { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .25); color: #fff; }
.match-hero__score { font-size: clamp(2rem, 7vw, 3rem); font-weight: 850; font-variant-numeric: tabular-nums; display: flex; gap: 10px; justify-content: center; align-items: center; }
.match-hero__score .match__sep { color: rgba(255, 255, 255, .6); font-size: 1.4rem; }
.match-hero__score--time { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.match-hero__state { min-height: 22px; font-weight: 700; }
.match-hero .live { color: #fff; font-size: .9rem; }
.match-hero .live__dot { background: #fff; }
.match-hero__sub { opacity: .88; font-size: .9rem; margin: 4px 0 0; }
.match-hero__tip { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; background: rgba(255, 255, 255, .12); padding: 8px 12px; border-radius: 12px; flex-wrap: wrap; justify-content: center; }
.match-hero__tip .tip--none, .match-hero__tip .tip--open { background: rgba(255, 255, 255, .9); color: #06508c; border-color: transparent; }
.match-hero__tip .pts small { color: rgba(255, 255, 255, .7); }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; }

.dist { display: flex; gap: 4px; margin: 2px 0 10px; }
.dist__part { flex-basis: 0; min-width: 64px; border-radius: 9px; padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; background: var(--surface-2); }
.dist__part--home { background: var(--accent-soft); }
.dist__part--away { background: color-mix(in srgb, var(--tendency) 14%, var(--surface)); }
.dist__label { font-weight: 800; }
.dist__val { font-size: .8rem; color: var(--muted); }
.dist__pts { font-size: .82rem; font-weight: 800; color: var(--accent); }
.tiplist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.tiplist li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; }
.tiplist li.is-me { background: var(--me); border-color: transparent; }
.tiplist__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }

.shortlist { list-style: none; margin: 0 -16px; padding: 0; }
.shortlist li > a, .shortlist li > span { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 7px 16px; border-top: 1px solid var(--line); color: inherit; font-size: .9rem; }
.shortlist li:first-child > * { border-top: 0; }
.shortlist li > a:hover { background: var(--surface-2); text-decoration: none; }
.shortlist__date { font-size: .78rem; color: var(--muted); display: flex; flex-direction: column; line-height: 1.25; }
.shortlist__date small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shortlist__teams { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shortlist__score { font-weight: 800; font-variant-numeric: tabular-nums; }
.formbadge { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #fff; font-weight: 800; font-size: .74rem; }
.formbadge--W { background: var(--exact); }
.formbadge--D { background: var(--muted); }
.formbadge--L { background: var(--miss); }
.compare { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 2px 8px; margin: 8px 0; }
.compare__v { font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.compare__label { text-align: center; font-size: .85rem; color: var(--muted); }
.compare__bar { grid-column: 1 / -1; display: flex; gap: 3px; height: 6px; }
.compare__a, .compare__b { border-radius: 3px; min-width: 2px; }
.compare__a { background: var(--accent); margin-left: auto; }
.compare__b { background: var(--tendency); }
.compare--head .compare__v { font-size: .8rem; color: var(--muted); }

/* ---- Formlar ---- */
.form { display: flex; flex-direction: column; gap: 12px; }
form.card.form { gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.field__label { font-weight: 650; font-size: .88rem; }
.field__hint { font-size: .8rem; color: var(--muted); }
.field input, .field select { width: 100%; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row > .field { flex: 1 1 180px; }
.form-actions { display: flex; gap: 8px; }
.form--inline { flex-direction: row; align-items: flex-end; margin-top: 12px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); }
.switch { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.switch > span:last-child { display: flex; flex-direction: column; font-weight: 600; }
.switch small { font-weight: 400; color: var(--muted); font-size: .82rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked + .switch__ui { background: var(--accent); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.disclosure summary, .faq summary { cursor: pointer; font-weight: 650; }
.disclosure > p, .disclosure > form { margin-top: 10px; }
.disclosure--danger summary { color: var(--miss); }
.faq { border-top: 1px solid var(--line); padding: 10px 0; }
.faq:first-of-type { border-top: 0; }
.faq p { margin: 8px 0 0; color: var(--muted); }

/* ---- Profil ---- */
.profile { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.profile__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; flex: none; }
.profile__name { font-size: 1.2rem; }
.profile p { margin: 2px 0 0; }
.profile__link { margin-left: auto; }
.linklist { list-style: none; margin: 0 0 12px; padding: 0; }
.linklist li { padding: 7px 0; border-top: 1px solid var(--line); }
.linklist li:first-child { border-top: 0; }

/* ---- Günün maçları, puanlama ---- */
.daynav { display: flex; gap: 6px; align-items: center; }
.daynav__date { min-height: 40px; }
.shares { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface-2); border-radius: 12px; padding: 10px 4px; text-align: center; margin-bottom: 12px; }
.shares__cell { display: flex; flex-direction: column; gap: 2px; }
.shares__cell strong { font-size: 1.15rem; }
.prose { max-width: 780px; }
.prose ul { margin: 0; padding-left: 20px; }
.prose li { margin: 4px 0; }
.pill { display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .78rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pill--accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.pill--ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.pill--warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.pill--error { background: var(--error-bg); border-color: var(--error-line); color: var(--error-ink); }

/* ---- Yönetim ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: inherit; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
a.tile:hover { text-decoration: none; border-color: var(--accent); }
.tile__num { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tile__num--sm { font-size: 1.15rem; padding: 6px 0 5px; }
.tile__label { color: var(--muted); font-size: .85rem; }
.tile--warn { border-color: var(--warn-line); background: var(--warn-bg); }
.tile--error { border-color: var(--error-line); background: var(--error-bg); }
.facts { margin: 0; display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 4px; }
.search { display: flex; gap: 6px; align-items: center; margin-bottom: 16px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions form, form.inline { margin: 0; display: inline; }
.copy { display: flex; gap: 6px; }
.copy input { flex: 1; min-width: 0; font-size: .82rem; }

/* ---- Yönetim düzeni ---- */
.admin-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.admin-nav { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 10px; }
.admin-nav__group { display: flex; flex-direction: column; gap: 1px; }
.admin-nav__title { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 6px 10px 2px; }
.admin-nav a { padding: 6px 10px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .9rem; }
.admin-nav a:hover { background: var(--surface-2); text-decoration: none; }
.admin-nav a.is-active { background: var(--accent-soft); color: var(--accent); }
.admin-nav__select { display: none; width: 100%; margin-bottom: 12px; }
.admin-main { min-width: 0; }
/* Yönetim geniş: tablolar için (çok geniş ekranda satırlar okunur kalsın diye 1600px) */
.is-admin .page, .is-admin .topbar__inner, .is-admin .footer__inner { max-width: 1600px; }
.is-admin .page { padding-left: 24px; padding-right: 24px; }
@media (max-width: 720px) { .is-admin .page { padding-left: 16px; padding-right: 16px; } }
.filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.filters .field { flex: 0 1 auto; }
.filters__quick { flex-basis: 100%; display: flex; gap: 6px; flex-wrap: wrap; }
.filters__quick .pill:hover { text-decoration: none; border-color: var(--accent); }
.pills { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: 14px; }
.fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 11px; width: 100%; }
.pre { white-space: pre-wrap; word-break: break-word; font-size: .8rem; margin: 0; background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px; }
.card--warn { border-left: 4px solid var(--tendency); }
.card--ok { border-left: 4px solid var(--exact); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.check-item { display: flex; gap: 8px; align-items: baseline; }
.check-item__icon { font-weight: 800; width: 14px; flex: none; text-align: center; }
.check-item--ok .check-item__icon { color: var(--exact); }
.check-item--warn .check-item__icon { color: var(--tendency); }
.check-item--err .check-item__icon { color: var(--miss); }
.logo--dim { opacity: .4; }
input.is-missing { border-color: var(--warn-line); background: var(--warn-bg); }
.text-warn { color: var(--tendency); }
.score-input { width: 64px; text-align: center; }
input[type="number"], input[type="datetime-local"] { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 7px 9px; min-height: 38px; max-width: 100%; }
.table--scores th { font-weight: 600; white-space: nowrap; padding-right: 12px; }
.weekform__bar { position: sticky; top: 64px; z-index: 6; }
.daycount { margin-top: 10px; }
.daycount th { font-size: .72rem; }
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .admin-nav { display: none; }
  .admin-nav__select { display: block; }
  .weekform__bar { position: static; }
}

/* ---- Giriş sayfaları ---- */
body.is-auth { background: radial-gradient(1200px 600px at 50% -10%, color-mix(in srgb, var(--accent) 22%, var(--bg)), var(--bg)); }
.page--auth { display: grid; place-items: center; padding-top: 32px; }
.auth { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.auth--wide { max-width: 520px; }
.auth__brand { display: flex; align-items: center; gap: 10px; font-weight: 850; font-size: 1.35rem; color: var(--ink); }
.auth__brand:hover { text-decoration: none; }
.auth__brand .brand__mark { width: 40px; height: 40px; }
.auth__card { width: 100%; padding: 22px; margin: 0; }
.auth__card h1 { font-size: 1.4rem; margin-bottom: 4px; }
.auth__card > .muted { margin-bottom: 16px; }
.auth__card .disclosure { margin-top: 16px; font-size: .92rem; }
.auth__card .disclosure p { color: var(--muted); }
.auth__alt { margin: 14px 0 0; text-align: center; }
.auth__foot { font-size: .85rem; color: var(--muted); }
.langs { display: flex; gap: 4px; flex-wrap: wrap; }
.langs a { padding: 4px 10px; border-radius: 8px; color: var(--muted); font-weight: 650; font-size: .88rem; }
.langs a.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ---- Alt bilgi ve sekme çubuğu ---- */
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer__inner { max-width: 1160px; margin: 0 auto; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 16px; flex-wrap: wrap; font-size: .9rem; }
.footer__links a { color: var(--muted); font-weight: 600; }
.tabbar { display: none; }

/* ---- Dar ekran ---- */
@media (max-width: 900px) {
  .grid--main, .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .mainnav { display: none; }
}
@media (max-width: 720px) {
  .hide-sm { display: none !important; }
  .page { padding: 14px 12px 28px; }
  body.has-tabbar { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  body.has-tabbar .footer { display: none; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: .7rem; font-weight: 650; border-radius: 10px; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a.is-active { color: var(--accent); }
  .tabbar .icon { width: 23px; height: 23px; }
  .topbar__inner { height: 52px; }
  .hero { padding: 18px 16px; border-radius: 16px; }
  .hero__stats { width: 100%; }
  .stat { flex: 1; min-width: 0; padding: 8px; }
  .stat__num { font-size: 1.35rem; }
  .match { grid-template-columns: minmax(0, 1fr); padding: 10px 12px; gap: 6px; }
  .match__main { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); gap: 8px; }
  .match__meta { grid-column: 1 / -1; flex-direction: row; gap: 8px; align-items: center; }
  .match__comp { display: block; white-space: nowrap; text-overflow: ellipsis; }
  .match__side { justify-content: center; min-width: 0; }
  .match.has-side { padding-bottom: 12px; }
  .team { font-size: .92rem; }
  .card:not(.card--flush) .matches { margin: 0 -16px -16px; }
  .savebar { bottom: calc(var(--tabbar-h) + 8px + env(safe-area-inset-bottom)); flex-wrap: nowrap; padding: 10px 12px; }
  .savebar__info .small { display: none; }
  .match-hero__grid { gap: 8px; }
  .logo--xl { width: 54px; height: 54px; }
  .page-head { align-items: flex-start; }
  .page-head__tools { width: 100%; }
  .page-head__tools .nav-select { width: 100%; }
  .table th, .table td { padding: 8px 8px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .card--row { flex-direction: column; align-items: stretch; }
  .form--inline { flex-direction: column; align-items: stretch; }
}
@media (min-width: 721px) {
  .predict .match.has-side { grid-template-columns: minmax(0, 1fr) 190px; }
}
