/* ══════════════════════════════════════════════════
   TFC Tournament – Frontend Styles v3.0
   Farby: modrá #1a3a8a, žltá #f5c800 (podľa loga)
   ══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@400;500;600&display=swap');

:root {
  --tfc-blue:      #1a3a8a;
  --tfc-blue-dark: #112668;
  --tfc-blue-mid:  #1e4db7;
  --tfc-blue-light:#2a5cd6;
  --tfc-yellow:    #f5c800;
  --tfc-yellow-dk: #c9a200;
  --tfc-white:     #ffffff;
  --tfc-light:     #f4f6fb;
  --tfc-border:    #dce4f5;
  --tfc-text:      #1a2540;
  --tfc-muted:     #6b7fa3;
  --tfc-green:     #22c55e;
  --tfc-green-bg:  #f0fdf4;
  --radius:        10px;
  --shadow:        0 4px 20px rgba(26,58,138,.10);
  --shadow-lg:     0 8px 32px rgba(26,58,138,.18);
}

*, *::before, *::after { box-sizing: border-box; }

.tfc-wrap {
  font-family: 'Barlow', sans-serif;
  color: var(--tfc-text);
  max-width: 980px;
  margin: 0 auto;
}
.tfc-section { margin-bottom: 48px; }

/* ── Section title ────────────────────────────────── */
.tfc-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.85rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--tfc-blue);
  display: flex; align-items: center; gap: 10px;
  border-left: 5px solid var(--tfc-yellow);
  padding-left: 14px; margin-bottom: 24px;
}
.tfc-title-icon {
  width: 26px; height: 26px;
  stroke: var(--tfc-blue); fill: none;
  flex-shrink: 0;
}
.tfc-empty { color: var(--tfc-muted); font-style: italic; padding: 20px 0; }

/* ── Navigation ───────────────────────────────────── */
.tfc-nav-outer {
  max-width: 980px;
  margin: -18px auto 12px;
}
.tfc-nav {
  background: var(--tfc-blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.tfc-nav-inner {
  display: flex; align-items: center;
  padding: 0 16px;
}
.tfc-nav-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: var(--tfc-yellow);
  padding: 13px 16px 13px 4px;
  border-right: 1px solid rgba(255,255,255,.15);
  margin-right: 8px; white-space: nowrap;
  letter-spacing: .05em;
}
/* Nav logo — svetlé pozadie, vycentrované */
.tfc-nav-logo-wrap {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 5px 12px;
  margin: 7px 16px 7px 10px;
  flex-shrink: 0;
}
.tfc-nav-logo {
  height: 38px; width: auto; display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.25));
}
.tfc-nav-links {
  display: flex; gap: 2px;
  padding: 8px 0; flex: 1;
  justify-content: space-evenly;
}
.tfc-nav-link {
  font-family: 'Barlow', sans-serif;
  font-size: .82rem; font-weight: 600;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  padding: 6px 13px; border-radius: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.tfc-nav-link:hover { background: rgba(255,255,255,.12); color: #fff; }
.tfc-nav-link.active { background: var(--tfc-yellow); color: var(--tfc-blue); font-weight: 700; }

/* Hamburger tlačidlo */
.tfc-nav-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer;
  padding: 4px; margin-left: auto; flex-shrink: 0;
}
.tfc-nav-burger span {
  display: block; height: 2px; border-radius: 2px;
  background: rgba(255,255,255,.85);
  transition: transform .22s, opacity .22s;
}
.tfc-nav.open .tfc-nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tfc-nav.open .tfc-nav-burger span:nth-child(2) { opacity: 0; }
.tfc-nav.open .tfc-nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── Hero logo banner ─────────────────────────────── */
.tfc-hero {
  text-align: center;
  padding: 32px 0 24px;
  background: linear-gradient(160deg, var(--tfc-blue) 0%, var(--tfc-blue-dark) 100%);
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 28px;
}
.tfc-hero-logo {
  max-width: 200px; width: 100%; height: auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.45));
  transition: transform .3s ease;
}
.tfc-hero-logo:hover { transform: scale(1.04); }

/* ── Info Grid (propozície) ───────────────────────── */
.tfc-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 14px; margin-bottom: 28px;
}
.tfc-info-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff;
  border: 1px solid var(--tfc-border);
  border-top: 3px solid var(--tfc-yellow);
  border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow);
}
.tfc-info-icon { font-size: 1.5rem; line-height: 1; }
.tfc-info-card strong {
  display: block; font-size: .68rem;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--tfc-muted); margin-bottom: 3px;
}

/* ── Rules ────────────────────────────────────────── */
.tfc-rules {
  background: #fff; border-radius: var(--radius);
  padding: 24px 28px; box-shadow: var(--shadow);
  font-family: 'Barlow', sans-serif; color: var(--tfc-text);
}
/* PDF download tlačidlo */
.tfc-pdf-download {
  display: flex; align-items: center; gap: 10px;
  background: var(--tfc-blue); color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  text-decoration: none;
  padding: 12px 24px; border-radius: var(--radius);
  transition: background .18s, transform .18s;
  box-shadow: var(--shadow);
  width: fit-content;
}
.tfc-pdf-download:hover {
  background: var(--tfc-blue-dark);
  transform: translateY(-2px);
  color: var(--tfc-yellow);
}
.tfc-pdf-spacer { height: 28px; display: block; }
.tfc-rules h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--tfc-blue); margin: 20px 0 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--tfc-yellow);
  display: inline-block;
}
.tfc-rules h3:first-child { margin-top: 0; }
.tfc-pdf-download + .tfc-pdf-spacer + .tfc-rules-first-h3,
.tfc-rules-first-h3 { margin-top: 0; }
.tfc-pdf-spacer { height: 28px; }
.tfc-rules ul, .tfc-rules ol { margin: 0 0 12px; padding-left: 20px; }
.tfc-rules li { font-size: .9rem; padding: 4px 0; line-height: 1.6; border-bottom: 1px solid var(--tfc-border); font-family: 'Barlow', sans-serif; }
.tfc-rules li:last-child { border-bottom: none; }
.tfc-rules p { font-size: .9rem; font-family: 'Barlow', sans-serif; margin: 0 0 12px; }

/* ── Day block / Harmonogram ─────────────────────── */
.tfc-day-block { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tfc-day-header {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  background: var(--tfc-blue); color: var(--tfc-yellow);
  padding: 11px 18px; margin: 0;
}
.tfc-match-list { border: 1px solid var(--tfc-border); border-top: none; background: #fff; }
.tfc-match-row {
  display: grid;
  grid-template-columns: 52px auto 1fr 64px 1fr;
  align-items: center; gap: 8px;
  padding: 11px 16px; border-bottom: 1px solid var(--tfc-border);
  transition: background .15s;
}
.tfc-match-row:last-child { border-bottom: none; }
.tfc-match-row:hover { background: var(--tfc-light); }
.tfc-match-row.finished { background: var(--tfc-green-bg, #f0fdf4); }
.tfc-time { font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 700; color: var(--tfc-blue); }
.tfc-phase-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: .67rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; white-space: nowrap;
  width: fit-content;
}
.tfc-phase-badge.group   { background: #dbeafe; color: var(--tfc-blue); }
.tfc-phase-badge.playoff { background: #fef9c3; color: #7a5900; }
.tfc-team { font-size: .88rem; font-weight: 500; overflow: hidden; word-break: break-word; white-space: normal; }
.tfc-team.home { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.tfc-team.away { display: flex; align-items: center; justify-content: flex-start; gap: 5px; }
.tfc-team.home .tfc-inline-logo { order: -1; }
.tfc-score {
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--tfc-blue); white-space: nowrap;
}
.tfc-inline-logo { width: 20px; height: 20px; object-fit: contain; border-radius: 2px; flex-shrink: 0; }

/* ── Standings / Tabuľky ─────────────────────────── */
.tfc-groups-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px,1fr)); gap: 28px; }
.tfc-group h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem; font-weight: 800; text-transform: uppercase;
  color: var(--tfc-blue); margin-bottom: 10px;
  padding-left: 10px; border-left: 4px solid var(--tfc-yellow);
}
.tfc-standings {
  width: 100%; border-collapse: collapse;
  font-size: .84rem; box-shadow: var(--shadow);
  border-radius: var(--radius); overflow: hidden;
}
.tfc-standings thead { background: var(--tfc-blue); }
.tfc-standings th {
  padding: 10px 7px; color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .75rem; letter-spacing: .05em;
  text-transform: uppercase; text-align: center;
}
.tfc-standings th:nth-child(2) { text-align: left; }
.tfc-standings td {
  padding: 10px 7px; text-align: center;
  border-bottom: 1px solid var(--tfc-border);
  background: #fff;
}
.tfc-standings td:nth-child(2) { text-align: left; font-weight: 600; }
.tfc-standings tbody tr:last-child td { border-bottom: none; }
.tfc-standings tbody tr:hover td { background: var(--tfc-light); }

/* Playoff zone – zelená pre postupujúce miesta */
.tfc-standings tr.rank-1 td,
.tfc-standings tr.playoff-zone td { background: var(--tfc-green-bg, #f0fdf4); }
.tfc-standings tr.out-zone td  { }
.tfc-rank { font-weight: 700; color: var(--tfc-muted); }
.tfc-team-name { max-width: 160px; word-break: break-word; white-space: normal; }
.tfc-team-cell { display: flex; align-items: center; gap: 8px; }
.tfc-team-logo { width: 24px; height: 24px; object-fit: contain; border-radius: 3px; flex-shrink: 0; }
.tfc-team-logo-placeholder { width: 24px; height: 24px; background: var(--tfc-border); border-radius: 3px; display: inline-block; flex-shrink: 0; }
.tfc-pts strong { font-size: .95rem; color: var(--tfc-blue); font-weight: 800; }
.positive { color: #16a34a; font-weight: 600; }
.negative { color: #dc2626; font-weight: 600; }
.tfc-legend { font-size: .75rem; color: var(--tfc-muted); margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.legend-dot.green { width: 10px; height: 10px; border-radius: 50%; background: var(--tfc-green); display: inline-block; }

/* ── Results ──────────────────────────────────────── */
.tfc-results-list { display: flex; flex-direction: column; gap: 8px; }
.tfc-result-card {
  background: #fff; border: 1px solid var(--tfc-border);
  border-radius: var(--radius); padding: 12px 18px;
  box-shadow: var(--shadow);
}
.tfc-result-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; font-size: .77rem; color: var(--tfc-muted); }
.tfc-result-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.tfc-result-team { font-size: .9rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.tfc-result-team.right { justify-content: flex-end; }
.tfc-result-team.winner { font-weight: 700; color: var(--tfc-blue); }
.tfc-result-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.7rem; font-weight: 800;
  color: var(--tfc-blue); text-align: center; white-space: nowrap;
}
.tfc-result-logo { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; flex-shrink: 0; }

/* ════════════════════════════════════════════════════
   PLAY-OFF PAVOUK – nový dizajn
   ════════════════════════════════════════════════════ */

/* Wrap – flex row pre stĺpce + spájacie čiary */
.pb-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
  width: 100%;
}

/* Stĺpec – rovnaká šírka pre všetky tri kola */
.pb-col {
  display: flex; flex-direction: column;
  flex: 1;
  min-width: 0;
}
.pb-col-qf    { /* 4 zápasy – najviac obsahu */ }
.pb-col-sf    { /* 2 zápasy – vertikálne centrované */ }
.pb-col-final { /* 1 zápas  – vertikálne centrované */ }

.pb-col-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  background: var(--tfc-blue); color: var(--tfc-yellow);
  padding: 8px 14px; text-align: center;
  border-radius: 8px 8px 0 0; margin-bottom: 0;
}
.pb-title-gold { background: #8a6200; color: #fff5cc; }

/* Telo stĺpca */
.pb-col-body {
  flex: 1; display: flex; flex-direction: column;
  background: var(--tfc-light);
  border: 1px solid var(--tfc-border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 12px 10px;
  gap: 0;
}

/* SF a Final: skupiny vertikálne centrované vo výške QF stĺpca */
.pb-body-split {
  justify-content: space-between;
}
.pb-body-center {
  justify-content: center;
}

.pb-group { display: flex; flex-direction: column; gap: 8px; }
/* QF: top skupina zaberá hornú polovicu, oddelená čiarou */
.pb-group-top { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 10px; border-bottom: 2px dashed var(--tfc-border); margin-bottom: 0; }
.pb-group-bot { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 10px; }

/* Zápasová karta v pavúku */
.pb-match {
  background: #fff;
  border: 2px solid var(--tfc-border);
  border-radius: 8px; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.pb-match.done { border-color: var(--tfc-blue); }
.pb-match.pb-empty { opacity: .45; }
.pb-final-match { border-color: var(--tfc-yellow); box-shadow: 0 4px 18px rgba(245,200,0,.25); }
.pb-final-match.done { border-color: #c9a200; }
.pb-3rd-match { border-color: #c97c2a; }

/* Klikateľné zápasy v pavúku */
.pb-match-link { display: block; text-decoration: none; color: inherit; }
.pb-match-link:hover .pb-match { border-color: var(--tfc-blue-light); box-shadow: var(--shadow); }
.pb-match-link:hover .pb-match.done { border-color: var(--tfc-yellow); }

/* Klikateľné skóre v solo blokoch (3., 9. miesto) */
.pb-score-link {
  color: inherit; text-decoration: none;
  display: block; width: 100%; text-align: center;
}
.pb-score-link:hover { color: var(--tfc-blue); text-decoration: underline; }

.pb-team {
  display: flex; align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--tfc-border);
  gap: 6px; font-size: .82rem;
}
.pb-team:last-child { border-bottom: none; }
.pb-team.win {
  background: var(--tfc-blue); color: #fff; font-weight: 700;
}
.pb-team.win .pb-score { color: var(--tfc-yellow); }
.pb-logo { width: 18px; height: 18px; object-fit: contain; border-radius: 2px; flex-shrink: 0; }
.pb-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pb-score {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem; font-weight: 800;
  color: var(--tfc-blue); min-width: 20px; text-align: right;
  flex-shrink: 0;
}

/* Spájacie čiary SVG medzi stĺpcami */
.pb-lines {
  width: 36px; flex-shrink: 0;
  display: flex; align-items: stretch;
  position: relative;
}
.pb-lines svg { width: 100%; height: 100%; display: block; }

/* ── Dolná časť: O 3. a O 9. miesto ────────────────── */
.pb-lower {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 2px solid var(--tfc-border);
}
.pb-lower-block {
  flex: 1; min-width: 260px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pb-lower-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .9rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 10px 16px;
}
.pb-lower-desc {
  font-size: .72rem; color: var(--tfc-muted);
  padding: 0 16px 8px; font-style: italic;
}
.pb-lower-3rd .pb-lower-title { background: #7a4b00; color: #fff; }
.pb-lower-9th .pb-lower-title { background: var(--tfc-blue); color: var(--tfc-yellow); }
.pb-lower-block .pb-match {
  margin: 8px 12px 12px; border-color: var(--tfc-border);
}
.pb-lower-3rd .pb-match { border-color: #c97c2a; }

/* ── Podium ────────────────────────────────────────── */
.tfc-podium { display: flex; gap: 14px; flex-wrap: wrap; }
.tfc-podium-item {
  flex: 1; min-width: 160px; border-radius: var(--radius);
  padding: 22px 18px; text-align: center;
  box-shadow: var(--shadow);
}
.tfc-podium-item.gold   { background: linear-gradient(135deg,var(--tfc-yellow),var(--tfc-yellow-dk)); color: #3a2800; }
.tfc-podium-item.silver { background: linear-gradient(135deg,#e2e8f0,#94a3b8); color: #1e293b; }
.tfc-podium-item.bronze { background: linear-gradient(135deg,#fde8c8,#c27730); color: #3a1800; }
.tfc-podium-item:not(.gold):not(.silver):not(.bronze) { background: var(--tfc-light); border: 1px solid var(--tfc-border); }
.tfc-podium-pos  { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .8; margin-bottom: 6px; }
.tfc-podium-team { font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; font-weight: 800; }

/* ── Mobile ────────────────────────────────────────── */
@media (max-width: 720px) {
  /* Nav inner: logo vľavo, burger vpravo, v jednom riadku */
  .tfc-nav-inner {
    flex-wrap: nowrap;
    padding: 0 12px;
  }
  .tfc-nav-logo-wrap { margin: 5px 8px 5px 0; padding: 4px 6px; }
  .tfc-nav-logo  { height: 32px; }
  .tfc-nav-burger { display: flex; margin-left: auto; }

  /* Links skryté — absolútne pod nav-inner, cez celú šírku */
  .tfc-nav-links  {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--tfc-blue);
    border-radius: 0 0 var(--radius) var(--radius);
    border-top: 1px solid rgba(255,255,255,.10);
    flex-direction: column;
    padding: 6px 8px 10px;
    gap: 2px;
    z-index: 999;
  }
  .tfc-nav.open .tfc-nav-links { display: flex; }
  .tfc-nav.open { border-radius: var(--radius) var(--radius) 0 0; }
  .tfc-nav-link  { font-size: .9rem; padding: 10px 14px; border-radius: 6px; }
}

@media (max-width: 640px) {
  .tfc-nav-inner  { padding: 0 10px; }
  .tfc-nav-brand  { padding: 10px 10px 10px 0; font-size: .85rem; }

  .tfc-match-row  {
    display: flex; flex-wrap: nowrap; align-items: center;
    gap: 4px; padding: 10px 10px;
  }
  .tfc-phase-badge { display: none; }
  .tfc-time       { font-size: .8rem; flex-shrink: 0; width: 34px; }
  .tfc-live-badge { font-size: .68rem; padding: 2px 5px; flex-shrink: 0; }
  .tfc-team       { font-size: .8rem; flex: 1 1 0; min-width: 0; }
  .tfc-team.away  { justify-content: flex-start; }
  .tfc-team.home  { justify-content: flex-end; }
  .tfc-score      { font-size: .95rem; flex-shrink: 0; width: 50px; text-align: center; }

  .tfc-groups-grid { grid-template-columns: 1fr; }
  .tfc-standings  { font-size: .78rem; }
  .tfc-standings td, .tfc-standings th { padding: 8px 5px; }
  .tfc-standings th:nth-child(4), .tfc-standings th:nth-child(5), .tfc-standings th:nth-child(6),
  .tfc-standings td:nth-child(4), .tfc-standings td:nth-child(5), .tfc-standings td:nth-child(6) { display: none; }

  .tfc-result-num { font-size: 1.4rem; }

  .pb-col         { min-width: 145px; max-width: 155px; }
  .pb-lines       { width: 22px; }
  .pb-team        { font-size: .76rem; padding: 7px 8px; }
  .pb-score       { font-size: 1rem; }
  .pb-lower       { flex-direction: column; }

  .tfc-section-title { font-size: 1.4rem; }
  .tfc-hero-logo  { max-width: 150px; }
  .tfc-info-grid  { grid-template-columns: 1fr 1fr; }
}

/* ══ v4 updates ══════════════════════════════════════ */

/* Odstrániť hero banner */
.tfc-hero { display: none !important; }

/* ── Solo tabuľky – O 3. a O 9. miesto ────────────── */
.pb-lower {
  display: flex; flex-direction: column; gap: 20px;
  margin-top: 28px; padding-top: 24px;
  border-top: 2px solid var(--tfc-border);
}

.pb-solo-block {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pb-solo-header {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 11px 18px;
  display: flex; align-items: baseline; gap: 10px;
}
.pb-solo-header span {
  font-size: .75rem; font-weight: 400;
  text-transform: none; letter-spacing: 0;
  opacity: .8;
}
.pb-solo-3rd { background: #7a4b00; color: #fff; }
.pb-solo-9th { background: var(--tfc-blue); color: var(--tfc-yellow); }

.pb-solo-table {
  width: 100%; border-collapse: collapse;
  background: #fff;
  table-layout: fixed;
}
.pb-solo-table td:nth-child(2),
.pb-solo-table td:nth-child(3),
.pb-solo-table td:nth-child(4) { width: 44px; }
.pb-solo-table td:nth-child(1),
.pb-solo-table td:nth-child(5) { width: auto; }

.pb-solo-table tbody tr:hover td { background: var(--tfc-light); }

.pb-st-team {
  padding: 12px 16px;
  font-size: .92rem; font-weight: 500;
  display: table-cell;
  vertical-align: middle;
}
.pb-st-home { text-align: left; }
.pb-st-away { text-align: right; }
.pb-st-home { display: flex; align-items: center; gap: 8px; }
/* Away: logo napravo */
.pb-st-away {
  display: flex !important;
  align-items: center; justify-content: flex-end; gap: 8px;
}

.pb-st-score {
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem; font-weight: 800;
  color: var(--tfc-muted);
  padding: 12px 4px;
  width: 52px;
}
.pb-st-sep {
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem; color: var(--tfc-border);
  padding: 0; width: 20px;
}
.pb-st-win {
  color: var(--tfc-blue) !important;
  font-weight: 800 !important;
}
.pb-st-team.pb-st-win { color: var(--tfc-blue); }
.pb-st-logo {
  width: 26px; height: 26px;
  object-fit: contain; border-radius: 3px; flex-shrink: 0;
}

@media (max-width: 640px) {
  .tfc-nav-link { font-size: .84rem !important; padding: 7px 10px !important; }
  .tfc-nav-inner { padding: 0 10px; }
  .pb-st-score { font-size: 1.3rem; }
  .pb-st-team { font-size: .82rem; padding: 10px 10px; }
}

/* ══ Detail zápasu (tfc_sc_zapas) ══════════════════ */

.tfc-back-link {
  display: inline-block; margin-bottom: 16px;
  color: var(--tfc-blue); font-weight: 600; font-size: .9rem;
  text-decoration: none;
}
.tfc-back-link:hover { text-decoration: underline; }

/* Hlavička zápasu */
.tfc-zap-header {
  background: linear-gradient(135deg, var(--tfc-blue) 0%, var(--tfc-blue-dark) 100%);
  border-radius: var(--radius); padding: 24px 28px; margin-bottom: 28px;
  color: #fff;
}
.tfc-zap-meta {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 18px; font-size: .82rem; opacity: .85;
}
.tfc-zap-scoreboard {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 16px;
}
.tfc-zap-team {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem; font-weight: 700; color: #fff;
  min-width: 0; overflow: hidden;
}
.tfc-zap-team span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tfc-zap-team-away { justify-content: flex-end; text-align: right; }
.tfc-zap-team-away .tfc-zap-logo { order: 1; flex-shrink: 0; }
.tfc-zap-logo { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.tfc-zap-result { text-align: center; }
.tfc-zap-score {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3.2rem; font-weight: 900; color: var(--tfc-yellow);
  line-height: 1; white-space: nowrap;
}
.tfc-zap-label {
  display: block; font-size: .65rem; letter-spacing: .1em;
  text-transform: uppercase; opacity: .7; margin-top: 4px;
}

.tfc-sub-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; color: var(--tfc-blue);
  margin: 28px 0 14px; padding-left: 12px;
  border-left: 4px solid var(--tfc-yellow);
}

/* Časová os gólov */
.tfc-timeline { display: flex; flex-direction: column; gap: 0; }

.tfc-tl-row {
  display: grid; grid-template-columns: 1fr 80px 1fr;
  align-items: center; min-height: 52px;
  border-bottom: 1px solid var(--tfc-border);
}
.tfc-tl-row:last-child { border-bottom: none; }
.tfc-tl-row:hover { background: var(--tfc-light); }

.tfc-tl-home-side { padding: 10px 12px 10px 0; text-align: right; }
.tfc-tl-away-side { padding: 10px 0 10px 12px; text-align: left; }

.tfc-tl-center {
  display: flex; flex-direction: column;
  align-items: center; gap: 2px; padding: 6px 0;
}
.tfc-tl-min {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .78rem; font-weight: 700; color: var(--tfc-muted);
}
.tfc-tl-bubble {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.bubble-home { background: var(--tfc-blue); }
.bubble-away { background: #c0202e; }
/* Originálny obrázok loptičky v bubble */
.tfc-tl-ball {
  width: 26px; height: 26px;
  object-fit: cover; border-radius: 50%;
  display: block;
}
.tfc-tl-standing {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .85rem; font-weight: 700; color: var(--tfc-blue);
}

.tfc-tl-event { display: flex; flex-direction: column; gap: 2px; }
.tfc-tl-scorer { font-size: .88rem; font-weight: 600; color: var(--tfc-text); }
.tfc-tl-assist {
  display: flex; align-items: center; gap: 3px;
  font-size: .78rem; color: #555; margin-top: 1px;
}
/* Na home strane je text zarovnaný vpravo — asistencia musí byť zarovnaná tiež vpravo */
.tfc-tl-home-side .tfc-tl-assist { justify-content: flex-end; }
.tfc-tl-away-side .tfc-tl-assist { justify-content: flex-start; }
/* Badge A vždy viditeľný — na home strane za menom, na away strane pred menom */
.tfc-tl-home-side .tfc-tl-a-badge { order: 1; margin-left: 3px; margin-right: 0; }
.tfc-tl-away-side .tfc-tl-a-badge { order: -1; margin-right: 3px; margin-left: 0; }

.tfc-tl-a-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  font-size: .65rem; font-weight: 800;
  color: #fff; flex-shrink: 0;
  font-family: 'Barlow Condensed', sans-serif;
}
.tfc-tl-a-home { background: var(--tfc-blue); }
.tfc-tl-a-away { background: #c0202e; }

/* Loptička v nadpise Góly */
.tfc-title-ball {
  width: 22px; height: 22px;
  object-fit: cover; border-radius: 50%;
  display: inline-block; vertical-align: middle;
  margin-right: 5px; position: relative; top: -1px;
}

/* Súpisky */
.tfc-zap-squads {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 8px;
}
.tfc-squad-table {
  width: 100%; border-collapse: collapse;
  font-size: .84rem; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.tfc-squad-table thead th {
  background: var(--tfc-blue); color: #fff;
  padding: 8px 10px; text-align: left;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
}
.tfc-squad-table td { padding: 8px 10px; border-bottom: 1px solid var(--tfc-border); background: #fff; }
.tfc-squad-table tbody tr:last-child td { border-bottom: none; }
.tfc-squad-table tr.pos-brankar td { background: #f0f9ff; }
.tfc-squad-table tr.pos-brankar .sq-num { color: #0369a1; font-weight: 800; }
.sq-num { font-family: 'Barlow Condensed',sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--tfc-blue); width: 36px; }
.sq-pos { font-size: .78rem; color: var(--tfc-muted); }

/* Detail link v harmonograme a výsledkoch */
.tfc-match-row { grid-template-columns: 52px auto 1fr 64px 1fr 60px; }
.tfc-detail-link {
  font-size: .75rem; color: var(--tfc-blue); text-decoration: none;
  font-weight: 600; white-space: nowrap; text-align: right;
}
.tfc-detail-link:hover { text-decoration: underline; }
.tfc-detail-btn {
  font-size: .75rem; color: var(--tfc-blue); text-decoration: none;
  font-weight: 600; margin-left: auto;
}
.tfc-detail-btn:hover { text-decoration: underline; }
.tfc-result-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; font-size: .77rem; color: var(--tfc-muted); }

@media (max-width: 640px) {
  /* Scoreboard — vertikálny layout: domáci / skóre / hosť */
  .tfc-zap-scoreboard {
    display: flex; flex-direction: column;
    align-items: center; gap: 12px;
  }
  .tfc-zap-team {
    font-size: 1.1rem; gap: 8px;
    width: 100%; justify-content: center; text-align: center;
    overflow: visible; white-space: normal;
  }
  .tfc-zap-team span { white-space: normal; overflow: visible; text-overflow: unset; text-align: center; }
  .tfc-zap-team-away { justify-content: center; text-align: center; }
  .tfc-zap-team-away .tfc-zap-logo { order: 0; }
  .tfc-zap-logo { width: 36px; height: 36px; }
  .tfc-zap-result { text-align: center; width: 100%; }
  .tfc-zap-score { font-size: 2.8rem; }
  .tfc-zap-squads { grid-template-columns: 1fr; }
  .tfc-tl-row { grid-template-columns: 1fr 64px 1fr; }
  .tfc-detail-link, .tfc-detail-btn { display: none; }
  /* Asistencia zarovnaná rovnako ako strelec */
  .tfc-tl-home-side .tfc-tl-event,
  .tfc-tl-away-side .tfc-tl-event { display: flex; flex-direction: column; gap: 1px; }
  .tfc-tl-home-side .tfc-tl-assist { justify-content: flex-end; padding-right: 0; }
  .tfc-tl-away-side .tfc-tl-assist { justify-content: flex-start; padding-left: 0; }
}

/* ══════════════════════════════════════════════════
   Úvodná stránka [tfc_uvod]
   ══════════════════════════════════════════════════ */

.tfc-uvod-wrap {
  font-family: 'Barlow', sans-serif;
  color: var(--tfc-text);
  max-width: 980px;
  margin: 0 auto;
}

/* ══ UVOD — Logo banner (samostatný komponent) ══════ */
.tfc-uvod-logo-banner {
  background: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 36px 60px 32px;
  width: 100%;
  box-shadow: 0 0 0 1px var(--tfc-border),
              0 4px 16px rgba(0,0,0,.10),
              0 1px 0 rgba(0,0,0,.06);
}
.tfc-uvod-main-logo {
  max-width: 780px;
  width: 60%;
  height: auto;
  object-fit: contain;
  display: block;
  padding: 25px;
}

/* ══ UVOD — Hero (modrý blok) ══════════════════════ */
.tfc-uvod-hero {
  position: relative;
  background: linear-gradient(135deg, var(--tfc-blue-dark) 0%, var(--tfc-blue) 60%, var(--tfc-blue-mid) 100%);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

/* Dekoratívny sieťový vzor */
.tfc-uvod-net {
  position: absolute; inset: 0; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0v60M0 30h60M0 0l60 60M60 0L0 60' stroke='%23fff' stroke-width='.8'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

/* Žlté kruhy */
.tfc-uvod-circle { position: absolute; border-radius: 50%; pointer-events: none; }
.tfc-uvod-circle-1 {
  width: 480px; height: 480px; right: -180px; top: -180px;
  background: radial-gradient(circle, rgba(245,200,0,.09) 0%, transparent 65%);
  border: 1px solid rgba(245,200,0,.12);
}
.tfc-uvod-circle-2 {
  width: 280px; height: 280px; right: -60px; top: -60px;
  border: 1px solid rgba(245,200,0,.08);
}

/* ══ Info bar — štatistiky + venue v jednom rade ════ */
.tfc-uvod-info-bar {
  position: relative; z-index: 1;
  display: flex; align-items: stretch;
  min-height: 90px;
}
.tfc-uvod-info-bar-stats {
  display: flex; align-items: stretch; flex: 3;
}
.tfc-uvod-hstat {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; text-align: center;
  padding: 22px 12px;
}
.tfc-uvod-hstat strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.2rem; font-weight: 900;
  color: var(--tfc-yellow); line-height: 1; display: block;
}
.tfc-uvod-hstat span {
  font-size: .66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.6);
}
.tfc-uvod-hstat-sep {
  width: 1px; flex-shrink: 0;
  background: rgba(255,255,255,.12);
  margin: 16px 0;
}

/* Venue+dátum — zvýšená veľkosť písma */
.tfc-uvod-venue-inline {
  flex: 2; display: flex; flex-direction: column;
  justify-content: center; gap: 8px;
  padding: 18px 24px;
}
.tfc-uvod-venue-row {
  display: flex; align-items: flex-start; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.tfc-uvod-venue-row svg { flex-shrink: 0; opacity: .8; margin-top: 2px; }
/* Dátum — žltá */
.tfc-uvod-venue-date {
  color: var(--tfc-yellow);
  font-size: 1.575rem;
  align-items: center;
}
.tfc-uvod-venue-date svg { width: 20px; height: 20px; margin-top: 0; }
/* Miesto — rovnaká farba ako popis v hstat ("Ročník", "Tímov"...) */
.tfc-uvod-venue-place { color: rgba(255,255,255,.6); }
.tfc-uvod-hstat-sep-venue { margin: 0; }

/* ══ Mobile ═════════════════════════════════════════ */
@media (max-width: 640px) {
  .tfc-uvod-logo-banner { padding: 28px 20px 24px; }
  .tfc-uvod-main-logo   { max-width: 100%; width: 85%; }

  /* Info bar: stats v jednom rade, venue pod ním */
  .tfc-uvod-info-bar {
    flex-direction: column;
    min-height: auto;
  }
  .tfc-uvod-info-bar-stats {
    display: flex; align-items: stretch;
  }
  .tfc-uvod-hstat        { padding: 16px 8px; flex: 1; }
  .tfc-uvod-hstat strong { font-size: 1.7rem; }
  .tfc-uvod-hstat span   { font-size: .58rem; }
  .tfc-uvod-hstat-sep    { margin: 12px 0; }

  /* Separátor pred venue — skrytý (venue je v novom riadku) */
  .tfc-uvod-hstat-sep-venue { display: none; }

  /* Venue riadok cez celú šírku pod štatistikami */
  .tfc-uvod-venue-inline {
    flex-direction: row; flex-wrap: wrap;
    gap: 10px 20px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .tfc-uvod-venue-row { font-size: .82rem; }
}

/* ── TÍMY ─────────────────────────────────────────── */
.tfc-uvod-teams-section { margin-top: 0; }
.tfc-uvod-groups-wrap { display: flex; flex-direction: column; gap: 28px; }

.tfc-uvod-group-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.tfc-uvod-group-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .8rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  background: var(--tfc-blue); color: var(--tfc-yellow);
  padding: 4px 13px; border-radius: 4px;
}
.tfc-uvod-group-count {
  font-size: .76rem; color: var(--tfc-muted);
}

/* Grid tímov: 5 kariet v rade */
.tfc-uvod-team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.tfc-uvod-team-card {
  background: #fff;
  border: 1px solid var(--tfc-border);
  border-radius: var(--radius);
  padding: 16px 12px 14px;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  box-shadow: 0 2px 8px rgba(26,58,138,.07);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  animation: tfc-fadein .35s ease both;
}
@keyframes tfc-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.tfc-uvod-team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 22px rgba(26,58,138,.14);
  border-color: var(--tfc-blue);
}

/* Logo – pevná veľkosť 64×64, obrázok orámovaný kruhom */
.tfc-uvod-team-logo-wrap {
  flex-shrink: 0;
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
}
.tfc-uvod-team-logo {
  width: 72px; height: 72px;
  object-fit: contain;
  display: block;
}
.tfc-uvod-team-logo-ph {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tfc-blue), var(--tfc-blue-mid));
  display: flex; align-items: center; justify-content: center;
}
.tfc-uvod-team-logo-ph span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .95rem; font-weight: 900;
  color: var(--tfc-yellow); letter-spacing: .03em;
}

/* Prázdne miesto — prerušovaný border, otáznik */
.tfc-uvod-team-card-empty {
  background: transparent;
  border: 2px dashed var(--tfc-border);
  box-shadow: none;
  opacity: .55;
}
.tfc-uvod-team-card-empty:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--tfc-border);
  cursor: default;
}
.tfc-uvod-team-card-empty .tfc-uvod-team-name {
  color: var(--tfc-muted);
  font-weight: 600;
  font-size: .78rem;
  text-transform: none;
  letter-spacing: 0;
}
.tfc-uvod-team-logo-ph-empty {
  background: var(--tfc-light) !important;
  border: 2px dashed var(--tfc-border);
}
.tfc-uvod-team-logo-ph-empty span {
  color: var(--tfc-muted) !important;
  font-size: 1.6rem !important;
  font-weight: 400 !important;
}
.tfc-uvod-team-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .92rem; font-weight: 800;
  color: var(--tfc-blue); line-height: 1.2;
  text-transform: uppercase; letter-spacing: .02em;
  text-align: center;
  word-break: break-word;
}
.tfc-uvod-team-city {
  font-size: .69rem; color: var(--tfc-muted);
  text-align: center;
  margin-top: -4px;
}

/* ── Responsive pre úvodnú stránku ───────────────── */
@media (max-width: 860px) {
  .tfc-uvod-team-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px) {
  .tfc-uvod-hstat strong { font-size: 1.65rem; }
  .tfc-uvod-team-grid  { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .tfc-uvod-team-grid  { grid-template-columns: repeat(2, 1fr); }
}

/* ── Štatistiky hráčov v detaile zápasu ──────────── */
.tfc-stats-table thead th {
  text-align: center;
}
.tfc-stats-table thead th:nth-child(2) {
  text-align: left;
}
.tfc-stat-val {
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--tfc-muted);
}
.tfc-stat-pos {
  color: var(--tfc-blue);
}
.tfc-stat-pts {
  font-size: 1.1rem; color: var(--tfc-blue-dark);
  font-weight: 900;
}
.tfc-stats-top td {
  background: #fffbea !important;
}
.tfc-stats-top .tfc-stat-pts {
  color: var(--tfc-yellow-dk);
}

/* Názov tímu v štatistikách zápasu */
.tfc-stats-team-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--tfc-blue);
  margin: 0 0 10px;
  padding: 6px 10px;
  background: var(--tfc-light);
  border-left: 3px solid var(--tfc-yellow);
  border-radius: 0 4px 4px 0;
}

/* ── LIVE badge ───────────────────────────────────── */
.tfc-match-row.live {
  background: #fff5f5;
}
.tfc-live-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .75rem; font-weight: 900;
  letter-spacing: .10em;
  color: #fff;
  background: #e02020;
  border-radius: 4px;
  padding: 3px 7px;
  animation: tfc-live-pulse 1.4s ease-in-out infinite;
  white-space: nowrap;
  flex-shrink: 0;
}
@keyframes tfc-live-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .55; }
}
.tfc-score-live {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem; font-weight: 800;
  color: #e02020;
}
.tfc-score-link-live {
  color: #e02020 !important;
  text-decoration: none;
}
.tfc-score-link-live strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem; font-weight: 800;
  color: #e02020;
}


/* ── Lídri kanadského bodovania ──────────────────── */
.tfc-lidri-group { margin-bottom: 0; }

.tfc-lidri-controls {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px; margin-bottom: 14px;
}
.tfc-lidri-filter select {
  padding: 6px 12px;
  border: 1.5px solid var(--tfc-border);
  border-radius: 6px; font-size: .88rem;
  background: #fff; color: var(--tfc-dark);
  font-family: inherit;
}
.tfc-lidri-sort-btns { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tfc-sort-btn {
  padding: 5px 14px; border-radius: 6px;
  border: 1.5px solid var(--tfc-border);
  background: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  cursor: pointer; color: var(--tfc-muted);
  transition: all .15s;
}
.tfc-sort-btn:hover { border-color: var(--tfc-blue); color: var(--tfc-blue); }
.tfc-sort-btn.active { background: var(--tfc-blue); color: #fff; border-color: var(--tfc-blue); }

/* Lídri tabuľka – plne samostatná, nezávisí od .tfc-standings */
.tfc-lidri-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.tfc-lidri-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  /* Pevná šírka zaistí že G/A/B nikdy nezmiznú */
  min-width: 320px;
  table-layout: fixed;
}

/* Pevné šírky stĺpcov */
.tfc-ldt-rank { width: 32px; }
.tfc-ldt-team { width: 180px; } /* dosť pre celý názov tímu na desktop */
.tfc-ldt-stat { width: 36px; }
/* Hráč = zostatok */

/* Na desktop zobraz plný názov tímu */
.tfc-ld-full  { display: inline; font-size: .85rem; }
.tfc-ld-short { display: none; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tfc-lidri-table thead { background: var(--tfc-blue); }
.tfc-lidri-table thead th {
  padding: 10px 6px; color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  text-align: center;
}
.tfc-lidri-table thead .tfc-ldt-name,
.tfc-lidri-table thead .tfc-ldt-team { text-align: left; }
.tfc-ld-pts-head { color: var(--tfc-yellow) !important; }

.tfc-lidri-table tbody td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--tfc-border);
  text-align: center;
  font-size: .88rem;
  background: #fff;
  overflow: hidden;
}
.tfc-lidri-table tbody tr:last-child td { border-bottom: none; }
.tfc-lidri-table tbody tr:hover td { background: var(--tfc-light); }
.tfc-lidri-table tr.rank-1 td { background: #fffbea; }

.tfc-ldt-rank { text-align: center !important; }
.tfc-ldt-name { text-align: left !important; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.tfc-ldt-team { text-align: left !important; }
.tfc-ldt-stat { text-align: center !important; font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 700; }

.tfc-ld-rank-num { font-weight: 800; color: var(--tfc-muted); }
.tfc-ld-rank-num.gold   { color: #d4a000; }
.tfc-ld-rank-num.silver { color: #888; }
.tfc-ld-rank-num.bronze { color: #a0522d; }

.tfc-ld-g { color: var(--tfc-blue); }
.tfc-ld-a { color: var(--tfc-blue); }
.tfc-ld-pts strong { color: var(--tfc-blue); font-size: 1rem; }

.tfc-ld-team-inner { display: flex; align-items: center; gap: 6px; }
.tfc-ld-tlogo { width: 20px; height: 20px; object-fit: contain; border-radius: 2px; flex-shrink: 0; }
.tfc-ldt-team { padding-left: 4px !important; }

/* ── Propozície – force font override ────────────── */
#tfc-propozicie,
#tfc-propozicie * {
  font-family: 'Barlow', sans-serif !important;
}
#tfc-propozicie .tfc-rules h3,
#tfc-propozicie .tfc-section-title {
  font-family: 'Barlow Condensed', sans-serif !important;
}
#tfc-propozicie .tfc-info-card strong {
  font-family: 'Barlow Condensed', sans-serif !important;
}
#tfc-propozicie .tfc-pdf-download,
#tfc-propozicie .tfc-pdf-download * {
  font-family: 'Barlow Condensed', sans-serif !important;
}

@media (max-width: 640px) {
  .tfc-pdf-download {
    display: flex; width: 100%; box-sizing: border-box;
    justify-content: center;
    font-size: 1rem; padding: 12px 24px;
  }
}

/* ── Skóre v detaile zápasu – nikdy nezalamuj ─────── */
.tfc-zap-result { min-width: 80px; }
.tfc-zap-score {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow: visible !important;
}
@media (max-width: 380px) {
  .tfc-zap-score { font-size: 2rem !important; }
  .tfc-zap-team  { font-size: .85rem; }
  .tfc-zap-logo  { width: 28px !important; height: 28px !important; }
}

/* Solo match row (bez time a badge stĺpcov - pre 3./9. miesto) */
.tfc-match-row-solo {
  grid-template-columns: 1fr 64px 1fr;
}
.tfc-match-row-solo.live {
  grid-template-columns: 34px 1fr 64px 1fr;
}

/* ── Lídri – mobile ──────────────────────────────── */
@media (max-width: 640px) {
  .tfc-lidri-controls { flex-direction: column; align-items: flex-start; }
  .tfc-lidri-sort-btns { margin-left: 0; }
  /* Na mobile: skryj plný názov, zobraz logo + skratku */
  .tfc-ld-full  { display: none; }
  .tfc-ld-short { display: inline; }
  .tfc-ldt-team { width: 52px; }
  .tfc-ldt-stat { width: 30px; }
  .tfc-lidri-table tbody td { padding: 8px 4px; font-size: .8rem; }
  .tfc-ldt-stat { font-size: .9rem; }
  .tfc-ld-tlogo { width: 16px; height: 16px; }
  /* Solo match row na mobile */
  .tfc-match-row-solo { grid-template-columns: 1fr 50px 1fr; }
}

/* ── Harmonogram filter ───────────────────────────── */
.tfc-harm-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 20px; align-items: center;
}
.tfc-harm-filters select {
  padding: 7px 12px; border: 1.5px solid var(--tfc-border);
  border-radius: 6px; font-size: .88rem; font-family: inherit;
  background: #fff; color: var(--tfc-dark);
  min-width: 160px;
}
.tfc-harm-reset {
  padding: 6px 14px; border-radius: 6px;
  border: 1.5px solid var(--tfc-border);
  background: #fff; font-family: 'Barlow Condensed', sans-serif;
  font-size: .85rem; font-weight: 700; text-transform: uppercase;
  cursor: pointer; color: var(--tfc-muted);
  display: none;
}
.tfc-harm-reset:hover { border-color: var(--tfc-blue); color: var(--tfc-blue); }

/* ── Zapas detail – round label ──────────────────── */
.tfc-zap-round-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .95rem; font-weight: 700;
  color: var(--tfc-yellow);
  text-transform: uppercase; letter-spacing: .04em;
}

/* ── Tim detail ───────────────────────────────────── */
.tfc-tim-header {
  display: flex; align-items: center; gap: 28px;
  background: var(--tfc-blue); border-radius: var(--radius);
  padding: 28px 32px; margin-bottom: 32px;
  box-shadow: var(--shadow-lg);
}
.tfc-tim-logo {
  width: 80px; height: 80px; object-fit: contain;
  border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,.08); padding: 6px;
}
.tfc-tim-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.4rem; font-weight: 900;
  color: #fff; text-transform: uppercase;
  letter-spacing: .03em; margin: 0 0 8px;
  line-height: 1.05;
}
.tfc-tim-city { color: rgba(255,255,255,.65); font-size: .88rem; margin: 6px 0 0; }

/* Súpiska na detaile tímu – bez min-width pretečenia */
#tfc-tim-detail .tfc-lidri-table { min-width: 0; width: 100%; }
#tfc-tim-detail .tfc-lidri-scroll { overflow-x: hidden; }
#tfc-tim-detail .tfc-ldt-stat { width: 32px; }

.tfc-score-won  strong { color: #16a34a !important; }
.tfc-score-lost strong { color: #dc2626 !important; }

/* Link na tím v tabuľke */
.tfc-team-link { color: inherit; text-decoration: none; }
.tfc-team-link:hover { color: var(--tfc-blue); text-decoration: underline; }

/* Klikateľná karta tímu na úvode */
a.tfc-uvod-team-card { cursor: pointer; }
a.tfc-uvod-team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

@media (max-width: 640px) {
  .tfc-harm-filters { flex-direction: column; align-items: stretch; }
  .tfc-harm-filters select { min-width: 0; width: 100%; }
  .tfc-tim-header { flex-direction: column; text-align: center; padding: 20px 18px; gap: 16px; }
  .tfc-tim-logo { width: 80px; height: 80px; }
  .tfc-tim-name { font-size: 1.8rem; }
}

/* ── Partneri ────────────────────────────────────── */
.tfc-partneri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  justify-items: center;
}
.tfc-partner-card {
  background: #fff;
  border: 1px solid var(--tfc-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 28px 28px;
  transition: transform .18s, box-shadow .18s;
  min-height: 240px;
  width: 100%;
}
.tfc-partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tfc-partner-link {
  display: flex; flex-direction: column;
  align-items: center; text-decoration: none; width: 100%;
}
.tfc-partner-logo {
  max-width: 280px; max-height: 160px;
  width: auto; height: auto;
  object-fit: contain; display: block;
  margin-bottom: 18px;
}
.tfc-partner-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--tfc-muted); text-align: center;
  margin-top: 6px;
}
.tfc-partner-name-only {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem; font-weight: 800;
  color: var(--tfc-blue); text-align: center;
}

@media (max-width: 640px) {
  .tfc-partneri-grid    { grid-template-columns: 1fr; gap: 16px; justify-items: center; }
  .tfc-partner-card     { padding: 28px 20px 22px; min-height: 180px; align-items: center; text-align: center; width: 100%; max-width: 360px; }
  .tfc-partner-link     { align-items: center; }
  .tfc-partner-logo     { max-width: 220px; max-height: 130px; margin-bottom: 14px; margin-left: auto; margin-right: auto; }
  .tfc-partner-name     { font-size: .95rem; text-align: center; width: 100%; }
  .tfc-partner-name-only { text-align: center; width: 100%; }
}
