/* ==========================================================================
   Amedspor Fan — halka açık site tasarım sistemi (site.css)

   Kimlik: landing DNA'sı (Gilroy 900 büyük harf, orman yeşili + krem + kırmızı
   kimlik şeridi, keskin/güvenli yerleşim) + uygulamanın bileşen semantiği
   (form çipi, reyting pili, maç kartı, tahmin barı — design-tokens.md §9).

   Yapı:
     0. Fontlar            6. Header / nav / mobil menü   12. Reyting pili
     1. Jetonlar (açık)    7. Footer                      13. Canlı nokta / piller
     2. Jetonlar (koyu)    8. Düğmeler                    14. Maç afişi (match_hero)
     3. Reset / temel      9. Kartlar                     15. Fikstür satırı (match_tile)
     4. Yerleşim / ızgara 10. Arma / avatar / şerit       16. Tahmin barı
     5. Tipografi         11. Form çipi                   17. Bölüm başlığı, boş durum, rozetler
                                                          18. Olay ikonu · 19. Tablolar
                                                          20. Saha yüzeyi · 21. Duyarlı · 22. Hareket / odak
   Sayfa özel kurallar public/asset/site/pages/*.css içinde; buraya YALNIZCA
   ortak bileşen girer.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. FONTLAR — public/asset/fonts/ (landing ile aynı dosyalar)
   -------------------------------------------------------------------------- */
@font-face { font-family: 'Gilroy'; src: url('../fonts/Gilroy-Regular.ttf') format('truetype');  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/Gilroy-Medium.ttf') format('truetype');   font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/Gilroy-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/Gilroy-Bold.ttf') format('truetype');     font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/Gilroy-ExtraBold.otf') format('opentype');font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/Gilroy-Black.ttf') format('truetype');    font-weight: 900; font-style: normal; font-display: swap; }

/* --------------------------------------------------------------------------
   1. JETONLAR — açık tema (varsayılan). Her renk BURADA tanımlı; koyu blok
      yalnızca yeniden tanımlar. Adlar site-spec.md §5 ile aynı.
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Marka */
  --forest:      #005b35;   /* birincil: düğme, afiş, tablo vurgusu (landing) */
  --forest-deep: #003d26;   /* header, koyu afiş zemini */
  --forest-hover:#004c2b;
  --forest-app:  #0B6B3A;   /* uygulamanın cClubGreen'i — app ile birebir yerler */
  --mint:        #79c7a3;   /* koyu zeminde başlık vurgusu */
  --accent:      #37CE74;   /* koyu zeminde "biz": canlı saat, gol; üstüne SİYAH yazı */
  --accent-soft: #9FDDB7;
  --red:         #d8362f;   /* kimlik şeridi, CANLI, mağlubiyet — aksiyon rengi DEĞİL */
  --red-app:     #C0342B;
  --red-hover:   #ec443d;
  --green-soft:  #E4F0E8;
  --red-soft:    #F8E6E4;
  --green-tint:  rgba(0, 91, 53, 0.10);
  --red-tint:    rgba(216, 54, 47, 0.10);

  /* Zemin / yüzey / mürekkep (hafif yeşile kaçan nötrler) */
  --cream:   #f4f2e9;       /* sayfa zemini */
  --paper:   #e8e6dc;       /* ikincil bölüm zemini */
  --surface: #ffffff;       /* kart */
  --bg-2:    #EFF2EE;       /* çip/avatar zemini, ince kenarlık */
  --ink:     #071810;
  --ink-2:   #3E4A42;
  --ink-3:   #6C7A70;
  --ink-4:   #9AA69D;
  --ink-5:   #C7CFC9;
  --line:    rgba(7, 24, 16, 0.12);
  --line-2:  rgba(7, 24, 16, 0.07);
  --black:   #0E0E0E;

  /* Semantik */
  --win:  var(--forest);   --win-soft:  var(--green-soft);
  --draw: #8A9299;         --draw-soft: var(--bg-2);      --draw-chip: var(--ink-4);
  --loss: var(--red);      --loss-soft: var(--red-soft);
  --live: var(--red);
  --card-yellow: #E9C46A;  --card-yellow-icon: #F2C200;   --card-red-icon: #E53935;
  --doubtful: #E9C46A;
  --captain-bg: #FFF1C9;   --captain-fg: #8A6A00;
  --sub-in-bg: #CDEFD8;    --sub-in-fg: #1B5E20;
  --sub-out-bg: #F8D7D7;   --sub-out-fg: #8E1B1B;
  --zone-promo: var(--forest);            --zone-releg: var(--red);
  --zone-promo-row: rgba(228, 240, 232, 0.55);
  --zone-releg-row: rgba(248, 230, 228, 0.55);
  --rating-top-bg:  var(--forest);       --rating-top-fg:  #ffffff;        /* ≥ 7.5 */
  --rating-good-bg: var(--green-soft);   --rating-good-fg: var(--forest);  /* ≥ 7.0 */
  --rating-mid-bg:  var(--bg-2);         --rating-mid-fg:  var(--ink-2);   /* 6.0–6.99 */
  --rating-low-bg:  var(--red-soft);     --rating-low-fg:  var(--red-app); /* < 6.0 */

  /* Saha / maç merkezi (her temada koyu — §20) */
  --pitch-dark:  #0C3319;
  --pitch-light: #0F3D1E;
  --pitch-line:  rgba(255, 255, 255, 0.22);
  --pitch-bg:    #0E0E0E;
  --pitch-top:   #0A2F1C;
  --pitch-mid:   #06150D;
  --pitch-halo:  rgba(11, 107, 58, 0.55);
  --glass-bg:    rgba(255, 255, 255, 0.06);
  --glass-line:  rgba(255, 255, 255, 0.10);
  --on-dark:     #ffffff;
  --on-dark-2:   rgba(255, 255, 255, 0.85);
  --on-dark-3:   rgba(255, 255, 255, 0.60);
  --on-dark-4:   rgba(255, 255, 255, 0.40);

  /* Tipografi */
  --font: 'Gilroy', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-display: clamp(40px, 7vw, 76px);
  --fs-hero: 48px;  --fs-score: 40px; --fs-score-card: 32px;
  --fs-h1: 28px;    --fs-h2: 22px;    --fs-h3: 17px;    --fs-title: 15px;
  --fs-body: 14.5px;--fs-small: 12px; --fs-meta: 11.5px;--fs-label: 10.5px;
  --fs-eyebrow: 10px; --fs-micro: 9px;
  --ls-eyebrow: 1.3px; --ls-hero: -1px;

  /* Boşluk / yarıçap / gölge / hareket (amedspor_theme.dart) */
  --sp-xs: 4px; --sp-sm: 8px; --sp-md: 12px; --sp-lg: 16px; --sp-xl: 24px; --sp-xxl: 32px; --sp-section: 56px;
  --r-chip: 8px; --r-badge: 12px; --r-control: 14px; --r-media: 16px; --r-card: 20px; --r-sheet: 28px; --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(19, 26, 21, 0.04), 0 10px 32px -16px rgba(19, 26, 21, 0.16);
  --shadow-lift: 0 2px 4px rgba(19, 26, 21, 0.06), 0 18px 40px -18px rgba(19, 26, 21, 0.28);
  --offset-red: 14px 18px 0 rgba(216, 54, 47, 0.94);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-micro: 180ms; --t-std: 260ms; --t-sheet: 400ms;

  /* Yerleşim */
  --page-max: 1180px; --gutter: 16px;
  --header-h: 64px;
  --stripe-w: 6px;
}

/* --------------------------------------------------------------------------
   2. JETONLAR — koyu tema. Sistem tercihi (açık seçilmemişse) VE açık
      data-theme="dark"; iki blok aynı, ikisi de gerekli (toggle iki yönde kazanır).
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --cream: #0E0E0E; --paper: #141715; --surface: #171B18; --bg-2: #232823;
    --ink: #ffffff; --ink-2: rgba(255, 255, 255, 0.85); --ink-3: rgba(255, 255, 255, 0.60);
    --ink-4: rgba(255, 255, 255, 0.40); --ink-5: rgba(255, 255, 255, 0.25);
    --line: rgba(255, 255, 255, 0.10); --line-2: rgba(255, 255, 255, 0.06);
    --green-soft: rgba(55, 206, 116, 0.18); --red-soft: rgba(216, 54, 47, 0.20);
    --green-tint: rgba(55, 206, 116, 0.12); --red-tint: rgba(216, 54, 47, 0.14);
    --win: var(--accent); --draw: rgba(255, 255, 255, 0.30); --draw-soft: rgba(255, 255, 255, 0.10); --draw-chip: rgba(255, 255, 255, 0.28);
    --loss: #FF817C;
    --captain-bg: rgba(233, 196, 106, 0.22); --captain-fg: #F2D488;
    --sub-in-bg: rgba(55, 206, 116, 0.20); --sub-in-fg: var(--accent);
    --sub-out-bg: rgba(216, 54, 47, 0.22); --sub-out-fg: #FF9A96;
    --zone-promo: var(--accent); --zone-promo-row: rgba(55, 206, 116, 0.08); --zone-releg-row: rgba(216, 54, 47, 0.10);
    --rating-top-bg: var(--accent); --rating-top-fg: #0E0E0E;
    --rating-good-bg: rgba(55, 206, 116, 0.18); --rating-good-fg: var(--accent);
    --rating-mid-bg: rgba(255, 255, 255, 0.10); --rating-mid-fg: rgba(255, 255, 255, 0.80);
    --rating-low-bg: rgba(216, 54, 47, 0.20); --rating-low-fg: #FF817C;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.40), 0 10px 32px -16px rgba(0, 0, 0, 0.60);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.40), 0 18px 40px -18px rgba(0, 0, 0, 0.70);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --cream: #0E0E0E; --paper: #141715; --surface: #171B18; --bg-2: #232823;
  --ink: #ffffff; --ink-2: rgba(255, 255, 255, 0.85); --ink-3: rgba(255, 255, 255, 0.60);
  --ink-4: rgba(255, 255, 255, 0.40); --ink-5: rgba(255, 255, 255, 0.25);
  --line: rgba(255, 255, 255, 0.10); --line-2: rgba(255, 255, 255, 0.06);
  --green-soft: rgba(55, 206, 116, 0.18); --red-soft: rgba(216, 54, 47, 0.20);
  --green-tint: rgba(55, 206, 116, 0.12); --red-tint: rgba(216, 54, 47, 0.14);
  --win: var(--accent); --draw: rgba(255, 255, 255, 0.30); --draw-soft: rgba(255, 255, 255, 0.10); --draw-chip: rgba(255, 255, 255, 0.28);
  --loss: #FF817C;
  --captain-bg: rgba(233, 196, 106, 0.22); --captain-fg: #F2D488;
  --sub-in-bg: rgba(55, 206, 116, 0.20); --sub-in-fg: var(--accent);
  --sub-out-bg: rgba(216, 54, 47, 0.22); --sub-out-fg: #FF9A96;
  --zone-promo: var(--accent); --zone-promo-row: rgba(55, 206, 116, 0.08); --zone-releg-row: rgba(216, 54, 47, 0.10);
  --rating-top-bg: var(--accent); --rating-top-fg: #0E0E0E;
  --rating-good-bg: rgba(55, 206, 116, 0.18); --rating-good-fg: var(--accent);
  --rating-mid-bg: rgba(255, 255, 255, 0.10); --rating-mid-fg: rgba(255, 255, 255, 0.80);
  --rating-low-bg: rgba(216, 54, 47, 0.20); --rating-low-fg: #FF817C;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.40), 0 10px 32px -16px rgba(0, 0, 0, 0.60);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.40), 0 18px 40px -18px rgba(0, 0, 0, 0.70);
}

/* --------------------------------------------------------------------------
   3. RESET / TEMEL
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}
.site-main { flex: 1 0 auto; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
p, h1, h2, h3, h4, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; border-spacing: 0; }
[hidden] { display: none !important; }
strong, b { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-lg) 0; }
::selection { background: var(--mint); color: var(--forest-deep); }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 12px 16px; border-radius: 6px;
  background: var(--cream); color: var(--ink); font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--t-micro) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   4. YERLEŞİM / IZGARA
   -------------------------------------------------------------------------- */
.page { width: min(var(--page-max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.page-narrow { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.section { padding-block: var(--sp-xl); }
.section-lg { padding-block: var(--sp-section); }
.section-paper { background: var(--paper); }
.section-forest { background: var(--forest-deep); color: var(--on-dark); }

.stack { display: flex; flex-direction: column; gap: var(--sp-md); }
.stack-sm { display: flex; flex-direction: column; gap: var(--sp-sm); }
.stack-lg { display: flex; flex-direction: column; gap: var(--sp-xl); }
.row { display: flex; align-items: center; gap: var(--sp-sm); }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-sm); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md); }
.grow { flex: 1 1 auto; min-width: 0; }

.grid { display: grid; gap: var(--sp-lg); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1fr) 360px; }   /* içerik + yan sütun */
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(244px, 1fr)); }
.gap-xs { gap: var(--sp-xs); } .gap-sm { gap: var(--sp-sm); } .gap-md { gap: var(--sp-md); } .gap-lg { gap: var(--sp-lg); } .gap-xl { gap: var(--sp-xl); }

/* Yatay kaydırılan şerit (son maçlar, haber karuseli) */
.scroller {
  display: flex; gap: var(--sp-sm);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  padding-bottom: 6px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.scroller > * { flex: 0 0 auto; scroll-snap-align: start; }

/* --------------------------------------------------------------------------
   5. TİPOGRAFİ
   -------------------------------------------------------------------------- */
.display {
  font-size: var(--fs-display); font-weight: 900; line-height: 0.9; letter-spacing: -0.02em;
  text-transform: uppercase; margin: 0;
}
.display em, .display span.accent { font-style: normal; color: var(--red); }
.display .mint { color: var(--mint); }
.display-sm { font-size: clamp(28px, 4.5vw, 48px); font-weight: 900; line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase; }

.h-page { font-size: var(--fs-h1); font-weight: 800; line-height: 1.1; letter-spacing: -0.5px; }
.h-section { font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; color: var(--ink); }
.h-card { font-size: var(--fs-title); font-weight: 700; line-height: 1.3; }
.eyebrow {
  font-size: var(--fs-eyebrow); font-weight: 700; line-height: 1.2;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--ink-3);
}
.eyebrow.is-red { color: var(--red); }
.eyebrow.is-forest { color: var(--forest); }
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--on-dark-3); }
.kicker { display: inline-block; padding: 8px 13px 7px; border-radius: var(--r-pill); background: var(--cream); color: var(--forest-deep); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.meta { font-size: var(--fs-meta); font-weight: 400; color: var(--ink-3); }
.meta-strong { font-size: var(--fs-meta); font-weight: 600; color: var(--ink-2); }
.small { font-size: var(--fs-small); }
.label { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink-3); }
.lead { font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.prose { font-size: 15px; line-height: 1.65; color: var(--ink); }
.prose p + p { margin-top: 1em; }
.prose a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--r-media); margin-block: 1em; }

.num-hero  { font-size: var(--fs-hero);       font-weight: 800; line-height: 0.95; letter-spacing: -1.2px; font-variant-numeric: tabular-nums; }
.num-score { font-size: var(--fs-score);      font-weight: 800; line-height: 1;    letter-spacing: -1px;   font-variant-numeric: tabular-nums; }
.num-card  { font-size: var(--fs-score-card); font-weight: 800; line-height: 1.05; letter-spacing: -1px;   font-variant-numeric: tabular-nums; }
.num-big   { font-size: 21px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.num-tabular, .tabular { font-variant-numeric: tabular-nums; }

.text-forest { color: var(--forest); }  .text-red { color: var(--red); }  .text-accent { color: var(--accent); }
.text-muted { color: var(--ink-3); }    .text-ink-2 { color: var(--ink-2); }
.text-center { text-align: center; }    .upper { text-transform: uppercase; }
.truncate { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* --------------------------------------------------------------------------
   6. HEADER — yapışkan, koyu yeşil, sol kırmızı kimlik şeridi
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--forest-deep); color: var(--on-dark);
  padding-top: env(safe-area-inset-top, 0px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px -16px rgba(0, 0, 0, 0.5);
}
.site-header::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: var(--stripe-w); background: var(--red);
}
.header-inner { display: flex; align-items: center; gap: var(--sp-lg); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: inherit; }
.brand-mark { flex: 0 0 auto; border-radius: 9px; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -0.2px; white-space: nowrap; }
.brand-name strong { color: var(--mint); font-weight: 800; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; padding-left: clamp(8px, 2vw, 28px); }
.site-nav a {
  position: relative; padding: 8px 11px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, 0.82); white-space: nowrap;
  transition: color var(--t-micro) var(--ease), background-color var(--t-micro) var(--ease);
}
.site-nav a:hover, .site-nav a:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.08); }
.site-nav a.is-active { color: #fff; }
.site-nav a.is-active::after {
  content: ''; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 2px;
  background: var(--mint); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: var(--sp-sm); margin-left: auto; }
.btn-app { white-space: nowrap; }

/* Canlı rozet: "● CANLI 63'" */
.live-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px 6px 9px; border-radius: var(--r-pill);
  background: var(--red); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.8px; white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(216, 54, 47, 0.45);
  transition: transform var(--t-micro) var(--ease);
}
.live-badge:hover { transform: translateY(-1px); }
.live-badge-clock { font-weight: 700; font-variant-numeric: tabular-nums; opacity: 0.92; }

.menu-toggle {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  align-items: center; justify-content: center; color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu { border-top: 1px solid rgba(255, 255, 255, 0.08); background: var(--forest-deep); }
.mobile-nav { display: flex; flex-direction: column; padding-block: 8px 14px; }
.mobile-nav a {
  padding: 13px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 16px; font-weight: 700; color: rgba(255, 255, 255, 0.88);
}
.mobile-nav a.is-active { color: var(--mint); }
.mobile-nav .mobile-app-link {
  margin-top: 12px; border: 0; border-radius: var(--r-control); text-align: center;
  background: var(--red); color: #fff; padding: 13px;
}
body.menu-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. FOOTER — mürekkep zemin
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: var(--sp-section);
  background: var(--ink); color: rgba(255, 255, 255, 0.78);
  padding: 44px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  font-size: 13px;
}
:root[data-theme="dark"] .site-footer { background: #050807; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #050807; } }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr 1fr; gap: 40px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-mark { border-radius: 10px; }
.footer-note { margin: 16px 0 18px; max-width: 420px; line-height: 1.55; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links .eyebrow { color: var(--mint); margin-bottom: 4px; }
.footer-links a { color: rgba(255, 255, 255, 0.85); font-weight: 500; width: max-content; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px; color: rgba(255, 255, 255, 0.55);
}
.footer-stripe { display: block; width: 56px; height: 6px; background: linear-gradient(90deg, var(--forest) 0 50%, var(--red) 50% 100%); }

/* --------------------------------------------------------------------------
   8. DÜĞMELER
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: var(--r-control);
  font-size: 13.5px; font-weight: 700; line-height: 1; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer; user-select: none;
  transition: background-color var(--t-micro) var(--ease), color var(--t-micro) var(--ease), transform var(--t-micro) var(--ease), border-color var(--t-micro) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-hover); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-ghost:hover { background: var(--green-tint); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-soft { background: var(--green-soft); color: var(--forest); }
.btn-soft:hover { background: var(--green-tint); }
.btn-white { background: #fff; color: var(--forest-deep); }
.btn-glass { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.22); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.18); }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 12.5px; border-radius: 11px; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-count { margin-left: 2px; padding: 2px 6px; border-radius: var(--r-pill); background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; }
.btn-primary .btn-count { background: #fff; color: var(--forest); }

.link-all { font-size: 13px; font-weight: 600; color: var(--forest); white-space: nowrap; }
.link-all:hover { text-decoration: underline; text-underline-offset: 4px; }
.on-dark .link-all { color: var(--accent); }
.link-source { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }

/* --------------------------------------------------------------------------
   9. KARTLAR — kenarlıkla değil ton farkı + gölgeyle ayrılır
   -------------------------------------------------------------------------- */
.card {
  position: relative; background: var(--surface); border-radius: var(--r-card);
  box-shadow: var(--shadow-card); padding: var(--sp-lg);
}
.card-flat { box-shadow: none; border: 1px solid var(--line); }          /* kadro/oyuncu-detay kartları */
.card-tight { padding: 13px; border-radius: 18px; }
.card-link { display: block; color: inherit; transition: transform var(--t-std) var(--ease), box-shadow var(--t-std) var(--ease); }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.card-media { overflow: hidden; padding: 0; }
.card-media > img, .card-media .media { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 12px 14px 14px; }
.card-label { font-size: 9.5px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--ink-4); }

/* Yeşil kart + sol 5px kırmızı kimlik şeridi (maç kartı, puan durumu hero, sezonun yıldızı) */
.card-green {
  position: relative; overflow: hidden;
  background: var(--forest); color: #fff; border-radius: var(--r-card);
  box-shadow: var(--shadow-card); padding: 16px 18px 16px 20px;
}
.card-green::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--red); }
.card-green.is-deep { background: var(--forest-deep); }
.card-green.is-gradient { background: linear-gradient(180deg, var(--forest-app), #073C22); }
.card-green .eyebrow { color: rgba(255, 255, 255, 0.68); }
.card-green .meta { color: rgba(255, 255, 255, 0.70); }
.card-green .divider { border-top: 1px solid rgba(255, 255, 255, 0.14); }

/* Koyu cam yüzey (maç merkezi) */
.card-glass {
  background: var(--glass-bg); border: 1px solid var(--glass-line); border-radius: var(--r-card);
  color: #fff; padding: 12px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.card-glass .meta { color: var(--on-dark-3); }

/* Landing'in kırmızı katı ofset gölgesi — imza efekt; yalnız ana sayfa maç kartı.
   Sağda 14px / altta 18px boşluk bırakın (gölge komşuya taşmasın). */
.has-offset, .match-hero.has-offset, .match-card.has-offset { box-shadow: var(--offset-red), 0 24px 60px rgba(0, 0, 0, 0.18); }

.divider { border-top: 1px solid var(--line); margin-block: 12px; }

/* Anahtar-değer satırı (künye kartı) */
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.kv:first-child { border-top: 0; }
.kv dt { color: var(--ink-3); font-weight: 500; }
.kv dd { margin: 0; font-weight: 700; text-align: right; }
.kv dd small { display: block; font-weight: 400; color: var(--ink-3); font-size: 11.5px; }

/* Sayı kutusu ("MAÇ 24") */
.stat { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.stat b { font-size: 16px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 9.5px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; color: var(--ink-3); }
.stat.is-forest b { color: var(--forest); }
.stat.is-red b { color: var(--red); }

/* --------------------------------------------------------------------------
   10. ARMA / AVATAR / ŞERİT DESENİ (AmedStripes)
   -------------------------------------------------------------------------- */
.crest {
  --crest-size: 40px;
  position: relative; display: inline-grid; place-items: center; flex: 0 0 auto;
  width: var(--crest-size); height: var(--crest-size); border-radius: 50%; overflow: hidden;
  background: var(--bg-2); color: var(--ink-2); vertical-align: middle;
}
.crest img { width: 100%; height: 100%; object-fit: contain; }
.crest.is-white { background: #fff; padding: 6px; }
.crest.is-white img { object-fit: contain; }
.crest.is-square { border-radius: 12px; padding: 5px; }
.crest.is-square.is-lg { border-radius: 14px; }
.crest.on-dark { background: rgba(255, 255, 255, 0.14); color: #fff; }
.crest.is-plain { background: transparent; padding: 0; }
.crest-fallback { display: grid; place-items: center; width: 100%; height: 100%; }
.crest-letters { font-size: calc(var(--crest-size) * 0.3); font-weight: 800; letter-spacing: 0.3px; line-height: 1; }
.crest-stripes {
  display: block; width: 100%; height: 100%;
  background: repeating-linear-gradient(90deg, var(--forest) 0 25%, var(--red) 25% 50%);
}
.crest.is-white .crest-stripes, .crest.is-square .crest-stripes { border-radius: inherit; }

.avatar {
  --avatar-size: 36px;
  position: relative; display: inline-grid; place-items: center; flex: 0 0 auto;
  width: var(--avatar-size); height: var(--avatar-size); border-radius: 50%; overflow: hidden;
  background: var(--bg-2); color: var(--ink-3); vertical-align: middle;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials { font-size: calc(var(--avatar-size) * 0.34); font-weight: 700; line-height: 1; }
.avatar.is-rounded { border-radius: 11px; }
.avatar.is-rounded.is-lg { border-radius: 26px; }
.avatar.on-dark { background: rgba(255, 255, 255, 0.10); color: rgba(255, 255, 255, 0.80); border: 1px solid rgba(255, 255, 255, 0.15); }
.avatar.is-ring { border: 1.6px solid rgba(55, 206, 116, 0.7); box-shadow: 0 0 12px 1px rgba(55, 206, 116, 0.35); }

/* --------------------------------------------------------------------------
   11. FORM ÇİPİ — G ✓ / B − / M ✕ (harf+ikon; renk destek)
   -------------------------------------------------------------------------- */
.chip-form {
  --chip-size: 20px;
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: var(--chip-size); height: var(--chip-size); border-radius: 50%;
  color: #fff; vertical-align: middle;
}
.chip-form svg { width: 60%; height: 60%; }
.chip-form.is-g { background: var(--win); }
.chip-form.is-m { background: var(--loss); }
.chip-form.is-b { background: var(--draw-chip); }
.chip-form.on-dark svg { width: 68%; height: 68%; }
.chip-form.on-dark.is-g { background: #fff; color: var(--forest); }
.chip-form.on-dark.is-m { background: var(--red); color: #fff; }
.chip-form.on-dark.is-b { background: rgba(255, 255, 255, 0.28); color: #fff; }
.chip-form.square { border-radius: 6px; font-size: 10px; font-weight: 700; }
.chip-form.square.is-g { background: var(--green-soft); color: var(--forest); }
.chip-form.square.is-m { background: var(--red-soft); color: var(--red-app); }
.chip-form.square.is-b { background: var(--bg-2); color: var(--ink-2); }
.chip-form-letter { line-height: 1; }
.form-row { display: inline-flex; align-items: center; gap: 4px; }
.form-row.is-spaced { gap: 6px; }

/* --------------------------------------------------------------------------
   12. REYTİNG PİLİ — ≥7.5 / ≥7.0 / 6.0–6.99 / <6.0
   -------------------------------------------------------------------------- */
.rating {
  display: inline-block; padding: 3px 6px; border-radius: 7px;
  font-size: 11.5px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums;
  background: var(--rating-mid-bg); color: var(--rating-mid-fg); vertical-align: middle;
}
.rating.is-top  { background: var(--rating-top-bg);  color: var(--rating-top-fg); }
.rating.is-good { background: var(--rating-good-bg); color: var(--rating-good-fg); }
.rating.is-mid  { background: var(--rating-mid-bg);  color: var(--rating-mid-fg); }
.rating.is-low  { background: var(--rating-low-bg);  color: var(--rating-low-fg); }
.rating.is-big  { padding: 3px 8px; border-radius: 8px; font-size: 13px; }

/* --------------------------------------------------------------------------
   13. CANLI NOKTA / PİLLER / DURUM ÇİPLERİ
   -------------------------------------------------------------------------- */
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto;
  background: currentColor; box-shadow: 0 0 0 0 rgba(216, 54, 47, 0.35);
  animation: live-pulse 1.45s infinite;
}
.live-badge .live-dot, .mh-status .live-dot { background: #fff; width: 6px; height: 6px; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
.live-dot.is-tiny { width: 5px; height: 5px; }
.live-dot.is-static { animation: none; }
.live-dot.is-red { background: var(--red); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px;
  border-radius: var(--r-chip); font-size: 9.5px; font-weight: 800; letter-spacing: 0.6px;
  text-transform: uppercase; line-height: 1.2; white-space: nowrap; vertical-align: middle;
}
.pill-live { background: var(--red-soft); color: var(--red-app); }
.pill-soft { background: var(--green-soft); color: var(--forest); }
.pill-neutral { background: var(--bg-2); color: var(--ink-2); }
.pill-red { background: var(--red); color: #fff; }
.pill-forest { background: var(--forest); color: #fff; }
.pill-yellow { background: var(--captain-bg); color: var(--captain-fg); }
.pill-glass { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--r-pill); font-size: 10.5px; font-weight: 600; letter-spacing: 0.3px; text-transform: none; padding: 4px 9px; }
.pill-round { border-radius: var(--r-pill); }

/* Kategori pili (haber kartı): beyaz üstü yeşil büyük harf */
.pill-category { background: rgba(255, 255, 255, 0.94); color: var(--forest); border-radius: var(--r-pill); font-size: 9px; letter-spacing: 1px; padding: 4px 9px; }

/* Küçük rozetler: K (kaptan), SAKAT */
.badge-mini { display: inline-block; padding: 1px 4px; border-radius: 4px; font-size: 8px; font-weight: 800; letter-spacing: 0.3px; line-height: 1.4; vertical-align: middle; }
.badge-captain { background: var(--captain-bg); color: var(--captain-fg); }
.badge-injured { background: var(--red-soft); color: var(--red-app); }
.badge-count { display: inline-block; min-width: 18px; padding: 2px 6px; border-radius: var(--r-pill); background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; text-align: center; }

/* Maç merkezi durum çipi: color@18% zemin, color@50% kenar */
.status-chip {
  --chip-color: var(--accent);
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--chip-color) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--chip-color) 50%, transparent);
  color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
}
.status-chip.is-live { --chip-color: var(--red); }
.status-chip.is-live .clock { color: var(--accent); font-size: 18px; font-weight: 800; letter-spacing: 0; text-transform: none; }
.status-chip.is-finished { --chip-color: rgba(255, 255, 255, 0.6); color: rgba(255, 255, 255, 0.35); }
.status-chip.is-upcoming { --chip-color: var(--accent); color: var(--accent); }

/* Puan durumu canlı skor çipi (LiveScoreChip) */
.live-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px; border-radius: 6px;
  font-size: 11.5px; font-weight: 800; line-height: 1.3; color: #fff; vertical-align: middle;
}
.live-chip.is-ahead { background: var(--forest); }
.live-chip.is-behind { background: var(--red); }
.live-chip.is-level { background: var(--ink-4); }
.live-chip.on-dark.is-ahead { background: var(--accent); color: #0E0E0E; }
.live-chip.on-dark.is-level { background: rgba(255, 255, 255, 0.22); color: #fff; }
.live-chip small { font-size: 8.5px; font-weight: 700; opacity: 0.8; letter-spacing: 0.3px; }
.live-chip .live-dot { animation-duration: 1.2s; }

/* --------------------------------------------------------------------------
   14. MAÇ AFİŞİ — partials/match_hero (MatchHero birebir)
   -------------------------------------------------------------------------- */
.match-hero {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 6px;
  min-height: 140px; padding: 12px 16px 10px 18px;
  background: var(--forest); color: #fff; overflow: hidden;
  transition: transform var(--t-std) var(--ease), box-shadow var(--t-std) var(--ease);
}
.match-hero.is-card { border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.match-hero.is-card.has-offset { box-shadow: var(--offset-red), 0 24px 60px rgba(0, 0, 0, 0.18); } /* sonra gelir → is-card'ı ezer */
.match-hero.is-strip { border-radius: 0; }
a.match-hero:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
a.match-hero.has-offset:hover, .match-card.has-offset:hover { box-shadow: var(--offset-red), 0 30px 70px rgba(0, 0, 0, 0.22); }
.mh-stripe { position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--red); }

.mh-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.mh-competition {
  min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 10px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: rgba(255, 255, 255, 0.70);
}
.mh-status {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  padding: 5px 10px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.8px; white-space: nowrap;
}
.mh-status.is-live { background: var(--red); }

.mh-teams { display: grid; grid-template-columns: 84px minmax(0, 1fr) 84px; align-items: center; gap: 8px; }
.mh-team { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.mh-crest { position: relative; display: inline-block; }
.mh-rank {
  position: absolute; right: -6px; bottom: -4px; display: grid; place-items: center;
  width: 19px; height: 19px; border-radius: 50%;
  background: #fff; border: 2px solid var(--forest); color: var(--ink);
  font-size: 9px; font-weight: 700; line-height: 1;
}
.mh-name { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11.5px; font-weight: 700; text-align: center; }

.mh-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; text-align: center; }
.mh-value { font-size: 32px; font-weight: 800; line-height: 1.05; letter-spacing: -1px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mh-value.is-label { font-size: 15px; letter-spacing: 1.2px; }
.mh-caption { font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); white-space: nowrap; }
.mh-clock { font-size: 12px; font-weight: 800; color: rgba(255, 255, 255, 0.90); font-variant-numeric: tabular-nums; letter-spacing: 0.3px; }
.match-hero.is-live .mh-clock { color: var(--accent); }

.mh-venue { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 11px; color: rgba(255, 255, 255, 0.70); }
.mh-venue svg { flex: 0 0 auto; opacity: 0.85; }
.mh-venue span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Kart kabuğu: afiş + beyaz alt bölüm (ana sayfa). Sayfa ajanı: <div class="match-card"> <hero variant=strip/> <div class="match-card-footer">…</div> </div> */
.match-card { border-radius: var(--r-card); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-card); }
.match-card-footer { padding: 12px 14px 14px; }
.match-card .match-hero.is-strip { border-radius: 0; }

/* Sayfa noktaları (çoklu maç şeridi) */
.dots { display: inline-flex; align-items: center; gap: 4px; }
.dots i { display: block; width: 5px; height: 5px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.3); transition: width var(--t-micro) var(--ease), background-color var(--t-micro) var(--ease); }
.dots i.is-center { background: rgba(255, 255, 255, 0.6); }
.dots i.is-active { width: 12px; background: rgba(255, 255, 255, 0.95); }

/* --------------------------------------------------------------------------
   15. FİKSTÜR SATIRI — partials/match_tile
   -------------------------------------------------------------------------- */
.match-tile {
  display: flex; align-items: center; gap: 12px;
  padding: var(--sp-lg); border-radius: var(--r-card);
  background: var(--surface); box-shadow: var(--shadow-card); color: var(--ink);
  transition: transform var(--t-std) var(--ease), box-shadow var(--t-std) var(--ease);
}
.match-tile:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.match-tile.is-compact { padding: 11px 12px; border-radius: 15px; }
.mt-crest { flex: 0 0 auto; }
.mt-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.mt-title { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.mt-opponent { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14.5px; font-weight: 700; }
.mt-side { flex: 0 0 auto; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.mt-sub { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11.5px; color: var(--ink-3); }
.mt-trail { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.mt-score { font-size: 16px; font-weight: 800; }
.mt-time { font-size: 14px; font-weight: 700; color: var(--forest); white-space: nowrap; }
.mt-time.is-tbd { font-size: 12.5px; color: var(--ink-3); }
.mt-minute { font-size: 12px; font-weight: 800; color: var(--red-app); font-variant-numeric: tabular-nums; }

/* Son maçlar mini kutusu (RecentMatchesRow 88×108) — sayfa ajanı içeriği doldurur */
.result-box {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 88px; height: 108px; padding: 9px 10px 10px; border-radius: var(--r-badge);
  background: var(--bg-2); color: var(--ink-2);
}
.result-box.is-g { background: var(--green-soft); color: var(--forest); }
.result-box.is-m { background: var(--red-soft); color: var(--red-app); }
.result-box .rb-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.result-box .rb-date { font-size: 9.5px; color: var(--ink-3); white-space: nowrap; }
.result-box .rb-score { font-size: 24px; font-weight: 800; line-height: 1.05; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.result-box .rb-short { font-size: 11px; font-weight: 700; color: var(--ink); }

/* --------------------------------------------------------------------------
   16. TAHMİN BARI — partials/prediction
   -------------------------------------------------------------------------- */
.prediction { display: flex; flex-direction: column; gap: 8px; }
.prediction-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prediction-title { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.prediction-title svg { color: var(--forest); flex: 0 0 auto; }
.prediction-total { white-space: nowrap; }

.pred-bar { display: flex; height: 30px; border-radius: var(--r-chip); overflow: hidden; background: var(--bg-2); }
.pred-bar.is-thin { height: 6px; border-radius: var(--r-pill); }
.pred-seg { display: grid; place-items: center; flex: 1 1 0; min-width: 0; color: #fff; font-size: 12px; font-weight: 700; }
.pred-seg span { padding: 0 4px; white-space: nowrap; }
.pred-seg.is-narrow span { display: none; }
.pred-seg.is-win { background: var(--forest); }
.pred-seg.is-draw { background: var(--draw); }
.pred-seg.is-lose { background: var(--red); }
.pred-bar.is-thin .pred-seg { opacity: 0.45; }

.pred-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pred-legend li { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pred-legend li i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.pred-legend li.is-win i { background: var(--forest); }
.pred-legend li.is-draw i { background: var(--draw); }
.pred-legend li.is-lose i { background: var(--red); }
.pred-empty { display: grid; place-items: center; height: 30px; border-radius: var(--r-chip); background: var(--bg-2); font-size: 11.5px; color: var(--ink-3); }

.pred-ai { display: flex; flex-direction: column; gap: 7px; margin-top: 6px; }
.pred-ai-title { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.pred-advice { font-size: 11.5px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pred-accuracy {
  display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 100%;
  margin-top: 4px; padding: 7px 12px; border-radius: var(--r-pill);
  background: var(--green-soft); color: var(--forest); font-size: 11.5px; font-weight: 600;
}

/* Koyu yüzeyde (maç merkezi) */
.prediction.on-dark .prediction-title, .prediction.on-dark .prediction-title svg { color: #fff; }
.prediction.on-dark .prediction-title svg { color: var(--accent); }
.prediction.on-dark .prediction-total, .prediction.on-dark .pred-legend li, .prediction.on-dark .pred-ai-title, .prediction.on-dark .pred-advice { color: var(--on-dark-3); }
.prediction.on-dark .pred-bar, .prediction.on-dark .pred-empty { background: rgba(255, 255, 255, 0.08); }
.prediction.on-dark .pred-empty { color: var(--on-dark-3); }
.prediction.on-dark .pred-seg.is-win, .prediction.on-dark .pred-legend li.is-win i { background: var(--accent); }
.prediction.on-dark .pred-seg.is-win { color: #0E0E0E; }
.prediction.on-dark .pred-seg.is-draw, .prediction.on-dark .pred-legend li.is-draw i { background: rgba(255, 255, 255, 0.28); }
.prediction.on-dark .pred-accuracy { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.85); }

/* --------------------------------------------------------------------------
   17. BÖLÜM BAŞLIĞI · BOŞ DURUM · MAĞAZA ROZETLERİ
   -------------------------------------------------------------------------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 4px 0 10px; }
.section-head-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.section-head .link-all { padding-bottom: 1px; }
.on-dark .section-head .h-section, .section-head.on-dark .h-section { color: #fff; }

/* İnce çizgili alt bölüm başlığı ("KALECİLER ───") */
.sub-head { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; font-size: 9.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-4); }
.sub-head::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--line); }

.empty { padding: 28px 16px; border-radius: var(--r-card); background: var(--bg-2); color: var(--ink-3); font-size: 13.5px; text-align: center; }
.empty.on-dark { background: rgba(255, 255, 255, 0.06); color: var(--on-dark-3); }

.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badge { display: inline-flex; transition: transform var(--t-micro) var(--ease); }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { width: auto; height: 48px; object-fit: contain; }
.store-badges.is-lg .store-badge img { height: 54px; }

/* Not/uyarı satırı (puan durumu geçici sıralama notu vb.) */
.note { display: flex; align-items: flex-start; gap: 8px; font-size: 11.5px; color: var(--ink-3); }
.note svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; }
.note.is-live svg { color: var(--red); }

/* Sekme şeridi (Genel / İç Saha / Deplasman) */
.tabs { display: flex; gap: 6px; padding: 6px; border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-card); }
.tabs a, .tabs button { flex: 1 1 0; padding: 8px; border-radius: 9px; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-2); background: var(--cream); border: 1px solid var(--bg-2); transition: background-color var(--t-micro) var(--ease), color var(--t-micro) var(--ease); }
.tabs .is-active { background: var(--forest); color: #fff; border-color: var(--forest); }

/* Filtre çipi (mevki süzgeci) */
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 9px; background: var(--surface); border: 1px solid var(--bg-2); color: var(--ink-2); font-size: 11px; font-weight: 700; white-space: nowrap; }
.chip.is-active { background: var(--forest); color: #fff; border-color: var(--forest); }
.chip small { font-weight: 600; opacity: 0.7; }

/* --------------------------------------------------------------------------
   18. OLAY İKONU — partials/event_icon (beyaz daire)
   -------------------------------------------------------------------------- */
.event-icon {
  --event-size: 20px;
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: var(--event-size); height: var(--event-size); border-radius: 50%;
  background: #fff; color: #1B1B1B; vertical-align: middle;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.event-icon svg { width: 100%; height: 100%; }
.event-icon.is-own_goal, .event-icon.is-missed_penalty, .event-icon.is-red_card { color: var(--card-red-icon); }
.event-icon.is-yellow_card { color: var(--card-yellow-icon); }
.event-icon.is-var { color: #1B1B1B; }
.event-icon.is-sub_in { background: var(--sub-in-bg); color: var(--sub-in-fg); box-shadow: none; }
.event-icon.is-sub_out { background: var(--sub-out-bg); color: var(--sub-out-fg); box-shadow: none; }
.event-icon.is-assist { color: #1B1B1B; }
.event-icon.is-other { color: var(--ink-4); }

/* Kart şekli (disiplin kartı: 13×17 sarı/kırmızı) */
.card-shape { display: inline-block; width: 13px; height: 17px; border-radius: 3px; background: var(--card-yellow); vertical-align: middle; }
.card-shape.is-red { background: var(--card-red-icon); }
.card-shape.is-sm { width: 9px; height: 13px; border-radius: 2px; }

/* --------------------------------------------------------------------------
   19. TABLOLAR — taşan tablo kendi kabında kayar, gövde asla yatay kaymaz
   -------------------------------------------------------------------------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-card); }
.table { width: 100%; min-width: 520px; font-size: 13px; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 11px 10px; text-align: left; vertical-align: middle; }
.table th { position: sticky; top: 0; z-index: 1; background: var(--surface); font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.table td { border-top: 1px solid var(--line-2); }
.table tbody tr:first-child td { border-top: 0; }
.table .is-num { text-align: center; }
.table .is-right { text-align: right; }
.table .is-ours { background: var(--green-soft); }
.table .is-ours .team-name { color: var(--forest); font-weight: 800; }
.table .is-promo { background: var(--zone-promo-row); }
.table .is-releg { background: var(--zone-releg-row); }
.table-wrap.is-plain { box-shadow: none; background: transparent; border-radius: 0; }

/* Bölge şeridi + sıra (puan durumu satır başı) */
.zone-bar { display: inline-block; width: 3px; height: 18px; border-radius: var(--r-pill); background: transparent; vertical-align: middle; margin-right: 6px; }
.zone-bar.is-promo { background: var(--zone-promo); }
.zone-bar.is-releg { background: var(--zone-releg); }
.rank-delta { display: inline-block; font-size: 11px; font-weight: 800; margin-left: 2px; }
.rank-delta.is-up { color: var(--forest); }
.rank-delta.is-down { color: var(--red); }

/* Oran satırı: etiket · 12/20 · %60 + 5px bar */
.ratio { display: grid; grid-template-columns: minmax(0, 1fr) auto 38px; align-items: center; gap: 8px; font-size: 12px; }
.ratio .ratio-label { color: var(--ink-2); font-weight: 500; }
.ratio .ratio-value { font-weight: 800; font-size: 12.5px; }
.ratio .ratio-value small { font-weight: 500; color: var(--ink-4); }
.ratio .ratio-pct { text-align: right; font-weight: 700; font-size: 11px; }
.ratio .bar { grid-column: 1 / -1; }
.bar { position: relative; height: 5px; border-radius: 100px; background: var(--bg-2); overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--forest); }
.bar.is-accent > i { background: var(--accent); }
.bar.is-muted > i { background: var(--ink-3); }
.bar.is-thick { height: 6px; }
.bar.is-thin { height: 4px; }

/* --------------------------------------------------------------------------
   20. SAHA / MAÇ MERKEZİ YÜZEYİ — her temada koyu (§9.12)
   -------------------------------------------------------------------------- */
.surface-pitch {
  --ink: #ffffff; --ink-2: var(--on-dark-2); --ink-3: var(--on-dark-3); --ink-4: var(--on-dark-4);
  --surface: var(--glass-bg); --line: var(--glass-line); --line-2: rgba(255, 255, 255, 0.06);
  --bg-2: rgba(255, 255, 255, 0.08); --cream: var(--pitch-bg);
  --shadow-card: none;
  --win: var(--accent); --draw-chip: rgba(255, 255, 255, 0.28); --draw: rgba(255, 255, 255, 0.28);
  --green-soft: rgba(55, 206, 116, 0.18); --red-soft: rgba(216, 54, 47, 0.20);
  --rating-top-bg: var(--accent); --rating-top-fg: #0E0E0E; --rating-good-bg: rgba(55, 206, 116, 0.18); --rating-good-fg: var(--accent);
  --rating-mid-bg: rgba(255, 255, 255, 0.10); --rating-mid-fg: rgba(255, 255, 255, 0.8); --rating-low-bg: rgba(216, 54, 47, 0.20); --rating-low-fg: #FF817C;
  color-scheme: dark;
  position: relative; isolation: isolate;
  background: var(--pitch-bg); color: #fff;
}
.surface-pitch::before {
  /* Kutunun KENDİ sınırları içinde kalır (inset:0); gradyan px duraklı, aşağı taşmaz. */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 220px at 50% -60px, var(--pitch-halo), transparent 70%),
    linear-gradient(180deg, var(--pitch-top) 0, var(--pitch-mid) 400px, var(--pitch-bg) 720px);
}
body.is-dark { background: var(--pitch-bg); }
body.is-dark .site-main { background: var(--pitch-bg); }
body.is-dark .site-footer { margin-top: 0; }

/* Saha zemini (dizilişler): 10 şerit + orta çizgi */
.pitch { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); background: repeating-linear-gradient(180deg, var(--pitch-dark) 0 10%, var(--pitch-light) 10% 20%); }
.pitch-half { position: relative; display: grid; place-items: center; height: 56px; }
.pitch-half::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.2px; background: var(--pitch-line); }
.pitch-half::after { content: ''; width: 58px; height: 58px; border-radius: 50%; border: 1.2px solid var(--pitch-line); }
.pitch-row { display: flex; justify-content: space-evenly; padding: 7px 0; }

/* --------------------------------------------------------------------------
   21. DUYARLI — 960 / 720 / 480
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  :root { --fs-hero: 40px; --fs-score: 34px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  /* 7 menü öğesi + rozet + düğme 960 altına sığmıyor → hamburger burada başlar (site.js aynı eşik) */
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 720px) {
  :root { --header-h: 58px; --sp-section: 40px; }
  .header-actions .btn-app { display: none; }
  .live-badge { padding: 5px 9px 5px 8px; font-size: 10px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-block: var(--sp-lg); }
  .footer-grid { gap: 28px; }
  .table th, .table td { padding: 10px 8px; }
  .match-tile { padding: 12px; }
  .display { line-height: 0.92; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; --fs-h1: 24px; --fs-h2: 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .mh-teams { grid-template-columns: 72px minmax(0, 1fr) 72px; }
  .mh-value { font-size: 28px; }
  .brand-name { font-size: 16px; }
  .pred-legend li { font-size: 10.5px; }
  .card { padding: 14px; }
  .mt-sub { font-size: 11px; }
}

/* --------------------------------------------------------------------------
   22. HAREKET / ODAK / YAZDIRMA
   -------------------------------------------------------------------------- */
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(216, 54, 47, 0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(216, 54, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 54, 47, 0); }
}
.live-badge .live-dot, .mh-status .live-dot { animation-name: live-pulse-white; }
@keyframes live-pulse-white {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.rise { animation: rise-in 560ms var(--ease) both; }
.rise:nth-child(2) { animation-delay: 70ms; }
.rise:nth-child(3) { animation-delay: 140ms; }
.rise:nth-child(4) { animation-delay: 210ms; }

/* Parça yenilenince kısa vurgu (AmedFragment.replace ekler) */
.is-refreshed { animation: refreshed 600ms var(--ease); }
@keyframes refreshed { from { opacity: 0.55; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .live-dot { animation: none; box-shadow: none; }
  .btn:hover, .card-link:hover, a.match-hero:hover, .match-tile:hover, .store-badge:hover, .live-badge:hover { transform: none; }
}

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 6px; }
.site-header :focus-visible, .on-dark :focus-visible, .surface-pitch :focus-visible { outline-color: var(--accent); }
.btn:focus-visible, .match-tile:focus-visible, a.match-hero:focus-visible, .card-link:focus-visible { outline-offset: 3px; }

@media print {
  .site-header, .site-footer, .menu-toggle, .store-badges, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .match-tile, .table-wrap { box-shadow: none; border: 1px solid #ccc; }
}
