/* ==========================================================================
   Maç merkezi (/mac/{id}) — sayfaya özel CSS. Ortak jetonlar/bileşenler
   site.css'ten gelir (.surface-pitch, .card-glass, .status-chip, .pitch*,
   .rating, .avatar, .crest, .chip-form, .event-icon, .pill-*, .stat, .ratio,
   .kv, .badge-mini, .card-green …) — burada YALNIZCA bu sayfaya özgü
   sınıflar var (design-tokens.md §9.2, §9.9–§9.12).
   ========================================================================== */

.match-page { padding-block: var(--sp-xl) var(--sp-xxl); }

/* -------------------------------------------------------------- Üst çubuk */
.match-topbar { padding-bottom: 2px; }
.match-back { display: inline-flex; align-items: center; gap: 6px; color: var(--on-dark-2); font-size: 13px; font-weight: 600; }
.match-back:hover { color: #fff; }

/* -------------------------------------------------------------- Skorbord */
.match-scoreboard { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.ms-teams { font-size: 15px; font-weight: 700; letter-spacing: 1.5px; color: #fff; }
.ms-meta { font-size: 12px; color: var(--on-dark-3); }
.ms-row { display: grid; grid-template-columns: 1fr minmax(0, 160px) 1fr; align-items: center; gap: 10px; padding-top: 10px; }
.ms-team { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.ms-team-label { font-size: 11px; font-weight: 700; letter-spacing: 0.6px; color: var(--on-dark-2); }
.ms-center { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ms-score { font-size: var(--fs-score); color: #fff; }
.ms-ht { font-size: 11px; color: var(--on-dark-3); }
.ms-goals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 12px; border-top: 1px solid var(--glass-line); margin-top: 8px; }
.ms-goals-col { display: flex; flex-direction: column; gap: 5px; }
.ms-goals-col.is-them { align-items: flex-end; text-align: right; }
.ms-goal-line { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--on-dark-2); }
.ms-goals-col.is-them .ms-goal-line { flex-direction: row-reverse; }
.ms-goal-line small { color: var(--on-dark-3); font-weight: 400; }

/* -------------------------------------------------------------- Top hakimiyeti */
.match-possession { display: flex; flex-direction: column; gap: 8px; }
.mp-row { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--on-dark-3); }
.mp-value { font-size: 15px; font-weight: 700; color: #fff; }
.mp-bar { display: flex; gap: 2px; height: 6px; }
.mp-bar i, .mp-bar b { display: block; height: 100%; border-radius: 100px; }
.mp-bar i { background: var(--accent); }
.mp-bar b { background: rgba(255, 255, 255, 0.25); }

/* -------------------------------------------------------------- İstatistikler */
.match-stats { display: flex; flex-direction: column; gap: 6px; }
.mstat-row { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mstat-row .mstat-value { font-weight: 700; color: #fff; }
.mstat-row .mstat-value:last-child { text-align: right; }
.mstat-label { text-align: center; color: var(--on-dark-3); font-size: 11px; }
.mstat-row.is-plain { padding-top: 6px; border-top: 1px solid var(--glass-line); margin-top: 2px; }
.mstat-bar { display: flex; gap: 2px; height: 4px; margin-bottom: 4px; }
.mstat-bar i, .mstat-bar b { display: block; height: 100%; border-radius: 100px; }
.mstat-bar i { background: var(--accent); }
.mstat-bar b { background: rgba(255, 255, 255, 0.25); }

/* -------------------------------------------------------------- Taraftar bildi çipi */
.match-accuracy-chip {
  display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 100%;
  padding: 7px 12px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85); font-size: 11.5px; font-weight: 600;
}

/* -------------------------------------------------------------- Maçın adamı */
.match-mom { display: flex; flex-direction: column; gap: 10px; }
.match-mom-body { display: flex; align-items: center; gap: 14px; }
.match-mom-stats { display: flex; gap: 18px; margin-left: auto; }
.match-mom-stats .stat { align-items: flex-end; text-align: right; }
.match-mom-stats .stat b { color: #fff; }
.match-mom-name { font-size: 20px; font-weight: 800; color: #fff; }

/* -------------------------------------------------------------- Saha dizilişi */
.match-pitch { padding: 10px 8px; display: flex; flex-direction: column; }
.pitch-team-head { display: flex; align-items: center; gap: 8px; padding: 6px 6px 8px; }
.pitch-team-head.is-bottom { padding: 8px 6px 4px; }
.pitch-team-head span { font-size: 12.5px; font-weight: 700; color: #fff; }
.pitch-team-head small { font-size: 10.5px; color: var(--on-dark-3); }
.pitch-team-head .pill-glass { margin-left: auto; }
.pitch-player { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 58px; }
.pitch-player-dot {
  --kit: var(--accent);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(14, 14, 14, 0.25); border: 1.4px solid color-mix(in srgb, var(--kit) 55%, transparent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); color: #fff; font-size: 14px; font-weight: 700; overflow: hidden;
}
.pitch-player-dot img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pitch-player-name { font-size: 9.5px; color: rgba(255, 255, 255, 0.9); text-align: center; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lineup-bench-label { margin-top: var(--sp-md); }
.lineup-bench { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lineup-bench-chip { padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); font-size: 10.5px; color: rgba(255, 255, 255, 0.75); white-space: nowrap; }

/* -------------------------------------------------------------- Önemli anlar */
.moment { position: relative; border-radius: var(--r-card); overflow: hidden; padding-left: 4px; }
.moment::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: color-mix(in srgb, var(--red) 85%, transparent); }
.moment.is-us::before { background: color-mix(in srgb, var(--accent) 85%, transparent); }
.moment { background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.08); }
.moment.is-goal { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--accent) 10%, transparent)); border-color: color-mix(in srgb, var(--accent) 42%, transparent); }
.moment.is-goal.is-us { background: linear-gradient(135deg, rgba(11, 107, 58, 0.55), rgba(192, 52, 43, 0.30)); border-color: rgba(55, 206, 116, 0.38); }
.moment.is-goal.is-them::before { background: #fff; }
.moment-top { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: rgba(255, 255, 255, 0.04); }
.moment.is-goal .moment-top { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.moment.is-goal.is-us .moment-top { background: rgba(11, 107, 58, 0.45); }
.moment-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.9px; color: rgba(255, 255, 255, 0.75); }
.moment.is-goal.is-us .moment-label { font-size: 13px; font-weight: 800; letter-spacing: 2.2px; color: var(--accent); }
.moment-score-pill { padding: 1.5px 7px; border-radius: 5px; background: rgba(255, 255, 255, 0.18); font-size: 11px; font-weight: 700; color: #fff; }
.moment-minute { flex: 0 0 34px; text-align: right; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.75); font-variant-numeric: tabular-nums; }
.moment-crest { --crest-size: 18px; background: rgba(255, 255, 255, 0.16); }
.moment-body { padding: 8px 12px 12px; }
.moment-main-row { display: flex; align-items: center; gap: 10px; }
.moment-text { flex: 1 1 auto; min-width: 0; }
.moment-player { font-size: 14.5px; font-weight: 600; color: #fff; margin: 0; }
.moment.is-goal .moment-player { font-size: 17px; font-weight: 800; }
.moment-meta { font-size: 11.5px; color: rgba(255, 255, 255, 0.6); margin: 2px 0 0; }
.moment-assist { font-size: 11.5px; color: rgba(255, 255, 255, 0.72); margin: 3px 0 0; }
.moment-comments { font-size: 11.5px; color: rgba(255, 255, 255, 0.55); margin: 4px 0 0; }
.moment-sub-row { display: flex; align-items: center; gap: 10px; padding: 3px 0; font-size: 13.5px; color: #fff; }
.moment-sub-row + .moment-sub-row { margin-top: 4px; }
.moment-sub-label { flex: 0 0 44px; font-size: 9.5px; font-weight: 700; color: var(--accent); }
.moment-sub-row.is-out .moment-sub-label { color: var(--red); }
.moment-sub-row span small { display: block; font-size: 10.5px; font-weight: 400; color: rgba(255, 255, 255, 0.55); }

/* -------------------------------------------------------------- Oyuncu notları */
.match-ratings-note { margin: -6px 0 4px; }
.rating-row { border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); padding: 9px 11px; }
.rating-row summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.rating-row summary::-webkit-details-marker { display: none; }
.rr-number { flex: 0 0 20px; font-size: 12.5px; color: rgba(255, 255, 255, 0.5); text-align: center; }
.rr-name { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rr-goal { background: rgba(55, 206, 116, 0.85); color: #06150D; }
.rr-assist { background: rgba(255, 255, 255, 0.18); color: #fff; }
.rr-sub { display: none; }
.rr-detail { padding-top: 10px; margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-direction: column; gap: 2px; }
.rr-detail .sub-head { color: rgba(255, 255, 255, 0.4); }
.rr-detail .sub-head::after { background: rgba(255, 255, 255, 0.12); }
@media (min-width: 481px) {
  .rr-sub { display: inline; font-size: 11px; white-space: nowrap; }
}

/* -------------------------------------------------------------- Eksikler */
.sidelined-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.sidelined-col:nth-child(2) { border-left: 1px solid rgba(255, 255, 255, 0.08); padding-left: 14px; }
.sidelined-heading { font-size: 9.5px; font-weight: 700; letter-spacing: 1px; color: rgba(255, 255, 255, 0.6); margin-bottom: 8px; }
.sidelined-heading.is-us { color: var(--accent); letter-spacing: 1px; }
.sidelined-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #fff; padding: 4px 0; }
.sidelined-row span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidelined-row small { flex: 0 0 auto; font-size: 10px; color: rgba(255, 255, 255, 0.62); }
.sidelined-dot { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; }
.sidelined-dot.is-out { background: var(--red); }
.sidelined-dot.is-doubt { background: var(--card-yellow); }
.sidelined-empty { font-size: 11.5px; color: rgba(255, 255, 255, 0.4); }

/* -------------------------------------------------------------- H2H */
.h2h-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.h2h-box { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0; border-radius: 12px; }
.h2h-box b { font-size: 19px; font-weight: 800; color: #fff; }
.h2h-box span { font-size: 8.5px; font-weight: 700; letter-spacing: 0.4px; color: rgba(255, 255, 255, 0.6); }
.h2h-box.is-win { background: rgba(55, 206, 116, 0.22); border: 1px solid rgba(55, 206, 116, 0.35); }
.h2h-box.is-draw { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.2); }
.h2h-box.is-lose { background: rgba(216, 54, 47, 0.20); border: 1px solid rgba(216, 54, 47, 0.35); }
.match-h2h .kv { border-top-color: rgba(255, 255, 255, 0.08); }
.match-h2h .kv dt, .match-h2h .kv span:first-child { color: rgba(255, 255, 255, 0.6); }
.h2h-meetings { margin-top: 4px; }
.h2h-meeting { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 11.5px; }
.h2h-meeting:first-child { border-top: 0; }
.h2h-date { flex: 0 0 60px; color: rgba(255, 255, 255, 0.72); }
.h2h-comp { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2h-score { flex: 0 0 auto; font-weight: 800; color: #fff; }

/* -------------------------------------------------------------- Maçın hikâyesi */
.storylines-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.storylines-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.storylines-head .h-card { flex: 1 1 auto; font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; }
.storylines-head .meta { font-size: 10px; color: rgba(255, 255, 255, 0.4); }
.storyline-card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px; padding: 14px; }
.storyline-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.storyline-badge { font-size: 9px; font-weight: 700; letter-spacing: 0.6px; text-transform: none; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.6); }
.storyline-badge.is-quote { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); border-color: transparent; }
.storyline-top .meta { font-size: 10px; color: rgba(255, 255, 255, 0.4); }
.storyline-quote { font-size: 13.5px; line-height: 1.45; color: #fff; margin: 0; }
.storyline-speaker { font-size: 11px; color: rgba(255, 255, 255, 0.55); margin: 6px 0 0; }
.storyline-summary { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.9); margin: 0; }

/* -------------------------------------------------------------- YZ anlatımı */
.commentary-row { display: flex; align-items: flex-start; gap: 10px; padding: 4px 0; }
.commentary-minute { flex: 0 0 auto; padding: 2px 7px; border-radius: 5px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-size: 11px; font-weight: 700; }
.commentary-row p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.85); line-height: 1.5; }

/* -------------------------------------------------------------- Dakika cetveli */
.mt-scale { position: relative; height: 30px; margin: 6px 4px 4px; border-radius: 100px; background: rgba(255, 255, 255, 0.12); }
.mt-progress { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--accent); }
.mt-mark { position: absolute; top: 50%; width: 9px; height: 9px; margin-left: -4.5px; transform: translateY(-50%); border-radius: 50%; background: #fff; border: 2px solid var(--pitch-bg); }
.mt-ball {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 100px;
  background: #fff; color: var(--pitch-bg); font-size: 10.5px; font-weight: 800; font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.mt-labels { display: flex; justify-content: space-between; padding: 0 4px; font-size: 10px; color: rgba(255, 255, 255, 0.4); }

/* -------------------------------------------------------------- Bilet */
.match-ticket { color: var(--forest-deep); }
.match-ticket-note { color: var(--on-dark-3); font-size: 12px; margin-top: -6px; }

/* -------------------------------------------------------------- Vakıf düzeltmesi
   `.crest.is-white` (rakip arması, beyaz daire) harf düşmesinde `.crest`
   tabanının `color:var(--ink-2)` değerini miras alır. `.surface-pitch`
   `--ink-2`'yi neredeyse beyaza çeviriyor (koyu yüzeyler için) — sonuç: beyaz
   daire üstünde beyaz harf, görünmez. `site.css`/partials'a dokunulamıyor
   (paylaşılan dosya yasağı); düzeltme yalnızca bu sayfada. */
.surface-pitch .crest.is-white .crest-letters { color: #3E4A42; }

/* -------------------------------------------------------------- Duyarlı */
@media (max-width: 560px) {
  .ms-row { grid-template-columns: 1fr minmax(0, 120px) 1fr; }
  .ms-score { font-size: 32px; }
  .sidelined-grid { grid-template-columns: 1fr 1fr; }
}
