:root {
  --zemin: #0b1210; --kart: #131c19; --kart2: #1a2622; --cizgi: #24332e;
  --yazi: #e8efec; --soluk: #8a9b95; --yesil: #22c55e; --kirmizi: #ef4444; --sari: #facc15;
  --mavi: #38bdf8; --ust-h: 52px; --alt-h: 58px;
  --gb: env(safe-area-inset-bottom, 0px); --gu: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--zemin); color: var(--yazi);
  font: 15px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { padding: calc(var(--ust-h) + var(--gu)) 0 calc(var(--alt-h) + var(--gb)); overscroll-behavior-y: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.ust { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: calc(var(--ust-h) + var(--gu));
  padding: var(--gu) 14px 0; display: flex; align-items: center; justify-content: space-between;
  background: rgba(11, 18, 16, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cizgi); }
.marka { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; letter-spacing: .3px; }
.marka img { width: 28px; height: 28px; }
.ust-sag { display: flex; gap: 8px; align-items: center; color: var(--soluk); font-size: 13px; }
.geri { background: none; border: 0; padding: 6px 4px; font-size: 16px; color: var(--yesil); font-weight: 600; }

.alt { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex;
  height: calc(var(--alt-h) + var(--gb)); padding-bottom: var(--gb);
  background: rgba(11, 18, 16, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--cizgi); }
.alt a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 11px; color: var(--soluk); }
.alt a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linejoin: round; stroke-linecap: round; }
.alt a.aktif { color: var(--yesil); }

main { max-width: 720px; margin: 0 auto; }

/* gun seridi + filtre */
.gunler { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px 4px; scrollbar-width: none; }
.gunler::-webkit-scrollbar, .cipler::-webkit-scrollbar, .sekmeler::-webkit-scrollbar { display: none; }
.gun { flex: 0 0 auto; min-width: 54px; text-align: center; padding: 6px 8px; border-radius: 12px;
  background: var(--kart); border: 1px solid var(--cizgi); font-size: 12px; color: var(--soluk); }
.gun b { display: block; font-size: 15px; color: var(--yazi); }
.gun.aktif { background: var(--yesil); border-color: var(--yesil); color: #052e14; }
.gun.aktif b { color: #052e14; }
.cipler { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; scrollbar-width: none; }
.cip { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; background: var(--kart);
  border: 1px solid var(--cizgi); font-size: 13px; color: var(--soluk); white-space: nowrap; }
.cip.aktif { color: var(--yazi); border-color: var(--yesil); background: #12301f; }
.cip .say { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px;
  background: var(--kirmizi); color: #fff; font-size: 11px; font-weight: 700; text-align: center; }

/* lig blogu + mac satiri */
.lig { margin: 8px 10px 12px; background: var(--kart); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--cizgi); }
.lig-bas { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-weight: 700; font-size: 13px;
  background: var(--kart2); color: #cfe0d8; }
.lig-bas .rozet { font-size: 10px; padding: 2px 6px; border-radius: 6px; background: #0d3b22; color: #86efac; }
.mac { display: grid; grid-template-columns: 52px 1fr 34px; align-items: center; gap: 8px;
  padding: 10px 12px; border-top: 1px solid var(--cizgi); position: relative; }
.mac:active { background: var(--kart2); }
.mac .zaman { text-align: center; font-size: 12px; color: var(--soluk); font-weight: 600; }
.mac.canli .zaman { color: var(--yesil); }
.mac.canli .zaman::before { content: ""; display: block; width: 6px; height: 6px; margin: 0 auto 3px;
  border-radius: 50%; background: var(--yesil); animation: nabiz 1.4s infinite; }
@keyframes nabiz { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }
.takimlar { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tk { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tk img { width: 20px; height: 20px; object-fit: contain; flex: 0 0 20px; }
.tk span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk.kazanan span { font-weight: 700; }
.tk .kart-k { width: 8px; height: 11px; background: var(--kirmizi); border-radius: 1.5px; flex: 0 0 8px; }
.skorlar { display: flex; flex-direction: column; gap: 5px; text-align: right; font-weight: 700; font-size: 16px; }
.mac.canli .skorlar { color: var(--yesil); }
.mac.oncesi .skorlar { color: transparent; }
.mac .yildiz { position: absolute; right: 50px; top: 50%; transform: translateY(-50%); color: var(--sari);
  font-size: 12px; }
.mac.flas { animation: flas 1.2s ease 3; }
@keyframes flas { 0%, 100% { background: transparent } 50% { background: rgba(34, 197, 94, .25) } }
.bos { text-align: center; color: var(--soluk); padding: 40px 20px; }
.yukleniyor { text-align: center; color: var(--soluk); padding: 30px; }

/* mac detay */
.d-bas { padding: 16px 12px 12px; background: linear-gradient(180deg, #102a1c, var(--zemin)); }
.d-lig { text-align: center; color: var(--soluk); font-size: 12px; margin-bottom: 12px; }
.d-skor { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.d-tk { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-weight: 600;
  font-size: 14px; }
.d-tk img { width: 56px; height: 56px; object-fit: contain; }
.d-orta { text-align: center; }
.d-orta .s { font-size: 38px; font-weight: 800; letter-spacing: 2px; }
.d-orta .durum { font-size: 13px; color: var(--soluk); font-weight: 600; }
.d-orta.canli .durum { color: var(--yesil); }
.d-orta .pen { font-size: 12px; color: var(--soluk); }
.d-gollar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; font-size: 12px;
  color: var(--soluk); }
.d-gollar div:last-child { text-align: right; }
.d-bilgi { text-align: center; font-size: 11px; color: var(--soluk); margin-top: 8px; }
.sekmeler { display: flex; gap: 4px; padding: 0 10px; overflow-x: auto; border-bottom: 1px solid var(--cizgi);
  position: sticky; top: calc(var(--ust-h) + var(--gu)); background: var(--zemin); z-index: 5; scrollbar-width: none; }
.sekmeler button { flex: 0 0 auto; background: none; border: 0; padding: 11px 12px; color: var(--soluk);
  font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; }
.sekmeler button.aktif { color: var(--yazi); border-color: var(--yesil); }
.icerik { padding: 10px; }

.akis { position: relative; }
.olay { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; padding: 7px 0; font-size: 13px; }
.olay .dk { text-align: center; font-weight: 700; color: var(--soluk); font-size: 12px; }
.olay .sol { text-align: right; padding-right: 6px; }
.olay .sag { padding-left: 6px; }
.olay .kim { font-weight: 600; }
.olay .ek { color: var(--soluk); font-size: 12px; }
.olay.ara { grid-template-columns: 1fr; text-align: center; color: var(--soluk); font-size: 12px; padding: 10px 0;
  border-top: 1px dashed var(--cizgi); border-bottom: 1px dashed var(--cizgi); margin: 6px 0; }
.ik { display: inline-block; width: 18px; text-align: center; }
.kartk { display: inline-block; width: 10px; height: 13px; border-radius: 2px; vertical-align: -2px; }
.kartk.s { background: var(--sari); } .kartk.k { background: var(--kirmizi); }
.giren { color: var(--yesil); } .cikan { color: var(--kirmizi); }

.ist { margin: 4px 2px 14px; }
.ist-ust { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.ist-ust .ad { color: var(--soluk); }
.ist-ust b.onde { color: var(--yesil); }
.cubuk { display: flex; gap: 4px; height: 6px; }
.cubuk div { flex: 1; background: var(--kart2); border-radius: 3px; overflow: hidden; display: flex; }
.cubuk .e { justify-content: flex-end; }
.cubuk i { display: block; height: 100%; background: #4b5d57; border-radius: 3px; }
.cubuk i.onde { background: var(--yesil); }

.kadro-sec { display: flex; gap: 6px; margin-bottom: 10px; }
.kadro-sec button { flex: 1; padding: 8px; border-radius: 10px; background: var(--kart); border: 1px solid var(--cizgi);
  display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 13px; }
.kadro-sec button.aktif { border-color: var(--yesil); background: #12301f; }
.kadro-sec img { width: 18px; height: 18px; }
.saha { position: relative; background: linear-gradient(180deg, #14532d, #166534 50%, #14532d); border-radius: 14px;
  aspect-ratio: 3 / 4; margin-bottom: 12px; overflow: hidden; border: 2px solid #1f7a44; }
.saha::before { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 46%;
  height: 15%; border: 2px solid rgba(255, 255, 255, .25); border-top: 0; }
.saha::after { content: ""; position: absolute; left: 50%; bottom: -12%; transform: translateX(-50%); width: 34%;
  aspect-ratio: 1; border: 2px solid rgba(255, 255, 255, .25); border-radius: 50%; }
.saha .dizilis { position: absolute; right: 8px; bottom: 6px; font-size: 12px; color: rgba(255, 255, 255, .7);
  font-weight: 700; z-index: 2; }
.oy { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column;
  align-items: center; width: 74px; z-index: 2; }
.oy .no { width: 30px; height: 30px; border-radius: 50%; background: #f8fafc; color: #0f172a; display: flex;
  align-items: center; justify-content: center; font-weight: 800; font-size: 13px; position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .35); }
.oy.kaleci .no { background: var(--sari); }
.oy .ad { font-size: 11px; margin-top: 3px; text-align: center; text-shadow: 0 1px 2px #000; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 74px; }
.oy .isaret { font-size: 9px; line-height: 1; min-height: 9px; display: flex; gap: 2px; align-items: center; }
.oy .isaret .kartk { width: 7px; height: 9px; }
.puan { display: inline-block; min-width: 30px; padding: 1px 5px; border-radius: 6px; font-size: 11px;
  font-weight: 800; text-align: center; color: #fff; }
.oy .puan { position: absolute; top: -8px; right: 2px; }
.p1 { background: #dc2626; } .p2 { background: #ea580c; } .p3 { background: #ca8a04; } .p4 { background: #16a34a; }
.p5 { background: #0ea5e9; } .p6 { background: #7c3aed; }
.oy .rozetler { position: absolute; top: -6px; left: 8px; font-size: 10px; }
.liste-baslik { font-size: 12px; color: var(--soluk); text-transform: uppercase; letter-spacing: .5px;
  margin: 14px 4px 6px; }
.oyuncu { display: grid; grid-template-columns: 28px 1fr auto auto; align-items: center; gap: 8px; padding: 8px 6px;
  border-bottom: 1px solid var(--cizgi); font-size: 14px; }
.oyuncu .no { color: var(--soluk); font-size: 12px; text-align: center; }
.oyuncu .poz { color: var(--soluk); font-size: 11px; }
.oyuncu .detay { color: var(--soluk); font-size: 12px; }
.not-kucuk { color: var(--soluk); font-size: 11px; margin: 8px 4px; }

.oran-kutu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.oran { background: var(--kart); border: 1px solid var(--cizgi); border-radius: 12px; padding: 10px; text-align: center; }
.oran small { display: block; color: var(--soluk); font-size: 12px; }
.oran b { font-size: 18px; }
.oran.fav { border-color: var(--yesil); }

.form { display: inline-flex; gap: 3px; }
.form i { width: 18px; height: 18px; border-radius: 4px; font-style: normal; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.form .W { background: #16a34a; } .form .D { background: #64748b; } .form .L { background: #dc2626; }

/* puan durumu */
.tablo { width: 100%; border-collapse: collapse; font-size: 13px; }
.tablo th { color: var(--soluk); font-weight: 600; font-size: 11px; padding: 8px 4px; text-align: center; }
.tablo td { padding: 8px 4px; text-align: center; border-top: 1px solid var(--cizgi); }
.tablo td.tkm { text-align: left; }
.tablo td.tkm div { display: flex; align-items: center; gap: 7px; max-width: 46vw; }
.tablo td.tkm img { width: 18px; height: 18px; object-fit: contain; }
.tablo td.tkm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tablo td.sira { width: 30px; position: relative; font-weight: 600; }
.tablo td.sira::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px;
  background: var(--r, transparent); }
.tablo td.p { font-weight: 800; }
.tablo tr.vurgu td { background: #12301f; }
.lejant { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 12px; font-size: 11px; color: var(--soluk); }
.lejant span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px;
  background: var(--r); margin-right: 5px; }
.tablo-kart { margin: 8px 10px; background: var(--kart); border-radius: 14px; border: 1px solid var(--cizgi);
  overflow: hidden; }

/* bildirim ayarlari */
.kutu { margin: 10px; padding: 14px; background: var(--kart); border: 1px solid var(--cizgi); border-radius: 14px; }
.kutu h3 { margin: 0 0 10px; font-size: 15px; }
.kutu p { margin: 6px 0; color: var(--soluk); font-size: 13px; }
.dugme { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 16px;
  border-radius: 12px; border: 0; background: var(--yesil); color: #052e14; font-weight: 700; font-size: 15px; width: 100%; }
.dugme.ikincil { background: var(--kart2); color: var(--yazi); border: 1px solid var(--cizgi); }
.dugme + .dugme { margin-top: 8px; }
.anahtar { display: flex; align-items: center; justify-content: space-between; padding: 10px 0;
  border-top: 1px solid var(--cizgi); font-size: 14px; }
.anahtar:first-of-type { border-top: 0; }
.anahtar input { display: none; }
.anahtar i { width: 46px; height: 28px; border-radius: 14px; background: #33433d; position: relative; transition: .2s;
  flex: 0 0 46px; }
.anahtar i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; transition: .2s; }
.anahtar input:checked + i { background: var(--yesil); }
.anahtar input:checked + i::after { left: 21px; }
.ara { width: 100%; padding: 10px 12px; border-radius: 10px; background: var(--zemin); border: 1px solid var(--cizgi);
  color: var(--yazi); font-size: 15px; margin-bottom: 8px; }
.tk-liste { max-height: 320px; overflow-y: auto; }
.tk-sec { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--cizgi); }
.tk-sec img { width: 22px; height: 22px; object-fit: contain; }
.tk-sec span { flex: 1; }
.tk-sec small { color: var(--soluk); font-size: 11px; }
.tk-sec .yld { font-size: 20px; color: #3a4a44; background: none; border: 0; padding: 0 4px; }
.tk-sec .yld.on { color: var(--sari); }
.secili { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.secili span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px;
  background: #12301f; border: 1px solid var(--yesil); font-size: 12px; }
.secili img { width: 14px; height: 14px; }
.adimlar { margin: 8px 0 0; padding-left: 20px; color: var(--yazi); font-size: 14px; }
.adimlar li { margin: 6px 0; }

.tost { position: fixed; left: 50%; top: calc(var(--ust-h) + var(--gu) + 10px); transform: translate(-50%, -20px);
  background: #0f2a1b; border: 1px solid var(--yesil); color: var(--yazi); padding: 10px 14px; border-radius: 12px;
  font-size: 14px; z-index: 50; opacity: 0; pointer-events: none; transition: .25s; max-width: 92vw;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5); white-space: pre-line; }
.tost.goster { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* canli puan durumu */
.puan-mod { display: flex; gap: 4px; margin: 0 12px 8px; padding: 3px; background: var(--kart); border-radius: 10px; width: max-content; }
.puan-mod button { border: 0; background: none; color: var(--soluk); font: inherit; font-size: 13px; padding: 5px 14px; border-radius: 8px; }
.puan-mod button.aktif { background: #12301f; color: var(--yazi); }
.canli-not { display: flex; align-items: center; gap: 8px; margin: 0 12px 8px; font-size: 12px; color: var(--soluk); }
.canli-not .nokta { width: 7px; height: 7px; border-radius: 50%; background: var(--kirmizi); flex: 0 0 7px; animation: nabiz 1.4s infinite; }
@keyframes nabiz { 50% { opacity: .3; } }
.tablo td.sira .ok { display: block; font-size: 9px; font-weight: 700; line-height: 1; margin-top: 1px; }
.ok.yukari { color: var(--yesil); } .ok.asagi { color: var(--kirmizi); }
.tablo td.tkm .c-mac { flex: 0 0 auto; margin-left: auto; padding: 1px 6px; border-radius: 6px; font-size: 11px; font-weight: 700;
  text-decoration: none; color: #fff; background: #4b5d57; white-space: nowrap; }
.tablo td.tkm .c-mac small { font-weight: 500; opacity: .8; }
.c-mac.G { background: #15803d; } .c-mac.M { background: #b91c1c; }
