/* Taraftar Haber · Formula 1 yarış hafta sonu sayfası (/formula-1/<sezon>/<gp>/), sunucunun çizdiği sürüm: yarış önü,
   canlı, yarış sonu. Tabela Ege'nin .match-hero--f1 asfalt zemini ve damalı şeridi (components.css); bölüm başlıkları ve
   iki sütunlu gövde maç sayfasıyla aynı (mac.css). Renkler tokens.css'ten; takım renkleri yalnız sürücü kodunun yanındaki çubukta. */

/* ---------- Tabela ---------- */
.fp-hero .wrap { padding-block: var(--s-3) var(--s-5); }
.fp-board { align-items: center; }
.fp-col { display: grid; justify-items: center; align-content: center; gap: 4px; min-width: 0; text-align: center; color: #fff; }
.fp-col b { overflow-wrap: anywhere; }
.fp-col span { font-size: var(--fs-sm); font-weight: 600; color: rgba(255,255,255,0.75); }
.fp-col--circuit b { font-size: var(--fs-md); font-weight: 800; line-height: 1.2; }
.fp-col--circuit .f1-track--hero { margin-bottom: 4px; }
.fp-score--word { font-family: var(--font); font-size: clamp(1.5rem, 1.1rem + 2vw, 2.5rem); overflow-wrap: anywhere; white-space: normal; }
.fp-hero .mp-centre { min-width: 132px; }
.fp-podium { margin-top: var(--s-4); color: #fff; }
.fp-podium li { display: inline-flex; align-items: center; gap: 6px; }
.fp-podium small { font-size: var(--fs-xs); opacity: 0.8; }
.fp-face { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,0.15); }
@media (max-width: 639px) {
  .fp-col b { font-size: var(--fs-base); }
  .fp-col span { font-size: var(--fs-xs); }
  .fp-col--circuit b { font-size: var(--fs-sm); }
  .fp-hero .mp-centre { min-width: 96px; }
}

/* ---------- Gövde ---------- */
.fp-h-note { margin-left: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-3); }
.fp-table { font-variant-numeric: tabular-nums; }
.fp-table caption { caption-side: top; }
.fp-table td.pos .mv, .fp-table td.num .mv { margin-left: 4px; }
.fp-team { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--ink-2); }
.fp-logo { width: 20px; height: 20px; object-fit: contain; flex: none; }
:root[data-theme="dark"] .fp-logo { background: #fff; border-radius: 3px; padding: 1px; }
.fp-sub { margin-left: 6px; }
@media (max-width: 1023px) { .fp-sub { display: none; } }
.fp-fl { margin-left: 4px; font-size: 10px; font-weight: 800; color: #7c3aed; text-decoration: none; cursor: help; }
:root[data-theme="dark"] .fp-fl { color: #c4b5fd; }
:root[data-theme="dark"] .f1-purple { color: #c4b5fd !important; }
.fp-lead { margin-bottom: var(--s-4); max-width: 72ch; font-size: var(--fs-base); line-height: 1.6; color: var(--ink); }
.fp-stops { white-space: normal !important; }
.fp-stops span { display: inline-block; margin-right: 10px; white-space: nowrap; }
.fp-stops small { color: var(--ink-3); }
@media (max-width: 639px) { .fp-wide { display: none; } }

/* Program: Ege'nin gün kartları; canlı seans ve bugün öne çıkar */
.fp-sec .f1-day li em { justify-self: end; text-align: right; }
.fp-sec .f1-day li.is-live time, .fp-sec .f1-day li.is-live span { font-weight: 800; }
.fp-top { color: var(--ink-3); font-weight: 600; }
.fp-live { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-weight: 800; color: var(--live); }
.fp-tz { margin-top: var(--s-3); }

/* Pist */
.fp-record { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--ink-2); }
.fp-record b { color: var(--ink); }

/* Canlı: tur sayacı */
.fp-laps { display: grid; gap: 6px; margin-bottom: var(--s-4); max-width: 520px; }
.fp-laps p { font-size: var(--fs-md); font-weight: 700; color: var(--ink-2); }
.fp-laps b { font-size: var(--fs-xl); font-weight: 900; color: var(--ink); }
.fp-laps__bar { position: relative; height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.fp-laps__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 4px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, var(--ink-2) 8px 16px); }
.fp-stamp { margin-top: var(--s-3); }

/* Sezonun yarışları arasında gezinme */
.fp-pager { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s-3); align-items: center; padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 700; }
.fp-pager a { color: var(--primary); }
.fp-pager a:first-child { justify-self: start; }
.fp-pager a:nth-child(2) { justify-self: center; color: var(--ink-2); }
.fp-pager a:last-child { justify-self: end; }
:root[data-theme="dark"] .fp-pager a { color: var(--ink); }

/* /formula-1/: logosu olmayan takımın şerit rengi */
.fp-chipbar { display: inline-block; width: 4px; height: 16px; margin-right: 6px; border-radius: 2px; vertical-align: -3px; }

/* Tek kalan yarım bölüm tam genişliğe geçer (page.ts layout): pist bilgileri yan yana dizilir */
@media (min-width: 768px) { .fp-sec--wide .f1-facts { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.fp-sec .f1-facts dd { margin: 0; }
.fp-sec .f1-facts div { min-width: 0; }

/* Puan tabloları: katlanan satırlar aynı sütunlarda */
.fp-fixed { table-layout: fixed; }
.fp-c-pos { width: 52px; } .fp-c-n { width: 40px; } .fp-c-pts { width: 72px; }
.fp-fixed td:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
.fp-more { margin-top: 0; }
.fp-more > summary { padding-left: 6px; }
.fp-table .f1-drv + .fp-team { margin-left: 8px; }
@media (max-width: 639px) { .fp-first { display: none; } }
