:root {
  --bg: #07140e;
  --bg2: #0b1f17;
  --panel: #0f2a1f;
  --panel2: #123528;
  --line: #1d4434;
  --line2: #275a45;
  --text: #eaf5ef;
  --muted: #8fb3a3;
  --green: #18c07a;
  --green-d: #0f9a60;
  --gold: #f4c542;
  --gold-d: #c99a1e;
  --red: #ff5a5f;
  --accent: #19e08a;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --radius: 16px;
  /* Temalanan yüzeyler (varsayılan = koyu yeşil) */
  --glow1: #11422f;
  --glow2: #0c2c1f;
  --topbar-bg: rgba(7,20,14,.82);
  --input-bg: #08180f;
  --input-text: #fff;
  --title-a: #fff;
  --title-b: #b9f3d6;
  --pts: #fff;
  --head-a: #14422f;   /* grup başlığı degrade */
  --head-b: #0e2c20;
  --chip-bg: #0a1f16;  /* boş bayrak kutusu / sıra rozeti */
  --fav-name: #ffd9dc; /* favori satırı takım adı */
  --fav: #ff5a5f;      /* favori maç vurgusu (temaya uyumlu) */
  --fav-bg: rgba(255,90,95,.16);
  --fav-glow: rgba(255,90,95,.32);
}

/* ===== Lacivert (navy) tema ===== */
:root[data-theme="navy"] {
  --bg: #060d1f;
  --bg2: #0a1530;
  --panel: #0f1f42;
  --panel2: #14264f;
  --line: #243a66;
  --line2: #324c80;
  --text: #e8eefc;
  --muted: #93a6cf;
  --green: #3b82f6;
  --green-d: #2563eb;
  --accent: #4f8cff;
  --glow1: #16306b;
  --glow2: #0c1c44;
  --topbar-bg: rgba(6,13,31,.82);
  --input-bg: #0a1428;
  --title-b: #a9c7ff;
  --head-a: #16335f;
  --head-b: #0e2147;
  --chip-bg: #0e1d3a;
  --fav: #ff7a8a;
  --fav-bg: rgba(255,122,138,.15);
  --fav-glow: rgba(255,122,138,.30);
}

/* ===== Açık (light) tema ===== */
:root[data-theme="light"] {
  --bg: #eef2f0;
  --bg2: #f7faf8;
  --panel: #ffffff;
  --panel2: #f1f5f3;
  --line: #d4e0da;
  --line2: #b9ccc3;
  --text: #0f2018;
  --muted: #5a7064;
  --green: #12a766;
  --green-d: #0d8a52;
  --accent: #10b070;
  --glow1: #cfeede;
  --glow2: #dff3e8;
  --topbar-bg: rgba(247,250,248,.85);
  --input-bg: #ffffff;
  --input-text: #0f2018;
  --title-a: #0f6b46;
  --title-b: #12a766;
  --pts: #0f2018;
  --shadow: 0 10px 30px rgba(0,0,0,.12);
  --head-a: #dceee5;
  --head-b: #eaf5ef;
  --chip-bg: #e6efe9;
  --fav-name: #a30713;
  --fav: #e23744;
  --fav-bg: rgba(226,55,68,.10);
  --fav-glow: rgba(226,55,68,.22);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 80% -10%, var(--glow1) 0%, transparent 60%),
    radial-gradient(1000px 600px at -10% 10%, var(--glow2) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  background-attachment: fixed;
  min-height: 100vh;
}
/* Sağdaki sabit Haberler ikonu içeriği kapatmasın — boşluk sadece içerik alanında,
   banner (sticky topbar) tam genişlikte kalsın */
#app { padding-right: 42px; }

/* ---------- Üst bar ---------- */
/* Masaüstü (geniş): eski yatay düzen — marka solda, kontroller sağda */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px clamp(12px, 3vw, 28px);
  background: var(--topbar-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.tb-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.tb-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 100%; }
.tb-auth { flex: none; }
.brand-ball { font-size: 28px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); animation: spin 9s linear infinite;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.tb-title h1 {
  margin: 0; font-size: clamp(18px, 3.4vw, 26px); font-weight: 800; letter-spacing: .3px;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--title-a), var(--title-b)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { font-size: 12px; color: var(--muted); }
.mode-badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line2);
}
.lang-select { background: var(--panel2); color: var(--text); border: 1px solid var(--line2);
  border-radius: 8px; padding: 5px 6px; font-size: 12px; font-weight: 800; cursor: pointer; }
.lang-select:hover { border-color: var(--green); }
.lang-select:focus { outline: none; border-color: var(--accent); }
.tz-select { max-width: 150px; }
.online-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700;
  color: var(--text); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line2);
  background: rgba(25,224,138,.08); white-space: nowrap; flex: none; }
.online-label { margin-left: 1px; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent); animation: onlinePulse 2s ease-in-out infinite; }
@keyframes onlinePulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.mode-badge.readonly { color: var(--muted); }
.mode-badge.edit { color: #06140d; background: var(--accent); border-color: var(--accent); }

/* ---------- Tema seçici ---------- */
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px;
  border: 1px solid var(--line2); background: var(--panel2); flex: none; }
.theme-btn { cursor: pointer; border: 0; background: transparent; font-size: 14px; line-height: 1;
  padding: 4px 7px; border-radius: 999px; opacity: .4; filter: grayscale(.4); transition: .15s; -webkit-appearance: none; }
.theme-btn:hover { opacity: .75; filter: grayscale(0); }
/* Seçili: renkli arka plan yok — temaya uygun nötr, "oyulmuş" görünüm */
.theme-btn.active { opacity: 1; filter: none; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2); }

/* ---------- Butonlar ---------- */
.btn { cursor: pointer; border: 1px solid var(--line2); background: var(--panel2); color: var(--text);
  padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; transition: .15s; }
.btn:hover { transform: translateY(-1px); border-color: var(--green); }
.btn-primary { background: linear-gradient(180deg, var(--green), var(--green-d)); border-color: var(--green-d); color: #04140c; }
.btn-login { background: linear-gradient(180deg, var(--green), var(--green-d)); border-color: var(--green-d); color: #04140c; }
.btn-ghost { background: transparent; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
/* Takım popup'ı izleme/diğer listelerden açıldığında onların üstünde görünsün */
#team-modal { z-index: 70; }
.modal-card { width: min(92vw, 360px); background: var(--panel); border: 1px solid var(--line2);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.modal-card h3 { margin: 0 0 6px; }
.modal-card p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.modal-card input { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line2);
  background: var(--input-bg); color: var(--text); font-size: 15px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.login-error { color: var(--red); font-size: 13px; margin-top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Bölümler ---------- */
.section { padding: clamp(18px, 3vw, 34px) clamp(12px, 3vw, 28px) 4px; max-width: 1500px; margin: 0 auto; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: clamp(18px, 2.6vw, 24px); margin: 0 0 4px; }
.section-title .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.section-hint { margin: 0 0 18px; color: var(--muted); font-size: 13px; }

/* ---------- Canlı maçlar (en üst bant) ---------- */
.live-section {
  background: linear-gradient(180deg, rgba(25,224,138,.05), transparent);
  border: 1px solid var(--line2); border-radius: var(--radius);
  margin: 14px auto 0; padding-bottom: 16px;
  max-width: 760px; /* sayaç + favori bandı ile aynı genişlik, ortalı */
}
.dot.live-dot { background: var(--red); box-shadow: 0 0 12px var(--red); animation: livePulse 1.3s infinite; }
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
/* Tek sütun: her maç tam genişlik kart -> isimler kırpılmaz, ortada dengeli durur */
.live-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
.live-card { background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--line2); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow);
  min-width: 0; } /* grid öğesi içeriğe göre büyüyüp section'ı taşmasın */
.live-card.live { border-color: rgba(255,90,95,.55); box-shadow: 0 0 22px rgba(255,90,95,.18); }
.live-card.soon { border-color: rgba(244,197,66,.45); }
.live-card.upcoming { border-color: var(--line2); }
.live-card.done { opacity: .72; }
.lc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.lc-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 900;
  letter-spacing: .6px; padding: 3px 9px; border-radius: 999px; flex: none; white-space: nowrap; }
.lc-badge.live { background: var(--red); color: #fff; }
.lc-badge.soon { background: rgba(244,197,66,.18); color: var(--gold); border: 1px solid var(--gold-d); }
.lc-badge.ht { background: var(--gold); color: #1a1206; } /* devre arası (İY) */
.lc-badge.upcoming { background: var(--panel2); color: var(--text); border: 1px solid var(--line2); }
.lc-badge.done { background: rgba(143,179,163,.14); color: var(--muted); border: 1px solid var(--line2); }
.lc-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: livePulse 1.1s infinite; }
.lc-meta { font-size: 11px; color: var(--muted); text-align: right; min-width: 0; flex: 0 1 auto;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-row { display: flex; align-items: center; gap: 8px; justify-content: center; min-width: 0; }
/* Düzen: isim 🏴 skor : skor 🏴 isim -> orta küme (bayrak+skor) skora yaslı, her maçta hizalı.
   Ev/deplasman yarısı eşit alan; isimler dışa taşar (ev sağa, deplasman sola yaslı). */
.lc-half { display: flex; align-items: center; gap: 7px; flex: 1 1 0; min-width: 0; }
.lc-half.home { justify-content: flex-end; }
.lc-half.away { justify-content: flex-start; }
.lc-half img { width: 30px; height: 21px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.4); flex: none; }
/* display:block -> team-link'in inline-flex'ini ez ki ellipsis çalışsın (yoksa uzun isim taşar) */
.lc-half .lc-nm { display: block; font-weight: 800; font-size: 14px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.lc-half.home .lc-nm { text-align: right; }
.lc-half.away .lc-nm { text-align: left; }
.lc-x { color: var(--muted); font-weight: 800; flex: none; }
.live-card.fav-match { border-color: var(--fav); box-shadow: 0 0 0 1px var(--fav), 0 0 18px var(--fav-glow); }

/* ---------- Grup kartları ---------- */
.groups-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.group-card { background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.group-head { display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: linear-gradient(90deg, var(--head-a), var(--head-b)); border-bottom: 1px solid var(--line); }
.group-head h3 { margin: 0; font-size: 16px; letter-spacing: .5px; }
.group-head .grp-letter { display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: #05130c; font-weight: 900; margin-right: 8px; }
.group-head .grp-status { font-size: 11px; color: var(--muted); }

/* Puan cetveli */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table thead th { font-size: 10px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted);
  font-weight: 700; padding: 8px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.table thead th.team-col { text-align: left; padding-left: 12px; }
.table tbody td { padding: 7px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.table tbody td.team-col { text-align: left; padding-left: 10px; }
.table tbody tr:last-child td { border-bottom: none; }
.team-cell { display: flex; align-items: center; gap: 8px; }
.team-cell img { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.4); flex: none; }
.team-cell .tn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; font-weight: 600; }
.pts { font-weight: 800; color: var(--pts); }
.rank-badge { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center;
  border-radius: 5px; font-size: 11px; font-weight: 800; margin-right: 6px; background: var(--chip-bg); color: var(--muted); border: 1px solid var(--line); }
tr.qual-1 .rank-badge, tr.qual-2 .rank-badge { background: var(--green); color: #04140c; border-color: var(--green); }
tr.qual-1, tr.qual-2 { background: linear-gradient(90deg, rgba(24,192,122,.16), transparent); }
tr.qual-3 .rank-badge { background: var(--gold); color: #2a1f00; border-color: var(--gold); }
tr.qual-3 { background: linear-gradient(90deg, rgba(244,197,66,.14), transparent); }
tr.qual-3.third-out { background: transparent; }
tr.qual-3.third-out .rank-badge { background: var(--chip-bg); color: var(--muted); border-color: var(--line); }

/* Grup maçları */
.gmatches { padding: 6px 10px 12px; }
.gmatch { display: grid; grid-template-columns: 22px 46px 1fr auto 1fr; align-items: center; gap: 6px;
  padding: 6px 2px; border-bottom: 1px dashed var(--line); }
.gmatch:last-child { border-bottom: none; }
.gmatch .gdate { font-size: 10px; color: var(--muted); line-height: 1.1; }
/* Düzen: isim 🏴 skor : skor 🏴 isim -> orta küme (bayrak+skor) skora yaslı, hizalı */
.side { display: flex; align-items: center; gap: 6px; min-width: 0; }
.side.home { justify-content: flex-end; }
.side.away { justify-content: flex-start; }
.side img { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.4); flex: none; }
.side .sn { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.gmatch > .colon { color: var(--muted); font-weight: 800; flex: none; text-align: center; }
.score-box { display: flex; align-items: center; gap: 4px; }
.score-box input { width: 30px; height: 28px; text-align: center; border-radius: 7px; border: 1px solid var(--line2);
  background: var(--input-bg); color: var(--input-text); font-size: 15px; font-weight: 800; -moz-appearance: textfield; }
.score-box input::-webkit-outer-spin-button, .score-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.score-box input:disabled { opacity: .85; cursor: default; }
.score-box .colon { color: var(--muted); font-weight: 800; }
.score-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(25,224,138,.25); }

/* ---------- Eleme bracket (org-chart ağacı) ---------- */
.bracket-scroll { overflow-x: auto; padding-bottom: 14px; -webkit-overflow-scrolling: touch; }
.bracket { min-width: max-content; padding: 6px 2px 10px; }

/* Ağaç: kök (final) sağda, dallar sola. row-reverse ile kart sağda, çocuklar solda. */
.btree { display: flex; }
.bnode { display: flex; flex-direction: row-reverse; align-items: center; }
.bcard { display: flex; flex-direction: column; margin-left: 30px; }
.bkids { display: flex; flex-direction: column; justify-content: center; }

/* Bağlantı çizgileri: her çocuk, kartına doğru bir dirsek çizer */
.bkids > .bnode { position: relative; }
.bkids > .bnode::before { /* yatay çizgi (ebeveyne doğru, sağa) */
  content: ''; position: absolute; right: -30px; top: 50%; width: 30px; height: 2px;
  background: var(--line2);
}
.bkids > .bnode::after { /* dikey çizgi (kardeşe doğru, ebeveyn ortasına kadar) */
  content: ''; position: absolute; right: -30px; width: 2px; height: 50%; background: var(--line2);
}
.bkids > .bnode:first-child::after { top: 50%; }
.bkids > .bnode:last-child::after { top: 0; }
.bnode > .bcard { position: relative; }

.bround { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); text-align: center; margin-bottom: 4px; }
.bround.fn { color: var(--gold); font-size: 12px; }

/* 3.lük maçı — ağacın altında ortada */
.thirdplace { margin: 24px auto 0; width: 240px; }
.tp-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); text-align: center; margin-bottom: 4px; }

.tie { position: relative; background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--line); border-radius: 12px; padding: 7px; box-shadow: var(--shadow); }
.tie.live { border-color: var(--line2); }
.tie.decided { border-color: var(--green-d); }
.tie.final { border-color: var(--gold); box-shadow: 0 0 24px rgba(244,197,66,.25); }
.tie-date { font-size: 10px; color: var(--muted); text-align: center; margin-bottom: 5px; }
.tie-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px;
  padding: 5px 6px; border-radius: 8px; }
.tie-row + .tie-row { margin-top: 4px; }
.tie-row.win { background: linear-gradient(90deg, rgba(24,192,122,.18), transparent); }
.tie-row.lose { opacity: .6; }
.tie-team { display: flex; align-items: center; gap: 7px; min-width: 0; }
.tie-team img { width: 22px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.4); flex: none; }
.tie-team .tt { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.tie-team .tt.placeholder { color: var(--muted); font-style: italic; font-weight: 500; }
.tie-team .flag-ph { width: 22px; height: 15px; border-radius: 2px; background: var(--chip-bg); border: 1px dashed var(--line2); flex: none; }
.tie-score input { width: 30px; height: 26px; text-align: center; border-radius: 6px; border: 1px solid var(--line2);
  background: var(--input-bg); color: var(--input-text); font-weight: 800; -moz-appearance: textfield; }
.tie-score input::-webkit-outer-spin-button, .tie-score input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tie-score input:disabled { opacity: .85; }
.tie-score input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(25,224,138,.25); }
.pen-row { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px;
  font-size: 11px; color: var(--muted); }
.pen-row .pen-btn { cursor: pointer; border: 1px solid var(--line2); background: var(--input-bg); color: var(--text);
  border-radius: 6px; padding: 2px 7px; font-size: 11px; font-weight: 700; }
.pen-btn.active { background: var(--gold); color: #2a1f00; border-color: var(--gold); }
.pen-btn[disabled] { cursor: default; }
.pen-badge { font-size: 10px; color: var(--gold); font-weight: 700; }
.tie.champ-seed { border-color: var(--gold); }

/* ---------- Şampiyon overlay ---------- */
.champion-overlay { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(20,66,47,.96), rgba(5,16,11,.98)); }
.champion-overlay.hidden { display: none; }
#confetti { position: absolute; inset: 0; width: 100%; height: 100%; }
.champion-card { position: relative; text-align: center; padding: 30px 40px; animation: pop .6s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.champion-trophy { font-size: clamp(70px, 16vw, 130px); filter: drop-shadow(0 8px 30px rgba(244,197,66,.6));
  animation: trophy 2.4s ease-in-out infinite; }
@keyframes trophy { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.champion-label { letter-spacing: 5px; font-weight: 800; color: var(--gold); margin-top: 8px; font-size: clamp(13px, 2.6vw, 18px); }
.champion-flag { width: clamp(120px, 26vw, 200px); border-radius: 8px; margin: 18px auto 10px; display: block;
  box-shadow: 0 10px 40px rgba(0,0,0,.6), 0 0 0 3px var(--gold); animation: wave 3s ease-in-out infinite; }
@keyframes wave { 0%,100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
.champion-name { font-size: clamp(34px, 9vw, 76px); font-weight: 900; line-height: 1;
  background: linear-gradient(90deg, #fff, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 6px 30px rgba(244,197,66,.3); }
.champion-stars { color: var(--gold); letter-spacing: 6px; margin-top: 12px; font-weight: 800; }
.champion-close { margin-top: 26px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color: #fff; padding: 9px 22px; border-radius: 10px; cursor: pointer; font-weight: 700; }
.champion-close:hover { background: rgba(255,255,255,.2); }

/* ---------- Açılış seremonisi (geçit töreni) ---------- */
.ceremony-overlay { position: fixed; inset: 0; z-index: 82; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, rgba(20,66,47,.97), rgba(5,16,11,.99)); }
.ceremony-overlay.hidden { display: none; }
#confetti3 { position: absolute; inset: 0; width: 100%; height: 100%; }
.ceremony-card { position: relative; text-align: center; width: min(960px, 98vw); padding: 10px;
  animation: pop .6s cubic-bezier(.2,1.4,.4,1); }
.ceremony-emoji { font-size: clamp(40px, 8vw, 64px); filter: drop-shadow(0 6px 20px rgba(244,197,66,.45));
  animation: trophy 2.4s ease-in-out infinite; }
.ceremony-title { font-size: clamp(24px, 5.5vw, 44px); font-weight: 900; letter-spacing: 1px; margin-top: 4px;
  background: linear-gradient(90deg, #fff, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 6px 30px rgba(244,197,66,.3); }
.ceremony-sub { color: #cfeede; font-size: clamp(13px, 2.6vw, 18px); margin-top: 6px; font-weight: 600; }
.ceremony-parade { position: relative; overflow: hidden; width: 100%; margin: 22px 0 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.parade-track { display: flex; gap: 26px; width: max-content; animation: paradeMarch 45s linear infinite; }
.ceremony-parade:hover .parade-track { animation-play-state: paused; }
@keyframes paradeMarch { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.parade-flag { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; flex: none; }
.parade-flag img { width: 74px; height: 50px; object-fit: cover; border-radius: 5px;
  box-shadow: 0 6px 18px rgba(0,0,0,.5), 0 0 0 2px var(--gold); animation: wave 3s ease-in-out infinite; }
.parade-flag span { font-size: 12px; font-weight: 700; color: #eaf5ef; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 92px; }
.ceremony-count { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; align-items: center;
  color: #eaf5ef; font-size: clamp(13px, 2.6vw, 17px); margin-top: 4px; }
.ceremony-count b { color: var(--gold); }
.cer-left b { font-variant-numeric: tabular-nums; }

/* ---------- Kupa başlangıç geri sayımı ---------- */
.countdown { margin: 14px auto 6px; max-width: 760px; text-align: center;
  background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--line2); border-radius: var(--radius); padding: 16px 14px;
  box-shadow: var(--shadow); animation: cdIn .6s cubic-bezier(.2,1,.3,1); }
.countdown.hidden { display: none; }
@keyframes cdIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.cd-head { display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: clamp(13px, 3vw, 17px); color: var(--text);
  letter-spacing: .5px; text-transform: uppercase; }
.cd-trophy { font-size: 1.35em; filter: drop-shadow(0 3px 8px rgba(244,197,66,.4));
  animation: trophy 2.6s ease-in-out infinite; }
.cd-boxes { display: flex; justify-content: center; gap: clamp(8px, 2.4vw, 18px); margin-top: 12px; }
.cd-box { display: flex; flex-direction: column; align-items: center; gap: 5px;
  min-width: clamp(56px, 16vw, 88px); padding: 12px 6px; border-radius: 12px;
  background: var(--input-bg); border: 1px solid var(--line); }
.cd-box b { font-size: clamp(28px, 8.5vw, 48px); font-weight: 900; line-height: 1;
  color: var(--accent); font-variant-numeric: tabular-nums;
  text-shadow: 0 3px 16px rgba(0,0,0,.35); }
.cd-box span { font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--muted); }
.cd-when { margin-top: 11px; font-size: 12px; color: var(--muted); }
.cd-d-sep { display: none; }

/* ---------- Favori takım bandı ---------- */
.fav-band { display: flex; flex-direction: column; gap: 8px;
  max-width: 760px; margin: 10px auto 4px; padding: 10px 14px;
  background: linear-gradient(90deg, rgba(25,224,138,.12), var(--panel));
  border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow); }
.fav-band.hidden { display: none; }
.fb-title { font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.fb-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.fb-row + .fb-row { border-top: 1px solid var(--line); padding-top: 8px; }
.fb-star { font-size: 18px; }
.fb-team { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; }
.fb-team img { width: 26px; height: 18px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.fb-info { color: var(--text); font-size: 13px; }
.fb-info b { color: var(--accent); }
.fb-left { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 800; }
.fb-ics { margin-left: auto; cursor: pointer; border: 1px solid var(--line2);
  background: var(--panel2); color: var(--text); border-radius: 9px; padding: 6px 12px;
  font-weight: 700; font-size: 13px; transition: .15s; white-space: nowrap; }
.fb-ics:hover { border-color: var(--accent); transform: translateY(-1px); }
.fb-ics.added { color: var(--accent); border-color: var(--accent); background: rgba(25,224,138,.10); }
.fb-pick { cursor: pointer; background: transparent; border: 0; color: var(--accent);
  font-weight: 800; font-size: 14px; padding: 2px 0; text-decoration: underline; }
.fb-empty { color: var(--muted); font-size: 13px; padding: 2px 2px; }
.fb-all { display: block; width: fit-content; margin: 4px auto 0; cursor: pointer;
  background: var(--panel2); border: 1px solid var(--line2); color: var(--accent);
  border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: 12px; transition: .12s; }
.fb-all:hover { border-color: var(--accent); }
.wm-row { display: flex; flex-direction: column; gap: 5px;
  padding: 8px 10px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); }
.wm-stage { font-size: 10px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.wm-main { display: flex; align-items: center; gap: 10px; }
.wm-teams { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.wm-main .tm-right { white-space: nowrap; }
.watch-clear { display: block; margin: 0 0 10px auto; cursor: pointer; background: transparent;
  border: 1px solid var(--line2); color: var(--red); border-radius: 999px; padding: 4px 12px;
  font-size: 12px; font-weight: 700; }
.watch-clear:hover { border-color: var(--red); }

/* ---------- İlk ziyaret: favori takım seçici ---------- */
.fav-card { width: min(94vw, 470px); }
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px;
  max-height: 52vh; overflow-y: auto; margin: 6px 0; padding: 2px; }
.fav-chip { display: flex; align-items: center; gap: 7px; cursor: pointer; text-align: left;
  background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; padding: 7px 8px;
  color: var(--text); font-size: 12px; font-weight: 600; transition: .12s; }
.fav-chip img { width: 22px; height: 15px; object-fit: cover; border-radius: 3px; flex: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.fav-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-chip:hover { border-color: var(--green); }
.fav-chip.on { border-color: var(--accent); background: rgba(25,224,138,.16); box-shadow: inset 0 0 0 1px var(--accent); }

/* ---------- Takım turnuva programı popup ---------- */
.team-link { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
/* Puan durumu / grup / eleme takım adları tıklanabilir (takım popup'ı) — display değişmez, ellipsis korunur */
.tn-link { cursor: pointer; }
@media (hover: hover) { .tn-link:hover { text-decoration: underline; } }
.team-link:hover b { text-decoration: underline; }
.team-link img { width: 24px; height: 16px; object-fit: cover; border-radius: 3px; flex: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.team-link b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-card { width: min(94vw, 480px); max-height: 86vh; overflow-y: auto; position: relative; }
.tm-close { position: absolute; top: 10px; right: 12px; background: transparent; border: 0;
  color: var(--muted); font-size: 16px; cursor: pointer; line-height: 1; }
.tm-head { display: flex; align-items: center; gap: 12px; margin: 2px 0 14px; }
.tm-head img { width: 46px; height: 31px; object-fit: cover; border-radius: 4px; flex: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.tm-name { font-size: 20px; font-weight: 900; line-height: 1.1; }
.tm-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tm-body { display: flex; flex-direction: column; gap: 6px; }
.tm-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); }
.tm-stage { font-size: 10px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.tm-opp { display: flex; align-items: center; gap: 7px; min-width: 0; }
.tm-opp img { width: 22px; height: 15px; object-fit: cover; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.tm-opp span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 13px; }
.tm-right { text-align: right; white-space: nowrap; }
.tm-when { font-size: 10px; color: var(--muted); margin-right: 8px; }
.tm-score { font-weight: 900; font-size: 15px; }
.tm-score.win { color: var(--green); }
.tm-score.loss { color: var(--red); }
.tm-score.draw { color: var(--gold); }
/* Sonuç harf rozeti: G/B/M (W/D/L) — renge ek net gösterge */
.tm-res { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
  border-radius: 5px; font-size: 11px; font-weight: 900; color: #fff; margin-right: 7px; flex: none; }
.tm-res.win { background: var(--green); }
.tm-res.loss { background: var(--red); }
.tm-res.draw { background: var(--gold); color: #1a1206; }
.tm-time { font-size: 11px; color: var(--muted); }
.tm-tbd { color: var(--muted); font-style: italic; font-size: 13px; }

/* ---------- Maç detayı (gol/kart) popup'ı + işaretler ---------- */
.dt-i { cursor: pointer; color: var(--accent); font-size: 11px; margin-left: 3px; opacity: .8; }
.dt-i:hover { opacity: 1; }
.gmatch.has-detail, .tie.has-detail, .live-card.has-detail { cursor: pointer; }
.has-detail .team-link, .has-detail .wstar { cursor: pointer; } /* kendi tıklanabilirlikleri */
/* Kırmızı kart işareti: bayrağın altında küçük kart + ×N rozeti */
.flag-wrap { position: relative; display: inline-flex; flex: none; line-height: 0; }
/* Bayrağın tam ÜSTÜNDE, opak zeminli okunaklı rozet — bayrağı kapatmaz */
.rc-badge { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 2px;
  display: inline-flex; align-items: center; gap: 2px; background: #0e1626;
  border: 1px solid rgba(255,255,255,.3); border-radius: 4px; padding: 0 3px 0 2px;
  font-size: 9px; font-weight: 800; color: #fff; line-height: 1.4; white-space: nowrap;
  pointer-events: none; z-index: 3; box-shadow: 0 1px 4px rgba(0,0,0,.55); }
.rc-badge .rc { width: 5px; height: 8px; border-radius: 1.5px; background: #e0322f;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.5); display: inline-block; }
/* Salt-okunur skor input'u dokunuşu yutmasın -> kart dokunma hedefi güvenilir olsun */
.stepper.ro input { pointer-events: none; }
.dt-head { flex-direction: column; align-items: stretch; gap: 6px; margin-top: 20px; } /* ✕'e yapışmasın */
.dt-score { display: flex; align-items: center; justify-content: center; gap: 12px; }
.dt-score b { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; flex: none; }
.dt-tm { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; min-width: 0; flex: 1; }
.dt-tm.away { justify-content: flex-end; }
.dt-tm img { width: 26px; height: 18px; object-fit: cover; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.dt-tm span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-head .tm-sub { text-align: center; }
.dt-row { display: flex; align-items: center; gap: 9px; padding: 7px 6px; border-bottom: 1px solid var(--line); font-size: 14px; }
.dt-row:last-child { border-bottom: none; }
.dt-row.a { flex-direction: row-reverse; text-align: right; }
.dt-ic { flex: none; width: 20px; text-align: center; }
.dt-min { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 38px; flex: none; }
.dt-row.a .dt-min { text-align: right; }
.dt-pl { flex: 1; min-width: 0; }

/* ---------- Sol alt: Paylaş / Yükle ---------- */
.fab-stack { position: fixed; left: 14px; bottom: 14px; z-index: 56; display: flex; flex-direction: column; gap: 8px; }
.fab-btn { display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: linear-gradient(180deg, var(--green), var(--green-d)); color: #04140c;
  border: 1px solid var(--green-d); border-radius: 999px; padding: 9px 15px;
  font-weight: 800; font-size: 13px; box-shadow: 0 6px 18px rgba(0,0,0,.4); transition: .15s; }
.fab-btn:hover { transform: translateY(-2px); }
.fab-btn.hidden { display: none; }
.fab-lbl { font-size: 13px; }
@media (max-width: 520px) { .fab-lbl { display: none; } .fab-btn { padding: 11px; font-size: 16px; } }

/* ---------- iPhone kurulum ipucu ---------- */
.ios-install { position: fixed; right: 10px; left: auto; bottom: 37px;
  z-index: 60; max-width: min(92vw, 440px); display: flex; align-items: center; gap: 10px;
  background: var(--panel); color: var(--text); border: 1px solid var(--accent); border-radius: 14px;
  padding: 12px 34px 12px 14px; box-shadow: 0 12px 34px rgba(0,0,0,.5);
  font-size: 13px; font-weight: 600; line-height: 1.35; animation: cdIn .5s ease; }
.ios-install.hidden { display: none; }
.ios-x { position: absolute; top: 5px; right: 8px; background: transparent; border: 0;
  color: var(--muted); font-size: 14px; cursor: pointer; line-height: 1; }
.ios-share-ico { color: var(--accent); flex: none; display: inline-flex; align-items: center; }
/* Aşağı bakan zıplayan ok — Safari Paylaş düğmesini gösterir (ekranın sağ-altı, ~7/8 genişlik) */
.ios-arrow { position: fixed; left: 84.4%; bottom: 6px; transform: translateX(-50%);
  color: var(--accent); font-size: 42px; line-height: 1; font-weight: 900;
  text-shadow: 0 2px 8px rgba(0,0,0,.55); pointer-events: none;
  animation: iosBounce 1.2s ease-in-out infinite; }
@keyframes iosBounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ---------- Haberler: ikon + sağ çekmece ---------- */
.news-btn {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 55; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: linear-gradient(180deg, var(--green), var(--green-d)); color: #04140c;
  border: 1px solid var(--green-d); border-right: none; border-radius: 12px 0 0 12px;
  padding: 12px 8px; cursor: pointer; box-shadow: -4px 4px 18px rgba(0,0,0,.4); font-weight: 800;
}
.news-btn:hover { padding-right: 12px; }
.news-ico { font-size: 20px; }
.news-lbl { font-size: 11px; writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: 1px; }
.news-overlay { position: fixed; inset: 0; z-index: 73; background: rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: opacity .3s; }
.news-overlay.show { opacity: 1; pointer-events: auto; }
.news-drawer {
  position: fixed; top: 0; right: 0; z-index: 74; height: 100%; width: min(380px, 92vw);
  background: linear-gradient(180deg, var(--panel), var(--bg)); border-left: 1px solid var(--line2);
  box-shadow: -10px 0 40px rgba(0,0,0,.5); transform: translateX(100%);
  transition: transform .32s cubic-bezier(.3,1,.4,1); display: flex; flex-direction: column;
}
.news-drawer.open { transform: translateX(0); }
.nd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 18px; border-bottom: 1px solid var(--line); }
.nd-title { font-size: 17px; font-weight: 800; }
.nd-close { background: transparent; border: 1px solid var(--line2); color: var(--text);
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.nd-close:hover { border-color: var(--green); }
.nd-body { flex: 1; overflow-y: auto; padding: 8px 14px 14px; }
.nd-foot { padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.nd-sec { border-bottom: 1px solid var(--line); }
.nd-sec > summary { cursor: pointer; list-style: none; display: flex; align-items: center;
  justify-content: space-between; padding: 14px 4px; font-size: 15px; font-weight: 800; }
.nd-sec > summary::-webkit-details-marker { display: none; }
.nd-sec > summary::before { content: '▸'; margin-right: 8px; color: var(--accent); transition: transform .2s; }
.nd-sec[open] > summary::before { transform: rotate(90deg); }
.nd-count { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--panel2);
  border: 1px solid var(--line2); border-radius: 999px; padding: 2px 9px; }
.nd-list { padding-bottom: 10px; }
.nd-empty { color: var(--muted); font-size: 13px; padding: 6px 6px 14px; }
.news-match { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 10px; }
.nm-teams { display: flex; align-items: center; gap: 7px; font-size: 14px; flex-wrap: wrap; }
.nm-teams img { width: 22px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.nm-vs { color: var(--muted); }
.nm-meta { font-size: 11px; color: var(--muted); margin: 4px 0 8px; }
.nm-links { display: flex; flex-direction: column; gap: 6px; }
.nm-links a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text);
  background: var(--input-bg); border: 1px solid var(--line2); border-radius: 8px; padding: 7px 10px; font-size: 13px; font-weight: 600; }
.nm-links a:hover { border-color: var(--green); background: #0a2016; }
.lang { font-size: 10px; font-weight: 900; color: #fff; padding: 1px 6px; border-radius: 4px; flex: none; }
.lang.tr { background: var(--tr); }
.lang.en { background: #2f6fed; }
.lang.local { background: var(--green-d); }

/* ---------- Tur kutlaması overlay'i ---------- */
.stage-overlay { position: fixed; inset: 0; z-index: 78; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, rgba(15,58,42,.97), rgba(5,16,11,.98)); padding: 16px; }
.stage-overlay.hidden { display: none; }
#confetti2 { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-card { position: relative; text-align: center; width: min(720px, 96vw); max-height: 90vh;
  display: flex; flex-direction: column; animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
.stage-emoji { font-size: clamp(44px, 9vw, 72px); filter: drop-shadow(0 6px 20px rgba(244,197,66,.4)); }
.stage-title { font-size: clamp(22px, 5vw, 38px); font-weight: 900; letter-spacing: 1px; margin-top: 6px;
  background: linear-gradient(90deg, #fff, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stage-sub { color: var(--accent); font-weight: 700; font-size: clamp(13px, 2.4vw, 16px); margin: 4px 0 14px; }
.stage-list { overflow-y: auto; padding: 4px 6px; }
.qsec-title { text-align: left; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); margin: 12px 0 8px; }
.qgrid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.qchip { display: flex; align-items: center; gap: 8px; background: var(--panel2); border: 1px solid var(--line2);
  border-radius: 10px; padding: 7px 10px; }
.qchip img { width: 26px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.4); flex: none; }
.qchip .qg { font-size: 10px; font-weight: 900; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
  border-radius: 5px; background: var(--chip-bg); color: var(--muted); border: 1px solid var(--line); flex: none; }
.qchip .qn { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; text-align: left; }
.qchip .qr { font-size: 11px; font-weight: 900; flex: none; }
.qchip.r1 { border-color: var(--green); } .qchip.r1 .qr { color: var(--green); }
.qchip.r2 { border-color: var(--green-d); } .qchip.r2 .qr { color: var(--green); }
.qchip.r3 { border-color: var(--gold-d); } .qchip.r3 .qr { color: var(--gold); }
.qpairs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.qpair { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--panel2);
  border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; }
.qpair .qside { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.qpair .qside:first-child { justify-content: flex-end; }
.qpair .qside img { width: 28px; height: 20px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.4); flex: none; }
.qpair .qside b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qpair .qvs { color: var(--muted); font-weight: 800; flex: none; }

/* ---------- Çeşitli ---------- */
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 30px 12px 40px; }
.disclaimer-bar { margin: 0 auto 16px; padding: 0 16px; max-width: 620px; text-align: center;
  font-size: 11px; line-height: 1.4; color: var(--muted); opacity: .7; text-wrap: pretty; }
.hitstats { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
  background: var(--panel2); border: 1px solid var(--line2); border-radius: 999px; padding: 6px 14px; }
.hit-item { font-size: 12px; color: var(--muted); }
.hit-item b { color: var(--accent); font-weight: 800; }
.hit-sep { color: var(--line2); }
.foot-contact { margin-bottom: 8px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.contact-link, .x-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  color: var(--text); background: var(--panel2); border: 1px solid var(--line2); border-radius: 999px;
  padding: 6px 14px; font-size: 12px; font-weight: 700; cursor: pointer; }
.contact-link:hover, .x-link:hover { border-color: var(--green); color: var(--accent); }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 70;
  background: var(--panel2); border: 1px solid var(--line2); color: var(--text); padding: 10px 16px;
  border-radius: 10px; font-size: 13px; box-shadow: var(--shadow); transition: opacity .2s; }
.hidden { display: none !important; }

/* Yerel depolama bilgilendirme çubuğu (alt) */
.consent-bar { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 85;
  width: min(680px, 94vw); display: flex; align-items: center; gap: 12px;
  background: var(--panel2); border: 1px solid var(--line2); border-radius: 12px;
  padding: 10px 14px; box-shadow: var(--shadow); }
.consent-txt { font-size: 12px; color: var(--text); line-height: 1.4; }
.consent-ok { flex: none; cursor: pointer; border: 1px solid var(--green-d); border-radius: 8px;
  background: linear-gradient(180deg, var(--green), var(--green-d)); color: #04140c;
  font-weight: 800; font-size: 13px; padding: 7px 16px; }
.consent-ok:hover { transform: translateY(-1px); }
@media (max-width: 560px) { .consent-bar { flex-direction: column; align-items: stretch; text-align: center; bottom: 8px; } }

/* ---------- Skor kutusu (rakam-only + spinner) ---------- */
.stepper { display: inline-flex; align-items: center; gap: 3px; }
.stepper input { width: 34px; height: 30px; text-align: center; border-radius: 7px; border: 1px solid var(--line2);
  background: var(--input-bg); color: var(--input-text); font-size: 15px; font-weight: 800; padding: 0; }
.stepper input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(25,224,138,.25); }
.stepper input:disabled { opacity: .9; }
.stepper.ro input { width: 26px; border-color: transparent; background: transparent; }
.spin { display: flex; flex-direction: column; gap: 2px; }
.spin button { width: 18px; height: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 8px; line-height: 1; border: 1px solid var(--line2); background: var(--panel2); color: var(--muted);
  border-radius: 4px; cursor: pointer; padding: 0; user-select: none; -webkit-tap-highlight-color: transparent; }
.spin button:hover { border-color: var(--green); color: var(--text); }
.spin button:active { background: var(--green); color: #04140c; }
.tie .stepper input { width: 32px; height: 28px; }

/* ---------- Favori takım vurgusu (ziyaretçiye özel, ⭐) ---------- */
:root { --tr: #e30a17; }
.gmatch.fav-match { position: relative; border-radius: 9px;
  background: linear-gradient(90deg, var(--fav-bg), transparent);
  box-shadow: inset 4px 0 0 var(--fav); }
.fav-tag { position: absolute; top: 2px; right: 4px; font-size: 12px; line-height: 1;
  color: var(--gold); text-shadow: 0 0 6px rgba(244,197,66,.7); }
.fav-row td { background: linear-gradient(90deg, var(--fav-bg), transparent) !important; }
.fav-row .tn { color: var(--fav-name); }
.tie.fav-match { border-color: var(--fav); box-shadow: 0 0 0 1px var(--fav), 0 0 18px var(--fav-glow); }
/* Puan cetvelindeki favori yıldız düğmesi */
.fav-star { margin-left: auto; background: none; border: none; cursor: pointer; padding: 0 2px;
  font-size: 15px; line-height: 1; color: var(--line2); transition: transform .1s, color .15s; flex: none; }
.fav-star:hover { color: var(--gold); transform: scale(1.2); }
.fav-star.on { color: var(--gold); text-shadow: 0 0 8px rgba(244,197,66,.65); }
.live-card.fav-match { position: relative; }

/* ---------- İzleme listesi göz ikonu (tek renk: kapalı soluk, açık altın) ---------- */
.wstar { background: transparent; border: 0; cursor: pointer; color: var(--line2); padding: 2px;
  display: inline-flex; align-items: center; line-height: 0; transition: color .12s, transform .1s; flex: none;
  touch-action: manipulation; }
/* Hover rengi yalnızca gerçek hover (fare) cihazlarda — mobilde "yapışkan hover" rengi kalmasın */
@media (hover: hover) { .wstar:hover { color: var(--gold); transform: scale(1.12); } }
.wstar.on { color: var(--gold); }
.wstar.on svg circle { fill: currentColor; }       /* eklendiğinde göz "dolu" */
.wstar.on svg path { fill: currentColor; fill-opacity: .18; }
:root[data-theme="light"] .wstar.on { color: var(--gold-d); } /* light'ta daha belirgin koyu altın */
.tie > .wstar { position: absolute; top: 5px; right: 6px; z-index: 3; }
.live-card .lc-meta { margin-left: auto; }          /* meta sağa, göz en sağa */
/* Haber ikonu (tamamlanan maçta) — Google News yeni sekmede */
.news-ico { color: var(--line2); display: inline-flex; align-items: center; justify-content: center;
  padding: 2px; cursor: pointer; text-decoration: none; line-height: 0; flex: none; touch-action: manipulation;
  transition: color .12s, transform .1s; }
@media (hover: hover) { .news-ico:hover { color: var(--accent); transform: scale(1.12); } }
.tie > .news-ico { position: absolute; top: 5px; right: 6px; z-index: 3; } /* gözle aynı yer (biri veya öteki) */
.fb-vs { color: var(--muted); margin: 0 5px; font-weight: 700; }
/* Favori takım ismi yanı ★ göstergesi (grup + eleme) */
.fav-mark { color: var(--gold); font-size: .82em; margin-left: 3px; flex: none;
  text-shadow: 0 0 6px rgba(244,197,66,.5); }

/* ---------- Canlı güncelleme vurguları (15 sn) ---------- */
.gmatch.just-updated, .tie.just-updated, .live-card.just-updated {
  background: linear-gradient(90deg, rgba(25,224,138,.22), rgba(25,224,138,.04));
  border-radius: 10px;
  box-shadow: 0 0 0 2px rgba(25,224,138,.55), 0 0 16px rgba(25,224,138,.35);
  animation: upd-pulse 1.1s ease-in-out 2;
}
@keyframes upd-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(25,224,138,.5), 0 0 14px rgba(25,224,138,.3); }
  50%      { box-shadow: 0 0 0 3px rgba(25,224,138,.95), 0 0 28px rgba(25,224,138,.75); }
}
/* Cetvel satırı vurgusu (içe parıltı; mevcut arka planı bozmaz) */
tr.just-updated-row td { box-shadow: inset 0 0 12px rgba(25,224,138,.25); animation: row-pulse 1.1s ease-in-out 2; }
tr.just-updated-row td:first-child { box-shadow: inset 3px 0 0 var(--accent), inset 0 0 12px rgba(25,224,138,.25); }
@keyframes row-pulse {
  0%, 100% { box-shadow: inset 0 0 12px rgba(25,224,138,.25); }
  50%      { box-shadow: inset 0 0 26px rgba(25,224,138,.6); }
}

/* ---------- Üstten çıkan floating bildirim ---------- */
.livebar {
  position: fixed; top: 0; left: 50%; transform: translate(-50%, -150%);
  z-index: 39; padding: 10px 18px; border-radius: 0 0 16px 16px;
  background: linear-gradient(180deg, #0f3a2a, #0b2a1e); color: #eafff5;
  border: 1px solid var(--line2); border-top: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 24px rgba(25,224,138,.25);
  transition: transform .4s cubic-bezier(.2,1.3,.3,1);
  display: flex; flex-direction: column; gap: 6px; max-width: 94vw;
}
.livebar.show { transform: translate(-50%, 0); }
.lb-row { display: flex; align-items: center; gap: 7px; font-size: 14px; white-space: nowrap; }
.lb-ball { font-size: 16px; animation: spin 4s linear infinite; }
.lb-flag { width: 24px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.5); flex: none; }
.lb-name { font-weight: 800; }
.lb-score { font-weight: 900; font-size: 16px; color: var(--accent); padding: 0 4px;
  background: rgba(25,224,138,.14); border-radius: 6px; }
.lb-dash { margin: 0 3px; color: #bfe; }
.lb-more { font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 560px) { .lb-name { max-width: 26vw; overflow: hidden; text-overflow: ellipsis; } }

@media (max-width: 560px) {
  .groups-grid { grid-template-columns: 1fr; }
  .team-cell .tn { max-width: 38vw; }
  /* Dar/mobil ekran: üst bar 3 satır, ortalı */
  .topbar { flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 8px 12px; }
  .tb-brand { align-items: center; }
  .tb-row { justify-content: center; }
  .tb-auth { margin-top: 2px; }
  .brand-ball { font-size: 22px; }
  .tb-title h1 { white-space: normal; }
  .tb-sub .brand-sub { font-size: 11px; line-height: 1.3; }
  .mode-badge { padding: 5px 9px; font-size: 11px; }
  /* Haberler ikonu mobilde sağ ÜST köşede; sağ boşluk yok -> simetri korunur */
  #app { padding-right: 0; }
  .news-lbl { display: none; }
  .news-btn {
    top: 9px; right: 9px; bottom: auto; transform: none;
    flex-direction: row; border-radius: 10px; border: 1px solid var(--green-d);
    padding: 7px 9px; z-index: 60; box-shadow: 0 4px 14px rgba(0,0,0,.4);
  }
  .news-ico { font-size: 18px; }
  /* Üst bar kalabalığını azalt: tema seçici + timezone + dil daha küçük */
  .tb-auth.tb-row { gap: 6px; }
  .theme-switch { padding: 2px; gap: 1px; position: relative; }
  .theme-btn { padding: 3px 5px; font-size: 12px; }
  /* Kapalıyken sadece aktif tema */
  .theme-switch:not(.open) .theme-btn:not(.active) { display: none; }
  /* Açık liste: butonlar absolute (kap kapalı boyutta kalır -> banner itilmez),
     sabit genişlikli pill'ler ikonun altından aşağı dizilir */
  .theme-switch.open { width: 40px; padding: 0; background: transparent; border-color: transparent; }
  .theme-switch.open .theme-btn {
    position: absolute; left: 0; width: 40px; height: 34px; box-sizing: border-box;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; border-radius: 999px; z-index: 60; opacity: 1; filter: none;
    background: var(--panel); border: 1px solid var(--line2); box-shadow: 0 5px 16px rgba(0,0,0,.45);
  }
  .theme-switch.open .theme-btn:nth-child(1) { top: 0; }
  .theme-switch.open .theme-btn:nth-child(2) { top: 38px; }
  .theme-switch.open .theme-btn:nth-child(3) { top: 76px; }
  .theme-switch.open .theme-btn.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 5px 16px rgba(0,0,0,.45); }
  .lang-select { padding: 4px 5px; font-size: 11px; }
  .tz-select { max-width: none; font-size: 11px; padding: 4px 4px; } /* genişliği JS (fitTzWidth) ayarlar */
  .online-pill { padding: 4px 8px; font-size: 11px; }
  /* Takvime ekle: mobilde sadece 📅 ikon */
  .fb-ics span { display: none; }
  .fb-ics { padding: 7px 11px; font-size: 17px; }
  .fav-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  /* Favori bandı mobilde 2 satır: 1) ⭐ takım + 📅  2) sıradaki maç bilgisi */
  .fav-band { gap: 7px; padding: 9px 12px; }
  .fb-row { gap: 6px 8px; }
  .fb-star { order: 0; }
  .fb-team { order: 1; font-size: 14px; }
  .fb-ics { order: 2; }
  .fb-info { order: 3; flex-basis: 100%; font-size: 11.5px; line-height: 1.3; }
  /* "Bugün" kartı rozet/meta mobilde taşmasın */
  .lc-top { gap: 6px; }
  .lc-badge { font-size: 10px; padding: 3px 7px; letter-spacing: .3px; }
  .lc-meta { font-size: 10px; }
}

/* ---------- Dokunmatik cihazlarda büyük skor kutusu + spinner ---------- */
@media (pointer: coarse) {
  .stepper input, .spin button { touch-action: manipulation; }
  .stepper input { width: 40px; height: 46px; font-size: 19px; }
  .tie .stepper input { width: 38px; height: 44px; }
  .spin { gap: 4px; }
  .spin button { width: 28px; height: 21px; font-size: 13px; border-radius: 6px; }
  .tie .spin button { height: 20px; }
  /* Grup maçı satırında skora daha çok yer ver */
  .gmatch { grid-template-columns: 20px 42px 1fr auto 1fr; gap: 4px; }
  .side .sn { font-size: 12px; }
}
