/* =========================
   HOME PAGE
   ========================= */

/* Structure 3 colonnes */
.page-3cols{
  width: 100%;
  max-width: 1840px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr) 235px;
  gap: 16px;
  padding: 0 16px 36px;
}

.center-col{
  width: 100%;
  max-width: 1240px;
  min-width: 0;
  justify-self: center;
  margin: 0;
}

.center-col > main{
  width: 100%;
  min-width: 0;
}

/* Sidebars */
.side{
  min-width: 0;
}

.side-card{
  position: sticky;
  top: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.side-hdr{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(148,163,184,.18);
}

.side-hdr strong{
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.side-sub{
  display: none;
}

.side-standings{
  padding: 0;
}

.side-row{
  position: relative;
  display: grid;
  grid-template-columns: 28px 34px 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(148,163,184,.12);
  cursor: pointer;
  transition: background .15s ease;
}

.side-row:last-child{
  border-bottom: 0;
}

.side-row:hover{
  background: rgba(15,23,42,.03);
}

.side-row.has-fr{
  background: linear-gradient(90deg,
    rgba(29,78,216,.08) 0%,
    rgba(255,255,255,.06) 50%,
    rgba(220,38,38,.07) 100%);
}

.side-row.has-fr::before{
  content: none;
}

.side-rk{
  font-size: 13px;
  font-weight: 900;
  color: #64748b;
  text-align: center;
}

.side-logo{
  width: 30px;
  height: 30px;
  object-fit: contain;
  justify-self: center;
}

.side-name{
  display: none;
}

.side-tri{
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: .04em;
}

.side-wl{
  font-size: 13px;
  font-weight: 800;
  color: #475569;
  white-space: nowrap;
}

.side-pct{
  display: none;
}

/* ── Playoff / Play-In sidebar ──────────────────────────── */

.side-card.po-scrollable{
  overflow-y: auto;
  max-height: calc(100vh - 80px);
}

.side-hdr .side-sub{
  display: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #94a3b8);
  margin-left: 6px;
}

.po-mode{
  padding: 2px 0 4px;
}

.po-phase-hdr{
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted, #94a3b8);
  padding: 9px 10px 3px;
  border-top: 1px solid rgba(148,163,184,.15);
}
.po-mode > .po-phase-hdr:first-child{
  border-top: none;
  padding-top: 6px;
}

.po-series{
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(148,163,184,.10);
}
.po-series:last-child{ border-bottom: none; }

.po-team{
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ink);
  opacity: .70;
  border-radius: 4px;
}
.po-team.po-winner{
  opacity: 1;
  font-weight: 800;
}
.po-team.po-fr{
  background: linear-gradient(90deg, rgba(29,78,216,.09), transparent);
  margin: 0 -4px;
  padding: 1px 4px;
}
/* Série terminée : perdant estompé */
.po-done .po-team:not(.po-winner){
  opacity: .38;
}

.po-logo{
  width: 22px !important;
  height: 22px !important;
  object-fit: contain;
  flex-shrink: 0;
}

.po-seed{
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  min-width: 14px;
  text-align: right;
  flex-shrink: 0;
}

.po-tri{
  font-weight: 800;
  font-size: 12px;
  flex: 1;
  letter-spacing: .03em;
}

.po-wins{
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  min-width: 16px;
  text-align: right;
}
.po-winner .po-wins{
  color: var(--ink);
}

/* Score badge play-in (entre les 2 équipes) */
.po-game-score{
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-align: center;
  padding: 1px 0;
  line-height: 1;
}
.po-game-score.po-upcoming{
  font-weight: 500;
  font-style: italic;
  color: #94a3b8;
  font-size: 10px;
}
.po-game-score.po-live{
  color: #ef4444;
}

.po-empty{
  padding: 10px;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  font-style: italic;
}

/* Scoreboard strip */
.scoreboard-strip{
  margin: 10px 0 12px;
  padding: 12px 14px 14px;
  background: var(--surface);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.scoreboard-strip__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.scoreboard-strip__title{
  font-size: 18px;
  font-weight: 950;
  color: var(--ink);
}

.scoreboard-strip__meta{
  font-size: 12px;
  font-weight: 900;
  color: rgba(15,23,42,.55);
}

.scoreboard-strip__track{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.scoreboard-strip__track::-webkit-scrollbar{
  height: 8px;
}

.scoreboard-strip__track::-webkit-scrollbar-thumb{
  background: #cbd5e1;
  border-radius: 999px;
}

.sb-mini{
  position: relative;
  overflow: hidden;
  flex: 0 0 190px;
  min-width: 190px;
  padding: 10px 10px 9px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(15,23,42,.06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.sb-mini:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15,23,42,.10);
  border-color: rgba(37,99,235,.18);
}

.sb-mini.has-fr{
  background: linear-gradient(
    90deg,
    rgba(0,85,164,.08) 0%,
    rgba(255,255,255,1) 38%,
    rgba(239,65,53,.08) 100%
  );
}

.sb-mini__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.sb-mini__status{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
}

.sb-mini__status.pre{ background: #2563eb; }
.sb-mini__status.live{ background: #16a34a; }
.sb-mini__status.final{ background: #dc2626; }

.sb-mini__fr{
  font-size: 15px;
  line-height: 1;
}

.sb-mini__teams{
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sb-mini__row{
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
}

.sb-mini__row img{
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.sb-mini__tri{
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
}

.sb-mini__score{
  font-size: 16px;
  font-weight: 950;
  color: var(--ink);
}

.sb-mini__row.is-loser .sb-mini__tri,
.sb-mini__row.is-loser .sb-mini__score{
  opacity: .62;
}

.sb-mini__footer{
  margin-top: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: rgba(15,23,42,.55);
}

/* Injury ticker */
#injuryTickerWrap{
  width: 100%;
  margin: 8px 0 10px;
}

.injury-pill{
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 10px 16px;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(15,23,42,.25);
  cursor: pointer;
  outline: none;
}

.injury-pill:focus{
  box-shadow:
    0 10px 25px rgba(15,23,42,.25),
    0 0 0 3px rgba(14,165,233,.25);
}

.injury-col{
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.injury-col-label{
  flex: 0 0 auto;
  padding-right: 8px;
  border-right: 1px solid rgba(148,163,184,.5);
}

.injury-label{
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #bfdbfe;
  white-space: nowrap;
}

.injury-col-player{
  flex: 0 0 auto;
  min-width: 48px;
}

.injury-col-text{
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  align-items: flex-start;
}

.injury-player-stack{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.injury-text{
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}

.injury-chev{
  display: inline-block;
  font-weight: 900;
  opacity: .9;
  transition: transform .18s ease;
}

#injuryTickerWrap.is-open .injury-chev{
  transform: rotate(180deg);
}

#injuryTickerWrap.is-open #injuryPlayerCol,
#injuryTickerWrap.is-open #injuryText{
  display: block;
}

#injuryTickerWrap:not(.is-open) #injuryPlayerCol,
#injuryTickerWrap:not(.is-open) #injuryText{
  display: block;
}

.inj-avatars{
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.inj-avatars img{
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(255,255,255,.06);
}

.inj-avatars img.team{
  width: 26px;
  height: 26px;
  border-radius: 8px;
  object-fit: contain;
}

.inj-textline{
  font-size: 13px;
  line-height: 1.25;
  color: rgba(255,255,255,.90);
}

.inj-textline strong{
  font-weight: 900;
}


.inj-textline .meta{
  color: rgba(226,232,240,.78);
  font-weight: 800;
}

#injuryTickerWrap.is-open .inj-row{
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

#injuryTickerWrap.is-open .inj-row + .inj-row{
  border-top: 1px solid rgba(148,163,184,.14);
}

#injuryTickerWrap.is-open .inj-row .inj-avatars{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#injuryTickerWrap.is-open .inj-row .inj-textline{
  padding: 0;
  border-bottom: 0;
}

#injuryTickerWrap.is-open .inj-row .inj-textline strong,
#injuryTickerWrap.is-open .inj-row .inj-textline .meta,
#injuryTickerWrap.is-open .inj-row .inj-textline .comment{
  display: block;
}

#injuryTickerWrap.is-open .inj-textline{
  padding-bottom: 0;
  border-bottom: 0;
}

#injuryTickerWrap.is-open .inj-textline:last-child{
  border-bottom: 0;
}

/* Ticker – sections blessés / G League */
.inj-section-head{
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(226,232,240,.5);
  padding: 10px 0 4px;
  border-top: 1px solid rgba(148,163,184,.12);
}
.inj-section-head:first-child{ border-top: 0; padding-top: 4px; }
.inj-section-head--gl{ color: rgba(251,191,36,.7); }

/* Badge statut dans la meta-line */
.inj-status-out{
  display: inline-block;
  font-size: 10px; font-weight: 800;
  background: rgba(239,68,68,.18);
  color: #fca5a5;
  padding: 1px 5px; border-radius: 4px;
}
.inj-status-dtd{
  display: inline-block;
  font-size: 10px; font-weight: 800;
  background: rgba(249,115,22,.18);
  color: #fb923c;
  padding: 1px 5px; border-radius: 4px;
}
.inj-status-gleague{
  display: inline-block;
  font-size: 10px; font-weight: 800;
  background: rgba(251,191,36,.18);
  color: #fbbf24;
  padding: 1px 5px; border-radius: 4px;
}

/* Favoris */
#favBox{
  margin-top: 8px;
  margin-bottom: 16px;
  padding: 14px 18px 18px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(15,23,42,.08);
}

#favBoxHeader{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

#favBoxTitle{
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

#favBoxTitle .emoji{
  font-size: 18px;
}

#favBoxToggle{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: #e5edff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
}

#favBoxToggle:hover{
  background: #dbeafe;
}

#favBox.fav-box-collapsed #favBoxToggle{
  background: #0f172a;
  color: #e5e7eb;
}

#favBoxBody .fav-banner-wrap + .fav-banner-wrap{
  margin-top: 10px;
}

.fav-banner-wrap{
  margin: 0;
}

#favBannerWrap .fav-title,
#favTeamsBannerWrap .fav-title{
  display: block;
  width: 100%;
  margin: 0 auto 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

#favBanner,
#favTeamsBanner{
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 4px 6px;
  scrollbar-width: thin;
}

#favBanner::-webkit-scrollbar,
#favTeamsBanner::-webkit-scrollbar{
  height: 8px;
}

#favBanner::-webkit-scrollbar-thumb,
#favTeamsBanner::-webkit-scrollbar-thumb{
  background: #cbd5e1;
  border-radius: 999px;
}

/* Outils home */
.home-tools-card{
  margin: 10px 0 14px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(15,23,42,.06);
}

.home-tools-top{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.date-nav-centered{
  display: flex;
  align-items: center;
  gap: 14px;
}

.date-nav-centered h2,
#dateLabel{
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.fr-filter-compact{
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.nav-arrow{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg,#2563eb,#1d4ed8);
  color: #fff;
  box-shadow: 0 4px 10px rgba(29,78,216,.25);
  transition: all .15s ease;
}

.nav-arrow:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(29,78,216,.35);
}

.nav-arrow:active{
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(29,78,216,.25);
}

.nav-arrow .arrow{
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.cal-toggle-compact{
  margin-top: 8px;
}

.cal-toggle-compact summary{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cal-toggle-compact .chev{
  font-size: 12px;
  opacity: .6;
}

.cal-toggle-compact .cal{
  margin-top: 8px;
}

.status{
  margin: 10px 0 12px;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}

/* Games zone */
#games{
  width: 100%;
  min-width: 0;
}

/* Forme des Français */
#home-forme-fr{
  position: relative;
  overflow: hidden;
  margin: 16px 0;
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15,23,42,.10);
}

#home-forme-fr::before{
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(700px 220px at 12% -10%, rgba(29,78,216,.18), transparent 60%),
    radial-gradient(650px 220px at 88% -10%, rgba(239,65,53,.10), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

#home-forme-fr::after{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1d4ed8, #ffffff, #ef4135);
  opacity: .9;
  z-index: 0;
}

#home-forme-fr > *{
  position: relative;
  z-index: 1;
}

.bbd-card__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.bbd-card__head--toggle{
  cursor: pointer;
  transition: background .2s ease;
}

.bbd-card__head--toggle:hover{
  background: rgba(15,23,42,.04);
}

#home-forme-fr .bbd-card__head{
  border-bottom: 1px solid rgba(15,23,42,.06);
  background: linear-gradient(180deg, rgba(15,23,42,.03), rgba(255,255,255,0));
}

.bbd-card__title{
  margin: 0;
  font-size: 18px;
  font-weight: 950;
  color: var(--ink);
}

.bbd-card__meta{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 900;
  color: rgba(15,23,42,.55);
}

.bbd-card__body{
  padding: 18px 22px 22px;
  transition: max-height .35s ease, opacity .25s ease;
}

.bbd-card--collapsed .bbd-card__body{
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.bbd-card--collapsed .toggle-icon{
  transform: rotate(-90deg);
}

.toggle-icon{
  font-size: 14px;
  transition: transform .25s ease;
}

.forme-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e5edff;
  border: 1px solid rgba(29,78,216,.18);
  box-shadow: 0 6px 16px rgba(29,78,216,.10);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
  transition: transform .12s ease, background .12s ease;
}

.forme-link:hover{
  background: #dbeafe;
  transform: translateY(-1px);
}

.forme-sep{
  opacity: .35;
  font-weight: 900;
}

.forme-wrap{
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.forme-grid-3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.forme-card-pro{
  width: 100%;
  min-height: 190px;
  padding: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(15,23,42,.08);
}

.forme-pro-h{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.forme-pro-left{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.forme-ava{
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 999px;
  background: #f1f5f9;
}

.forme-ava img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.forme-ident{
  min-width: 0;
}

.forme-name{
  font-size: 14px;
  font-weight: 950;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forme-sub{
  font-size: 12px;
  font-weight: 700;
  color: rgba(15,23,42,.65);
}

.forme-pro-right{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.forme-teamlogo{
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.12));
}

.forme-wl{
  padding: 4px 8px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 999px;
  background: rgba(15,23,42,.04);
  font-size: 12px;
  font-weight: 900;
  color: rgba(15,23,42,.75);
}

.forme-stats-pro{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stat-box{
  padding: 12px 10px 10px;
  text-align: center;
  background: rgba(15,23,42,.04);
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 14px;
}

.stat-val{
  font-size: 20px;
  font-weight: 950;
  line-height: 1.1;
  color: var(--ink);
}

.stat-lab{
  margin-top: 2px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  color: rgba(15,23,42,.55);
}

.stat-delta{
  margin-top: 6px;
  font-size: 11px;
  font-weight: 900;
  opacity: .92;
}

.stat-delta.up{ color: #16a34a; }
.stat-delta.down{ color: #dc2626; }
.stat-delta.neutral{ color: rgba(15,23,42,.45); }

.forme-foot-pro{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
}

.badge{
  padding: 4px 8px;
  border: 1px solid rgba(29,78,216,.18);
  border-radius: 999px;
  background: rgba(29,78,216,.10);
  color: #1d4ed8;
  font-weight: 900;
}

.badge-muted{
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.08);
  color: rgba(15,23,42,.55);
}

.badge-ghost{
  background: transparent;
  border-color: rgba(15,23,42,.10);
  color: rgba(15,23,42,.65);
}

.sep{
  opacity: .35;
  font-weight: 900;
}

.forme-explain{
  width: 100%;
  max-width: none;
  margin-top: 16px;
  padding: 10px 12px;
  background: rgba(15,23,42,.02);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
}

.forme-explain summary{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(29,78,216,.14);
  border-radius: 14px;
  background: rgba(29,78,216,.08);
  font-weight: 950;
  cursor: pointer;
}

.forme-explain summary::-webkit-details-marker{
  display: none;
}

.forme-explain-hint{
  white-space: nowrap;
  padding: 4px 8px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 900;
  color: rgba(15,23,42,.55);
}

.forme-explain-inner{
  margin-top: 10px;
  padding: 4px 4px 2px;
  color: rgba(15,23,42,.80);
  line-height: 1.45;
}

.explain-lead{
  margin: 0 0 10px;
  font-weight: 750;
}

.explain-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.explain-card{
  padding: 10px 12px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.07);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(15,23,42,.05);
}

.explain-title{
  margin-bottom: 6px;
  font-weight: 950;
  color: var(--ink);
}

.explain-line{
  font-weight: 800;
  color: rgba(15,23,42,.82);
}

.explain-sub{
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(15,23,42,.55);
}

.explain-formula{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(15,23,42,.03);
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 14px;
}

.explain-pill{
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(29,78,216,.16);
  border-radius: 999px;
  background: rgba(29,78,216,.10);
  color: #1d4ed8;
  font-weight: 950;
}

.explain-math{
  font-size: 12px;
  font-weight: 850;
  color: rgba(15,23,42,.70);
}

/* Onboarding modal */
.bbd-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.bbd-modal.is-open{
  display: block;
}

.bbd-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,.72);
  backdrop-filter: blur(6px);
}

.bbd-modal__dialog{
  position: relative;
  width: min(980px, calc(100% - 28px));
  margin: 6vh auto;
  overflow: hidden;
  background: rgba(15,23,42,.94);
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}

.bbd-modal__close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 900;
}

.bbd-modal__content{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.bbd-modal__left{
  padding: 22px 22px 18px;
  color: #e5e7eb;
}

.bbd-modal__badge{
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(29,78,216,.35);
  border-radius: 999px;
  background: rgba(29,78,216,.18);
  font-weight: 900;
}

.bbd-modal__title{
  margin: 6px 0 10px;
  font-size: 28px;
  font-weight: 950;
}

.bbd-modal__text{
  margin: 0 0 12px;
  color: rgba(255,255,255,.78);
  line-height: 1.45;
}

.bbd-modal__bullets{
  margin: 0 0 16px;
  padding-left: 18px;
  color: rgba(255,255,255,.85);
  line-height: 1.6;
  font-weight: 700;
}

.bbd-modal__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.bbd-modal__small{
  font-size: 12px;
  color: rgba(255,255,255,.55);
}

.bbd-modal__right{
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-left: 1px solid rgba(148,163,184,.16);
}

.bbd-shots__tabs{
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.bbd-tab{
  flex: 1;
  padding: 10px;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 12px;
  background: rgba(2,6,23,.45);
  color: rgba(255,255,255,.86);
  font-weight: 900;
}

.bbd-tab.is-active{
  background: rgba(29,78,216,.22);
  border-color: rgba(29,78,216,.45);
}

.bbd-shot{
  overflow: hidden;
  background: rgba(2,6,23,.55);
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

.bbd-shot img{
  width: 100%;
  height: auto;
  display: block;
}

.bbd-shot__hint{
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.58);
}

/* Responsive */
@media (max-width: 1250px){
  .page-3cols{
    display: block;
    max-width: 1268px;
    padding: 0 14px 30px;
  }

  .side{
    display: none;
  }

  .center-col{
    max-width: 100%;
  }
}

@media (max-width: 980px){
  .forme-grid-3,
  .explain-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px){
  .bbd-modal__content{
    grid-template-columns: 1fr;
  }

  .bbd-modal__right{
    border-left: 0;
    border-top: 1px solid rgba(148,163,184,.16);
  }

  .bbd-modal__dialog{
    margin: 3vh auto;
  }
}

@media (max-width: 760px){
  .sb-mini{
    flex: 0 0 168px;
    min-width: 168px;
  }
}

@media (max-width: 700px){
  #favBoxHeader{
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px){
  .injury-pill{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .injury-col-label{
    padding-right: 0;
    border-right: 0;
  }

  #injuryTickerWrap.is-open .inj-row{
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }
}

@media (max-width: 520px){
  .home-tools-top{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    min-height: auto;
  }

  .fr-filter-compact{
    position: static;
    right: auto;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .date-nav-centered{
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .date-nav-centered h2,
  #dateLabel{
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
  }

  .nav-arrow{
    width: 34px;
    height: 34px;
  }

  .nav-arrow .arrow{
    font-size: 18px;
  }
}

/* =========================================
   MATCH CARDS + BOXSCORES – single source of truth
   ========================================= */

.card{
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(15,23,42,.08);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
  overflow: hidden;
}

.card-main{
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(460px, 1.2fr) minmax(220px, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 164px;
  padding: 22px 28px;
}

.card .team{
  position: relative;   /* contexte de positionnement pour .team-fr-inline */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.card .team .teamlink{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card .team .logo{
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(15,23,42,.14));
}

.card .tri{
  margin-top: 0;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.1;
  color: #0f172a;
}

.card .wl{
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
}

/* ----------------------------------------------------------
   JOUEURS FR INLINE – headshot flottant à côté du logo
   Principe : .team-logo-row est inline-flex (taille = logo).
   .team-fr-inline est en position:absolute → zéro impact
   sur le centrage du logo au-dessus du bilan V/D.
   ---------------------------------------------------------- */

/* Wrapper du logo : shrink-to-content, sans contexte de positionnement */
.team-logo-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Bloc joueurs : sort du flux, centré verticalement dans .card .team.
   Positionné juste à l'extérieur de la colonne équipe, vers le score. */
.team-fr-inline {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.team-fr-inline[data-side="home"] { left:  calc(100% + 10px); }
.team-fr-inline[data-side="away"] { right: calc(100% + 10px); }

/* Bloc individuel : headshot + nom + stats */
.fr-inline-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* Label "🇫🇷 Disponibles" au-dessus des joueurs à venir */
.fr-inline-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2563eb;
  white-space: nowrap;
  margin-bottom: 2px;
}

/* Photo ronde, petite */
.fr-inline-hs {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  background: linear-gradient(to bottom, #dde3eb 0%, #c2cdd8 55%, #aab5c2 100%);
}

/* "V. Wembanyama" */
.fr-inline-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1.1;
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* "36m · 28P · 8R · 5A" */
.fr-inline-stats {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-align: center;
}

.card .center{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.card .center.center--matchcard{
  gap: 12px;
  max-width: 420px;
  margin: auto;
}

.card .score{
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.02em;
  color: #0f172a;
}

.card .status-chip{
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.16);
}

.card .status{
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  color: #64748b;
}

.card .broadcast{
  min-height: 18px;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.card .bcast-logo{
  height: 16px;
  max-width: 84px;
}

.card-fr-teaser{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(37,99,235,.14);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0,85,164,.08) 0%, rgba(255,255,255,.92) 45%, rgba(239,65,53,.08) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.card-fr-teaser__label{
  font-size: 12px;
  font-weight: 950;
  color: #0f172a;
  white-space: nowrap;
}

.card-fr-teaser__list{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-fr-teaser__name,
.card-fr-teaser__more{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(148,163,184,.25);
  font-size: 12px;
  font-weight: 900;
  color: #1e293b;
}

.card-fr-teaser__tri{
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #64748b;
}

.card .expand-btn{
  width: 36px;
  height: 36px;
  margin-top: 2px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.34);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 18px rgba(15,23,42,.10);
  transition: transform .16s ease, box-shadow .16s ease;
}

.card .expand-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15,23,42,.13);
}

.card.open .expand-btn{
  transform: rotate(180deg);
}

.card .side-flag{
  display: block !important;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  opacity: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0,85,164,1) 0%,
    rgba(0,85,164,.9) 20%,
    rgba(255,255,255,1) 55%,
    rgba(239,65,53,.9) 85%,
    rgba(239,65,53,1) 100%
  );
  z-index: 5;
}

.card .side-flag.left{
  left: 0;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.card .side-flag.right{
  right: 0;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.card-details{
  display: none;
  margin-top: 0;
  padding: 0 22px 22px;
}

.card.open .card-details{
  display: block;
}

.stack-boxscores{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stack-boxscores .fr-summary{
  grid-column: 1 / -1;
}

.detail-box{
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(148,163,184,.18);
  border-top: 3px solid var(--team-bx-color, rgba(148,163,184,.35));
  border-radius: 16px;
  padding: 12px 12px 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88);
  min-width: 0;
}

.detail-title{
  margin: 0 0 8px;
  padding: 0 2px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--team-bx-color, #0f172a);
  text-align: left;
}

.detail-side-badge{
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  background: var(--team-bx-color, #94a3b8);
  padding: 2px 5px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 5px;
  letter-spacing: .04em;
}

.table-wrap{
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(226,232,240,.96);
  box-shadow: 0 6px 20px rgba(15,23,42,.05);
  overflow-x: scroll;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #f1f5f9;
}

.table-wrap::-webkit-scrollbar{
  height: 6px;
}
.table-wrap::-webkit-scrollbar-track{
  background: #f1f5f9;
  border-radius: 0 0 14px 14px;
}
.table-wrap::-webkit-scrollbar-thumb{
  background: #94a3b8;
  border-radius: 3px;
}
.table-wrap::-webkit-scrollbar-thumb:hover{
  background: #64748b;
}

.stack-boxscores .detail-box table.bx{
  width: 100%;
  min-width: 490px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.stack-boxscores .detail-box table.bx th,
.stack-boxscores .detail-box table.bx td{
  padding: 7px 4px;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}

.stack-boxscores .detail-box table.bx th{
  background: #f8fafc;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #475569;
}

.stack-boxscores .detail-box table.bx td{
  color: #0f172a;
  font-weight: 600;
}

.stack-boxscores .detail-box table.bx th:first-child,
.stack-boxscores .detail-box table.bx td:first-child{
  width: 160px;
  min-width: 140px;
  text-align: left;
  padding-left: 8px;
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 2px 0 4px rgba(15,23,42,.06);
}

.stack-boxscores .detail-box table.bx th:first-child{
  background: #f8fafc;
}

.stack-boxscores .detail-box table.bx tbody tr:hover td:first-child{
  background: #f8fafc;
}

.stack-boxscores .detail-box table.bx tbody tr.row-fr td:first-child{
  background: linear-gradient(
    90deg,
    rgba(0,85,164,.14) 0%,
    rgba(220,240,255,.95) 70%,
    rgba(255,255,255,1) 100%
  );
}

/* Mobile : pas de sticky – trop petit pour être utile */
@media (max-width: 760px){
  .stack-boxscores .detail-box table.bx th:first-child,
  .stack-boxscores .detail-box table.bx td:first-child{
    position: static;
    box-shadow: none;
  }
}

.stack-boxscores .detail-box table.bx th:not(:first-child),
.stack-boxscores .detail-box table.bx td:not(:first-child){
  width: 34px;
}

.stack-boxscores .detail-box table.bx .bx-th-shoot,
.stack-boxscores .detail-box table.bx .bx-td-shoot{
  width: 50px;
}

.stack-boxscores .detail-box table.bx .bx-td-pts{
  font-weight: 900;
  font-size: 13px;
}

.bx-dnp-reason{
  text-align: left !important;
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
  padding-left: 8px !important;
}

/* +/- badge dans les tables */
.bx-pm{
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(148,163,184,.15);
  color: #64748b;
}
.bx-pm--pos{ background: rgba(34,197,94,.18); color: #15803d; }
.bx-pm--neg{ background: rgba(239,68,68,.13); color: #dc2626; }

.stack-boxscores .detail-box table.bx tbody tr:hover{
  background: rgba(15,23,42,.025);
}

.stack-boxscores .detail-box table.bx tbody tr.row-fr{
  background: linear-gradient(
    90deg,
    rgba(0,85,164,.14) 0%,
    rgba(0,85,164,.20) 12%,
    rgba(0,85,164,.20) 12%,
    rgba(255,255,255,.96) 42%,
    rgba(239,65,53,.16) 82%,
    rgba(239,65,53,.11) 100%
  );
}

.stack-boxscores .detail-box table.bx tbody tr.row-dnp td{
  color: #64748b;
}

.stack-boxscores .detail-box table.bx tbody tr:last-child td{
  border-bottom: 0;
}

.winner{
  font-weight: 800;
}

@media (min-width: 1500px){
  .card-main{
    grid-template-columns: minmax(250px, 1fr) minmax(540px, 1.25fr) minmax(250px, 1fr);
    min-height: 174px;
    padding: 24px 32px;
  }

  .card .team .logo{
    width: 98px;
    height: 98px;
  }

  .card .score{
    font-size: 24px;
  }
}

@media (max-width: 1180px){
  .card-main{
    grid-template-columns: minmax(170px, 1fr) minmax(320px, 1.05fr) minmax(170px, 1fr);
    gap: 14px;
    min-height: 146px;
    padding: 18px 18px;
  }

  .card .team .logo{
    width: 76px;
    height: 76px;
  }

  .card .tri{
    font-size: 16px;
  }

  .card-details,
  .card.fr-night .card-details{
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 16px;
  }
}

@media (max-width: 760px){
  .card{
    border-radius: 18px;
  }

  /* Headshots FR inline : masqués sur mobile, l'info est dans la boxscore */
  .team-fr-inline{
    display: none;
  }

  /* Évite que les absolute de .team-fr-inline débordent hors carte (overflow: hidden
     sur .card ne coupe pas les abs dont le containing block est .card .team) */
  .card .team{
    overflow: hidden;
  }

  .card-main{
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
    padding: 14px 14px 12px;
  }

  .card .team .logo{
    width: 64px;
    height: 64px;
  }

  .card .tri{
    font-size: 16px;
  }

  .card .score{
    font-size: 18px;
  }

  .card .status{
    font-size: 12px;
  }

  .card-fr-teaser{
    gap: 8px;
    padding: 7px 10px;
  }

  .card-details,
  .card.fr-night .card-details{
    padding: 0 12px 12px;
  }

  .detail-box{
    border-radius: 16px;
    padding: 12px 10px 8px;
  }

  .detail-title,
  .stack-boxscores .fr-summary h4{
    font-size: 16px;
    margin-bottom: 10px;
  }

  .stack-boxscores{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stack-boxscores .detail-box table.bx{
    min-width: 490px;
    font-size: 12px;
  }

  .stack-boxscores .detail-box table.bx th,
  .stack-boxscores .detail-box table.bx td{
    padding: 7px 4px;
  }

  .stack-boxscores .detail-box table.bx th:first-child,
  .stack-boxscores .detail-box table.bx td:first-child{
    width: 130px;
    min-width: 110px;
  }
}

/* =========================================
   RECAP FR
   ========================================= */

/* ============================================================
   RÉCAP FRANÇAIS – Header de la carte
   ============================================================ */

.fn-recap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.fn-recap-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fn-recap-flag {
  font-size: 40px;
  line-height: 1;
  flex: 0 0 auto;
}

.fn-recap-title {
  font-size: 20px;
  font-weight: 950;
  color: #0f172a;
  line-height: 1.15;
}

.fn-recap-date {
  font-size: 13px;
  color: #64748b;
  margin-top: 3px;
  font-weight: 500;
}

.fn-recap-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.fn-recap-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, #1d4ed8 0%, #dc2626 100%);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.fn-recap-chip {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  white-space: nowrap;
}

/* ============================================================
   RÉCAP FRANÇAIS – Grille de cartes joueurs
   ============================================================ */

.fn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 14px;
  padding: 6px 0 4px;
}

.fn-loading,
.fn-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #94a3b8;
  padding: 24px 0;
  font-size: 14px;
}

/* ── Carte joueur ── */
.fn-card {
  --fn-color: #1d428a;
  position: relative;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 3px 16px rgba(15,23,42,.07);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}

.fn-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(15,23,42,.13);
}

/* Bande couleur équipe */
.fn-card::before {
  content: "";
  display: block;
  height: 5px;
  background: var(--fn-color);
  flex: 0 0 5px;
}

.fn-card--dnp {
  opacity: .58;
}

/* ── En-tête de la carte ── */
.fn-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 10px;
}

.fn-card__hs {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  background: linear-gradient(to bottom, #dde3eb 0%, #c2cdd8 55%, #aab5c2 100%);
  flex: 0 0 58px;
  border: 3px solid var(--fn-color);
}

.fn-card__info {
  flex: 1;
  min-width: 0;
}

.fn-card__name {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.fn-card__game-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.fn-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
  border-radius: 5px;
  padding: 1px 6px;
  letter-spacing: .03em;
  line-height: 1.5;
  flex-shrink: 0;
}
.fn-badge--win  { background: #dcfce7; color: #16a34a; }
.fn-badge--loss { background: #fee2e2; color: #dc2626; }
.fn-badge--live { background: #fff7ed; color: #ea580c; width: auto; padding: 1px 5px; }

.fn-card__tris {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fn-card__logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.fn-vs {
  font-size: 10px;
  opacity: .4;
}

.fn-card__score {
  font-size: 12px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.fn-card__min {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 3px;
}

.fn-card__share {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(15,23,42,.10);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background .15s;
  align-self: flex-start;
}

.fn-card__share:hover { background: #eff6ff; }

.fn-card__clip {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,85,164,.25);
  background: #0055A4;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background .15s, transform .12s;
  align-self: flex-start;
}
.fn-card__clip:hover { background: #003d7a; transform: scale(1.08); }

.fn-share-icon {
  width: 13px;
  height: 13px;
  fill: #2563eb;
}

/* ── Stats principales : PTS / REB / AST ── */
.fn-card__main-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(15,23,42,.018);
  border-top: 1px solid rgba(15,23,42,.06);
  border-bottom: 1px solid rgba(15,23,42,.06);
}

.fn-big-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 6px;
  gap: 4px;
}

.fn-big-stat + .fn-big-stat {
  border-left: 1px solid rgba(15,23,42,.06);
}

.fn-big-stat__val {
  font-size: 32px;
  font-weight: 950;
  color: #0f172a;
  line-height: 1;
}

.fn-big-stat--pts .fn-big-stat__val {
  color: var(--fn-color);
}

.fn-big-stat__lbl {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── Pills secondaires ── */
.fn-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 10px 14px 6px;
}

.fn-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,.07);
  border-radius: 6px;
  padding: 3px 8px;
}

.fn-pill b { font-weight: 900; color: #0f172a; }

.fn-pill--pm-pos { background: #f0fdf4; border-color: rgba(22,163,74,.2);  color: #16a34a; }
.fn-pill--pm-pos b { color: #16a34a; }
.fn-pill--pm-neg { background: #fef2f2; border-color: rgba(220,38,38,.2); color: #dc2626; }
.fn-pill--pm-neg b { color: #dc2626; }

/* ── Ligne de tirs ── */
.fn-card__shoot {
  font-size: 12px;
  color: #64748b;
  padding: 8px 14px 14px;
  text-align: center;
  border-top: 1px solid rgba(15,23,42,.04);
}

.fn-card__shoot b {
  color: #334155;
  font-weight: 700;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .fn-grid {
    grid-template-columns: 1fr;
  }
  .fn-recap-flag { font-size: 30px; }
  .fn-recap-title { font-size: 17px; }
  .fn-big-stat__val { font-size: 26px; }
}

/* ============================================================
   FIN RÉCAP FRANÇAIS
   ============================================================ */

.card.fr-night{
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
  overflow: hidden;
  margin: 14px 0;
  padding: 0;
}

.card.fr-night::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 22px;
  padding: 2px;
  background: linear-gradient(90deg, rgba(0,85,164,.55) 0%, rgba(255,255,255,.2) 50%, rgba(239,65,53,.55) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.card.fr-night .card-main{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 20px 20px 12px;
}

.card.fr-night .center{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.card.fr-night .score{
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
  margin: 0;
}

.card.fr-night .status-chip.pre{
  min-height: 28px;
  padding: 0 12px;
  background: rgba(15,23,42,.05);
  color: #0f172a;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: none;
  letter-spacing: .03em;
}

.card.fr-night .card-details{
  display: none;
  padding: 0 18px 18px;
}

.card.fr-night.open .card-details{
  display: block;
}

.card.fr-night .detail-box{
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}
.card.fr-night .table-wrap{
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.fr-night-table{
  width: 100%;
  min-width: 1240px;
  border-collapse: collapse;
}

.fr-night-table th,
.fr-night-table td{
  padding: 10px 8px;
  border-bottom: 1px solid #edf2f7;
  vertical-align: middle;
  text-align: center;
}

.fr-night-table th{
  font-size: 12px;
  font-weight: 900;
  color: #334155;
  white-space: nowrap;
}

.fr-night-table td.player-cell{
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  min-width: 220px;
  padding-right: 42px !important;
  overflow: visible;
}

.fr-night-table td.player-cell .pname{
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.fr-night-table .hs-wrap{
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.fr-night-table .hs-bg{
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #f1f5f9;
}

.fr-night-table .hs-img{
  position: absolute;
  inset: 0;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 999px;
}

.fr-night-table .match-cell{
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  justify-content: center;
}

.fr-night-table .match-res{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  flex: 0 0 12px;
}

.fr-night-table .res-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.fr-night-table .res-dot.win{ background: #16a34a; }
.fr-night-table .res-dot.loss{ background: #dc2626; }

.fr-night-table .match-tris{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fr-night-table .mtri{
  font-size: 13px;
  font-weight: 700;
}

.fr-night-table .mtri-win{ font-weight: 900; }
.fr-night-table .mtri-loss{ opacity: .55; }
.fr-night-table .vs{ font-size: 10px; opacity: .45; }
.fr-night-table .score-cell{ white-space: nowrap; font-variant-numeric: tabular-nums; }
.fr-night-table td.pts{ font-weight: 900; }

.fr-night-table tr.row-fr{
  background: linear-gradient(
    90deg,
    rgba(0,85,164,.10) 0%,
    rgba(255,255,255,0) 40%,
    rgba(239,65,53,.10) 100%
  );
}

.fr-night-table td.player-cell.player-cell--with-card{
  padding-right: 34px !important;
}

.bbd-card-mini-btn{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 2px solid #ef4135;
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.bbd-card-mini-btn__icon{
  width: 12px;
  height: 12px;
  fill: #2563eb;
}

.bbd-card-btn--inline{
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  padding: 0;
  background: #2563eb;
  color: #fff;
  opacity: .92;
  transition: .15s;
  z-index: 20;
  pointer-events: auto;
}

.bbd-card-btn--inline:hover{
  background: #1d4ed8;
  opacity: 1;
}

.bbd-card-btn--inline:disabled{
  opacity: .7;
  cursor: wait;
}

.fr-night-table th:last-child,
.fr-night-table td:last-child{
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  padding-left: 4px !important;
  padding-right: 4px !important;
  text-align: center;
}

.fr-night-table tr,
.fr-night-table td{
  position: relative;
}

/* ===== Boxscore FR Banner (joueurs français) ===== */

.bx-fr-banner{
  padding: 4px 0 8px;
}

.bx-fr-hdr{
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 0 2px;
}

.bx-fr-flag{
  font-size: 16px;
  line-height: 1;
}

.bx-fr-hdr-title{
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.bx-fr-list{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bx-fr-card{
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid rgba(148,163,184,.22);
  border-left: 3px solid var(--bxfr-color, #1d428a);
  border-radius: 10px;
  padding: 8px 12px 8px 8px;
  flex: 1 1 260px;
  max-width: 400px;
  box-shadow: 0 2px 6px rgba(15,23,42,.06);
}

.bx-fr-hs-wrap{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(to bottom, #dde3eb 0%, #c2cdd8 55%, #aab5c2 100%);
  border: 2px solid var(--bxfr-color, #1d428a);
}

.bx-fr-hs{
  width: 46px;
  height: 46px;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
}

.bx-fr-body{
  flex: 1;
  min-width: 0;
}

.bx-fr-name{
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.bx-fr-team-tag{
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 4px;
}

.bx-fr-main{
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.bx-fr-val{
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.bx-fr-pts-val{
  font-size: 20px;
  color: var(--bxfr-color, #1d428a);
}

.bx-fr-lbl{
  font-size: 9px;
  font-weight: 600;
  color: #64748b;
  margin-right: 3px;
  text-transform: uppercase;
}

.bx-fr-sep{
  color: #cbd5e1;
  font-size: 12px;
  margin: 0 1px;
}

.bx-fr-pm-badge{
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(148,163,184,.15);
  color: #475569;
  margin-left: 4px;
}

.bx-fr-pm--pos{ background: rgba(34,197,94,.18); color: #15803d; }
.bx-fr-pm--neg{ background: rgba(239,68,68,.13); color: #dc2626; }

.bx-fr-sec{
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
@media (max-width: 760px){
  .card.fr-night .card-main{
    padding: 16px 14px 8px;
  }

  .card.fr-night .card-details{
    padding: 0 12px 12px;
  }

  .card.fr-night .score{
    font-size: 16px;
  }

  .card.fr-night .detail-box{
    padding: 0;
  }

  .fr-night-table{
    min-width: 1040px;
  }

  .fr-night-table th,
  .fr-night-table td{
    padding: 10px 10px;
  }
}
@media (max-width: 760px){
  .bx-fr-card{
    flex: 1 1 100%;
    max-width: 100%;
  }
}
/* ===== BBD page wrapper ===== */

.bbd-wrap{
  width:100%;
  max-width:1240px;
  margin:16px auto 28px;
  box-sizing:border-box;
}

@media (max-width:1280px){
  .bbd-wrap{
    padding:0 12px;
  }
}

/* ===== Page title ===== */

.page-title{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin:14px 0 10px;
  width:100%;
}

.page-sub{
  margin:6px 0 0;
  color:rgba(15,23,42,.68);
  font-weight:650;
  font-size:13px;
  line-height:1.35;
}

@media (max-width:860px){
  .page-title{
    flex-direction:column;
    align-items:flex-start;
  }
}
 ── Reset ancien système ── */
.scoreboard-strip__page,
.scoreboard-strip__track { all: unset; }

/* ── Conteneur général ── */
.scoreboard-strip {
  margin: 10px 0 12px;
  padding: 12px 14px 14px;
  background: var(--surface, #fff);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(15,23,42,.07);
}

.scoreboard-strip__head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.scoreboard-strip__title {
  font-size: 18px;
  font-weight: 950;
  color: var(--ink, #0f172a);
  white-space: nowrap;
}

.scoreboard-strip__meta {
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  color: rgba(15,23,42,.45);
  white-space: nowrap;
}

/* ── Onglets ── */
.sb-tabs {
  display: flex;
  gap: 6px;
  background: rgba(15,23,42,.05);
  border-radius: 999px;
  padding: 3px;
}

.sb-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  color: rgba(15,23,42,.55);
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.sb-tab[aria-selected="true"] {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15,23,42,.10);
}

.sb-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(15,23,42,.08);
  font-size: 11px;
  font-weight: 900;
  color: rgba(15,23,42,.6);
  transition: background .15s, color .15s;
}

.sb-tab[aria-selected="true"] .sb-tab-badge {
  background: #2563eb;
  color: #fff;
}

/* ── Panels ── */
.sb-panels {
  position: relative;
  /* espace pour les flèches absolues */
  padding: 0 36px;
}

.sb-panel {
  display: none;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  /* masque le scrollbar natif */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sb-panel::-webkit-scrollbar { display: none; }

.sb-panel.is-active {
  display: flex;
}

/* ── Flèches de navigation ── */
.sb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  box-shadow: 0 2px 8px rgba(15,23,42,.12);
  font-size: 20px;
  line-height: 1;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity .2s, box-shadow .15s;
}
.sb-nav:hover { box-shadow: 0 4px 14px rgba(15,23,42,.18); }
.sb-nav--prev { left: 0; }
.sb-nav--next { right: 0; }
.sb-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── Mini cartes ── */
.sb-mini {
  flex: 0 0 182px;
  min-width: 182px;
  padding: 10px 10px 9px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(15,23,42,.06);
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
  cursor: pointer;
}

.sb-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15,23,42,.10);
}

.sb-mini.has-fr {
  background: linear-gradient(
    90deg,
    rgba(0,85,164,.07) 0%,
    #fff 40%,
    rgba(239,65,53,.07) 100%
  );
}

.sb-mini__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sb-mini__status {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
}
.sb-mini__status.pre    { background: #2563eb; }
.sb-mini__status.live   { background: #16a34a; }
.sb-mini__status.final  { background: #64748b; }

.sb-mini__fr { font-size: 14px; line-height: 1; }

.sb-mini__teams {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sb-mini__row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 7px;
}

.sb-mini__row img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.sb-mini__tri {
  font-size: 13px;
  font-weight: 900;
  color: var(--ink, #0f172a);
}

.sb-mini__score {
  font-size: 15px;
  font-weight: 950;
  color: var(--ink, #0f172a);
  font-variant-numeric: tabular-nums;
}

.sb-mini__row.is-loser .sb-mini__tri,
.sb-mini__row.is-loser .sb-mini__score { opacity: .45; }

.sb-mini__footer {
  margin-top: 7px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(15,23,42,.45);
  text-align: center;
  line-height: 1.3;
}

/* Carte vide si aucun match */
.sb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  color: rgba(15,23,42,.4);
}

/* ============================================================
   NOUVEAU DESIGN DES CARTES MATCHS – BleuBlancDunk v2
   À ajouter à la fin de /css/pages/home.css
   ============================================================ */


/* ----------------------------------------------------------
   CARTE DE BASE – positionnement relatif pour les éléments
   absolus (filigrane, flags)
   ---------------------------------------------------------- */
.card--v2 {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.card--v2:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
  transform: translateY(-1px);
}


/* ----------------------------------------------------------
   FILIGRANE LOGOS D'ÉQUIPE
   Positionnés en bas à gauche et bas à droite, légèrement
   inclinés vers l'extérieur. Très transparents.
   Taille : 156 px (130 × 1,2). Source : PNG (non SVG).
   ---------------------------------------------------------- */
.card-wm {
  position: absolute;
  bottom: -28px;
  width: 156px;
  height: 156px;
  opacity: 0.065;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* rotation légèrement vers l'extérieur pour chaque côté */
.card-wm--home {
  left: -18px;
  transform: rotate(-12deg);
}
.card-wm--away {
  right: -18px;
  transform: rotate(12deg);
}

.card-wm img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* ----------------------------------------------------------
   SCORE – BEAUCOUP PLUS GRAND
   clamp() pour s'adapter à toutes les tailles d'écran.
   ---------------------------------------------------------- */
.card--v2 .score,
.score--v2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem) !important;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  color: #0d1b2e;
}

.score--v2 .score-sep {
  font-weight: 300;
  opacity: 0.5;
  margin: 0 4px;
}

.score--v2 .score-sep--vs {
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.45;
  text-transform: uppercase;
}

.score--v2 .winner {
  color: #1a4b9a;
}


/* ----------------------------------------------------------
   LOGOS D'ÉQUIPE – PLUS GRANDS
   ---------------------------------------------------------- */
.card--v2 .logo {
  width: clamp(72px, 10vw, 96px) !important;
  height: clamp(72px, 10vw, 96px) !important;
  position: relative;
  z-index: 1;
}


/* ----------------------------------------------------------
   CONTENU DE LA CARTE – au dessus du filigrane
   ---------------------------------------------------------- */
.card--v2 .card-main,
.card--v2 .team,
.card--v2 .center {
  position: relative;
  z-index: 1;
}


/* ----------------------------------------------------------
   STRIP JOUEURS FRANÇAIS
   Affiche les headshots ronds côté équipe avec le prénom
   sous chaque photo. Centré sur le drapeau 🇫🇷.
   ---------------------------------------------------------- */
.card-fr-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 4px;
}

.card-fr-strip__side {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.card-fr-strip__side--home { flex-direction: row-reverse; }
.card-fr-strip__side--away { flex-direction: row; }

.card-fr-strip__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.card-fr-strip__flag {
  font-size: 1.2rem;
  line-height: 1;
}

.card-fr-strip__label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

/* Wrapper d'un headshot */
.card-fr-hs-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

/* Photo ronde */
.card-fr-hs {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  background: #e5e9f0;
  transition: transform 0.15s ease;
}

.card-fr-hs:hover {
  transform: scale(1.1);
}

/* Nom complet (prénom + nom) affiché sous le headshot */
.card-fr-hs-name {
  font-size: 0.62rem;
  font-weight: 600;
  color: #374151;
  text-align: center;
  max-width: 58px;   /* élargi pour accueillir les noms complets */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
}

/* ----------------------------------------------------------
   FILIGRANE LOGOS DANS LE BANDEAU FRANÇAIS
   Logos d'équipe en absolu dans les coins gauche/droit
   du strip .card-fr-strip. Très transparents.
   ---------------------------------------------------------- */
.card-fr-strip__wm {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  object-fit: contain;
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
}

.card-fr-strip__wm--home { left: 4px; }
.card-fr-strip__wm--away { right: 4px; }


/* ----------------------------------------------------------
   RESPONSIVE – mobile
   Sur petit écran : score légèrement réduit,
   headshots plus petits.
   ---------------------------------------------------------- */
@media (max-width: 480px) {
  .score--v2 {
    font-size: 2rem !important;
    letter-spacing: -1px;
  }

  .card--v2 .logo {
    width: 58px !important;
    height: 58px !important;
  }

  .card-fr-hs {
    width: 32px;
    height: 32px;
  }

  .card-fr-hs-name {
    font-size: 0.55rem;
    max-width: 36px;
  }

  .card-wm {
    width: 108px;   /* 90 × 1,2 */
    height: 108px;
  }
}
/* ══════════════════════════════════════════════════════════════
   TOGGLE VIGNETTES / TABLEAU
   ══════════════════════════════════════════════════════════════ */
.fn-view-toggle {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 3px;
  margin-right: 8px;
  flex-shrink: 0;
}
.fn-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 26px;
  border: none;
  background: transparent;
  border-radius: 5px;
  cursor: pointer;
  color: #5a7a9e;
  transition: background 0.15s, color 0.15s;
}
.fn-view-btn:hover:not(.fn-view-btn--active) {
  background: rgba(255,255,255,0.07);
  color: #9fb2d1;
}
.fn-view-btn--active {
  background: rgba(255,255,255,0.13);
  color: #e2e8f0;
}

/* ══════════════════════════════════════════════════════════════
   TABLEAU RÉCAP – MODE TABLE
   ══════════════════════════════════════════════════════════════ */
.fn-table-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 0 4px 16px;
}
.fn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 680px;
}

/* En-têtes */
.fn-table thead tr {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.fn-th-player {
  text-align: left;
  padding: 10px 12px 10px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #4a6080;
  min-width: 170px;
}
.fn-th-match {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #4a6080;
  min-width: 130px;
}
.fn-th-stat {
  text-align: center;
  padding: 10px 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #4a6080;
  white-space: nowrap;
  min-width: 42px;
}
.fn-th-sortable { cursor: pointer; user-select: none; }
.fn-th-sortable:hover { color: #7895b8; }
.fn-th-sorted { color: #56b0ff !important; }
.fn-sort-arrow { margin-left: 2px; font-size: 9px; opacity: .7; }

/* Lignes */
.fn-tr {
  border-bottom: 1px solid rgba(255,255,255,0.035);
  cursor: pointer;
  transition: background 0.12s;
}
.fn-tr:hover { background: rgba(255,255,255,0.025); }
.fn-tr--dnp { opacity: .45; }

/* Cellule joueur */
.fn-td-player { padding: 7px 12px 7px 4px; }
.fn-td-player-inner {
  display: flex;
  align-items: center;
  gap: 9px;
}
.fn-td-bar {
  width: 3px;
  min-height: 38px;
  border-radius: 2px;
  flex-shrink: 0;
  align-self: stretch;
}
.fn-td-hs {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--fn-color, #1d428a);
}
.fn-td-info { min-width: 0; }
.fn-td-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.fn-td-star {
  font-size: 13px;
  flex-shrink: 0;
  line-height: 1;
}
.fn-td-star--career { color: #f5c518; }
.fn-td-star--season { color: #a855f7; }
.fn-td-team {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #5a7a9e;
  margin-top: 2px;
}
.fn-td-logo { width: 14px; height: 14px; object-fit: contain; }

/* Cellule match */
.fn-td-match {
  padding: 7px 12px;
  white-space: nowrap;
  font-size: 12px;
}
.fn-td-opp { color: #7895b8; margin: 0 5px; }
.fn-td-score { color: #b0c4d8; font-weight: 600; }

/* Cellules stats */
.fn-td-stat {
  text-align: center;
  padding: 7px 7px;
  font-size: 14px;
  font-weight: 700;
  color: #b0c4d8;
}
.fn-td-pts {
  font-size: 17px;
  font-weight: 900;
}
.fn-td-shoot {
  font-size: 12px;
  font-weight: 600;
  color: #5a7a9e;
}
.fn-td-pm { font-weight: 800; }
.fn-td-pm--pos { color: #4ade80; }
.fn-td-pm--neg { color: #f87171; }
.fn-td-dnp {
  color: #3a4f64;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
}

/* Bouton carte dans le tableau */
.fn-td-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #5a7a9e;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}
.fn-td-share-btn:hover {
  background: rgba(86,176,255,0.15);
  color: #56b0ff;
}

@media (max-width: 600px) {
  .fn-table { min-width: 560px; }
  .fn-td-pts { font-size: 15px; }
}
