/* ANA SAYFA MAÇ VİTRİNİ — SUNUM.
   Yalnızca vitrin basılan sayfalara bağlanır (ana sayfa, takım sayfası, lig
   sayfası). Renkler `page.css` içindeki tema değişkenlerinden okunur; kutu
   açık ve koyu temada aynı okunurluğu korur. Yerleşim mobil-öncedir: dar
   ekranda tek sütun, geniş ekranda skor tablosu metnin yanına geçer. */

/* Genişlik `page.css` içindeki `.container` sözleşmesinden gelir; kutu o
   sınıfla basılıyor. Burada ikinci bir genişlik kuralı yazmak, sitenin
   mobil kırılımlarıyla sessizce ayrışmak olurdu. */
.fms {
  margin: 20px auto 26px;
}

.fms__inner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong, #3b4460);
  border-radius: var(--radius-lg, 20px);
  padding: clamp(18px, 3.2vw, 32px);
  background: var(--grad-hero, linear-gradient(125deg, #101c3a, #121a2b 70%, #372331));
  color: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
}

.fms__inner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent, #f3cf55);
}

.fms__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.fms__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill, 999px);
  background: rgba(255, 255, 255, .14);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.fms--live .fms__badge {
  background: var(--live, #e3342f);
  animation: fms-pulse 1.8s ease-in-out infinite;
}

.fms--post .fms__badge { background: rgba(255, 255, 255, .22); }

@keyframes fms-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

@media (prefers-reduced-motion: reduce) {
  .fms--live .fms__badge { animation: none; }
}

.fms__league {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  opacity: .85;
}

.fms__title {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.2vw, 36px);
  line-height: 1.16;
  letter-spacing: -.02em;
}

.fms__title a { color: inherit; text-decoration: none; }

.fms__title a:hover,
.fms__title a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--accent, #f3cf55);
  text-underline-offset: 6px;
}

.fms__score {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 12px;
}

.fms__score[hidden] { display: none; }

.fms__score-value {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
}

.fms__minute {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent, #f3cf55);
}

.fms__lead {
  margin: 0 0 14px;
  max-width: 68ch;
  font-size: var(--fs-sm, 15px);
  line-height: 1.6;
  opacity: .92;
}

.fms__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 18px;
  margin: 0 0 16px;
}

.fms__fact dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .7;
}

.fms__fact dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; }

.fms__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-pill, 999px);
  background: var(--accent, #f3cf55);
  color: #10182c;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
}

.fms__cta:hover, .fms__cta:focus-visible { filter: brightness(1.06); }

.fms__jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.fms__jump {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius-pill, 999px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.fms__jump:hover, .fms__jump:focus-visible { background: rgba(255, 255, 255, .14); }

@media (max-width: 560px) {
  .fms { margin: 14px auto 20px; }
  .fms__cta { width: 100%; justify-content: center; }
  .fms__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Takım ve lig sayfasındaki ince şerit. Sayfanın kendi düzenini bozmadan
   maç sayfasına güçlü bir iç bağlantı verir. */
.fms-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0 18px;
  padding: 12px 16px;
  border: 1px solid var(--line, #d7dbe6);
  border-left: 4px solid var(--accent, #f3cf55);
  border-radius: var(--radius, 14px);
  background: var(--panel, rgba(255, 255, 255, .04));
}

.fms-strip__badge {
  padding: 3px 9px;
  border-radius: var(--radius-pill, 999px);
  background: var(--accent, #f3cf55);
  color: #10182c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.fms-strip--live .fms-strip__badge { background: var(--live, #e3342f); color: #fff; }

.fms-strip__link {
  color: var(--ink, inherit);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.fms-strip__link:hover, .fms-strip__link:focus-visible { text-decoration: underline; }

.fms-strip__cta { font-size: 13px; color: var(--muted, #6b7280); font-weight: 600; }

@media (max-width: 560px) {
  .fms-strip { gap: 6px; }
  .fms-strip__cta { width: 100%; }
}

/* ── GERİ SAYIM ─────────────────────────────────────────────────────────
   Yalnızca maç öncesi evrede basılır. Sayılar `font-variant-numeric:
   tabular-nums` ile sabit genişlikte: saniye tiklerken kutu titremez
   (`featured-match-spotlight.js` her saniye yalnızca metni değiştirir,
   düzeni yeniden hesaplamaz). */
.fms__countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 14px;
}

.fms__countdown-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
}

.fms__countdown-grid { display: flex; gap: 10px; }

.fms__count {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 54px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius, 14px);
  background: rgba(255, 255, 255, .08);
}

.fms__count b {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.fms__count span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .72;
}

.fms__countdown-started {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--accent, #f3cf55);
}

.fms__countdown-started[hidden],
.fms__countdown-grid[hidden] { display: none; }

/* ── BÜYÜK KART ─────────────────────────────────────────────────────────
   `majorTeams` yapılandırmasındaki maç (A Millî Takım) maç öncesi ve maç
   sırasında ana sayfanın en üstünde daha geniş bir alan kaplar. Sınıf
   maç bitince düşer ve kutu KENDİLİĞİNDEN normal boyuta döner — ayrı bir
   temizleme adımı yok (bkz. services/featuredMatchSpotlight.js
   #isMajorSpotlight).

   Boyut bir OLGU İDDİASI DEĞİL: kutunun içindeki her satır veri
   katmanından geliyor, büyük kart yalnızca editoryal önem sıralamasıdır. */
.fms--major { margin: 24px auto 30px; }

.fms--major .fms__inner {
  padding: clamp(22px, 4vw, 44px);
  border-color: var(--accent, #f3cf55);
  box-shadow: 0 20px 56px rgba(0, 0, 0, .26);
}

.fms--major .fms__inner::before { width: 8px; }

.fms--major .fms__title { font-size: clamp(26px, 4.6vw, 50px); }

.fms--major .fms__badge { font-size: 12px; padding: 5px 12px; }

.fms--major .fms__score-value { font-size: clamp(34px, 6vw, 58px); }

.fms--major .fms__count { min-width: 62px; }

@media (max-width: 560px) {
  .fms--major { margin: 16px auto 22px; }
  .fms__countdown-grid { width: 100%; justify-content: space-between; gap: 6px; }
  .fms__count { min-width: 0; flex: 1; padding: 6px 4px; }
  .fms--major .fms__count { min-width: 0; }
}
