/* ==========================================================================
   DEDESPORTS — spor sayfaları (maçlar, maç merkezi, branş, lig, takım, canlı TV)
   style.css içindeki bileşenlerin üzerine yalnızca bu sayfalara özgü ekler.
   ========================================================================== */

/* Gün seçimi: bağlantılı segment + tarih alanı */
.day-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.segmented a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-2);
    transition: background-color var(--dur-base), color var(--dur-base);
}
.segmented a:hover { color: var(--text-1); }
.segmented a[aria-current="true"] { background: var(--gold); color: var(--on-gold); }
.day-form { display: flex; align-items: center; gap: 8px; }
.day-form .input { width: auto; min-height: 44px; padding: 8px 12px; color-scheme: dark; }
.day-form .btn { min-height: 44px; }
.fixtures-count { font-size: 14px; }

/* Lig ve takım sayfalarındaki maç satırı: saatin üstünde tarih */
.mr-date { display: block; font-size: 11px; font-weight: 600; color: var(--text-3); }
.league-head strong a:hover { color: var(--gold); }
.league-head .sec-link, .league-head .badge { white-space: nowrap; flex: none; }
.league-head strong { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.league-head > span:not(.badge) { flex: 0 4 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Boş durum */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 48px 20px;
    text-align: center;
}
.empty-state > i { font-size: 34px; color: var(--text-3); }
.empty-state h2 { font-size: 18px; font-weight: 800; }
.empty-state p { color: var(--text-2); max-width: 46ch; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* Yan paneli olmayan sayfa gövdesi */
.match-solo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 980px; margin-inline: auto; }

.hero-stats-flush { margin-top: 0; }
.hero-stat strong { color: var(--text-1); margin-left: 4px; }

/* Maç akışı */
.timeline li.tl-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--line);
}
.timeline li.tl-item:last-child { border-bottom: 0; }
.tl-mark { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: center; gap: 8px; }
.tl-min { min-width: 38px; text-align: right; font-size: 13px; font-weight: 700; color: var(--text-2); }
.tl-text { grid-row: 1; min-width: 0; }
.tl-home .tl-text { grid-column: 1; text-align: right; }
.tl-away .tl-text { grid-column: 3; }
.tl-text strong { display: block; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.tl-text small { display: block; font-size: 12px; color: var(--text-3); }
.status-ico.tl-goal { background: rgba(92, 212, 167, 0.16); color: var(--win); }
.status-ico.tl-sub { background: rgba(138, 177, 255, 0.14); color: var(--electric); }
@media (max-width: 479px) {
    .timeline li.tl-item { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); gap: 8px; padding: 10px 12px; }
    .tl-min { min-width: 30px; }
}

/* Karşılaşma geçmişi: skor bağlantısı */
.h2h-list a.s:hover { background: rgba(246, 213, 109, 0.14); color: var(--gold); }
.sb-team h2 a:hover, .analysis-team a:hover { color: var(--gold); }

/* Tam puan durumu tablosu */
.table-scroll { overflow-x: auto; }
.standings-panel + .standings-panel { margin-top: 16px; }
.table.standings td, .table.standings th { white-space: nowrap; }
.table.standings .form-row { justify-content: center; }
.table.standings abbr { text-decoration: none; }
.table td.team a:hover { color: var(--gold); }
.legend i.zone-sw { border-radius: 3px; }
.zone-sw-cl { background: var(--electric); }
.zone-sw-el { background: var(--warn); }
.zone-sw-ecl { background: var(--win); }
.zone-sw-playoff, .zone-sw-promo { background: var(--gold); }
.zone-sw-rel { background: var(--loss); }
@media (max-width: 699px) {
    .table .col-wide { display: none; }
}

/* Gol krallığı */
.scorers li { grid-template-columns: 24px 36px minmax(0, 1fr) auto; }
.scorers .pts { font-size: 18px; color: var(--gold); }
.scorers .name { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }

/* Branş sayfası: lig kartları */
.comp-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.comp-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--panel);
    transition: border-color var(--dur-base), transform var(--dur-base) var(--ease-out);
}
.comp-card:hover { border-color: rgba(246, 213, 109, 0.4); transform: translateY(-2px); }
.comp-text { flex: 1; min-width: 0; }
.comp-text strong { display: block; font-size: 15px; font-weight: 800; }
.comp-text small { display: block; font-size: 12px; color: var(--text-3); }
.comp-card > i { color: var(--text-3); font-size: 12px; }

/* Takım sayfası başlığı */
.team-hero { display: flex; align-items: center; gap: 16px; }
.team-hero .crest-lg { flex: none; }
.table.squad td:nth-child(3) { color: var(--text-2); }

/* Canlı TV */
.tv-embed { position: relative; aspect-ratio: 16 / 9; background: #000; }
.tv-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-video { display: block; width: 100%; height: 100%; }

/* Çeyrek / set skorları ve basketbol kutu skoru */
.table.periods td, .table.periods th, .table.boxscore td, .table.boxscore th { white-space: nowrap; }
.table.periods abbr, .table.boxscore abbr { text-decoration: none; }
.table.periods th:first-child, .table.boxscore th:first-child { text-align: left; }
.table.periods th:nth-child(2), .table.boxscore th:nth-child(2) { text-align: center; }
.table.periods td.total { font-family: var(--font-mono); font-weight: 700; color: var(--text-1); }
.table.periods td.won { color: var(--gold); font-weight: 700; }
.table.boxscore .boxscore-sep th { text-align: left; font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 14px; }
.table.boxscore tfoot th, .table.boxscore tfoot td { border-top: 1px solid var(--line); font-weight: 700; }
.table.boxscore tfoot th { text-align: left; }
.boxscore-grid { display: grid; gap: 16px; }

/* Formula 1 */
.f1-logo { flex: none; width: 22px; height: 22px; object-fit: contain; }
.f1-logo-md { width: 32px; height: 32px; }
.f1-logo-lg { width: 72px; height: 72px; }
.f1-hero-face { width: 72px; height: 72px; }
.f1-abbr { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); font-weight: 600; }
.table.f1-results td, .table.f1-results th, .table.f1-standings td, .table.f1-standings th { white-space: nowrap; }
.table.f1-results abbr, .table.f1-standings abbr { text-decoration: none; }
.f1-team-cell { text-align: left; }
.f1-team-cell .f1-logo { vertical-align: middle; margin-right: 6px; }
.f1-next-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.f1-next-head h3 { font-size: 22px; margin: 0 0 4px; }
.f1-next-head h3 a { color: inherit; }
.f1-sessions { display: grid; gap: 0; margin-top: 14px; }
.f1-sessions li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.f1-sessions li:last-child { border-bottom: 0; }
.f1-sessions li.is-race { color: var(--text-1); font-weight: 700; }
.f1-sessions .mono { color: var(--text-1); }
.f1-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.f1-podium li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.f1-podium li.p1 { order: 2; border-color: rgba(246, 213, 109, 0.45); }
.f1-podium li.p2 { order: 1; }
.f1-podium li.p3 { order: 3; }
.f1-podium-face { width: 64px; height: 64px; }
.f1-podium-pos { font-family: var(--font-mono); font-weight: 700; font-size: 18px; color: var(--text-3); }
.f1-podium li.p1 .f1-podium-pos { color: var(--gold); }
.f1-podium a { font-weight: 700; color: var(--text-1); }
.f1-podium small { font-size: 12px; color: var(--text-3); }
.f1-calendar { padding: 4px 16px; }
.f1-calendar li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.f1-calendar li:last-child { border-bottom: 0; }
.f1-calendar li.is-cancelled .f1-race { opacity: 0.55; text-decoration: line-through; }
.f1-round { color: var(--text-3); text-align: center; }
.f1-race a { font-weight: 700; color: var(--text-1); }
.f1-race small { display: block; font-size: 12px; color: var(--text-3); }
.f1-winner { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.f1-winner i { color: var(--gold); }
.f1-winner a { color: var(--text-2); }
.f1-circuit { display: block; width: 100%; max-height: 220px; object-fit: contain; margin: 4px 0 8px; }
.f1-note { margin-top: 10px; font-size: 13px; }
.f1-note i { color: var(--gold); margin-right: 6px; }
.f1-drivers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.f1-drivers li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.f1-drivers a { font-weight: 700; color: var(--text-1); font-size: 16px; }
.f1-drivers small { display: block; color: var(--text-3); font-size: 13px; }
@media (max-width: 560px) {
    .f1-podium { gap: 8px; }
    .f1-podium-face { width: 48px; height: 48px; }
    .f1-calendar li { grid-template-columns: 26px 1fr; }
    .f1-calendar li > :last-child { grid-column: 2; justify-self: start; }
}
