/* Octo Sportsbook — "Murekkep ve sinyal"
   Zemin sepya murekkep; renk yalnizca anlam tasir:
   kobalt = senin secimin, turuncu-kirmizi = canli, yesil/kirmizi = oran yonu. */
:root {
  --ink: #15120f;
  --mantle: #1c1814;
  --skin: #25211c;
  --skin2: #2e2923;
  --rule: #2c2722;
  --rule2: #3b352e;
  --tx: #f1ece4;
  --tx2: #b4ab9f;
  --tx3: #7f766a;
  --sel: #3a6df0;
  --sel-ink: #ffffff;
  --sel-soft: rgba(58, 109, 240, .16);
  --live: #f0643a;
  --up: #47b47e;
  --down: #e2474b;
  --yellow: #f0c237;
  --red: #e2474b;
  --f: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --ink: #eceef1;
  --mantle: #ffffff;
  --skin: #f0f2f5;
  --skin2: #e4e8ed;
  --rule: #e2e5ea;
  --rule2: #cfd5dc;
  --tx: #14171c;
  --tx2: #4a515b;
  --tx3: #7b828c;
  --live: #dd4f24;
  --up: #17975a;
  --down: #d63a3f;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--ink);
  color: var(--tx);
  font: 400 13px/1.38 var(--f);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; font-stretch: inherit; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sel); outline-offset: 1px; }
.ic { width: 16px; height: 16px; flex: none; }
.tnum { font-variant-numeric: tabular-nums; }
/* Skorbord rakamlari: genis, agir — tasarimin tek cesur hamlesi */
.sbn { font-stretch: 125%; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .005em; }

* { scrollbar-width: thin; scrollbar-color: var(--rule2) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--rule2); border-radius: 4px; border: 2px solid transparent; background-clip: padding-box; }

/* ---------- Iskelet ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr) 320px; height: 100dvh; }
.tree, .center, .slip { min-height: 0; }
.center { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; }
.content { overflow-y: auto; container: ct / inline-size; }

/* ---------- Sol agac: spor -> ulke -> lig (kollar) ---------- */
.tree { overflow-y: auto; background: var(--mantle); border-right: 1px solid var(--rule); padding-bottom: 16px; }
.tree-s { padding: 12px; position: sticky; top: 0; background: var(--mantle); z-index: 1; }
.field {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px;
  background: var(--ink); border: 1px solid var(--rule); border-radius: 4px;
}
.field:focus-within { border-color: var(--rule2); }
.field .ic { color: var(--tx3); }
.field input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; }
.field input::placeholder { color: var(--tx3); }
.field input::-webkit-search-cancel-button { filter: grayscale(1); opacity: .5; }
.tree-h { padding: 8px 16px 6px; font-size: 12px; font-weight: 600; color: var(--tx3); }
.sp {
  display: flex; align-items: center; gap: 10px; width: 100%;
  height: 36px; padding: 0 14px 0 16px; color: var(--tx2); text-align: left;
}
.sp .ic { width: 18px; height: 18px; }
.sp .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.sp .c { font-size: 12px; color: var(--tx3); font-stretch: 90%; font-variant-numeric: tabular-nums; }
.sp:hover { background: var(--skin); color: var(--tx); }
.sp.on { color: var(--tx); }
.sp.on .ic { color: var(--sel); }
.sp.on .n { font-weight: 600; }
.sp.idle .c { opacity: .55; }

.arms { list-style: none; margin: 0 0 6px 24px; }
.arm { position: relative; padding-left: 12px; }
.arm::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1px solid var(--rule2); }
.arm:last-child::before { bottom: auto; height: 15px; width: 9px; border-bottom: 1px solid var(--rule2); border-bottom-left-radius: 8px; }
.arm:not(:last-child)::after { content: ""; position: absolute; left: 0; top: 15px; width: 9px; border-top: 1px solid var(--rule2); }
.br {
  display: flex; align-items: center; gap: 8px; width: 100%;
  height: 30px; padding: 0 12px 0 4px; border-radius: 3px;
  color: var(--tx2); text-align: left; font-size: 12.5px;
}
.br .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br .c { font-size: 11.5px; color: var(--tx3); font-stretch: 90%; font-variant-numeric: tabular-nums; }
.br:hover { background: var(--skin); color: var(--tx); }
.br.on { color: var(--tx); background: var(--skin); }
.br.on .n { font-weight: 600; }
.arms .arms { margin: 0 0 2px 10px; }
.flag { width: 16px; height: 11px; border-radius: 1.5px; object-fit: cover; flex: none; }
.flag-x { width: 16px; display: grid; place-items: center; color: var(--tx3); flex: none; }
.flag-x .ic { width: 14px; height: 14px; }

/* ---------- Spor rayi (tablet/mobil) ---------- */
.rail {
  display: none; gap: 2px; overflow-x: auto; scrollbar-width: none;
  padding: 6px 8px; background: var(--mantle); border-bottom: 1px solid var(--rule);
}
.rail::-webkit-scrollbar { display: none; }
.rail.more-r, .mtabs.more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.chip { display: flex; align-items: center; gap: 8px; flex: none; height: 36px; padding: 0 12px; border-radius: 4px; color: var(--tx2); font-weight: 500; white-space: nowrap; }
.chip .ic { width: 18px; height: 18px; }
.chip .c { color: var(--tx3); font-size: 12px; font-stretch: 90%; font-variant-numeric: tabular-nums; }
.chip:hover { background: var(--skin); color: var(--tx); }
.chip.on { color: var(--tx); background: var(--skin); }
.chip.on .ic { color: var(--sel); }

/* ---------- Liste basligi ---------- */
.bh { padding: 14px 16px 0; border-bottom: 1px solid var(--rule); }
.bh-a { display: flex; align-items: center; gap: 16px; min-width: 0; }
.bh-t { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; }
.bh-t .ic { width: 22px; height: 22px; color: var(--tx2); }
.bh-t h1 { font-size: 20px; line-height: 1.2; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-b { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.phase { display: flex; gap: 20px; }
.ph { display: flex; align-items: center; gap: 7px; height: 40px; color: var(--tx2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ph .c { font-size: 12px; color: var(--tx3); font-weight: 500; font-stretch: 90%; font-variant-numeric: tabular-nums; }
.ph:hover { color: var(--tx); }
.ph.on { color: var(--tx); border-color: var(--tx); }
.ph .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.ph.on .pulse { animation: beat 2s ease-in-out infinite; }
@keyframes beat { 50% { opacity: .35; } }
.mkt { display: flex; gap: 2px; padding: 3px; margin-left: auto; background: var(--mantle); border: 1px solid var(--rule); border-radius: 5px; }
.mkt button { height: 26px; padding: 0 10px; border-radius: 3px; color: var(--tx2); font-weight: 500; font-size: 12.5px; white-space: nowrap; }
.mkt button:hover { color: var(--tx); }
.mkt button.on, .mkt button.on-w { background: var(--skin2); color: var(--tx); }
/* Genis satirda mac sonucu her zaman gorunur; secici yalnizca ikinci grubu degistirir */
.mkt .only-n { display: none; }
.bh-n { display: none; gap: 8px; padding-bottom: 12px; }
.bh-n .field { flex: 1; }
.lg-sel {
  min-width: 0; flex: 1; height: 34px; padding: 0 28px 0 10px; border-radius: 4px;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f766a' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 14px;
  border: 1px solid var(--rule); appearance: none; outline: none;
}

/* ---------- Lig bandi + mac satiri (bulten duzeni) ---------- */
.lb {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  height: 32px; padding: 0 16px;
  background: var(--mantle); border-bottom: 1px solid var(--rule);
}
.lb-t { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.lb-c { color: var(--tx3); white-space: nowrap; }
.lb-n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cols { display: flex; gap: 4px; }
.cols span { text-align: center; color: var(--tx3); font-size: 12px; font-weight: 500; }

.ev {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 28px auto; grid-template-areas: "ck tm sc od";
  align-items: center; column-gap: 12px;
  min-height: 56px; padding: 8px 16px; border-bottom: 1px solid var(--rule);
}
.ev:hover { background: color-mix(in srgb, var(--mantle) 55%, transparent); }
.ck { grid-area: ck; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ck .m { color: var(--live); font-size: 13px; }
.ck .p { font-size: 11px; color: var(--tx3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck .lv { color: var(--live); font-size: 11.5px; font-weight: 600; line-height: 1.2; }
.ck .t { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tms { grid-area: tm; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tm { display: flex; align-items: center; gap: 8px; height: 19px; min-width: 0; }
.tm .nm { font-size: 13.5px; font-weight: 500; font-stretch: 94%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tms:hover .nm { text-decoration: underline; text-decoration-color: var(--rule2); text-underline-offset: 3px; }
.logo { width: 18px; height: 18px; object-fit: contain; flex: none; }
.logo.lg { width: 44px; height: 44px; }
.kit { color: rgba(255, 255, 255, .3); }
:root[data-theme="light"] .kit { color: rgba(0, 0, 0, .28); }
.ini { width: 18px; height: 18px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--skin2); color: var(--tx2); font-size: 8px; font-weight: 700; font-stretch: 90%; }
.ini.lg { width: 44px; height: 44px; font-size: 14px; }
.cds { display: flex; gap: 2px; flex: none; }
.cds:empty { display: none; }
.srv { width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); flex: none; }
.card { display: inline-grid; place-items: center; width: 9px; height: 12px; border-radius: 1.5px; flex: none; font: 700 8px/1 var(--f); color: #fff; font-style: normal; }
.card.r { background: var(--red); }
.card.y { background: var(--yellow); color: #3a2c00; }
.scs { grid-area: sc; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.scs span { height: 19px; display: flex; align-items: center; font-size: 13.5px; border-radius: 2px; padding: 0 3px; margin-right: -3px; }
.scs span.goal { animation: goal 4s ease-out; }
@keyframes goal { 0%, 30% { background: var(--live); color: #fff; } 100% { background: transparent; } }
.od { grid-area: od; display: flex; gap: 4px; align-items: center; }
.gap { width: 8px; flex: none; }
.w1 { width: 58px; flex: none; }
.w2 { width: 80px; flex: none; }
.wm { width: 40px; flex: none; }

/* ---------- Oran hucresi ---------- */
.o {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 8px; border-radius: 3px;
  background: var(--skin); color: var(--tx);
  font-weight: 600; font-size: 13.5px; font-stretch: 90%; font-variant-numeric: tabular-nums;
  transition: background .12s;
}
.o:hover:not([disabled]) { background: var(--skin2); }
.o .l { color: var(--tx3); font-weight: 500; font-size: 11.5px; flex: none; }
.o .ml { display: none; }
.o.on, .o.on:hover:not([disabled]) { background: var(--sel); color: var(--sel-ink); }
.o.on .l { color: var(--sel-ink); opacity: .72; }
.o[disabled] { cursor: not-allowed; color: var(--tx3); background: color-mix(in srgb, var(--skin) 55%, transparent); }
.o[disabled] .ic { width: 13px; height: 13px; }
.o.ghost { background: transparent; color: var(--rule2); cursor: default; }
/* Kromatofor: oran degisince hucre kisa sure renk alip soner */
.o.up:not(.on) { animation: flush-up 3.2s ease-out; }
.o.down:not(.on) { animation: flush-down 3.2s ease-out; }
@keyframes flush-up { 0% { background: color-mix(in srgb, var(--up) 42%, var(--skin)); } 100% { background: var(--skin); } }
@keyframes flush-down { 0% { background: color-mix(in srgb, var(--down) 42%, var(--skin)); } 100% { background: var(--skin); } }
.o.up::after, .o.down::after { content: ""; position: absolute; right: 4px; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; }
.o.up::after { top: 4px; border-bottom: 4.5px solid var(--up); }
.o.down::after { bottom: 4px; border-top: 4.5px solid var(--down); }
.o.s { justify-content: space-between; padding: 0 10px; }
.o.s .l { font-size: 12.5px; color: var(--tx2); font-stretch: 96%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; min-width: 0; }
.more { display: grid; place-items: center; height: 38px; border-radius: 3px; color: var(--tx2); font-size: 12px; font-weight: 600; font-stretch: 90%; font-variant-numeric: tabular-nums; }
.more:hover { background: var(--skin); color: var(--tx); }

/* ---------- Mac detayi ---------- */
.dh { background: var(--mantle); border-bottom: 1px solid var(--rule); }
.dh-top { display: flex; align-items: center; gap: 10px; min-width: 0; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--rule); color: var(--tx3); }
.dh-top .lgn { color: var(--tx2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back { width: 30px; height: 30px; flex: none; border-radius: 4px; display: grid; place-items: center; color: var(--tx); }
.back:hover { background: var(--skin); }
.sbd { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; padding: 22px 24px 18px; }
.team { display: flex; align-items: center; gap: 14px; min-width: 0; }
.team.away { flex-direction: row-reverse; text-align: right; }
.team .nm { font-size: 17px; font-weight: 600; font-stretch: 94%; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mid { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 120px; }
.score { font-size: 36px; line-height: 1; white-space: nowrap; }
.score i { font-style: normal; color: var(--tx3); margin: 0 8px; font-weight: 500; font-stretch: 100%; }
.score.pre { font-size: 26px; }
.clk { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--tx3); white-space: nowrap; }
.clk .m { color: var(--live); font-size: 13px; }
.clk .lv { color: var(--live); font-weight: 600; }
.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 24px; padding: 0 24px 16px; }
.st { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--tx3); white-space: nowrap; }
.st b { color: var(--tx); font-weight: 600; font-variant-numeric: tabular-nums; }
.st .ic { width: 14px; height: 14px; }

.mtools {
  position: sticky; top: 0; z-index: 3;
  display: flex; align-items: center; gap: 16px;
  height: 46px; padding: 0 16px; background: var(--ink); border-bottom: 1px solid var(--rule);
}
.mtabs { display: flex; gap: 20px; height: 100%; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.mtabs::-webkit-scrollbar { display: none; }
.mt { display: flex; align-items: center; gap: 6px; height: 100%; flex: none; color: var(--tx2); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.mt .c { font-size: 12px; color: var(--tx3); font-weight: 500; font-stretch: 90%; }
.mt:hover { color: var(--tx); }
.mt.on { color: var(--tx); border-color: var(--sel); }
.mtools .field { width: 210px; flex: none; margin-left: auto; height: 32px; }

.mks { columns: 2 380px; column-gap: 28px; padding: 4px 16px 24px; }
.mk { break-inside: avoid; border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 4px; }
.mk.closed { padding-bottom: 0; }
.mk-h { display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; text-align: left; }
.mk-h .t { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-h .c { color: var(--tx3); font-size: 12px; font-stretch: 90%; }
.mk-h .ic { color: var(--tx3); transition: transform .15s; }
.mk.closed .mk-h .ic { transform: rotate(-90deg); }
.mk-h:hover .t { color: var(--tx); text-decoration: underline; text-decoration-color: var(--rule2); text-underline-offset: 3px; }
.mg, .mtb { display: grid; grid-template-columns: repeat(var(--k), minmax(0, 1fr)); gap: 4px; }
.mtb-h { padding: 0 2px 4px; font-size: 12px; color: var(--tx3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Kupon ---------- */
.slip { display: flex; flex-direction: column; background: var(--mantle); border-left: 1px solid var(--rule); }
.sh { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--rule); flex: none; }
.sh h2 { font-size: 15px; font-weight: 650; }
.pill { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: var(--sel); color: var(--sel-ink); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.clr { margin-left: auto; height: 28px; padding: 0 6px; border-radius: 3px; color: var(--tx3); font-size: 12.5px; }
.clr:hover { color: var(--tx); }
.sx { display: none; width: 32px; height: 32px; border-radius: 4px; place-items: center; color: var(--tx2); margin-right: -8px; }
.stype { display: flex; gap: 2px; margin: 12px 16px 4px; padding: 3px; background: var(--ink); border: 1px solid var(--rule); border-radius: 5px; flex: none; }
.stype button { flex: 1; height: 28px; border-radius: 3px; color: var(--tx2); font-weight: 600; }
.stype button.on { background: var(--skin2); color: var(--tx); }
.sl { flex: 1; overflow-y: auto; padding: 0 16px; min-height: 0; }
.sl-empty { padding: 48px 8px; color: var(--tx3); line-height: 1.5; }
.sl-empty b { display: block; color: var(--tx2); font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.it { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.it-a { display: flex; align-items: baseline; gap: 10px; }
.it-s { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it-f { font-weight: 700; font-size: 14px; font-stretch: 90%; font-variant-numeric: tabular-nums; }
.it-x { align-self: center; width: 22px; height: 22px; margin-right: -4px; border-radius: 3px; display: grid; place-items: center; color: var(--tx3); }
.it-x:hover { color: var(--tx); background: var(--skin); }
.it-x .ic { width: 14px; height: 14px; }
.it-m { margin-top: 3px; font-size: 12.5px; color: var(--tx2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it-e { margin-top: 1px; font-size: 12px; color: var(--tx3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it.up .it-f { color: var(--up); }
.it.down .it-f { color: var(--down); }
.it.lock .it-s, .it.lock .it-f { color: var(--tx3); }
.it .field { margin-top: 10px; height: 34px; }
.note { display: flex; align-items: center; gap: 10px; margin: 8px 16px 0; padding: 10px 12px; border-radius: 4px; background: var(--skin); font-size: 12.5px; color: var(--tx2); line-height: 1.35; }
.note button { margin-left: auto; height: 28px; padding: 0 10px; border-radius: 3px; background: var(--skin2); color: var(--tx); font-weight: 600; white-space: nowrap; }
.sf { flex: none; padding: 14px 16px 16px; border-top: 1px solid var(--rule); margin-top: 8px; }
.sf .field { height: 42px; padding: 0 12px; }
.sf .field span { color: var(--tx3); white-space: nowrap; }
.sf .field input, .it .field input { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.it .field span { color: var(--tx3); font-size: 12px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 6px; }
.quick button { height: 30px; border-radius: 3px; background: var(--skin); color: var(--tx2); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.quick button:hover { background: var(--skin2); color: var(--tx); }
.sum { margin-top: 12px; display: grid; gap: 6px; }
.sum div { display: flex; justify-content: space-between; align-items: baseline; color: var(--tx2); }
.sum b { color: var(--tx); font-weight: 600; font-variant-numeric: tabular-nums; }
.sum .win b { font-size: 18px; font-weight: 800; font-stretch: 110%; }
.go { width: 100%; height: 46px; margin-top: 14px; border-radius: 4px; background: var(--sel); color: var(--sel-ink); font-weight: 600; font-size: 14.5px; }
.go:hover:not(:disabled) { background: color-mix(in srgb, var(--sel) 88%, #fff); }
.go:disabled { opacity: .38; cursor: not-allowed; }

.slipbar {
  display: none; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40;
  height: 52px; padding: 0 16px; gap: 10px; align-items: center;
  border-radius: 6px; background: var(--sel); color: var(--sel-ink); font-weight: 600; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.slipbar .pill { background: var(--sel-ink); color: var(--sel); }
.slipbar .v { margin-left: auto; font-weight: 700; font-stretch: 90%; font-variant-numeric: tabular-nums; }
.scrim { display: none; position: fixed; inset: 0; z-index: 45; background: rgba(8, 6, 4, .6); }

/* ---------- Durumlar ---------- */
.empty { padding: 64px 24px; text-align: center; color: var(--tx3); line-height: 1.5; }
.empty b { display: block; color: var(--tx2); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.sk { border-radius: 3px; background: linear-gradient(90deg, var(--skin) 0%, var(--skin2) 50%, var(--skin) 100%); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.sk-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 260px; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 16px); opacity: 0;
  padding: 11px 16px; border-radius: 4px; background: var(--tx); color: var(--ink); font-weight: 600;
  transition: opacity .18s, transform .18s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Duyarli ---------- */
@media (max-width: 1279px) {
  .app { grid-template-columns: minmax(0, 1fr) 320px; }
  .tree { display: none; }
  .rail { display: flex; }
  .bh-n { display: flex; }
}
@media (max-width: 899px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .content { padding-bottom: 76px; }
  .slip {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    height: min(88dvh, 720px); border-left: 0; border-radius: 10px 10px 0 0;
    transform: translateY(105%); transition: transform .22s ease;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .45);
  }
  .slip.open { transform: none; }
  .sx { display: grid; }
  .sh .clr + .sx { margin-left: 4px; }
  .sh h2 + .sx, .sh .pill + .sx { margin-left: auto; }
  .slipbar.has { display: flex; }
  .scrim.show { display: block; }
}

/* Satir duzeni listenin kendi genisligine gore (iframe hangi boyutta gomulurse) */
@container ct (max-width: 760px) {
  .m-ms .g2, .m-x .g1, .m-ms .cols .g2, .m-x .cols .g1 { display: none; }
  .mkt .only-n { display: block; }
  .mkt button.on-w:not(.on) { background: none; color: var(--tx2); }
  .od .gap, .cols .gap { display: none; }
  .mkt { margin-left: 0; }
  .bh-b { flex-wrap: wrap; }
}
@container ct (max-width: 620px) {
  .bh { padding: 12px 12px 0; }
  .bh-b { flex-direction: column-reverse; align-items: stretch; gap: 10px; margin-top: 10px; }
  .mkt { overflow-x: auto; scrollbar-width: none; }
  .mkt button { flex: 1; }
  .phase { gap: 20px; }
  .lb { padding: 0 12px; }
  .cols { display: none; }
  .ev { grid-template-columns: 44px minmax(0, 1fr) 24px; grid-template-areas: "ck tm sc" "od od od"; row-gap: 10px; padding: 10px 12px; }
  .od { gap: 4px; }
  .od .o, .od .ghost { flex: 1; width: auto; }
  .od .gx { display: none; }
  .od .o:not(.ghost) { justify-content: space-between; padding: 0 10px; }
  .o .ml { display: inline; }
  .od .wm { width: 44px; }
  .sk-row { grid-template-columns: 1fr; }
  .sbd { gap: 10px; padding: 18px 12px 14px; }
  .team, .team.away { flex-direction: column; text-align: center; gap: 8px; }
  .team .nm { font-size: 14px; }
  .score { font-size: 30px; }
  .mid { min-width: 0; }
  .stats { gap: 6px 16px; padding: 0 12px 14px; }
  .mtools { flex-wrap: wrap; height: auto; padding: 0 12px; gap: 0; }
  .mtabs { height: 44px; order: 1; width: 100%; }
  .mtools .field { order: 0; width: 100%; margin: 10px 0 2px; }
  .mks { padding: 4px 12px 24px; }
}
