/* FootBleu V1 — /matchs/ day strip + one-match cards
 * Scope strict : .fbl-page--matches uniquement.
 * LIVE reste un onglet exclusif ; les dates lointaines passent par ?vue=calendrier&date=.
 */

.fbl-page--matches{
  --fbm-blue:#1677f2;
  --fbm-blue-2:#0e63d5;
  --fbm-navy:#10243d;
  --fbm-muted:#71849a;
  --fbm-line:rgba(31,78,121,.12);
  --fbm-card:#fff;
  --fbm-soft:#f6f9fd;
  --fbm-live:#ef3340;
  --fbm-done:#16a34a;
  --fbm-warn:#f59e0b;
  --fbm-cancel:#64748b;
}
[data-theme="dark"] .fbl-page--matches{
  --fbm-navy:#eef5ff;
  --fbm-muted:#8ea1ba;
  --fbm-line:rgba(148,163,184,.16);
  --fbm-card:#0e1b2c;
  --fbm-soft:#0a1625;
}

/* Titre compact. */
.fbl-page--matches .fbl-matches-head{
  padding:22px 0 12px;
  background:radial-gradient(circle at 20% 0,rgba(47,129,247,.08),transparent 42%);
}
.fbl-page--matches .fbl-matches-head h1{
  margin:0;
  font-size:clamp(26px,4vw,34px);
  line-height:1.1;
  letter-spacing:-.025em;
}

/* ── Rangée LIVE + jours + Autre date ── */
.fbl-page--matches .fbl-mtabs__list.fbl-daystrip{
  display:flex;
  align-items:stretch;
  gap:8px;
  margin:0 0 18px;
  padding:6px 1px 8px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x proximity;
}
.fbl-page--matches .fbl-daystrip::-webkit-scrollbar{display:none}
.fbl-page--matches .fbl-daystrip__tabs{display:contents}

.fbl-page--matches .fbl-daychip{
  position:relative;
  flex:0 0 auto;
  min-width:88px;
  min-height:58px;
  padding:8px 13px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  border:1px solid var(--fbm-line);
  border-radius:14px;
  background:var(--fbm-card);
  color:var(--fbm-navy);
  text-decoration:none;
  box-shadow:0 3px 12px rgba(15,35,61,.035);
  scroll-snap-align:center;
  font-family:inherit;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.fbl-page--matches button.fbl-daychip{
  flex-direction:column;
  text-transform:none;
  opacity:1;
  transform:none;
}
.fbl-page--matches .fbl-daychip:hover{transform:translateY(-1px);border-color:rgba(22,119,242,.35)}
.fbl-page--matches .fbl-daychip.is-active{
  color:#fff;
  background:linear-gradient(180deg,var(--fbm-blue),var(--fbm-blue-2));
  border-color:var(--fbm-blue);
  box-shadow:0 8px 22px rgba(22,119,242,.22),inset 0 1px 0 rgba(255,255,255,.18);
}
.fbl-page--matches .fbl-daychip.is-active::after{display:none}
.fbl-daychip__word{font-size:12px;font-weight:800;line-height:1.1;white-space:nowrap}
.fbl-daychip__num{font-size:18px;font-weight:900;line-height:1;font-variant-numeric:tabular-nums}

.fbl-page--matches .fbl-daychip[data-view="live"]{
  min-width:98px;
  flex-direction:row;
  gap:8px;
}
.fbl-page--matches .fbl-daychip[data-view="live"] .fbl-daychip__word{font-size:13px}
.fbl-page--matches .fbl-mtabs__dot{
  width:9px;height:9px;border-radius:50%;background:var(--fbm-live);flex:0 0 9px;
}
.fbl-page--matches .fbl-mtabs__n{
  min-width:20px;height:20px;padding:0 6px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:99px;background:rgba(22,119,242,.09);
  color:#51708f;font-size:10px;font-weight:900;
}
.fbl-page--matches .fbl-daychip.is-active .fbl-mtabs__n{background:rgba(255,255,255,.22);color:#fff}
.fbl-page--matches .fbl-daychip[data-view="live"] .fbl-mtabs__n{background:rgba(239,51,64,.12);color:var(--fbm-live)}
.fbl-page--matches .fbl-daychip[data-view="live"].is-active .fbl-mtabs__n{background:rgba(255,255,255,.22);color:#fff}

.fbl-page--matches .fbl-daychip--link{flex-direction:column}
.fbl-page--matches .fbl-daychip--other{
  min-width:116px;
  flex-direction:row;
  gap:8px;
  overflow:hidden;
  user-select:none;
}
.fbl-page--matches .fbl-daychip--other svg{flex:0 0 auto}

/* ── Sélecteur de date FootBleu ── */
body.fbl-date-modal-open{overflow:hidden}
.fbl-date-modal[hidden]{display:none!important}
.fbl-date-modal{position:fixed;inset:0;z-index:10050;display:flex;align-items:flex-end;justify-content:center;padding:0}
.fbl-date-modal__backdrop{position:absolute;inset:0;background:rgba(5,16,31,.52);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.fbl-date-dialog{
  position:relative;z-index:1;width:min(100%,520px);max-height:min(86vh,720px);overflow:auto;
  background:var(--fbm-card);color:var(--fbm-navy);border:1px solid var(--fbm-line);
  border-radius:24px 24px 0 0;box-shadow:0 -18px 60px rgba(7,24,47,.22);
  transform:translateY(18px);opacity:0;transition:transform .18s ease,opacity .18s ease;
}
.fbl-date-modal.is-open .fbl-date-dialog{transform:translateY(0);opacity:1}
.fbl-date-dialog__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px 16px;border-bottom:1px solid var(--fbm-line)}
.fbl-date-dialog__head h2{margin:0;font-size:18px;line-height:1.2;letter-spacing:-.02em;color:var(--fbm-navy)}
.fbl-date-dialog__close,.fbl-date-dialog__monthnav button{
  width:40px;height:40px;padding:0;border:0;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;
  background:transparent;color:var(--fbm-navy);cursor:pointer;font-family:inherit;transition:background .15s ease,color .15s ease
}
.fbl-date-dialog__close:hover,.fbl-date-dialog__monthnav button:hover{background:rgba(22,119,242,.08);color:var(--fbm-blue)}
.fbl-date-dialog__body{padding:16px 18px 10px}
.fbl-date-dialog__monthnav{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:8px;margin-bottom:12px}
.fbl-date-dialog__monthnav strong{text-align:center;font-size:16px;font-weight:900;color:var(--fbm-navy);text-transform:capitalize}
.fbl-date-dialog__week,.fbl-date-dialog__grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.fbl-date-dialog__week{margin-bottom:6px}
.fbl-date-dialog__week span{height:32px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:var(--fbm-muted)}
.fbl-date-dialog__day{
  position:relative;aspect-ratio:1/1;min-height:40px;padding:0;border:0;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:transparent;color:var(--fbm-navy);font:800 13px/1 inherit;cursor:pointer;transition:background .14s ease,color .14s ease,box-shadow .14s ease
}
.fbl-date-dialog__day:hover{background:rgba(22,119,242,.08)}
.fbl-date-dialog__day.is-outside{color:color-mix(in srgb,var(--fbm-muted) 52%,transparent)}
.fbl-date-dialog__day.is-today:not(.is-selected){box-shadow:inset 0 0 0 1.5px rgba(22,119,242,.42);color:var(--fbm-blue)}
.fbl-date-dialog__day.is-selected{background:linear-gradient(180deg,var(--fbm-blue),var(--fbm-blue-2));color:#fff;box-shadow:0 6px 16px rgba(22,119,242,.24)}
.fbl-date-dialog__foot{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px 18px calc(16px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--fbm-line)}
.fbl-date-dialog__today,.fbl-date-dialog__apply{
  min-height:46px;border-radius:12px;padding:10px 14px;font:800 13px/1 inherit;cursor:pointer;transition:transform .14s ease,box-shadow .14s ease,background .14s ease
}
.fbl-date-dialog__today{background:var(--fbm-card);border:1px solid rgba(22,119,242,.46);color:var(--fbm-blue)}
.fbl-date-dialog__apply{background:linear-gradient(180deg,var(--fbm-blue),var(--fbm-blue-2));border:1px solid var(--fbm-blue);color:#fff;box-shadow:0 8px 18px rgba(22,119,242,.18)}
.fbl-date-dialog__today:active,.fbl-date-dialog__apply:active{transform:scale(.985)}
.fbl-date-noscript{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 16px;padding:12px;border:1px solid var(--fbm-line);border-radius:12px;background:var(--fbm-card)}
.fbl-date-noscript input,.fbl-date-noscript button{font:inherit}

@media(min-width:700px){
  .fbl-date-modal{align-items:center;padding:24px}
  .fbl-date-dialog{border-radius:22px;box-shadow:0 22px 70px rgba(7,24,47,.25);transform:translateY(8px) scale(.99)}
  .fbl-date-modal.is-open .fbl-date-dialog{transform:translateY(0) scale(1)}
}

/* ── Sections Aujourd'hui / Live ── */
.fbl-matchsection{
  margin:0 0 14px;
  padding:14px;
  border:1px solid var(--fbm-line);
  border-radius:18px;
  background:color-mix(in srgb,var(--fbm-card) 96%,transparent);
}
.fbl-matchsection>header{
  display:flex;align-items:center;gap:10px;
  padding:2px 4px 12px;
}
.fbl-matchsection>header>span:last-child{display:flex;flex-direction:column;gap:2px}
.fbl-matchsection>header strong{font-size:17px;line-height:1.15;color:var(--fbm-navy)}
.fbl-matchsection>header em{font-style:normal;font-size:11.5px;color:var(--fbm-muted)}
.fbl-matchsection__icon{
  width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 26px;font-size:13px;font-weight:900;color:var(--fbm-blue);background:rgba(22,119,242,.09);
}
.fbl-matchsection--live .fbl-matchsection__icon{color:var(--fbm-live);background:rgba(239,51,64,.10)}
.fbl-matchsection--done .fbl-matchsection__icon{color:var(--fbm-done);background:rgba(22,163,74,.10)}
.fbl-matchsection--late .fbl-matchsection__icon{color:var(--fbm-warn);background:rgba(245,158,11,.11)}
.fbl-matchcards{display:flex;flex-direction:column;gap:10px}

/* ── Une rencontre = une carte ── */
.fbl-matchcard{
  display:block;
  padding:14px 16px 15px;
  border:1px solid var(--fbm-line);
  border-left:3px solid var(--fbm-blue);
  border-radius:16px;
  background:var(--fbm-card);
  color:var(--fbm-navy);
  text-decoration:none;
  box-shadow:0 4px 16px rgba(18,52,86,.035);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.fbl-matchcard:hover{transform:translateY(-1px);border-color:rgba(22,119,242,.28);box-shadow:0 8px 24px rgba(18,52,86,.07)}
.fbl-matchcard--live{border-left-color:var(--fbm-live);background:linear-gradient(90deg,rgba(239,51,64,.035),var(--fbm-card) 32%)}
.fbl-matchcard--done{border-left-color:var(--fbm-done)}
.fbl-matchcard--pst{border-left-color:var(--fbm-warn)}
.fbl-matchcard--canc{border-left-color:var(--fbm-cancel)}

.fbl-matchcard__top{
  display:grid;
  grid-template-columns:92px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding-bottom:12px;
  border-bottom:1px solid var(--fbm-line);
}
.fbl-matchcard__time{display:flex;flex-direction:column;gap:3px;align-items:flex-start}
.fbl-matchcard__kick{font-size:18px;font-weight:900;line-height:1;color:var(--fbm-navy);font-variant-numeric:tabular-nums}
.fbl-matchcard__time em{font-style:normal;font-size:11px;font-weight:800;color:var(--fbm-blue)}
.fbl-matchcard--live .fbl-matchcard__time em{color:var(--fbm-live)}
.fbl-matchcard--done .fbl-matchcard__time em{color:var(--fbm-done)}
.fbl-matchcard--pst .fbl-matchcard__time em,.fbl-matchcard--canc .fbl-matchcard__time em{color:var(--fbm-warn)}

.fbl-matchcard__comp{display:flex;align-items:center;gap:10px;min-width:0}
.fbl-matchcard__comp>img{width:32px;height:32px;object-fit:contain;flex:0 0 32px}
.fbl-matchcard__comp>span{display:flex;flex-direction:column;gap:3px;min-width:0}
.fbl-matchcard__comp strong{
  font-size:13.5px;font-weight:850;line-height:1.25;color:var(--fbm-navy);
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
}
.fbl-matchcard__comp em{
  font-style:normal;font-size:11px;line-height:1.25;color:var(--fbm-muted);
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
}
.fbl-matchcard__badge{
  min-width:72px;padding:6px 9px;border-radius:10px;
  display:inline-flex;align-items:center;justify-content:center;
  background:#eaf3ff;border:1px solid rgba(22,119,242,.15);color:var(--fbm-blue);
  font-size:9.5px;font-weight:900;text-transform:uppercase;white-space:nowrap;
}
.fbl-matchcard--live .fbl-matchcard__badge{background:var(--fbm-live);border-color:var(--fbm-live);color:#fff;box-shadow:0 5px 14px rgba(239,51,64,.16)}
.fbl-matchcard--done .fbl-matchcard__badge{background:#e8f8ee;border-color:rgba(22,163,74,.13);color:var(--fbm-done)}
.fbl-matchcard--pst .fbl-matchcard__badge{background:#fff3e3;border-color:rgba(245,158,11,.22);color:#d97706}
.fbl-matchcard--canc .fbl-matchcard__badge{background:#f1f5f9;border-color:rgba(100,116,139,.2);color:#64748b}

.fbl-matchcard__match{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:14px;
  padding-top:14px;
}
.fbl-matchcard__team{display:flex;align-items:center;gap:9px;min-width:0}
.fbl-matchcard__team--home{justify-content:flex-end;text-align:right}
.fbl-matchcard__team--away{justify-content:flex-start;text-align:left}
.fbl-matchcard__team>span:first-child,
.fbl-matchcard__team>span:last-child{
  min-width:0;font-size:13px;font-weight:800;line-height:1.25;color:var(--fbm-navy);
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
}
.fbl-matchcard__team img,.fbl-matchcard__team .team-ph{flex:0 0 38px}
.fbl-matchcard__score{
  min-width:58px;text-align:center;font-size:23px;font-weight:900;line-height:1;color:var(--fbm-navy);white-space:nowrap;font-variant-numeric:tabular-nums;
}
.fbl-matchcard__score--vs{font-size:18px;letter-spacing:.06em}


/* ── Une carte par compétition + lignes compactes ───────────────────────
 * L'identité compétition vit dans l'en-tête. Chaque rencontre devient une
 * ligne dense : heure | affiche | statut. Aucun changement de données/tri. */
.fbl-leaguegroup{
  overflow:hidden;
  border:1px solid var(--fbm-line);
  border-left:3px solid var(--fbm-blue);
  border-radius:16px;
  background:var(--fbm-card);
  box-shadow:0 4px 16px rgba(18,52,86,.035);
}
.fbl-matchsection--live .fbl-leaguegroup{border-left-color:var(--fbm-live)}
.fbl-matchsection--done .fbl-leaguegroup{border-left-color:var(--fbm-done)}
.fbl-matchsection--late .fbl-leaguegroup{border-left-color:var(--fbm-warn)}
.fbl-leaguegroup__head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:11px 14px;
  border-bottom:1px solid var(--fbm-line);
  background:linear-gradient(135deg,rgba(22,119,242,.055),rgba(22,119,242,.015));
}
.fbl-leaguegroup__identity{display:flex;align-items:center;gap:10px;min-width:0}
.fbl-leaguegroup__identity>img{width:34px;height:34px;object-fit:contain;flex:0 0 34px}
.fbl-leaguegroup__identity>span{display:flex;flex-direction:column;gap:2px;min-width:0}
.fbl-leaguegroup__identity strong{
  color:var(--fbm-navy);font-size:14px;font-weight:900;line-height:1.22;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
}
.fbl-leaguegroup__identity em{color:var(--fbm-muted);font-size:11px;font-style:normal;line-height:1.25}
.fbl-leaguegroup__count{
  display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:5px 9px;
  border:1px solid rgba(22,119,242,.13);border-radius:10px;background:rgba(22,119,242,.07);
  color:var(--fbm-blue);font-size:10px;font-weight:900;white-space:nowrap;
}
.fbl-leaguegroup__matches{display:flex;flex-direction:column}

.fbl-matchrow{
  display:grid;
  grid-template-columns:68px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-height:60px;
  padding:9px 13px;
  border-bottom:1px solid var(--fbm-line);
  background:var(--fbm-card);
  color:var(--fbm-navy);
  text-decoration:none;
  transition:background .14s ease;
}
.fbl-matchrow:last-child{border-bottom:0}
.fbl-matchrow--soon{grid-template-columns:68px minmax(0,1fr)}
.fbl-matchrow:hover{background:rgba(22,119,242,.025)}
.fbl-matchrow__when{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.fbl-matchrow__kick{font-size:16px;font-weight:900;line-height:1;color:var(--fbm-navy);font-variant-numeric:tabular-nums}
.fbl-matchrow__when em,.fbl-matchrow__when small{
  display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-style:normal;font-size:9.5px;font-weight:800;line-height:1.2;color:var(--fbm-blue)
}
.fbl-matchrow__when small{color:var(--fbm-muted);font-size:9px;font-weight:700}
.fbl-matchrow--live .fbl-matchrow__when em{color:var(--fbm-live)}
.fbl-matchrow--done .fbl-matchrow__when em{color:var(--fbm-done)}
.fbl-matchrow--pst .fbl-matchrow__when em,.fbl-matchrow--canc .fbl-matchrow__when em{color:var(--fbm-warn)}

.fbl-matchrow__fixture{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:7px;
  min-width:0;
}
.fbl-matchrow__team{display:flex;align-items:center;gap:5px;min-width:0}
.fbl-matchrow__team--home{justify-content:flex-end;text-align:right}
.fbl-matchrow__team--away{justify-content:flex-start;text-align:left}
.fbl-matchrow__team>span:first-child,.fbl-matchrow__team>span:last-child{
  min-width:0;color:var(--fbm-navy);font-size:12.5px;font-weight:800;line-height:1.2;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
}
.fbl-matchrow__team img,.fbl-matchrow__team .team-ph{width:28px;height:28px;max-width:28px;max-height:28px;flex:0 0 28px}
.fbl-matchrow__score{
  min-width:40px;text-align:center;color:var(--fbm-navy);font-size:16px;font-weight:900;line-height:1;
  white-space:nowrap;font-variant-numeric:tabular-nums;
}
.fbl-matchrow__score--vs{font-size:14px;letter-spacing:.05em}
.fbl-matchrow__badge{
  justify-self:end;width:auto;min-width:58px;max-width:82px;padding:5px 7px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid rgba(22,119,242,.15);border-radius:9px;background:#eaf3ff;color:var(--fbm-blue);
  font-size:8px;font-weight:900;line-height:1;text-transform:uppercase;white-space:nowrap;
}
.fbl-matchrow--live .fbl-matchrow__badge{background:var(--fbm-live);border-color:var(--fbm-live);color:#fff}
.fbl-matchrow--done .fbl-matchrow__badge{background:#e8f8ee;border-color:rgba(22,163,74,.13);color:var(--fbm-done)}
.fbl-matchrow--pst .fbl-matchrow__badge{background:#fff3e3;border-color:rgba(245,158,11,.22);color:#d97706}
.fbl-matchrow--canc .fbl-matchrow__badge{background:#f1f5f9;border-color:rgba(100,116,139,.2);color:#64748b}
.fbl-matchrow--pending .fbl-matchrow__badge{background:#f1f5f9;border-color:rgba(100,116,139,.18);color:#64748b}

[data-theme="dark"] .fbl-leaguegroup{box-shadow:none}
[data-theme="dark"] .fbl-leaguegroup__head{background:linear-gradient(135deg,rgba(22,119,242,.10),rgba(22,119,242,.025))}
[data-theme="dark"] .fbl-matchrow{background:var(--fbm-card)}
[data-theme="dark"] .fbl-matchrow__badge{background:rgba(22,119,242,.14)}
[data-theme="dark"] .fbl-matchrow--done .fbl-matchrow__badge{background:rgba(22,163,74,.14)}
[data-theme="dark"] .fbl-matchrow--pst .fbl-matchrow__badge{background:rgba(245,158,11,.15)}
[data-theme="dark"] .fbl-matchrow--canc .fbl-matchrow__badge,
[data-theme="dark"] .fbl-matchrow--pending .fbl-matchrow__badge{background:rgba(100,116,139,.15)}

.fbl-page--matches .fbl-empty-card{
  margin:4px 0 14px;padding:22px 18px;border-radius:16px;border:1px dashed var(--fbm-line);
  background:var(--fbm-card);color:var(--fbm-muted);text-align:center;
}

/* Bloc SEO conservé en bas, hors du parcours visuel principal. */
.fbl-page--matches .fbl-matches-seo{
  margin-top:34px;padding:28px 0 46px;border-top:1px solid rgba(148,163,184,.12);
}
.fbl-page--matches .fbl-matches-seo__kicker{margin:0 0 8px;color:var(--fbm-blue);font-size:13px;font-weight:800;letter-spacing:.01em}
.fbl-page--matches .fbl-matches-seo h2{margin:0 0 8px;max-width:760px;font-size:clamp(20px,3vw,26px);line-height:1.2;letter-spacing:-.02em}
.fbl-page--matches .fbl-matches-seo p:last-child{margin:0;max-width:760px;color:var(--text-2,#94a3b8);font-size:14px;line-height:1.65}

[data-theme="dark"] .fbl-page--matches .fbl-daychip,
[data-theme="dark"] .fbl-matchsection,
[data-theme="dark"] .fbl-matchcard,
[data-theme="dark"] .fbl-page--matches .fbl-empty-card{box-shadow:none}
[data-theme="dark"] .fbl-page--matches .fbl-daychip:not(.is-active){background:#0d1a2a;color:#dce8f7}
[data-theme="dark"] .fbl-page--matches .fbl-mtabs__n{color:#9ab0ca;background:rgba(148,163,184,.10)}
[data-theme="dark"] .fbl-matchcard__badge{background:rgba(22,119,242,.14)}
[data-theme="dark"] .fbl-matchcard--done .fbl-matchcard__badge{background:rgba(22,163,74,.14)}
[data-theme="dark"] .fbl-matchcard--pst .fbl-matchcard__badge{background:rgba(245,158,11,.15)}
[data-theme="dark"] .fbl-matchcard--canc .fbl-matchcard__badge{background:rgba(100,116,139,.15)}

@media(max-width:640px){
  .fbl-page--matches .fbl-matches-head{padding:18px 0 10px}
  .fbl-page--matches .fbl-matches-head h1{font-size:28px}
  .fbl-page--matches .fbl-mtabs__list.fbl-daystrip{margin-inline:-1px;gap:7px;padding-bottom:10px}
  .fbl-page--matches .fbl-daychip{min-width:78px;min-height:56px;padding:7px 11px;border-radius:13px}
  .fbl-page--matches .fbl-daychip[data-view="live"]{min-width:88px}
  .fbl-page--matches .fbl-daychip--other{min-width:108px}
  .fbl-daychip__word{font-size:11px}
  .fbl-daychip__num{font-size:17px}

  .fbl-matchsection{padding:10px;border-radius:16px}
  .fbl-matchsection>header{padding:3px 2px 10px}
  .fbl-matchsection>header strong{font-size:16px}
  .fbl-matchsection>header em{font-size:10.5px}

  .fbl-matchcard{padding:12px 12px 13px;border-radius:15px}
  .fbl-matchcard__top{grid-template-columns:74px minmax(0,1fr) auto;gap:8px;padding-bottom:11px}
  .fbl-matchcard__kick{font-size:17px}
  .fbl-matchcard__time em{font-size:10px}
  .fbl-matchcard__comp{gap:7px}
  .fbl-matchcard__comp>img{width:27px;height:27px;flex-basis:27px}
  .fbl-matchcard__comp strong{font-size:12.5px}
  .fbl-matchcard__comp em{font-size:10px}
  .fbl-matchcard__badge{min-width:60px;padding:5px 7px;font-size:8.5px}
  .fbl-matchcard__match{gap:8px;padding-top:12px}
  .fbl-matchcard__team{gap:6px}
  .fbl-matchcard__team>span:first-child,.fbl-matchcard__team>span:last-child{font-size:11.5px}
  .fbl-matchcard__team img,.fbl-matchcard__team .team-ph{flex-basis:32px;width:32px!important;height:32px!important}
  .fbl-matchcard__score{min-width:46px;font-size:20px}
  .fbl-matchcard__score--vs{font-size:16px}
  .fbl-leaguegroup__head{padding:10px 11px;gap:8px}
  .fbl-leaguegroup__identity{gap:8px}
  .fbl-leaguegroup__identity>img{width:30px;height:30px;flex-basis:30px}
  .fbl-leaguegroup__identity strong{font-size:13px}
  .fbl-leaguegroup__identity em{font-size:10px}
  .fbl-leaguegroup__count{min-height:25px;padding:4px 7px;font-size:9px}
  .fbl-matchrow{grid-template-columns:48px minmax(0,1fr) auto;gap:5px;min-height:56px;padding:8px 7px}
  .fbl-matchrow--soon{grid-template-columns:48px minmax(0,1fr)}
  .fbl-matchrow__kick{font-size:15px}
  .fbl-matchrow__when em{font-size:9px}
  .fbl-matchrow__when small{font-size:8px}
  .fbl-matchrow__fixture{gap:4px}
  .fbl-matchrow__team{gap:3px}
  .fbl-matchrow__team>span:first-child,.fbl-matchrow__team>span:last-child{font-size:10.5px;line-height:1.15}
  .fbl-matchrow__team img,.fbl-matchrow__team .team-ph{width:25px;height:25px;max-width:25px;max-height:25px;flex-basis:25px}
  .fbl-matchrow__score{min-width:28px;font-size:14px}
  .fbl-matchrow__score--vs{font-size:12px}
  .fbl-matchrow__badge{min-width:46px;max-width:60px;padding:4px 5px;font-size:7.25px}
  .fbl-page--matches .fbl-matches-seo{margin-top:26px;padding:24px 0 38px}
}

@media(max-width:380px){
  .fbl-matchcard__top{grid-template-columns:64px minmax(0,1fr) auto}
  .fbl-matchcard__badge{min-width:54px;font-size:8px;padding-inline:5px}
  .fbl-matchcard__team>span:first-child,.fbl-matchcard__team>span:last-child{font-size:11px}
  .fbl-matchrow{grid-template-columns:44px minmax(0,1fr) auto;gap:4px;padding-inline:6px}
  .fbl-matchrow--soon{grid-template-columns:44px minmax(0,1fr)}
  .fbl-matchrow__team>span:first-child,.fbl-matchrow__team>span:last-child{font-size:9.75px}
  .fbl-matchrow__team img,.fbl-matchrow__team .team-ph{width:23px;height:23px;max-width:23px;max-height:23px;flex-basis:23px}
  .fbl-matchrow__score{min-width:26px}
  .fbl-matchrow__badge{min-width:44px;max-width:56px;padding-inline:4px;font-size:6.75px}
}

/* HOME-COMPACT-02: compact day navigation on homepage and /matchs/. */
.fbl-page--matches .fbl-mtabs__list.fbl-daystrip{gap:6px;margin-bottom:12px;padding-top:3px;padding-bottom:5px}
.fbl-page--matches .fbl-daychip{min-width:68px;min-height:44px;padding:5px 8px;border-radius:10px;gap:3px}
.fbl-page--matches .fbl-daychip[data-view="live"]{min-width:76px;gap:5px}
.fbl-page--matches .fbl-daychip .fbl-daychip__word{font-size:10px;line-height:1.1}
.fbl-page--matches .fbl-daychip[data-view="live"] .fbl-daychip__word{font-size:11px}
.fbl-page--matches .fbl-daychip__num{font-size:14px}
.fbl-page--matches .fbl-mtabs__n{min-width:17px;height:17px;padding:0 4px;font-size:9px}
.fbl-page--matches .fbl-mtabs__dot{width:6px;height:6px;flex-basis:6px}

/* MATCH-LINKS-03: competition identity keeps its layout as a native link. */
.fbl-leaguegroup__head a.fbl-leaguegroup__identity{color:inherit;text-decoration:none;flex:1;min-width:0}
.fbl-leaguegroup__head a.fbl-leaguegroup__identity:hover strong{text-decoration:underline}
.fbl-leaguegroup__head a.fbl-leaguegroup__identity:focus-visible{outline:2px solid var(--fbm-blue);outline-offset:4px;border-radius:4px}
