/* ============ Contra8 · Spor sayfası ekleri (spor-more.js) ============
   Popüler ligler şeridi, seçili lig başlığı, uzun vadeli bahisler (ot-), maç sonuçları (rs-).
   Ölçek ve renkler styles.css :root'tan. Lig, ülke ve takım adları bekendden geldiği gibi yazılır: büyük harfe
   çevrilmez (Türkçe yerelde «Division» → «DİVİSİON» olurdu). Altın yalnızca oran değerlerinde. */
.sp-tls[hidden],.sp-lgb[hidden]{display:none}

/* ---------- popüler ligler: yazıyla kurulmuş karolar (bekend logo göndermiyor) ---------- */
.sp-tls{margin:0 0 10px}
.sp-tls__r{display:flex;gap:8px;margin:0 -16px;padding:0 16px;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain}
.sp-tls__r::-webkit-scrollbar{display:none}
.sp-tlb{position:relative;flex:none;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr auto;justify-items:start;gap:8px;width:118px;height:128px;padding:12px;border-radius:var(--r-card,14px);background:var(--surface,#1c1c1c);box-shadow:inset 0 0 0 1px var(--line);text-align:left;overflow:hidden;transition:background .2s,box-shadow .2s,transform .25s var(--sp-spring,ease)}
.sp-tlb__m,.sp-lgb__m{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:11px;overflow:hidden}
.sp-tlb__m--logo,.sp-lgb__m--logo{background:#fbfdfc}
.sp-tlb__m img,.sp-lgb__m img{display:block;width:100%;height:100%;object-fit:contain}
.sp-tlb__m--flag,.sp-lgb__m--flag{background:var(--surface-2,#272727);box-shadow:inset 0 0 0 1px var(--line-2)}
.sp-tlb__m--flag img,.sp-lgb__m--flag img{width:28px;height:28px;border-radius:50%;box-shadow:0 0 0 1px rgba(var(--ov,255,255,255),.16)}
.sp-lgb__m--flag img{width:30px;height:30px}
.sp-tlb__m--glob,.sp-lgb__m--glob{background:var(--surface-2,#272727);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--muted)}
.sp-tlb__m--glob .sp-i,.sp-lgb__m--glob .sp-i{width:22px;height:22px;stroke-width:1.5}
.sp-tlb__m--mono,.sp-lgb__m--mono{background:var(--surface-2,#272727);box-shadow:inset 0 0 0 1px var(--line-2);font:800 14px/1 var(--disp);letter-spacing:.02em;color:var(--text)}
.sp-tlb b{align-self:end;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:700 13px/1.18 var(--ui);color:var(--text);transition:color .2s}
.sp-tlb small{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;font-size:var(--fs-micro,10.5px);font-weight:600;line-height:1;color:var(--muted);white-space:nowrap;transition:color .2s}
.sp-tlb small span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.sp-tlb small i{flex:none;min-width:20px;height:18px;padding:0 6px;border-radius:999px;display:inline-grid;place-items:center;background:rgba(var(--ov,255,255,255),.08);font-style:normal;color:var(--text);font-variant-numeric:tabular-nums}
.sp-tlb--top::before{content:"";position:absolute;left:12px;right:12px;top:0;height:1px;background:linear-gradient(90deg,transparent,#d4a640 30%,#fff3cc 50%,#d4a640 70%,transparent)}
.sp-tlb:active{transform:scale(.96)}
.sp-tlb[aria-pressed=true]{background:var(--white);box-shadow:none}
.sp-tlb[aria-pressed=true] b{color:var(--ink)}
.sp-tlb[aria-pressed=true] small{color:rgba(0,0,0,.55)}
.sp-tlb[aria-pressed=true] small i{background:var(--ink);color:var(--white)}
.sp-tlb[aria-pressed=true] .sp-tlb__m--logo{box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.sp-tlb[aria-pressed=true] .sp-tlb__m--mono{background:var(--ink);color:var(--white);box-shadow:none}
.sp-tlb[aria-pressed=true]::before{display:none}
.sp-tls__r.is-drag .sp-tlb{pointer-events:none}
/* Популярные лиги — вид «значки приложений» (вариант C): плитка логотипа 60px, название под ней, без карточки и без страны.
   Лига из подборки (--top) — тонкое золотое кольцо, выбранная — золотое кольцо 2px. Логотипа нет — флаг страны или буквы. */
.sp-tls .sp-tls__r{gap:12px;padding-top:3px;padding-bottom:3px}
.sp-tls .sp-tlb{width:68px;height:auto;padding:0;gap:6px;grid-template-rows:auto auto;justify-items:center;background:none;box-shadow:none;border-radius:0;overflow:visible;text-align:center}
.sp-tls .sp-tlb::before{display:none}
.sp-tls .sp-tlb__m{width:60px;height:60px;border-radius:18px;box-shadow:inset 0 0 0 1px var(--line);transition:box-shadow .2s}
.sp-tls .sp-tlb__m--logo{padding:9px}
.sp-tls .sp-tlb__m--flag,.sp-tls .sp-tlb__m--mono,.sp-tls .sp-tlb__m--glob{background:var(--surface,#1c1c1c)}
.sp-tls .sp-tlb__m--glob .sp-i{width:30px;height:30px}
.sp-tls .sp-tlb__m--flag img{width:36px;height:36px}
.sp-tls .sp-tlb__m--mono{font-size:15px}
.sp-tls .sp-tlb--top .sp-tlb__m{box-shadow:inset 0 0 0 1.5px var(--g2)}
.sp-tls .sp-tlb b{align-self:start;width:100%;font:600 11px/1.2 var(--ui);color:var(--text)}
.sp-tls .sp-tlb small{display:none}
.sp-tls .sp-tlb[aria-pressed=true]{background:none}
.sp-tls .sp-tlb[aria-pressed=true] .sp-tlb__m{box-shadow:0 0 0 2px var(--g2)}
.sp-tls .sp-tlb[aria-pressed=true] .sp-tlb__m--mono{background:var(--surface,#1c1c1c);color:var(--text)}
.sp-tls .sp-tlb[aria-pressed=true] b{color:var(--tg2,var(--g2));font-weight:700}
html[data-theme=light] .sp-tls .sp-tlb{box-shadow:none}

/* ---------- seçili lig: başlık + uzun vadeli bahis girişi ---------- */
.sp-lgb{display:grid;gap:8px;margin:10px 0 4px}
.sp-lgb__h{display:flex;align-items:center;gap:12px;min-height:44px}
.sp-lgb__m{width:44px;height:44px;border-radius:12px}
.sp-lgb__h>div{flex:1;min-width:0}
.sp-lgb__h b{display:block;font:700 17px/1.15 var(--disp);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sp-lgb__h small{display:block;margin-top:2px;font-size:var(--fs-small,12px);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.sp-lgb__h .icon-btn{width:36px;height:36px;border-radius:11px}
.sp-lgb__o{display:flex;align-items:center;gap:10px;width:100%;min-height:50px;padding:8px 8px 8px 12px;border-radius:var(--r-tile,12px);background:rgba(var(--ov,255,255,255),.06);text-align:left;transition:transform .25s var(--sp-spring,ease)}
.sp-lgb__o:active{transform:scale(.985)}
.sp-lgb__o>.sp-i:first-child{color:var(--tg2,var(--g2))}
.sp-lgb__o>.sp-i:last-child{width:15px;height:15px;color:var(--dim)}
.sp-lgb__o span{flex:1;min-width:0;display:grid;gap:2px}
.sp-lgb__o b{font-size:13px;font-weight:700;line-height:1.2}
.sp-lgb__o small{font-size:var(--fs-small,12px);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}

/* ---------- uzun vadeli bahisler: oranlar düğme değil, düz satır ---------- */
.ot-h{position:relative;padding:14px 14px 12px;border-radius:var(--r-card,14px);background:radial-gradient(130% 70% at 50% 0%,var(--k272727,#272727),var(--k191919,#191919) 72%);box-shadow:inset 0 1px 0 rgba(var(--ov,255,255,255),.08)}
.ot-h small{display:block;font-size:var(--fs-small,12px);color:var(--muted)}
.ot-h h4{margin:5px 0 8px;font:800 21px/1.1 var(--disp);overflow-wrap:anywhere}
.ot-h p{display:flex;justify-content:space-between;gap:12px;font-size:var(--fs-small,12px);color:var(--muted);font-variant-numeric:tabular-nums}
.ot-h p span:last-child{flex:none}
.ot-note{margin:10px 2px 0;font-size:var(--fs-micro,10.5px);line-height:1.5;color:var(--dim)}
.ot-list{display:grid;gap:6px;margin-top:10px}
.ot-m{border-radius:var(--r-tile,12px);background:var(--surface)}
.ot-m__h{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;padding:8px 10px 8px 12px;text-align:left}
.ot-m__h b{flex:1;min-width:0;font-size:13.5px;font-weight:700;line-height:1.25;overflow-wrap:anywhere}
.ot-m__h small{flex:none;font-size:var(--fs-micro,10.5px);color:var(--muted);font-variant-numeric:tabular-nums}
.ot-m__h .sp-i{width:15px;height:15px;color:var(--dim);transition:transform .3s var(--ease)}
.ot-m.is-open .ot-m__h .sp-i{transform:rotate(180deg)}
.ot-m__l{list-style:none;margin:0;padding:0 12px}
.ot-m__l li{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:38px;border-top:1px solid var(--line);font-size:13px}
.ot-m__l span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ot-m__l b,.ot-m__c b{font-weight:700;color:var(--tg2,var(--g2));font-variant-numeric:tabular-nums}
.ot-m__more{display:block;width:100%;height:42px;border-top:1px solid var(--line);font-size:12.5px;font-weight:600;color:var(--muted)}
.ot-m--c{display:flex;align-items:center;gap:12px;min-height:46px;padding:7px 12px}
.ot-m--c h5{flex:1;min-width:0;margin:0;font-size:13px;font-weight:600;line-height:1.25;overflow-wrap:anywhere}
.ot-m--s h5{margin:0;padding:12px 12px 10px;font-size:13.5px;font-weight:700;line-height:1.25;overflow-wrap:anywhere}
.ot-m__c{flex:none;display:flex;gap:14px}
.ot-m__c span{display:grid;justify-items:end;gap:2px;min-width:36px}
.ot-m__c small{font-size:var(--fs-micro,10.5px);line-height:1;color:var(--muted)}
.ot-m__c b{font-size:13px;line-height:1.1}

/* ---------- maç sonuçları ---------- */
.rs-bar{position:sticky;top:-12px;z-index:3;margin:-12px -12px 0;padding:10px 12px 8px;background:var(--bg)}
.rs-sp{display:flex;gap:6px;margin:0 -12px 8px;padding:0 12px;overflow-x:auto;scrollbar-width:none}
.rs-sp::-webkit-scrollbar{display:none}
.rs-sp button{flex:none;display:flex;align-items:center;justify-content:center;gap:6px;height:36px;min-width:36px;padding:0 9px;border-radius:999px;color:var(--muted);font-size:13px;font-weight:700;white-space:nowrap;box-shadow:inset 0 0 0 1px var(--line);transition:background .2s,color .2s}
.rs-sp button{padding:0 13px 0 10px}
.rs-sp button span{display:block}
.rs-sp button.txt{padding:0 12px}
.rs-sp button.txt span{display:block}
.rs-sp button[aria-pressed=true]{padding:0 13px 0 10px;background:var(--g2);color:#141414;box-shadow:none}
.rs-sp button[aria-pressed=true] span:not(:empty){display:block}
.rs-bar .sp-search{margin:0}
.rs-list .sp-empty{padding:40px 8px}
.rs-note{margin:14px 2px 0;font-size:var(--fs-micro,10.5px);line-height:1.5;color:var(--dim)}

@media (prefers-reduced-motion:reduce){
  .sp-tlb,.sp-lgb__o,.ot-m__h .sp-i,.rs-g__h .sp-i,.lgx__t>.sp-i,.lgx__c svg{transition:none}
}

/* ---------- Tüm ligler: popüler ligler ve ülkeler → ligler, çoklu seçim ---------- */
.sp-lgl__q{height:44px;margin:0 0 10px}
.sp-lgl__b:has(.lgx){border-radius:var(--r-card,14px);background:var(--k1b1b1b,#1b1b1b);box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.lgx+.lgx{border-top:1px solid var(--line)}
.lgx__h{display:flex;align-items:center;min-height:52px;padding-right:4px}
.lgx__t{flex:1;min-width:0;display:flex;align-items:center;gap:10px;min-height:52px;padding:0 4px 0 10px;text-align:left;color:var(--text)}
.lgx__t:disabled{cursor:default}
.lgx__t>.sp-i{flex:none;width:16px;height:16px;color:var(--muted);transition:transform .2s var(--ease)}
.lgx.is-open .lgx__t>.sp-i{transform:rotate(90deg)}
.lgx__t b{flex:1;min-width:0;font-size:14.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lgx__t em,.lgx__n em{flex:none;font:600 13px/1 var(--disp);font-style:normal;color:var(--muted);font-variant-numeric:tabular-nums}
.lgx__i{position:relative;flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--surface-2,#272727);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--muted)}
.lgx__i .sp-i{width:15px;height:15px}
.lgx__i--f{background:none;box-shadow:none}
.lgx__i--f img{display:block;width:26px;height:26px;border-radius:50%}
.lgx__i--f::after{content:'';position:absolute;inset:0;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(var(--ov,255,255,255),.16)}
.lgx__i--top{background:none;box-shadow:none;color:var(--tg2,var(--g2))}
.lgx__i--top .sp-i{width:21px;height:21px}
.lgx__b:not(:empty){background:rgba(var(--ov,255,255,255),.025)}
.lgx__r{display:flex;align-items:center;min-height:48px;padding-right:4px;border-top:1px solid var(--line)}
.lgx__n{flex:1;min-width:0;display:flex;align-items:center;gap:10px;min-height:48px;padding:4px 4px 4px 36px;text-align:left;color:var(--text)}
.lgx__m{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:7px;overflow:hidden}
.lgx__m--logo{background:#fbfdfc}
.lgx__m--logo img{display:block;width:100%;height:100%;object-fit:contain}
.lgx__m--flag{position:relative;border-radius:50%}
.lgx__m--flag img{display:block;width:26px;height:26px;border-radius:50%}
.lgx__m--flag::after{content:'';position:absolute;inset:0;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(var(--ov,255,255,255),.16)}
.lgx__m--mono{background:var(--surface-2,#272727);box-shadow:inset 0 0 0 1px var(--line-2);font:800 9px/1 var(--disp);color:var(--text)}
.lgx__n>span:not(.lgx__m){flex:1;min-width:0;display:grid;gap:2px}
.lgx__n b{font-size:13.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lgx__n small{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lgx__t:not(:disabled):active,.lgx__n:active{opacity:.7}
.lgx__r:has(.lgx__c[aria-checked=true]) .lgx__n b,.lgx.has-on>.lgx__h b{color:var(--tg1,var(--g1))}
.lgx__c{flex:none;display:grid;place-items:center;width:44px;height:44px}
.lgx__c svg{width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--line-2);fill:none;stroke:#1a1405;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;transition:background .15s,box-shadow .15s}
.lgx__c .lgx__v,.lgx__c .lgx__d{display:none}
.lgx__c[aria-checked=true] svg{background:var(--g2);box-shadow:none}
.lgx__c[aria-checked=true] .lgx__v{display:inline}
.lgx__c[aria-checked=mixed] svg{box-shadow:inset 0 0 0 1.5px var(--g2);stroke:var(--tg2,var(--g2))}
.lgx__c[aria-checked=mixed] .lgx__d{display:inline}
.lgx__c:active svg{transform:scale(.9)}
.lgx-f{flex:none;display:flex;gap:8px;padding:10px 16px 24px;border-top:1px solid var(--line);background:var(--bg)}
.lgx-f[hidden]{display:none}
.lgx-f .btn{height:46px}
.lgx-f__x{flex:none;padding:0 16px}
.lgx-f__x:disabled{opacity:.4}
.lgx-f__go{flex:1;min-width:0;gap:8px;padding:0 14px}
.lgx-f__go small{min-width:0;font-size:12.5px;font-weight:500;opacity:.7;overflow:hidden;text-overflow:ellipsis}
.sp-lgs__n{display:grid;place-items:center;min-width:18px;height:18px;margin-left:4px;padding:0 5px;border-radius:999px;background:var(--g2);color:#1a1405;font-size:11px;font-weight:800}
.sp-lgs__clr .sp-i{width:13px;height:13px;margin-right:2px}
/* maç kartı: lig adının önünde küçük lig işareti (logo / bayrak / küre / dal simgesi) */
.sp-lm{flex:none;display:grid;place-items:center;width:18px;height:18px;margin-right:-2px;border-radius:50%;overflow:hidden}
.sp-lm img{display:block;width:100%;height:100%;object-fit:cover}
.sp-lm--logo{background:#fbfdfc}
.sp-lm--logo img{width:13px;height:13px;object-fit:contain}
.sp-lm--flag{box-shadow:0 0 0 1px rgba(var(--ov,255,255,255),.16)}
.sp-lm--i{color:var(--muted)}
.sp-lm--i svg{width:15px;height:15px}
/* lig şeridi: ülke / kategori — bayrak + ad (Tüm ligler listesindeki gibi) */
.sp-lgs .sp-lgs__c{gap:7px;padding:0 13px 0 9px}
.sp-lgs__f{flex:none;display:block;width:18px;height:18px;border-radius:50%;box-shadow:0 0 0 1px rgba(var(--ov,255,255,255),.16)}
.sp-lgs__f--i{display:grid;place-items:center;box-shadow:none;color:var(--muted)}
.sp-lgs__f--i svg{width:16px;height:16px}
.sp-lgs .on .sp-lgs__f--i{color:var(--ink)}

/* ---------- Sonuçlar: tek satırlık skorlar, açılır ligler ---------- */
.rs-sp .rs-sp__q{width:36px;padding:0}
.rs-sp .rs-sp__q .sp-i{width:17px;height:17px}
.rs-sp .rs-sp__q.on{background:var(--white);color:var(--ink);box-shadow:none}
.rs-find[hidden]{display:none}
.rs-bar .rs-find{height:44px}
.rs-g{margin-top:8px;border-radius:var(--r-card,14px);background:var(--k1b1b1b,#1b1b1b);box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.rs-g__h{display:flex;align-items:center;gap:7px;width:100%;min-height:44px;padding:0 10px 0 12px;text-align:left;color:var(--text)}
.rs-g__h b{flex:0 1 auto;min-width:0;font-size:13.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rs-g__h small{flex:1;min-width:40px;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rs-g__h .sp-i{width:16px;height:16px;color:var(--muted);transition:transform .25s var(--ease)}
.rs-g.is-open .rs-g__h .sp-i{transform:rotate(180deg)}
.rs-r{border-top:1px solid var(--line)}
.rs-r__m{display:grid;grid-template-columns:38px minmax(0,1fr) 48px minmax(0,1fr);align-items:center;gap:6px;width:100%;min-height:44px;padding:4px 10px 4px 12px;text-align:left;color:inherit}
.rs-r__t{font-size:11.5px;font-weight:500;color:var(--muted);font-variant-numeric:tabular-nums}
.rs-live{font-style:normal;font-size:10.5px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--tg1,var(--g1))}
.rs-r__n{min-width:0;font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rs-r__n--a{text-align:right}
.rs-r__n.l{font-weight:500;color:var(--muted)}
.rs-r__s{justify-self:center;min-width:46px;padding:4px 3px;border-radius:7px;background:var(--k282828,#282828);font:800 13.5px/1.1 var(--disp);text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}
.rs-r--live .rs-r__s{background:var(--g2);color:#141414}
.rs-x.sp-stats{margin:0 12px 10px;padding-top:8px}

/* ---------- outright: oran düğmesi (kupona eklenir), seçili — altın ---------- */
.ot-m__l li{display:block;min-height:0}
.ot-o{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:42px;font-size:13px;text-align:left;color:var(--text);-webkit-tap-highlight-color:transparent}
.ot-o span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ot-m__l .ot-o b{flex:none;min-width:58px;padding:6px 8px;border-radius:9px;background:var(--surface-2);text-align:center;transition:background .2s,color .2s,transform .15s}
.ot-o:active b{transform:scale(.94)}
.ot-o.on b{background:var(--gold);color:#141414}
.ot-m__c .ot-o{display:grid;justify-items:center;gap:3px;width:auto;min-width:54px;min-height:0;padding:5px 8px;border-radius:9px;background:var(--surface-2)}
.ot-m__c .ot-o.on{background:var(--gold)}
.ot-m__c .ot-o.on small,.ot-m__c .ot-o.on b{color:#141414}
