:root {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-2: #1e222b;
  --line: #262b36;
  --text: #e8eaf0;
  --muted: #8b93a7;
  --accent: #4ade80;
  --accent-soft: rgba(74, 222, 128, 0.14);
  --danger: #f47a72;
  --warn: #fbbf5c;
  --star: #fbbf24;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="light"] {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #f0f2f6;
  --line: #e2e5ec;
  --text: #15181f;
  --muted: #666d80;
  --accent: #2fa35c;
  --accent-soft: rgba(47, 163, 92, 0.12);
}

* { box-sizing: border-box; }
/* iOS oto-zoom önlemi: input/textarea/select 16px altına düşmez */
input, textarea, select {
  font-size: 16px !important;
}
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
body { padding-bottom: 60px; -webkit-font-smoothing: antialiased; }
/* geniş tablolar vs. sayfayı yatayda taşırmaz; taşan öğe kendi içinde kayar */
html, body { overflow-x: hidden; overflow-x: clip; }
body { min-width: 0; }
button, input { font-family: inherit; color: inherit; }
.hidden { display: none !important; }

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover .brand-tld { filter: brightness(1.15); }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.icon-btn { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; width: 36px; height: 36px; cursor: pointer; font-size: 16px; }
.icon-btn:hover { background: var(--surface-2); }
.top-right { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang-btn { width: auto; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; padding: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.lang-search { width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 14px; outline: none; }
.lang-list { max-height: 320px; overflow-y: auto; padding: 4px; }
.lang-opt small { margin-left: auto; color: var(--muted); font-size: 11px; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .lang-opt small, [dir="rtl"] .tv-opt small, [dir="rtl"] .tv-caret, [dir="rtl"] .league-head .star { margin-left: 0; margin-right: auto; }
[dir="rtl"] .match .score { align-items: flex-start; }
[dir="rtl"] .ev .l { text-align: left; } [dir="rtl"] .ev .r { text-align: right; }
.lang-opt { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font-size: 14px; cursor: pointer; text-align: left; }
.lang-opt:hover { background: var(--surface-2); }
.lang-opt.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.banner {
  margin: 12px 16px 0; padding: 10px 14px; border-radius: 10px; font-size: 13px;
  background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.4); color: var(--warn);
}
.banner code { background: rgba(0,0,0,0.25); padding: 1px 5px; border-radius: 4px; color: var(--text); }

.tabs { display: flex; gap: 6px; padding: 12px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 600; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.tab .live-pill { color: var(--accent); font-size: 10px; }
.tab.active .live-pill { color: var(--accent); }
.tab .count { font-size: 12px; opacity: 0.75; }
.tab-date { padding: 4px 8px; }
.tab-date input { background: transparent; border: 0; font-size: 14px; font-weight: 600; color: inherit; width: 130px; }
.tab-date input::-webkit-calendar-picker-indicator { filter: invert(0.6); }

.toolbar { display: flex; gap: 8px; padding: 8px 16px 12px; align-items: center; flex-wrap: wrap; }
/* Sahadan tarzı sıralama çipleri: "Lige Göre / Tarihe Göre" */
.list-sort { display: flex; gap: 8px; flex: 0 0 auto; }
/* Sıralama seçici: standart pill form — kadro filtreleriyle aynı tasarım ama
   MAVİ vurgu (kullanıcı talebi: yeşil yerine başka renk) */
.list-sort .sort-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background .14s, color .14s, border-color .14s;
}
.list-sort .sort-chip:hover { color: var(--text); }
.list-sort .sort-chip.active {
  background: #3b6fd4;
  color: #fff;
  border-color: transparent;
}
.list-sort .sort-ic { font-size: 13px; line-height: 1; }
.toolbar input {
  flex: 1; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); font-size: 14px; outline: none;
}
.toolbar input:focus { border-color: var(--muted); }
.chip {
  padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; cursor: pointer; white-space: nowrap;
}
.chip.active { color: var(--star); border-color: var(--star); }

.list { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }

.league { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.league-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--surface-2); font-size: 13px; font-weight: 600; cursor: pointer; user-select: none;
}
.league-head img { width: 18px; height: 18px; object-fit: contain; border-radius: 3px; }
/* UEFA kupalarının 3D emblemleri: biraz büyük + yuvarlak + hafif derinlik */
.league-head img[src*="-3d.png"] {
  width: 22px; height: 22px; border-radius: 50%;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}
.m-league .m-league-logo {
  width: 14px; height: 14px; object-fit: contain; border-radius: 50%;
  vertical-align: middle; margin-right: 4px;
}
.league-head .country { color: var(--muted); font-weight: 500; }
.league-head .star { margin-left: auto; background: none; border: 0; cursor: pointer; font-size: 16px; color: var(--muted); padding: 0 4px; }
.league-head .star.on { color: var(--star); }
.league-head .caret { color: var(--muted); font-size: 11px; }
.league.collapsed .match { display: none; }

.match {
  display: grid; grid-template-columns: 48px 1fr auto 28px; gap: 10px; align-items: center;
  padding: 10px 8px 10px 14px; border-top: 1px solid var(--line); cursor: pointer; transition: background .12s;
}
.match:hover { background: var(--surface-2); }
.match .time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  font-variant-numeric: tabular-nums; }
.match.live .time { color: var(--accent); font-weight: 700; }
.match.live .time::after { content: ""; display: block; width: 4px; height: 4px; margin: 3px auto 0; border-radius: 50%; background: var(--accent); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.match .teams { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
/* ana listede kırmızı kart rozeti: takım adının yanında küçük kart */
.rc-mini {
  flex: 0 0 auto;
  width: 9px;
  height: 13px;
  border-radius: 2px;
  background: #e5484d;
  margin-left: 6px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.match .team { display: flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match .team img { width: 18px; height: 18px; object-fit: contain; flex: 0 0 18px; }
.match .team .logo-ph { width: 18px; height: 18px; border-radius: 50%; background: var(--line); flex: 0 0 18px; font-size: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.match .team.winner { font-weight: 700; }
.match .score { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 700; min-width: 28px; }
.match.live .score { color: var(--accent); }
.match .score .ht { font-size: 11px; color: var(--muted); font-weight: 500; }
.match.scheduled .score { color: var(--muted); font-weight: 500; }
.match.other .time { color: var(--warn); }
/* Favoriler */
.mstar, .tstar { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 18px; line-height: 1; padding: 6px 4px; border-radius: 8px; transition: color .12s, transform .12s; -webkit-tap-highlight-color: transparent; }
.mstar:hover, .tstar:hover { color: var(--text); }
.mstar.on, .tstar.on { color: var(--star); }
.mstar:active, .tstar:active { transform: scale(1.25); }
.tstar { display: block; margin: 4px auto 0; font-size: 20px; }
.d-team span { display: block; }
.league.favs { border-color: color-mix(in srgb, var(--star) 35%, var(--line)); }
.league-head.fav-head { cursor: default; }
.fav-head .fav-ic { color: var(--star); }
.fav-head .count { margin-left: auto; color: var(--muted); font-weight: 500; }
[dir="rtl"] .fav-head .count { margin-left: 0; margin-right: auto; }
.m-league { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-league img { width: 12px; height: 12px; object-fit: contain; }

.day-head { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; padding: 6px 4px 0; }
.day-head .count { font-weight: 500; text-transform: none; letter-spacing: 0; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; font-size: 14px; }
.error { text-align: center; color: var(--danger); padding: 24px 16px; font-size: 13px; }
/* ---------- profesyonel yükleme animasyonu: sade dönen halka + üç nokta nabız ----------
   Eski skeleton (shimmer blok) kaldırıldı — kullanıcı talebi. Spinner: ince ring,
   üst yayı accent renkte döner; altında üç nokta sırayla nabız gibi yanar. */
.spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 16px;
  min-height: 120px;
}
.spinner-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
.spinner-dots {
  display: flex;
  gap: 6px;
}
.spinner-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: dotpulse 1.2s ease-in-out infinite;
}
.spinner-dots i:nth-child(2) { animation-delay: 0.15s; }
.spinner-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dotpulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}
/* kompakt varyant: sekmeler arası geçişte yükseklik zıplamasın */
.spinner.compact { padding: 36px 16px; min-height: 96px; }
.spinner.compact .spinner-ring { width: 28px; height: 28px; border-width: 2.5px; }
.spinner-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
@media (prefers-reduced-motion: reduce) {
  .spinner-ring { animation-duration: 1.6s; }
  .spinner-dots i { animation: none; opacity: 0.7; }
}

.foot { position: fixed; bottom: 0; left: 0; right: 0; padding: 8px 16px; font-size: 11px; color: var(--muted); text-align: center; background: var(--bg); border-top: 1px solid var(--line); }

/* Detay */
.detail { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,0.55); display: flex; justify-content: center; align-items: flex-end; }
.detail-inner {
  /* iOS Safari: 92vh alt çubuk görünürken gerçek alanı aşıyor → popup üstü
     ekran dışında kalıp kapatma/ise yaramıyordu. dvh (dinamik viewport) +
     svh fallback kullanılır. */
  width: 100%; max-width: 640px; height: 92vh; height: 92dvh; max-height: none; overflow-y: auto; overflow-x: clip; background: var(--bg);
  border-radius: 18px 18px 0 0; padding: 16px; position: relative; animation: up .18s ease-out;
}
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
@media (min-width: 700px) {
  .detail { align-items: center; }
  .detail-inner { border-radius: 18px; }
}
/* kapatma butonu sticky başlığın İÇİNDE sağ üstte — d-head-sticky z-index 6
   butonu örtmesin diye buton da bu katmanın içinde (her zaman görünür) */
.close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 7;
  /* mobil: dokunma hedefi 44px (Apple önerisi) + 300ms dokunma gecikmesini kapat —
     küçük butonda dokunuş kayıp gidiyordu (kullanıcı bildirimi) */
  width: 44px;
  height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
/* futbol popup'ı kendi sticky başlığında X butonu basıyor (aşağı kaydırınca da
   görünür kalır) — index.html'deki sabit buton futbol tarafında ikinci X
   olarak görünüyordu (kullanıcı bildirimi); kriket popup'ı bu butonu kullanır,
   yalnız futbol tarafında gizlenir */
body:not([data-sport="cricket"]) .detail-inner > .close { display: none; }
/* mobil: popup ekran dışına kaymasın — width hesabı padding dâhil */
@media (max-width: 640px) {
  .detail-inner { max-width: 100vw; width: 100vw; box-sizing: border-box; height: 96vh; height: 96dvh; }
}
/* skorboard: sticky DEĞİL — scroll'da yukarı kayar (kullanıcı talebi:
   sarı ile işaretlenen büyük skor alanı ekranı kaplamasın). Yalnız sekme
   şeridi + X butonu sticky kalır — kullanıcı hangi sekmede olduğunu ve
   kapatma butonunu kaybetmez. */
.d-head-sticky {
  position: relative;
  z-index: 6;
  margin: -16px -16px 0;    /* tam genişlik; altta boşluk yok — sekmeler skor kısmına yapışık */
  padding: 14px 16px 10px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
}
:root[data-theme="light"] .d-head-sticky { background: var(--bg); }
.d-league { font-size: 12px; color: var(--muted); text-align: center; margin: 4px 0 12px; }
.d-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 8px 0 16px; }
.d-team { text-align: center; font-weight: 600; font-size: 15px; }
.d-team img, .d-team .logo-ph { width: 48px; height: 48px; object-fit: contain; display: block; margin: 0 auto 8px; border-radius: 50%; }
.d-team .logo-ph { background: var(--surface-2); }
.d-num { font-size: 36px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; letter-spacing: 1px; }
.d-num.live { color: var(--accent); }
.d-clock { font-size: 12px; text-align: center; color: var(--muted); margin-top: 4px; }
.d-clock.live { color: var(--accent); font-weight: 700; }
/* ---------- sticky mini skorboard: yalnız scroll'da, sekmelerin ÜSTÜNDE ----------
   Sayfa en üstteyken büyük skorboard zaten görünür — d-mini hidden.
   IntersectionObserver skorboard ekran dışına çıkınca gösterir; d-mini ve
   d-tabs birlikte sticky kalır (d-mini top:0, d-tabs onun altında). */
.d-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 6;
  margin: 0 -16px;
  padding: 6px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.d-mini.hidden { display: none; }
.d-mini-team { display: inline-flex; align-items: center; }
.d-mini-logo, .d-mini-team .logo-ph { width: 20px; height: 20px; object-fit: contain; }
.d-mini-score {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  letter-spacing: 0.5px;
}
.d-mini-score.live { color: var(--accent); }

/* Sekme şeridi dar ekranda sayfayı taşırmaz: şeridin kendisi yatay kayar */
.d-tabs {
  display: flex;
  flex-wrap: nowrap;    /* Mackolik tarzı: tek satır, dar ekranda yatay kaydırılır */
  gap: 2px 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  overflow-x: auto;     /* yatay kaydırma — alt alta birikmez */
  overflow-y: hidden;
  /* masaüstünde ince görünür kaydırma çubuğu: fareyle sağa kaydırılabilsin
     (gizli çubukta kullanıcı kaydırma imkânı olmadığını anlamıyor) */
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  max-width: 100%;
  /* popup içinde sticky: aşağı kaydırınca sekmeler görünür kalır,
     kullanıcı hangi sekmede olduğunu ve sekmeleri kaybetmez */
  position: sticky;
  top: 33px;              /* üstte mini skorboard var — onun altında sticky */
  background: var(--bg);
  z-index: 5;
  margin: 0 -16px 12px;   /* üst boşluk yok — sekmeler skor kısmına yapışık */
  padding: 8px 16px 0;
}
.d-tabs::-webkit-scrollbar {
  height: 6px;
  -webkit-appearance: none;
}
.d-tabs::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}
.d-tabs::-webkit-scrollbar-track { background: transparent; }
/* masaüstü fare tekerleği: d-tabs üzerinde dikey tekerlek → yatay kaydır */
@media (hover: hover) and (pointer: fine) {
  .d-tabs {
    overscroll-behavior-x: contain;
  }
}
.d-tabs button {
  background: none;
  border: 0;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  flex: 0 0 auto;         /* sekme sarmasın, tek satırda kalsın */
  white-space: nowrap;    /* "Puan Durumu" iki satıra bölünmesin */
  cursor: pointer;
}
.d-tabs button:active { color: var(--text); }
.d-tabs button { background: none; border: 0; padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.d-tabs button.active { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- görselli kadro (saha görünümü) ---------- */
.pit-side { margin-bottom: 18px; }
.pit-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 650;
}
.pit-logo, .pit-head .logo-ph { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; }
.pit-name-team { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pit-fmt {
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 8px;
}
/* takım başlığı rozetleri: kırmızı kart / sarı kart / gol toplamları */
.th-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.th-badge.red { background: rgba(239, 68, 68, 0.16); border: 1px solid var(--danger); }
.th-badge.yellow { background: rgba(251, 191, 36, 0.14); border: 1px solid #fbbf24; color: #fbbf24; }
.th-badge.goal { background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent); }
.th-badge .ball3d { width: 15px; height: 15px; filter: none; }
.th-badge b { font-size: 11px; }

.pit {
  position: relative;
  height: 950px;
  border-radius: 16px;
  background:
    linear-gradient(to bottom, rgba(34,197,94,0.05), rgba(34,197,94,0.10)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 52px, transparent 52px 104px);
  border: 1px solid var(--line);
  overflow: visible; overflow-x: clip;
}
/* saha dokusu taşan öğelerden etkilenmesin diye ayrı katman */
.pit::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}
/* orta saha ve ceza sahası çizgileri */
.pit::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* orta çizgi + orta yuvarlak */
    linear-gradient(to bottom, transparent calc(50% - 1px), var(--line) calc(50% - 1px), var(--line) calc(50% + 1px), transparent calc(50% + 1px)),
    radial-gradient(circle at 50% 50%, transparent 40px, var(--line) 40px, var(--line) 41px, transparent 41px),
    /* üst ceza sahası (deplasman) */
    linear-gradient(to right, transparent 0, transparent calc(18% - 1px), var(--line) calc(18% - 1px), var(--line) calc(18% + 1px), transparent calc(18% + 1px), transparent calc(82% - 1px), var(--line) calc(82% - 1px), var(--line) calc(82% + 1px), transparent calc(82% + 1px)) ,
    /* alt ceza sahası (ev sahibi) */
    linear-gradient(to right, transparent 0, transparent calc(18% - 1px), var(--line) calc(18% - 1px), var(--line) calc(18% + 1px), transparent calc(18% + 1px), transparent calc(82% - 1px), var(--line) calc(82% - 1px), var(--line) calc(82% + 1px), transparent calc(82% + 1px));
  background-position: 0 0, 0 0, 0 0, 0 0;
  background-size: 100% 100%, 100% 100%, 100% 15%, 100% 15%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.pit-player {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 64px;
}
.pit-photo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.pit-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* kırmızı kart gören oyuncunun çemberi kırmızı (kullanıcı talebi) */
.pit-player.has-red .pit-photo { border-color: #ef4444; }
/* sarı kart gören oyuncunun çemberi sarı; sarı+kırmızı (ikinci sarı) kırmızı kalır */
.pit-player.has-yellow:not(.has-red) .pit-photo { border-color: #fbbf24; }
.pit-num {
  position: absolute;
  top: -4px;
  right: -2px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
  padding: 0 4px;
  color: var(--text);
  z-index: 2;
}
.pit-name {
  font-size: 9.5px;
  color: var(--text);
  /* iki satıra izin ver: uzun soyadlar kırpılmasın */
  max-width: 66px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* maç rozetleri: kart, gol, oyuncu değişimi */
.pit-badges {
  position: absolute;
  top: -3px;
  left: 2px;   /* sol kenara taşma: ekrandan kesiliyordu (kullanıcı bildirimi) */
  display: flex;
  flex-direction: column;
  gap: 1px;
  z-index: 3;
}
.pb {
  font-style: normal;
  font-size: 8px;
  line-height: 1;
  padding: 1px 3px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.pb.yk { color: #fbbf24; }
.pb.rk { color: #ef4444; }
.pb.gl { color: #22c55e; font-weight: 700; }
.pb.sub { color: #ef4444; font-weight: 800; }

/* oyundan çıkan / kırmızı kart gören oyuncu soluklaşır */

/* ---------- kadro: Mackolik tarzı tek dikey saha + takım ortalaması kartları ---------- */
/* oyuncu pill'i: yeşil zemin, numara + isim tek kapsül */
.pit-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 92px;
  padding: 2.5px 9px;
  border-radius: 999px;
  background: #14532d;
  border: 1px solid rgba(34, 197, 94, 0.55);
  color: #fff;
  font-size: 9.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pit-pill b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
/* eski ayrı numara/isim öğeleri dikey düzende kullanılmaz */
.pitch-vertical .pit-num,
.pitch-vertical .pit-name { display: none; }

/* saha içinde köşe etiketleri: deplasman üst, ev sahibi alt */






/* takım ortalaması kartları (saha üstü/altı) */
.pavg-row { margin: 10px 0; }
.pavg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.pavg-team {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
  font-size: 13px;
  font-weight: 700;
}
.pavg-logo, .pavg-team .logo-ph { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }
.pavg-team span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pavg-title { color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pavg-cells { display: flex; gap: 6px; }
.pavg-cell {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pavg-ico { font-size: 11px; }
.pavg-val.pavg-rate {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #171717;
}

/* yedek listesi — sekmeli (ev sahibi / deplasman) */
.bench-tabs {
  display: flex;
  gap: 6px;
  margin: 14px 0 10px;
}
.bench-tabs button {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: color .14s, background .14s, border-color .14s;
}
.bench-tabs button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bench-tabs button:hover { color: var(--text); background: var(--surface-2); }
.bench-tabs button.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
}
.bt-logo, .bench-tabs .logo-ph { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; flex: 0 0 auto; }
.bench-pane.hidden { display: none; }

.pl-list { list-style: none; margin: 0; padding: 0; }
.pl-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}
.pl-list li:last-child { border-bottom: 0; }
.pl-photo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  flex: 0 0 auto;
}
.pl-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.pl-info b { font-size: 12px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-info small { color: var(--muted); font-size: 10px; }
.pl-none { color: var(--muted); font-size: 11.5px; }

/* oyuna giren yedek: yeşil vurgu + girdiği dakika rozeti */
.pl-list li.played { background: rgba(34, 197, 94, 0.10); border-radius: 8px; padding-left: 6px; padding-right: 6px; }
.pl-min {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 2px 7px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pl-min.on {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.18);
  border-color: #22c55e;
}
.pl-min.card {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border-color: #fbbf24;
}

@media (max-width: 520px) {
  .pit { height: 330px; }
  .pit-photo { width: 32px; height: 32px; }
  .pit-player { width: 58px; }
  .pit-name { font-size: 8.5px; max-width: 56px; }
  .pit-badge { font-size: 8.5px; padding: 1px 4px; max-width: 58px; }
  .pl-blocks { grid-template-columns: 1fr; }
}

/* ---------- canlı kazanma olasılığı + editör yorumu ---------- */
/* ---------- momentum: FotMob tarzı dalga grafiği + istatistik satırları ---------- */
.momentum-box { padding: 12px 0 4px; }
.momentum.fm-style {
  background: var(--surface-2);
  color: var(--text);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 14px 14px 6px;
  overflow-x: clip;
}
.m-title {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  padding-bottom: 10px;
  color: var(--text);
}
.m-wave { display: block; width: 100%; height: 170px; }
.m-wave-wrap { position: relative; }
.m-goal {
  position: absolute;
  transform: translateX(-50%);
  pointer-events: none;
}
/* ev sahibi golü dalganın ÜSTünde (kırmızı taraf), deplasman golü ALTTA (mavi taraf) */
.m-goal-home { top: 5px; }
.m-goal-away { bottom: 5px; }
.m-goal .ball3d { width: 17px; height: 17px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55)); }
.m-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.m-tHT { color: var(--text); font-weight: 700; }
.m-stats { padding: 4px 0 10px; }
.m-poss {
  display: flex;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  margin: 8px 0 14px;
  gap: 2px;
}
.m-poss-seg {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 800;
  min-width: 56px;
}
.m-poss-seg.home { background: #f59e42; color: #171717; border-radius: 12px 0 0 12px; }
.m-poss-seg.away { background: #e8e13a; color: #171717; border-radius: 0 12px 12px 0; justify-content: flex-end; }
.m-stat-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
}
.m-stat-row:last-child { border-bottom: none; }

/* ---------- momentum fm2: FotMob iki kolonlu düzen (dalga | top stats) ---------- */
.fm2-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
}
.fm2-grid .fm2-left { padding-right: 18px; border-right: 1px solid var(--line); }
.fm2-grid .fm2-right { padding: 0 4px 0 18px; }
.fm2-grid.fm2-single { grid-template-columns: 1fr; }
.fm2-grid.fm2-single .fm2-left { border-right: none; padding-right: 0; }
.m-wave { height: 170px; }
.m-timeline {
  border-top: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 0;
  padding-top: 8px;
}
:root[data-theme="light"] .m-timeline { border-top-color: rgba(0, 0, 0, 0.25); }
.fm2-right .m-title { padding-bottom: 4px; }
.ts-poss-label {
  text-align: center;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text);
  padding: 10px 0 6px;
}
.fm2-right .m-poss {
  height: 38px;
  margin: 0 0 12px;
}
.m-poss-seg.home {
  background: #d6453c;
  color: #fff;
  border-radius: 10px 0 0 10px;
  justify-content: flex-start;
}
.m-poss-seg.away {
  background: #3b6fd4;
  color: #fff;
  border-radius: 0 10px 10px 0;
}
.m-stat-row {
  padding: 11px 2px 11px 0;
  gap: 10px;
}
.m-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #d6453c;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.m-stat-lbl {
  font-size: 13.5px;
  font-weight: 600;
}
.fm2-all {
  margin: 12px -14px -6px;
  padding: 13px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 750;
  color: var(--text);
  border-top: 1px solid var(--line);
  cursor: pointer;
  user-select: none;
}
.fm2-all:hover { background: rgba(255, 255, 255, 0.04); }
:root[data-theme="light"] .fm2-all:hover { background: rgba(0, 0, 0, 0.03); }

.m-stat-val {
  font-size: 15px;
  font-weight: 750;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.m-stat-val.away { text-align: right; }
.m-stat-lbl {
  text-align: center;
  font-size: 14px;
  color: var(--text);
}
:root[data-theme="light"] .momentum.fm-style {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
:root[data-theme="light"] .momentum {
  background: #fff;
  color: #15181f;
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.m-marks {
  position: relative;
  height: 18px;
  margin-left: 30px;
  margin-right: 6px;
  font-size: 11px;
  color: var(--muted);
}
.m-mark { position: absolute; top: 0; transform: translateX(-50%); font-size: 12px; line-height: 18px; }
.m-ht { position: absolute; top: 0; transform: translateX(-50%); font-weight: 700; line-height: 18px; }
.m-min { position: absolute; right: 0; top: 0; font-weight: 700; line-height: 18px; }
.m-chart { display: flex; flex-direction: column; }
.m-row { display: flex; align-items: stretch; gap: 6px; }
.m-logo {
  flex: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.m-logo img { width: 20px; height: 20px; object-fit: contain; }
.m-band {
  flex: 1;
  position: relative;
  height: 54px;
  border-radius: 10px;
  overflow: hidden;
  margin-right: 6px;
}
.m-home .m-band { background: #cfe2fb; }   /* açık mavi bant */
.m-away .m-band { background: #f6cfcc; }   /* açık kırmızı bant */
.m-bars { position: absolute; inset: 0; }
.m-bar {
  position: absolute;
  bottom: 0;
  width: 3px;
  border-radius: 2px 2px 0 0;
  /* büyüme animasyonu: bar sıfırdan hedef yüksekliğe uzar */
  animation: barGrow 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--d, 0) * 12ms);
}
@keyframes barGrow {
  from { height: 2px; opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .m-bar { animation: none; }
}
.m-home .m-bar { background: #2f6fd0; }    /* koyu mavi barlar */
.m-away .m-bar { background: #d64541; }    /* koyu kırmızı barlar */
.m-axis {
  height: 2px;
  background: var(--text);
  margin: 2px 6px 2px 30px;
  border-radius: 1px;
}
/* dark temada bant renkleri: koyu zeminde doygun şeffaf tonlar */
:root:not([data-theme="light"]) .m-home .m-band { background: rgba(59, 130, 246, 0.18); }
:root:not([data-theme="light"]) .m-away .m-band { background: rgba(239, 68, 68, 0.16); }
/* kart işaretleri: bandın kenarında dikdörtgen kart ikonu (Mackolik gibi) */
.m-card {
  position: absolute;
  width: 9px;
  height: 13px;
  border-radius: 2px;
  z-index: 2;
}
.m-home .m-card { bottom: 2px; }
.m-away .m-card { top: 2px; }
/* gol işareti: ilgili takımın bandında, kartların DİĞER kenarında
   (ev sahibi bandında üst, deplasman bandında alt — çakışma olmasın) */
.m-goal {
  position: absolute;
  font-size: 14px;
  line-height: 1;
  z-index: 3;
  transform: translateX(-50%);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
.m-home .m-goal { top: 2px; }
.m-away .m-goal { bottom: 2px; }
.m-card.card-y { background: #f5b93d; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); }
.m-card.card-r { background: #e74c3c; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); }
/* alt yarı: barlar üst kenardan aşağı uzar (ayna görünümü) */
.m-away .m-bar {
  bottom: auto;
  top: 0;
  transform: translateY(0);
  border-radius: 0 0 2px 2px;
}
.m-away .m-bars { position: absolute; inset: 0; }
.wp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}
.wp-team {
  font-weight: 750;
  color: var(--text);
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wp-team.home { color: var(--accent); }
.wp-team.away { color: #ef4444; }
/* dış etiketlerde renk noktası: hangi dilim hangi takım / beraberlik */
.wp-team::before, .wp-foot::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.wp-team.home::before { background: #3b82f6; }
.wp-team.away::before { background: #ef4444; }
.wp-foot { color: var(--text); font-weight: 650; }
.wp-foot::before { background: #ef4444; }
.wp-track {
  display: flex;
  height: 40px;              /* takım adı + yüzde birlikte sığar */
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface-2);
  gap: 2px;
}
/* yalnız renkli ince bar: metin yok */
.wp-track-slim { height: 10px; border-radius: 6px; }
.wp-track-slim .wp-seg { min-width: 0; }
.wp-seg {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.6s ease;
  min-width: 6px;  /* çok düşük yüzde dilimleri tamamen kaybolmasın ama
                      bar %100 içinde kalın — 3 segment taşmasın */
  overflow: hidden;
  flex-shrink: 1;
}
/* segment içi: takım adı + yüzde yanyana */
.wp-seg-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 10px;
  overflow: hidden;
}
.wp-seg-name {
  font-size: 12.5px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wp-seg-pct {
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
/* Kim kazanır barı: yeşil (ev) — kırmızı (beraberlik) — mavi (deplasman).
   Yazılar her üç zeminde de okunur: koyu segmentlerde beyaz,
   açık yeşilde koyu yazı. */
/* Mackolik renk dili: ev mavi, beraberlik/deplasman kırmızı tonları */
.wp-seg.home { background: #3b82f6; }
.wp-seg.home .wp-seg-name, .wp-seg.home .wp-seg-pct { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
/* beraberlik: nötr gri segment */
.wp-seg.draw { background: var(--muted); }
.wp-seg.draw .wp-seg-pct { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.wp-seg.away { background: #ef4444; }
.wp-seg.away .wp-seg-name, .wp-seg.away .wp-seg-pct { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.wp-foot { text-align: center; font-size: 11px; color: var(--muted); }

/* maçın takımları puan tablosunda öne çıkar: sol şerit + hafif arka plan (Mackolik turuncusu) */
.st-table tbody tr.st-hl {
  background: rgba(247, 148, 29, 0.14);
  box-shadow: inset 3px 0 0 #f7941d;
}
.fr-row.st-hl {
  background: rgba(247, 148, 29, 0.14);
  box-shadow: inset 3px 0 0 #f7941d;
}

/* ---------- tarih kartı: yeni tasarım + saat dilimi seçimi ---------- */
/* ---------- tarih kartı: anlaşılır düzen (Maç Başlangıcı + saat + saat dilimi) ---------- */
.date-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 10px;
  background:
    radial-gradient(120% 160% at 85% 10%, rgba(74, 222, 128, 0.14), transparent 55%),
    radial-gradient(120% 140% at 10% 100%, rgba(59, 130, 246, 0.16), transparent 60%),
    linear-gradient(135deg, #1d2431, #12161f);
  border: 1px solid rgba(74, 222, 128, 0.22);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
:root[data-theme="light"] .date-card {
  background:
    radial-gradient(120% 160% at 85% 10%, rgba(74, 222, 128, 0.16), transparent 55%),
    radial-gradient(120% 140% at 10% 100%, rgba(59, 130, 246, 0.12), transparent 60%),
    linear-gradient(135deg, #ffffff, #eef2f7);
  border-color: rgba(47, 163, 92, 0.25);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.date-kicker {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.date-main { min-width: 0; }
.date-big {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.date-row-time {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 3px;
}
.date-time {
  font-size: 24px;
  font-weight: 850;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.date-tzlabel {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.date-sub { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.date-tzwrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}
.date-tzlabel2 {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.date-tz {
  flex: 0 0 auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  max-width: 170px;
}
.date-tz:focus { outline: 1px solid var(--accent); }
:root[data-theme="light"] .date-tz { background: #fff; }


/* ---------- hava durumu kartı: hava koşuluna göre otomatik tema ---------- */
.weather-card {
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 10px;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.wx-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wx-temp {
  font-size: 44px;
  font-weight: 250;
  letter-spacing: -1px;
  line-height: 1.05;
  color: #fff;
}
.wx-desc { font-size: 16px; font-weight: 600; color: #fff; margin-top: 2px; }
.wx-feel { font-size: 13px; color: rgba(255, 255, 255, 0.75); margin-top: 2px; }
.wx-icon { width: 74px; height: 74px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
.wx-row { display: flex; gap: 10px; margin-top: 12px; }
.wx-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 10px;
}
.wx-ic { font-size: 17px; }
.wx-val { font-size: 15px; font-weight: 700; color: #fff; }
.wx-val small { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, 0.75); }
.wx-lbl { font-size: 11.5px; color: rgba(255, 255, 255, 0.75); }

/* ---------- kadro filtreleri (Mackolik tarzı) + oyuncu rozetleri ---------- */
.lineup-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 10px;
}
.lineup-filters::-webkit-scrollbar { display: none; }
.lineup-filters button {
  flex: 0 0 auto;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.lineup-filters button.active {
  background: var(--accent);
  color: #06210f;
  border-color: transparent;
}
:root[data-theme="light"] .lineup-filters button.active { color: #fff; }
.pit-badge {
  /* akış içinde: ismin ALTINDA kendi satırında — isim üstüne binmez */
  font-size: 9.5px;
  font-weight: 800;
  border-radius: 5px;
  padding: 1px 5px;
  white-space: nowrap;
  line-height: 1.3;
  max-width: 66px;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* bitişik oyuncu rozetlerinin üst üste binmesini engelle:
   her oyuncu bloğu kendi katmanında, tıklanan/odaklı öne çıkar */
.pit-player { z-index: 1; }
.pit-player:hover, .pit-player:focus, .pit-player:active { z-index: 4; }
.pit-badge.lf-neutral { background: #15181f; color: #fff; }
.pit-badge.lf-high { background: #2fa35c; color: #fff; }   /* 8+ puan: yeşil */
.pit-badge.lf-mid { background: #3a7bd0; color: #fff; }    /* 7-8: mavi */
.pit-badge.lf-low { background: #4a5060; color: #e8eaf0; } /* <7: gri */
.pit-badge.lf-xg { background: #7c5cd0; color: #fff; }     /* xG: mor */
.pit-badge.lf-nat { background: #15181f; color: #e8eaf0; }

/* ---------- kadro: oyuncu maç istatistikleri OVERLAY POPUP ---------- */
#pstatOverlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
#pstatOverlay.hidden { display: none; }
.pstat-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(2px); }
.pstat-card {
  position: relative;
  width: min(480px, 92vw);
  max-height: 80vh;
  overflow-y: auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  animation: pstatPop 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes pstatPop {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .pstat-card { animation: none; } }
:root[data-theme="light"] .pstat-card {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}
.pstat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.pstat-photo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
}
.pstat-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;  /* fotoğraf kırpılmasın — tam kare sığdır (yakın göz kırpımı düzeltmesi) */
}
  overflow: hidden;
}
.pstat-name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pstat-name b { font-size: 14.5px; }
.pstat-name small { color: var(--muted); font-size: 12px; }
.pstat-close {
  border: none;
  background: var(--surface);
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
}
.pstat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.pstat-item {
  background: var(--surface-2);
  padding: 10px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
:root[data-theme="light"] .pstat-item { background: #fff; }
.pstat-val { font-size: 16px; font-weight: 800; color: var(--accent); }
.pstat-lbl {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.25;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* kadro sahasında tıklanabilir oyuncu imleci */
.pit-player[data-pstat] { cursor: pointer; }
.pit-player[data-pstat]:active .pit-photo { transform: scale(0.94); }

/* ---------- puan durumu altı: haftalık fikstür kartları ---------- */
.st-week {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.st-week-card {
  background: var(--surface-2);
  color: var(--text);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
:root[data-theme="light"] .st-week-card {
  background: #fff;
  color: #15181f;
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.st-week-head {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 700;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
:root[data-theme="light"] .st-week-head { background: #3a3f47; color: #fff; border-bottom: none; }
.st-week-rows { padding: 4px 0; }
.st-week-row {
  display: grid;
  grid-template-columns: 52px 1fr 74px 1fr 24px;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.st-week-row:last-child { border-bottom: none; }
.st-week-row:hover { background: var(--surface); }
.st-week-date { color: var(--muted); font-size: 13px; }
.st-week-team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-week-mid { font-weight: 700; text-align: center; white-space: nowrap; }
.st-week-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-weight: 800;
}
.st-week-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: livePulse 1.4s ease-in-out infinite;
}
.st-week-star { color: var(--muted); text-align: center; }
.st-week-star.on { color: var(--star); }
.st-week-empty {
  padding: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

/* dar segmentte isim dışarı taşınır (üst satırda) */
.wp-team-out { font-size: 12.5px; }
.wp-head { min-height: 20px; }
.wp-head:empty { display: none; }

.wp-comment {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--surface);
}
.wp-c-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
/* canlı yorum: kırmızı + nabız animasyonu */
.wp-c-badge.live-comment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ff5252;
  animation: liveBadgePulse 1.6s ease-in-out infinite;
}
.wp-c-badge.live-comment .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5252;
  box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.6);
  animation: liveDotPing 1.6s ease-out infinite;
}
@keyframes liveDotPing {
  0% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(255, 82, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}
@keyframes liveBadgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}
.wp-comment p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--text); }

/* ---------- olaylar (Flashscore tarzı tek sütun) ---------- */
.ev-list { display: flex; flex-direction: column; }

.ev2 {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;   /* ev sahibi | dakika+ikon | deplasman */
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.ev2:last-child { border-bottom: 0; }
/* İY/MS ayraçlarının üstündeki olay satırının alt çizgisi kalkar —
   ayracın kendi çizgisiyle üst üste binmesin */
.ev2:has(+ .ev-ht) { border-bottom: 0; }
.ev-ht + .ev2 { border-top: 0; }
/* orta sütun: ikon ve dakika yanyana tek kapsayıcıda (Flashscore biçimi) */
.ev2-mid {
  grid-column: 2;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.ev2-min {
  font-size: 14px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  white-space: nowrap;
}
.ev2-body { min-width: 0; }
.ev2.side-home .ev2-body { grid-column: 1; grid-row: 1; text-align: right; }
.ev2.side-away .ev2-body { grid-column: 3; grid-row: 1; text-align: left; }
.ev2-ic { font-size: 15px; line-height: 1; text-align: center; }

/* ---------- gerçek olay ikonları (Flashscore biçimi) ---------- */
.eic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
/* gol: 3D futbol topu SVG */
.ball3d {
  width: 22px;
  height: 22px;
  display: block;
  filter: drop-shadow(0 1.5px 2.5px rgba(0, 0, 0, 0.4));
}
.eic.mp-wrap {
  position: relative;
  width: 22px;
  height: 22px;
}
.eic.mp-wrap .mp-x {
  position: absolute;
  right: -6px;
  bottom: -4px;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  color: var(--danger);
  z-index: 2;
  text-shadow:
    0 0 3px var(--bg),
    0 0 6px var(--bg);
}
/* sarı / kırmızı kart: renkli dikdörtgen */
.eic.card-y, .eic.card-r, .eic.card-yr {
  width: 13px;
  height: 19px;
  border-radius: 2.5px;
}
.eic.card-y { background: #fbbf24; }
.eic.card-r { background: #ef4444; }
.eic.card-yr {
  background: linear-gradient(180deg, #fbbf24 0 50%, #ef4444 50% 100%);
}
/* ---------- maç analizi (köşe yazarı) ---------- */
/* Mackolik tarzı Tahmin kartı: editör kimliği üstte, metin kuyruklu balonda */
.analysis-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  margin: 10px 0;
  overflow: hidden;
}
.analysis-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
}
/* balon kuyruğu: kimlik şeridinden balona inen üçgen */
.analysis-author::after {
  content: '';
  position: absolute;
  left: 30px;
  top: 100%;
  width: 14px;
  height: 14px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: translateY(-8px) rotate(45deg);
}
.analysis-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.25), rgba(74, 222, 128, 0.08));
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.analysis-who { min-width: 0; }
.analysis-name {
  font-size: 15px;
  font-weight: 750;
  color: var(--text);
  line-height: 1.3;
}
.analysis-sub {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}
.analysis-bubble {
  padding: 16px 18px 14px;
}
/* bölüm başlıkları — gerçek h2 etiketi (SEO) */
.analysis-h2 {
  font-size: 15.5px;
  font-weight: 750;
  color: var(--text);
  margin: 14px 0 6px;
  line-height: 1.35;
}
.analysis-bubble > h2:first-child,
.analysis-bubble > p:first-child { margin-top: 0; }
.analysis-badge {
  display: none; /* rozet yerine editör kimliği şeridi */
}
.analysis-card p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
}
.analysis-src {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  line-height: 1.5;
}
.analysis-loading { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
/* ---------- olaylar üstü bilgi şeridi: stadyum · saat · hava ---------- */
.ev-info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
}
.ev-info-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text);
  line-height: 1;
}
.ev-info-pill .ev-wicon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
/* ---------- maç anketi ---------- */
.poll-card {
  background: var(--surface-2);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 10px 0;
}
.poll-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.poll-title { font-size: 17px; font-weight: 750; color: var(--text); }
.poll-total { font-size: 13px; color: var(--muted); }
.poll-choices, .poll-results {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}
.poll-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  padding: 8px 12px;
}
.poll-opt img { width: 30px; height: 30px; object-fit: contain; }
.poll-opt:hover { border-color: var(--accent); }
.poll-draw-opt, .poll-draw {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.poll-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
}
.poll-cell img { width: 26px; height: 26px; object-fit: contain; }
.poll-cell .poll-pct {
  font-size: 17px;
  font-weight: 750;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.poll-cell.lead .poll-pct { color: var(--accent); }
.poll-cell.lead[data-vote='draw'] .poll-draw { color: var(--accent); }
/* bilinmeyen olay tipi: nötr gri rozet */
.eic.other {
  color: var(--muted);
  font-size: 9px;
}
/* VAR etiketi — belirgin, karar metni okunur */
.eic.var {
  width: auto;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
/* kaçan penaltı */
.eic.miss { color: var(--danger); font-size: 14px; font-weight: 800; }
.ev2-body { min-width: 0; }
/* Gol olayları referans tasarımı: ad büyük beyaz, skor rakamları yeşil,
   asist satırı gri ve büyükçe — "Bruno Caicedo (2 - 0) / Asisti yapan: X" */
.ev-player { font-size: 13.5px; font-weight: 600; color: var(--text); }
.ev2-body .ev-player {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}
/* oyuncu değişikliği: kullanıcı SVG ikonu (daire çerçeve + yeşil/kırmızı oklar) */
.subsvg {
  width: 22px;
  height: 22px;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.ev-res { color: var(--muted); font-weight: 500; font-size: 15px; margin-left: 6px; }
.ev-res-num { color: var(--accent); font-weight: 650; font-style: normal; }
.ev-assist { font-size: 14.5px; color: var(--muted); margin-top: 3px; font-weight: 450; }
.ev-assist-name { color: #b9c3cf; font-weight: 550; }
.ev-info { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
/* oyuncu değişikliği: giren yeşil, çıkan kırmızı */
.ev-player.in { color: var(--accent); }
.ev-player.out { color: var(--danger); font-weight: 550; }

/* devre arası ayırıcı */
/* İY / MS ayracı: tam genişlik — iki yanda çizgi, ortada halkalı rozet, sağında skor
   (referans: halka açık gri, rozet koyu zemin, skor düz beyaz) */
.ev-ht {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
}
/* iki yandaki tam genişlik çizgiler */
.ev-ht::before,
.ev-ht::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}
/* halka: kalın yuvarlak çerçeve, hafif düzensiz — referanstaki gibi */
.ev-ht-badge {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #9aa4b2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  background: transparent;
}
/* maç sonu rozeti: final — yeşil çerçeve */
.ev-ht-badge.ft {
  border-color: var(--accent);
  color: var(--accent);
}
/* rozet + skor grubu ortada; ::before/::after çizgileri iki yana yayılır */
.ev-ht-mid {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.ev-ht-score {
  font-size: 18px;
  font-weight: 650;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ---------- eski olay görünümü (kriket vb. için kalır) ---------- */
.ev { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ev .l { text-align: right; } .ev .r { text-align: left; }
.ev .m { text-align: center; color: var(--muted); font-size: 12px; }
.ev .ic { display: inline-block; margin: 0 4px; }
.ev .sub { color: var(--muted); font-size: 12px; display: block; }
.card { display: inline-block; width: 9px; height: 13px; border-radius: 2px; vertical-align: middle; }
.card.y { background: var(--star); } .card.r { background: var(--danger); }

/* istatistik barları: kalın, değerler bar içinde, başlık barın ortasında */
/* Flashscore/FotMob tarzı istatistik satırı: değerler büyük punto iki uçta,
   etiket ortada, altında ince çift bar (ev MAVİ, deplasman KIRMIZI) */
.stat2 { display: flex; flex-direction: column; gap: 7px; padding: 10px 0; }
.stat2-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.stat2-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat2-val:last-child { text-align: right; }
.stat2-lbl {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.stat2-bar {
  display: flex;
  height: 7px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--line);
  gap: 3px;
}
.stat2-bar .h { background: #3b82f6; border-radius: 4px 0 0 4px; }
.stat2-bar .a { background: #ef4444; border-radius: 0 4px 4px 0; }
.stat2-bar i {
  display: block;
  height: 100%;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  animation: statGrow 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.stat2 { animation: statFade 0.35s ease both; }
.stat2:nth-child(2) { animation-delay: 0.04s; }
.stat2:nth-child(3) { animation-delay: 0.08s; }
.stat2:nth-child(4) { animation-delay: 0.12s; }
.stat2:nth-child(5) { animation-delay: 0.16s; }

.stat { display: flex; flex-direction: column; gap: 4px; padding: 7px 0; }
.stat .bar {
  position: relative;
  height: 26px;              /* değerler barın içinde okunur */
  border-radius: 8px;
  background: var(--line);
  display: flex;
  overflow: hidden;
}
/* Mackolik renk dili: ev MAVİ, deplasman KIRMIZI — canlı maçta barlar soldan
   genişler (width animasyonu .stat .bar i transition'ı) */
.stat .bar .h { background: #3b82f6; }
.stat .bar .a { background: #ef4444; }
/* bar ilk basıldığında genişleme animasyonu: 0'dan değerine doğru */
.stat .bar i {
  display: block;
  height: 100%;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  animation: statGrow 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes statGrow {
  from { width: 0 !important; }
  to { width: var(--w); }
}
/* istatistik sekmesi ilk açılışta barlar yukarıdan hafifçe süzülür */
.stat {
  animation: statFade 0.35s ease both;
}
@keyframes statFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.stat:nth-child(2) { animation-delay: 0.04s; }
.stat:nth-child(3) { animation-delay: 0.08s; }
.stat:nth-child(4) { animation-delay: 0.12s; }
.stat:nth-child(5) { animation-delay: 0.16s; }
/* değerler: ev sahibi solda, deplasman sağda — bar renkleri üzerinde okunur */
.stat .bar .bar-val {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.stat .bar .bar-val.l { left: 8px; }
.stat .bar .bar-val.r { right: 8px; }
/* başlık: barın ortasında kapsül içinde — her iki segment renginde okunur */
.stat .bar .bar-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.2px;
  color: #ffffff;
  background: rgba(15, 17, 21, 0.55);
  border-radius: 20px;
  padding: 3px 12px;
  max-width: calc(100% - 90px);   /* bar uçlarındaki değerlere binmesin */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(2px);
}


.lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13px; }
.lineups h4 { margin: 6px 0; font-size: 13px; color: var(--muted); }
.lineups li { list-style: none; padding: 4px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; }
.lineups ul { margin: 0; padding: 0; }
.lineups .no { color: var(--muted); width: 22px; font-variant-numeric: tabular-nums; }
/* ---------- Bilgi sekmesi: Mackolik tarzı kart satırları ---------- */
/* kartlar: dark temada koyu, açık temada beyaz */
.info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  color: var(--text);
  border-radius: 14px;
  padding: 13px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
}
:root[data-theme="light"] .info-card {
  background: #fff;
  color: #15181f;
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.info-ic {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
}
.info-emoji { font-size: 19px; line-height: 1; }
.info-flag { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.info-var {
  font-size: 10px;
  font-weight: 800;
  border: 1.5px solid var(--text);
  border-radius: 4px;
  padding: 1px 4px;
  letter-spacing: 0.5px;
}
.info-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14.5px;
  min-width: 0;
}
.info-body b { font-weight: 700; }
.info-sub { font-size: 13px; color: var(--muted); font-weight: 500; }
.rc-ic {
  display: inline-block;
  width: 11px;
  height: 15px;
  border-radius: 2px;
  vertical-align: -2px;
  margin-right: 2px;
}
.rc-ic.red { background: #e74c3c; }
.rc-ic.yellow { background: #f5b93d; }
:root[data-theme="light"] .info-card {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ---------- Karşılaştırma sekmesi ---------- */
.h2h-wrap { display: flex; flex-direction: column; gap: 10px; }
.h2h-side { display: flex; flex-direction: column; gap: 10px; }
.h2h-form-card, .h2h-notes-card {
  background: var(--surface-2);
  color: var(--text);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
:root[data-theme="light"] .h2h-form-card,
:root[data-theme="light"] .h2h-notes-card {
  background: #fff;
  color: #15181f;
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.h2h-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 700;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
:root[data-theme="light"] .h2h-card-head { color: #15181f; background: #3a3f47; color: #fff; border-bottom: none; }
.h2h-team-logo { width: 20px; height: 20px; object-fit: contain; }
.h2h-rows { padding: 4px 0; }
.h2h-row {
  display: grid;
  grid-template-columns: 52px 1fr 64px 1fr 24px;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.h2h-row:last-child { border-bottom: none; }
.h2h-date { color: var(--muted); font-size: 13px; }
.h2h-team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2h-team.b { font-weight: 800; }
.h2h-score { font-weight: 700; text-align: center; white-space: nowrap; }
.fr-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.fr-ic.win { background: #2ecc71; }
.fr-ic.draw { background: #f5b93d; }
.fr-ic.lose { background: #e74c3c; }
.h2h-notes { padding: 12px 16px 6px; }
.h2h-notes p {
  font-size: 14px;
  line-height: 1.5;
  padding: 8px 0 8px 12px;
  border-left: 3px solid #4a90e2;
  margin: 0 0 6px;
  border-bottom: 1px solid var(--line);
}
.h2h-notes p:last-child { border-bottom: none; }
.h2h-reveal {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px auto 14px;
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.h2h-reveal-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-2);
  font-weight: 800;
}
:root[data-theme="light"] .h2h-reveal { background: #e9ebf0; border-color: transparent; color: #15181f; }
:root[data-theme="light"] .h2h-reveal-plus { background: #fff; }

.d-info { font-size: 13px; color: var(--muted); line-height: 1.7; }

.tv-group { margin-bottom: 14px; }
.tv-group h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tv-group h4 img { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; }
.tv-group ul { list-style: none; margin: 0; padding: 0; }
.tv-group li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tv-group li img { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; background: #fff; }
.tv-group li .logo-ph { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.tv-group li a { color: var(--text); text-decoration: none; }
.tv-group li a:hover { color: var(--accent); text-decoration: underline; }
.tv-group li small { margin-left: auto; color: var(--muted); font-size: 11px; }

.tv-filter { position: relative; margin: 2px 0 14px; }
.tv-select {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-size: 14px; cursor: pointer; text-align: left;
}
.tv-select:hover { border-color: var(--muted); }
.tv-select img { width: 22px; height: 16px; object-fit: cover; border-radius: 3px; }
.tv-globe { width: 22px; text-align: center; font-size: 15px; }
.tv-sel-name { font-weight: 600; }
.tv-sel-count { color: var(--muted); font-size: 12px; }
.tv-caret { margin-left: auto; color: var(--muted); font-size: 12px; }
.tv-menu {
  position: fixed; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.35); overflow: hidden;
}
.tv-menu-search {
  width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font-size: 14px; outline: none;
}
.tv-menu-list { max-height: 280px; overflow-y: auto; padding: 4px; overscroll-behavior: contain; }
.tv-menu.up { box-shadow: 0 -12px 32px rgba(0,0,0,.35); }
.tv-opt {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 8px;
  background: none; color: var(--text); font-size: 14px; cursor: pointer; text-align: left;
}
.tv-opt:hover { background: var(--surface-2); }
.tv-opt.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.tv-opt img { width: 22px; height: 16px; object-fit: cover; border-radius: 3px; }

/* ---------- arama kutusu + temizle butonu ---------- */
.search-box {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
}
/* futbol arama: pill'lerin SAĞINDA, aynı oval pill formunda (kullanıcı talebi) */
.search-box.search-pill {
  margin-left: auto;
  flex: 1 1 240px;
  max-width: 420px;
}
.search-box.search-pill input {
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.search-box.search-pill input:focus { border-color: var(--accent); }
.search-box.search-pill .search-clear { right: 12px; }
.search-box input {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 40px; /* x butonuna yer */
}
/* iOS'un native "x" temizlemesini gizle — kendi butonumuz var */
.search-box input::-webkit-search-cancel-button,
.search-box input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .14s, color .14s;
}
.search-clear:hover { background: var(--line); color: var(--text); }
.search-clear.hidden { display: none; }
.tv-opt small { margin-left: auto; color: var(--muted); font-size: 12px; }
/* tekrar dene butonu — hata durumunda */
.retry-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.retry-btn:hover { background: rgba(74, 222, 128, 0.22); }
/* sesli oku butonu — kimlik şeridinin sağında */
.analysis-tts {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.analysis-tts:hover { border-color: var(--accent); }
.analysis-tts.playing {
  border-color: var(--accent);
  background: rgba(74, 222, 128, 0.14);
  color: var(--accent);
}
/* dar ekranda yalnız ikon */
@media (max-width: 480px) {
  .analysis-tts .tts-lbl { display: none; }
  .analysis-tts { padding: 7px 11px; }
  /* mobil saha: düğüm (foto 34 + pil 22 + rozet ≈ 74px) ölçüsüne göre oranlı
     boyutlandırma — satır aralığı %11 × 860px ≈ 95px, düğüm rahat sığar;
     saha gereksiz uzun değil (profesyonel oran). */
  .pit { height: 860px; }
  .pit-photo { width: 34px; height: 34px; }
  /* 5 oyunculu satırda dar ekranda slot ~71px — düğüm daraltılır */
  .pit-pill { max-width: 66px; font-size: 8.5px; padding: 2px 5px; gap: 3px; }
  .pit-player { width: 70px; }
  .pavg { flex-wrap: wrap; gap: 8px; padding: 9px 12px; }
  .pavg-title { display: none; }
}
/* TTS kontrol çubuğu — kimlik şeridinin altında */
.tts-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.tts-controls button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.tts-controls button:hover { border-color: var(--accent); }
.tts-controls .tts-play {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-size: 14px;
}
.tts-controls.hidden { display: none; }

/* ---------- MVP anketi: maçun adamı (kadro sekmesi, yedeklerin üstünde) ---------- */
.mvp-wrap { margin: 14px 0 4px; }
.mvp-card {
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.mvp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.mvp-title { font-size: 14px; font-weight: 800; color: var(--text); }
.mvp-hint { font-size: 11.5px; font-weight: 650; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; }
.mvp-list { display: flex; flex-direction: column; }
.mvp-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: none;
  border-left: 0; border-right: 0; border-top: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: background .14s;
}
.mvp-list .mvp-opt:last-child { border-bottom: none; }
button.mvp-opt:hover { background: var(--surface); }
.mvp-opt.lead { background: rgba(34, 197, 94, 0.10); }
.mvp-photo {
  width: 38px; height: 38px; border-radius: 50%;
  overflow: hidden; flex: 0 0 auto;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.mvp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* puan rozeti: fotoğrafın SOL ALT köşesinde minimal ama okunur */
.mvp-corner-rate {
  position: absolute;
  left: -4px;
  bottom: -4px;
  background: #f59e0b;
  color: #171717;
  border-radius: 7px;
  padding: 1px 5px;
  font-size: 9.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  z-index: 2;
}
/* oy verme butonu: sağda tek tıklama hedefi */
.mvp-vote {
  flex: 0 0 auto;
  background: var(--accent);
  color: #06210f;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 750;
  white-space: nowrap;
}
:root[data-theme="light"] .mvp-vote { color: #fff; }
.mvp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mvp-info b { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mvp-info small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mvp-rate {
  flex: 0 0 auto;
  font-size: 12.5px; font-weight: 800;
  color: #171717; background: #f59e0b;
  border-radius: 8px; padding: 3px 8px;
  font-variant-numeric: tabular-nums;
}
.mvp-bar {
  flex: 1; min-width: 90px;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border-radius: 999px;
  height: 22px; padding: 0 4px;
  overflow: hidden;
}
.mvp-bar i {
  display: block; height: 100%;
  background: var(--accent);
  border-radius: 999px;
  min-width: 3px;
  transition: width .3s ease;
}
.mvp-opt.lead .mvp-bar i { background: #f59e0b; }
.mvp-bar b { flex: 0 0 auto; font-size: 11.5px; font-weight: 750; color: var(--text); }

/* ---------- maç geri sayımı (kalan süre, ≤3 saat) ---------- */
.d-clock .cd-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.d-clock .cd-timer {
  display: block;
  font-size: 26px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  letter-spacing: 1px;
}

/* diziliş + kart/gol rozetleri: Takım Ortalaması kartının alt satırı */
.pavg-block { display: flex; flex-direction: column; gap: 8px; }
.pavg-subline { display: flex; justify-content: center; }
.pavg-subline .pit-head {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 650;
}

/* ---------- canlı maç satırı lig favori ikonu (dakikanın solunda) ---------- */
.match .time .lg-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .14s, box-shadow .14s;
}
.match .time .lg-fav img { width: 14px; height: 14px; object-fit: contain; display: block; }
.match .time .lg-fav:hover { border-color: var(--accent); }
.match .time .lg-fav.on {
  border-color: var(--accent);
  box-shadow: 0 0 0 1.5px var(--accent-soft);
}
.match.live .time span:first-of-type + * { }

/* ---------- liste filtresi: ülke/lig/takım (arama destekli select) ---------- */
.filter-wrap { position: relative; display: inline-flex; }
.filter-chip .filter-ic { font-size: 13px; }
.filter-chip.active {
  background: var(--accent);
  border-color: transparent;
  color: #06210f;
}
:root[data-theme="light"] .filter-chip.active { color: #fff; }
.filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;               /* sağa hizalı — Favoriler'in solunda duran buton için */
  z-index: 40;
  width: 300px;
  max-width: calc(100vw - 32px);
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.filter-menu.hidden { display: none; }
.fm-section { margin-bottom: 12px; }
.fm-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.fm-select { position: relative; }
.fm-search {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.fm-search:focus { border-color: var(--accent); }
.fm-list {
  margin-top: 6px;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.fm-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--text);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.fm-opt:last-child { border-bottom: none; }
.fm-opt:hover { background: var(--surface-2); }
.fm-opt.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.fm-opt-ic {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.fm-opt-ic img { width: 16px; height: 16px; object-fit: contain; display: block; }
.fm-opt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-opt-count { flex: 0 0 auto; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fm-empty { padding: 14px 10px; text-align: center; color: var(--muted); font-size: 12.5px; }
.fm-clear {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
  padding: 9px;
  border-radius: 10px;
  border: 1px solid var(--danger);
  background: rgba(239, 68, 68, 0.10);
  color: var(--danger);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.fm-clear.hidden { display: none; }


/* ---------- masaüstü sol filtre paneli (≥1024px) ----------
   Filtre seçenekleri solda SABİT açık durur; ⚙ Filtre butonu ve popup menü
   yalnız mobil (<1024px) görünür. */
.page-flex { display: block; }
.filter-side { display: none; }

@media (min-width: 1024px) {
  .page-flex {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 0 16px;
    max-width: 1280px;
    margin: 0 auto;
  }
  .filter-side {
    display: block;
    flex: 0 0 240px;
    position: sticky;
    top: 64px;                    /* .top header yüksekliği */
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
  }
  .filter-side .fm-section:last-of-type { margin-bottom: 0; }
  .filter-side .fm-list { max-height: 220px; }
  .filter-side .fm-clear { width: 100%; margin-top: 4px; }
  .page-main { flex: 1 1 auto; min-width: 0; }
  /* buton + popup masaüstünde yok — panel zaten açık */
  .filter-wrap { display: none; }
}
@media (max-width: 1023.98px) {
  .filter-side { display: none; } /* gizli: buton + popup kullanılır */
}
/* sidebar liste yükseklikleri (popup ile aynı) */


/* momentum kırmızı kart işareti — m-goal ile aynı konumlandırma, içi kırmızı kart */
.m-red {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.m-red i {
  width: 9px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff5a5a, #d92d2d);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
/* ev (üstte): dalga üstünden yukarı; dep (altta): dalga altından aşağı */
.m-red.m-goal-home { top: -14px; }
.m-red.m-goal-away { bottom: -14px; }

.d-team .rc-mini { display: inline-block; vertical-align: middle; margin-left: 6px; }

/* en yüksek maç puanlı oyuncu: altın çerçeve + dönen parlama (kullanıcı talebi) */
.pit-player.top-rated .pit-photo {
  border-color: #ffd75e;
  box-shadow: 0 0 0 1px rgba(255, 215, 94, 0.55), 0 0 10px rgba(255, 200, 60, 0.45);
  animation: goldGlow 2.4s ease-in-out infinite;
}
@keyframes goldGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 215, 94, 0.55), 0 0 8px rgba(255, 200, 60, 0.35); }
  50% { box-shadow: 0 0 0 2px rgba(255, 215, 94, 0.9), 0 0 16px rgba(255, 200, 60, 0.7); }
}
@media (prefers-reduced-motion: reduce) {
  .pit-player.top-rated .pit-photo { animation: none; }
}

/* sahadaki oyuncu rozetleri: gol/sarı kart ikonları fotoğrafı çok kapatıyordu
   (kullanıcı talebi) — .pit-badges içinde küçültülmüş boyutlar */
.pit-badges .pb {
  font-size: 7px;
  padding: 0 2px;
  border-radius: 3px;
  line-height: 1.1;
}
.pit-badges .eic.card-y,
.pit-badges .eic.card-r,
.pit-badges .eic.card-yr {
  width: 7px;
  height: 10px;
  border-radius: 1.5px;
  display: inline-block;
  vertical-align: middle;
}
.pit-badges .pb.gl .ball3d,
.pit-badges .ball3d {
  width: 12px !important;
  height: 12px !important;
}
.pit-badges { gap: 2px; }

/* Takım Ortalaması: puan hücresindeki takım logosu (⭐ yerine — kullanıcı talebi) */
.pavg-cell .pavg-team-logo,
.pavg-team-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 auto;
}
.pavg-cell .logo-ph.pavg-team-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
}
.mvp-cd { font-variant-numeric: tabular-nums; }

/* biten maçta saat altında tarih+saat (kullanıcı talebi) */
.match .time .time-date {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.2;
  margin-top: 2px;
}

/* oyundan çıkan oyuncunun çemberi gri (kullanıcı talebi) */
.pit-player.has-sub .pit-photo {
  border-color: #6b7280;
  box-shadow: 0 0 0 1px rgba(107, 114, 128, 0.4);
}

/* masaustu: govde (mac listesi) toolbar butonlariyla hizadan baslar */
@media (min-width: 1024px) {
  .list, .cricket-list {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .filter-side {
    margin-top: 8px;
  }
}

/* mini skorboard takım adları (kullanıcı talebi) — logo yanında kısa ad */
.d-mini-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  margin: 0 4px;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* mobilde sekmeler tek satırda kesik kalmasın — iki satıra sarsın (kullanıcı talebi) */
@media (max-width: 640px) {
  .d-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .d-tabs button {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* pull-to-refresh engelle (kullanıcı talebi): sayfada aşağıdayken yukarı çekince
   tarayıcı sayfayı yenilemesin; scroll taşmasını da yut */
html {
  overscroll-behavior-y: none;
}
body {
  overscroll-behavior-y: none;
}

/* mobilde sekmeler %100 genişlik: iki satıra sardığında sağdaki boşluk dolusun
   (kullanıcı talebi) — her buton eşit genişlikte büyür */
@media (max-width: 640px) {
  .d-tabs button {
    flex: 1 1 auto;
    justify-content: center;
  }
}


/* filtre butonu: Lige Göre/Tarihe Göre pill'leriyle aynı oval form (kullanıcı talebi) */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background .14s, color .14s, border-color .14s;
}
.filter-chip:hover { color: var(--text); }


/* ---------- dil güncelleniyor kaplaması (kullanıcı talebi: 3 sn animasyon) ---------- */
.lang-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(6px);
  animation: langOvIn .25s ease-out;
}
@keyframes langOvIn { from { opacity: 0; } }
.lang-ov-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 40px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  animation: langOvCard .3s ease-out;
}
@keyframes langOvCard { from { transform: translateY(14px) scale(.96); opacity: 0; } }
.lang-ov-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.lang-ov-name { font-size: 17px; font-weight: 800; color: var(--text); }
.lang-ov-text { font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .lang-ov-ring { animation-duration: 2s; }
}


/* filtre menüsü: kapatma butonu (sağ üst — kullanıcı talebi) */
.fm-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.fm-close:hover { color: var(--text); background: var(--line); }

/* mobilde filtre popup'ı TAM SAYFA sheet olarak açılır (kullanıcı talebi) */
@media (max-width: 640px) {
  .filter-menu {
    position: fixed;
    inset: 0;
    top: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    border-radius: 0;
    border: 0;
    overflow-y: auto;
    padding: 16px 16px 32px;
    z-index: 80;
  }
  .fm-close { top: 14px; right: 14px; }
}


/* ---------- gol animasyonu (Flashscore tarzı — kullanıcı talebi) ----------
   Gol anında maç satırı kırmızıya döner, 3 kez yanıp söner, sonra eski haline
   döner. Skor rakamı da vurgulanır. prefers-reduced-motion'da sadece sabit vurgu. */
@keyframes goalFlash {
  0%, 100% { background: var(--surface); }
  20%, 60% { background: rgba(220, 38, 38, 0.22); }
  40%, 80% { background: rgba(220, 38, 38, 0.08); }
}
.match.goal-flash {
  animation: goalFlash 3.2s ease-in-out;
  border-top-color: rgba(220, 38, 38, 0.55) !important;
}
.match.goal-flash .score > span {
  color: #f87171;
  font-weight: 800;
  transform: scale(1.15);
  transition: transform .2s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .match.goal-flash { animation: none; background: rgba(220, 38, 38, 0.15); }
}
