/* =========================================================
   MyFootball — SFV / Swiss Football design system
   Grounded in: SBB railway-clock precision, scoreboard type,
   thin structural rules instead of card-shadow decoration.
   ========================================================= */

:root {
  /* Color */
  --mf-red: #D91E36;
  --mf-red-deep: #A80F26;
  --mf-ink: #171416;
  --mf-ink-soft: #2A2E33;
  --mf-paper: #F5F4F1;
  --mf-paper-raised: #FFFFFF;
  --mf-slate: #5B6470;
  --mf-slate-line: #E4E1DB;
  --mf-live: #1E8E5A;
  --mf-gold: #B9903E;

  /* Type: bold sans throughout, condensed reserved for scoreboard digits */
  --mf-font-display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mf-font-score: "Oswald", "Arial Narrow", sans-serif;
  --mf-font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --mf-header-h: 60px;
  --mf-radius: 14px;
  --mf-radius-sm: 8px;
  --mf-gap: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--mf-paper);
  color: var(--mf-ink);
  font-family: var(--mf-font-body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header ---------- */

.mf-header {
  height: var(--mf-header-h);
  background: var(--mf-ink);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 3px solid var(--mf-red);
}

.mf-logo {
  font-family: var(--mf-font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.3px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.mf-logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.mf-logo-fallback {
  display: none;
  align-items: baseline;
  gap: 6px;
  font-family: var(--mf-font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.3px;
}

.mf-logo .mark {
  width: 10px;
  height: 10px;
  background: var(--mf-red);
  display: inline-block;
  border-radius: 50%;
  transform: translateY(-2px);
}

.mf-logo .sub {
  font-family: var(--mf-font-body);
  font-weight: 400;
  font-size: 11px;
  color: var(--mf-slate-line);
  letter-spacing: 0.5px;
}

.mf-nav {
  display: flex;
  gap: 26px;
  font-size: 13.5px;
  font-weight: 500;
  flex: 1;
  overflow-x: auto;
}

.mf-nav a {
  color: rgba(255,255,255,0.72);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s;
}

.mf-nav a.active,
.mf-nav a:hover {
  color: #fff;
  border-bottom-color: var(--mf-red);
}

.mf-search {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--mf-radius);
  color: #fff;
  padding: 7px 12px;
  font-size: 13px;
  width: 190px;
}
.mf-search::placeholder { color: rgba(255,255,255,0.4); }

/* ---------- Hero band ---------- */

.mf-hero {
  background: linear-gradient(155deg, var(--mf-red) 0%, var(--mf-red-deep) 100%);
  color: #fff;
  padding: 30px 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mf-hero-text h1 {
  font-family: var(--mf-font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: -0.2px;
  margin: 0 0 8px;
  max-width: 480px;
}

.mf-hero-text p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  max-width: 420px;
}

.mf-hero-live {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--mf-radius-sm);
  padding: 12px 18px;
  text-align: center;
  flex-shrink: 0;
}

.mf-hero-live .count {
  font-family: var(--mf-font-score);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.mf-hero-live .label {
  font-size: 10.5px;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
}

@media (max-width: 640px) {
  .mf-hero { padding: 24px 16px 22px; }
  .mf-hero-text h1 { font-size: 22px; }
  .mf-hero-live { display: none; }
}

/* ---------- Date strip (SBB-clock inspired) ---------- */

.mf-datestrip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--mf-paper-raised);
  border-bottom: 1px solid var(--mf-slate-line);
  padding: 10px 12px;
  font-family: var(--mf-font-score);
}

.mf-datestrip .arrow {
  color: var(--mf-slate);
  font-size: 15px;
  padding: 4px 10px;
  cursor: pointer;
}

.mf-datestrip .day {
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--mf-slate);
  padding: 4px 12px;
  cursor: pointer;
}

.mf-datestrip .day.today {
  color: #fff;
  background: var(--mf-red);
  border-radius: var(--mf-radius);
  padding: 4px 14px;
}

/* ---------- Page grid ---------- */

.mf-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0,1fr) 260px;
  gap: var(--mf-gap);
  padding: var(--mf-gap) 16px 60px;
  align-items: start;
}

.mf-panel {
  background: var(--mf-paper-raised);
  border: 1px solid var(--mf-slate-line);
  border-radius: var(--mf-radius);
}

.mf-panel-title {
  font-family: var(--mf-font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
  color: var(--mf-ink);
  padding: 14px 16px 11px;
  border-bottom: 1px solid var(--mf-slate-line);
}

/* ---------- Sidebar: competitions ---------- */

.mf-comp-list { list-style: none; margin: 0; padding: 6px 0; }
.mf-comp-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--mf-ink-soft);
  border-left: 3px solid transparent;
}
.mf-comp-list li a:hover { background: var(--mf-paper); }
.mf-comp-list li a.active {
  border-left-color: var(--mf-red);
  background: var(--mf-paper);
  font-weight: 600;
}
.mf-comp-list .crest {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--mf-slate-line);
  flex-shrink: 0;
}

/* ---------- Filters row ---------- */

.mf-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.mf-filters button {
  font-family: var(--mf-font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 7px 14px;
  border-radius: var(--mf-radius);
  border: 1px solid var(--mf-slate-line);
  background: var(--mf-paper-raised);
  color: var(--mf-slate);
  cursor: pointer;
}

.mf-filters button.active {
  background: var(--mf-ink);
  border-color: var(--mf-ink);
  color: #fff;
}

.mf-filters button .dot-live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mf-live);
  display: inline-block;
  margin-right: 5px;
}

/* ---------- Competition group ---------- */

.mf-comp-group { margin-bottom: 18px; }

.mf-comp-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 2px solid var(--mf-red);
}

.mf-comp-head .crest {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--mf-slate-line);
}

.mf-comp-head .country {
  font-size: 10.5px;
  letter-spacing: 0.8px;
  color: var(--mf-slate);
  display: block;
}

.mf-comp-head .name {
  font-family: var(--mf-font-score);
  font-size: 14.5px;
  letter-spacing: 0.3px;
}

.mf-comp-head .round {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--mf-slate);
}

/* ---------- Match row ---------- */

.mf-match {
  display: grid;
  grid-template-columns: 52px 1fr 44px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--mf-slate-line);
  gap: 10px;
}
.mf-match:last-child { border-bottom: none; }
.mf-match:hover { background: var(--mf-paper); }

.mf-match .clock {
  font-family: var(--mf-font-score);
  font-size: 14px;
  color: var(--mf-slate);
  text-align: center;
}

.mf-match.is-live .clock {
  color: var(--mf-live);
  font-weight: 600;
}

.mf-match.is-live .clock::before {
  content: "";
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mf-live);
  margin: 0 auto 3px;
  animation: mf-pulse 1.4s infinite;
}

@keyframes mf-pulse {
  0% { opacity: 1; }
  50% { opacity: 0.25; }
  100% { opacity: 1; }
}

.mf-teams { min-width: 0; }

.mf-team-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  padding: 2px 0;
}

.mf-team-row .crest {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--mf-ink-soft);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mf-team-row .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.mf-team-row .card {
  font-size: 10px;
  color: var(--mf-red);
  border: 1px solid var(--mf-red);
  width: 10px; height: 13px;
  display: inline-block;
  border-radius: 1px;
}

.mf-score {
  font-family: var(--mf-font-score);
  text-align: right;
}
.mf-score .n {
  display: block;
  font-size: 15px;
  padding: 2px 0;
}
.mf-match.is-live .mf-score .n { color: var(--mf-live); font-weight: 600; }
.mf-match.is-upcoming .mf-score .n { color: var(--mf-slate-line); }

/* ---------- Right sidebar ---------- */

.mf-side-block { padding: 12px 14px; border-bottom: 1px solid var(--mf-slate-line); }
.mf-side-block:last-child { border-bottom: none; }

.mf-fav-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 0;
}
.mf-fav-row .crest { width: 18px; height: 18px; border-radius: 50%; background: var(--mf-slate-line); }

.mf-mini-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.mf-mini-table th {
  text-align: left;
  font-weight: 500;
  color: var(--mf-slate);
  font-size: 10.5px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--mf-slate-line);
}
.mf-mini-table td { padding: 6px 4px; border-bottom: 1px solid var(--mf-slate-line); }
.mf-mini-table td.pos { color: var(--mf-slate); width: 18px; }
.mf-mini-table tr:last-child td { border-bottom: none; }
.mf-mini-table td.pts { font-weight: 700; text-align: right; }
.mf-mini-table tr.promo td.pos { color: var(--mf-live); font-weight: 700; }
.mf-mini-table tr.relegate td.pos { color: var(--mf-red); font-weight: 700; }

/* ---------- Match detail page ---------- */

.mf-breadcrumb {
  max-width: 900px;
  margin: 18px auto 0;
  padding: 0 16px;
  font-size: 12.5px;
  color: var(--mf-slate);
}
.mf-breadcrumb a { color: var(--mf-slate); }
.mf-breadcrumb a:hover { color: var(--mf-ink); }

.mf-match-header {
  max-width: 900px;
  margin: 12px auto 0;
  padding: 24px 16px 20px;
  background: linear-gradient(155deg, var(--mf-red) 0%, var(--mf-red-deep) 100%);
  color: #fff;
  border-radius: var(--mf-radius);
}

.mf-mh-meta {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.3px;
  margin-bottom: 18px;
}
.mf-mh-meta .comp { font-weight: 700; color: #fff; }

.mf-mh-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.mf-mh-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.mf-mh-team .crest {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mf-font-score);
  font-size: 17px;
  font-weight: 600;
}

.mf-mh-team .name {
  font-family: var(--mf-font-display);
  font-weight: 700;
  font-size: 15px;
}

.mf-mh-team .redcard {
  font-size: 10.5px;
  color: #FFD9DC;
}

.mf-mh-score {
  text-align: center;
}
.mf-mh-score .n {
  font-family: var(--mf-font-score);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
}
.mf-mh-score .status {
  margin-top: 8px;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.16);
  border-radius: 20px;
  padding: 4px 12px;
  display: inline-block;
}
.mf-mh-score .status.is-live {
  background: #fff;
  color: var(--mf-live);
  font-weight: 700;
}
.mf-mh-score .status.is-live::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mf-live);
  margin-right: 5px;
  animation: mf-pulse 1.4s infinite;
}

.mf-mh-venue {
  text-align: center;
  font-size: 11.5px;
  color: rgba(255,255,255,0.75);
  margin-top: 16px;
}

/* Tabs */

.mf-tabs {
  max-width: 900px;
  margin: 18px auto 0;
  padding: 0 16px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--mf-slate-line);
}

.mf-tab-btn {
  font-family: var(--mf-font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--mf-slate);
  background: none;
  border: none;
  padding: 12px 14px;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.mf-tab-btn.active {
  color: var(--mf-ink);
  border-bottom-color: var(--mf-red);
}

.mf-tab-panel {
  max-width: 900px;
  margin: 18px auto 60px;
  padding: 0 16px;
  display: none;
}
.mf-tab-panel.active { display: block; }

/* Overview */

.mf-ov-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  background: var(--mf-paper-raised);
  border: 1px solid var(--mf-slate-line);
  border-radius: var(--mf-radius);
  padding: 18px 20px;
}
.mf-ov-grid .row { display: flex; justify-content: space-between; font-size: 13px; border-bottom: 1px solid var(--mf-slate-line); padding-bottom: 8px; }
.mf-ov-grid .row .k { color: var(--mf-slate); }
.mf-ov-grid .row .v { font-weight: 600; }

/* Timeline */

.mf-timeline { background: var(--mf-paper-raised); border: 1px solid var(--mf-slate-line); border-radius: var(--mf-radius); padding: 6px 0; }
.mf-tl-item { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--mf-slate-line); font-size: 13.5px; }
.mf-tl-item:last-child { border-bottom: none; }
.mf-tl-min { font-family: var(--mf-font-score); font-size: 13px; color: var(--mf-slate); width: 34px; flex-shrink: 0; }
.mf-tl-ic { width: 20px; text-align: center; flex-shrink: 0; }
.mf-tl-ic.goal::before { content: "⚽"; }
.mf-tl-ic.yellow::before { content: ""; display: inline-block; width: 10px; height: 14px; background: #E8B92B; border-radius: 1px; }
.mf-tl-ic.red::before { content: ""; display: inline-block; width: 10px; height: 14px; background: var(--mf-red); border-radius: 1px; }
.mf-tl-ic.substitution::before { content: "⇄"; color: var(--mf-live); font-weight: 700; }
.mf-tl-ic.var::before { content: "VAR"; font-size: 9px; font-weight: 700; color: var(--mf-slate); }
.mf-tl-text .player { font-weight: 600; }
.mf-tl-text .detail { color: var(--mf-slate); font-size: 12.5px; }
.mf-tl-item.away-side { flex-direction: row-reverse; text-align: right; }

/* Statistics */

.mf-stats { background: var(--mf-paper-raised); border: 1px solid var(--mf-slate-line); border-radius: var(--mf-radius); padding: 18px 20px; }
.mf-stat-row { margin-bottom: 16px; }
.mf-stat-row:last-child { margin-bottom: 0; }
.mf-stat-labels { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.mf-stat-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--mf-slate-line); }
.mf-stat-bar .home { background: var(--mf-red); }
.mf-stat-bar .away { background: var(--mf-ink); }
.mf-stat-name { text-align: center; font-size: 11.5px; color: var(--mf-slate); margin-top: 4px; letter-spacing: 0.3px; }

/* Lineups */

.mf-lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mf-lineup-col { background: var(--mf-paper-raised); border: 1px solid var(--mf-slate-line); border-radius: var(--mf-radius); padding: 16px 18px; }
.mf-lineup-col h3 { font-family: var(--mf-font-display); font-size: 14px; margin: 0 0 4px; }
.mf-lineup-col .formation { font-size: 12px; color: var(--mf-slate); margin-bottom: 12px; }
.mf-lineup-col ol { margin: 0; padding-left: 20px; font-size: 13px; }
.mf-lineup-col li { padding: 3px 0; }
.mf-lineup-col .subs-title { font-size: 11px; letter-spacing: 0.4px; color: var(--mf-slate); margin: 14px 0 6px; }
@media (max-width: 640px) { .mf-lineups { grid-template-columns: 1fr; } }

/* Table (full) */

.mf-full-table { width: 100%; border-collapse: collapse; background: var(--mf-paper-raised); border: 1px solid var(--mf-slate-line); border-radius: var(--mf-radius); overflow: hidden; font-size: 13px; }
.mf-full-table th { text-align: left; font-size: 11px; color: var(--mf-slate); font-weight: 600; padding: 10px 8px; border-bottom: 1px solid var(--mf-slate-line); }
.mf-full-table td { padding: 9px 8px; border-bottom: 1px solid var(--mf-slate-line); }
.mf-full-table tr:last-child td { border-bottom: none; }
.mf-full-table td.pts { font-weight: 700; }
.mf-full-table tr.promo td:first-child { color: var(--mf-live); font-weight: 700; }
.mf-full-table tr.relegate td:first-child { color: var(--mf-red); font-weight: 700; }
.mf-full-table tr.this-match { background: var(--mf-paper); }

/* H2H */

.mf-h2h-list { background: var(--mf-paper-raised); border: 1px solid var(--mf-slate-line); border-radius: var(--mf-radius); }
.mf-h2h-item { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 10px; padding: 11px 18px; border-bottom: 1px solid var(--mf-slate-line); font-size: 13px; }
.mf-h2h-item:last-child { border-bottom: none; }
.mf-h2h-item .date { color: var(--mf-slate); font-size: 12px; }
.mf-h2h-item .comp { color: var(--mf-slate); font-size: 11px; display: block; }
.mf-h2h-item .score { font-family: var(--mf-font-score); font-weight: 600; }

/* ---------- League detail page ---------- */

.mf-league-header {
  max-width: 900px;
  margin: 18px auto 0;
  padding: 26px 20px 22px;
  background: linear-gradient(155deg, var(--mf-red) 0%, var(--mf-red-deep) 100%);
  color: #fff;
  border-radius: var(--mf-radius);
  display: flex;
  align-items: center;
  gap: 18px;
}

.mf-league-header .crest {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  flex-shrink: 0;
}

.mf-league-header .meta {
  font-size: 11.5px;
  letter-spacing: 0.4px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 4px;
}

.mf-league-header h1 {
  font-family: var(--mf-font-display);
  font-weight: 700;
  font-size: 24px;
  margin: 0;
}

/* Standings table extras */

.mf-form-dots { display: flex; gap: 3px; }
.mf-form-dots span {
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: 9.5px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mf-form-dots .S { background: var(--mf-live); }
.mf-form-dots .U { background: var(--mf-slate); }
.mf-form-dots .N { background: var(--mf-red); }

.mf-zone-legend {
  display: flex;
  gap: 18px;
  font-size: 11.5px;
  color: var(--mf-slate);
  padding: 10px 4px 0;
}
.mf-zone-legend span { display: flex; align-items: center; gap: 6px; }
.mf-zone-legend .sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.mf-zone-legend .promo-sw { background: var(--mf-live); }
.mf-zone-legend .relegate-sw { background: var(--mf-red); }

/* Team grid */

.mf-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.mf-team-card {
  background: var(--mf-paper-raised);
  border: 1px solid var(--mf-slate-line);
  border-radius: var(--mf-radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mf-team-card .crest {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--mf-ink-soft);
  color: #fff;
  font-family: var(--mf-font-score);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mf-team-card .name { font-size: 13.5px; font-weight: 600; }
.mf-team-card .city { font-size: 11.5px; color: var(--mf-slate); }

/* Top scorers */

.mf-scorers-list { background: var(--mf-paper-raised); border: 1px solid var(--mf-slate-line); border-radius: var(--mf-radius); }
.mf-scorer-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--mf-slate-line);
  font-size: 13.5px;
}
.mf-scorer-row:last-child { border-bottom: none; }
.mf-scorer-row .rank { font-family: var(--mf-font-score); color: var(--mf-slate); font-size: 14px; }
.mf-scorer-row .rank.top1 { color: var(--mf-gold); font-weight: 700; }
.mf-scorer-row .player { font-weight: 600; }
.mf-scorer-row .team { color: var(--mf-slate); font-size: 11.5px; display: block; }
.mf-scorer-row .goals { font-family: var(--mf-font-score); font-weight: 700; font-size: 15px; }

/* League stats grid */

.mf-league-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.mf-league-stat-card {
  background: var(--mf-paper-raised);
  border: 1px solid var(--mf-slate-line);
  border-radius: var(--mf-radius);
  padding: 16px;
  text-align: center;
}
.mf-league-stat-card .num { font-family: var(--mf-font-score); font-size: 24px; font-weight: 600; }
.mf-league-stat-card .lbl { font-size: 11.5px; color: var(--mf-slate); margin-top: 4px; }

/* Round group heading inside matches tab */

.mf-round-label {
  font-family: var(--mf-font-display);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--mf-slate);
  padding: 14px 4px 8px;
}
.mf-round-label:first-child { padding-top: 0; }


.mf-bottomnav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--mf-ink);
  border-top: 3px solid var(--mf-red);
  z-index: 20;
}
.mf-bottomnav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
}
.mf-bottomnav li { flex: 1; text-align: center; }
.mf-bottomnav a {
  display: block;
  padding: 9px 4px 8px;
  color: rgba(255,255,255,0.6);
  font-size: 10.5px;
  letter-spacing: 0.3px;
}
.mf-bottomnav a.active { color: #fff; }
.mf-bottomnav .ic {
  display: block;
  width: 18px; height: 18px;
  margin: 0 auto 3px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .mf-layout { grid-template-columns: 200px minmax(0,1fr); }
  .mf-right { display: none; }
}

@media (max-width: 768px) {
  .mf-layout { grid-template-columns: 1fr; padding-bottom: 76px; }
  .mf-left { display: none; }
  .mf-nav { display: none; }
  .mf-search { display: none; }
  .mf-bottomnav { display: block; }
  .mf-header { padding: 0 14px; }
}
