/* ==============================================
   JOUEURS.CSS – V2.0
   ============================================== */

/* Design tokens */
:root {
  --j-radius:    20px;
  --j-radius-sm: 12px;
  --j-shadow:    0 2px 16px rgba(15,23,42,.07);
  --j-shadow-md: 0 6px 28px rgba(15,23,42,.13);
  --j-shadow-lg: 0 16px 48px rgba(15,23,42,.20);
  --j-50:  #f8fafc;
  --j-100: #f1f5f9;
  --j-200: #e2e8f0;
  --j-300: #cbd5e1;
  --j-500: #64748b;
  --j-700: #334155;
  --j-900: #0f172a;
  --j-blue:  #1d4ed8;
  --j-green: #16a34a;
  --j-red:   #dc2626;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  max-width: 1280px;
  margin: 0 auto 80px;
  padding: 0 16px;
}
.note { font-size: .75rem; color: var(--j-500); }

/* ============================================================
   BOUTONS / CONTRÔLES
   ============================================================ */
.controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 12px 0 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--j-200);
  border-radius: 999px;
  background: #fff;
  color: var(--j-900);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s, border-color .12s, transform .12s;
}
.btn:hover {
  background: var(--j-50);
  border-color: var(--j-300);
  transform: translateY(-1px);
}

/* ============================================================
   LISTE – GRILLE DE CARTES
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

/* ---- CARD V2.0 ---- */
.card {
  --accent: #1a2c5e;
  --acR: 26; --acG: 44; --acB: 94;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--j-radius);
  background: #fff;
  box-shadow: var(--j-shadow);
  border: 1px solid rgba(15,23,42,.07);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--j-shadow-lg);
}

/* Zone image / gradient haut de carte */
.card-top {
  position: relative;
  height: 168px;
  overflow: hidden;
  background: linear-gradient(
    140deg,
    rgba(var(--acR),var(--acG),var(--acB),1)    0%,
    rgba(var(--acR),var(--acG),var(--acB),.78)  55%,
    rgba(var(--acR),var(--acG),var(--acB),.45) 100%
  );
}
/* Watermark logo en fond */
.card-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--team-logo, none);
  background-size: 200px;
  background-position: right -10px bottom -10px;
  background-repeat: no-repeat;
  opacity: .13;
  pointer-events: none;
}

/* Headshot qui émerge */
.card-hs {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 162px;
  width: auto;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(-6px 0 14px rgba(0,0,0,.28));
  pointer-events: none;
}

/* Info : nom + trigramme */
.card-top-info {
  position: absolute;
  top: 13px;
  left: 14px;
  z-index: 2;
  max-width: 58%;
}
.card-name {
  font-size: .95rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.card-tri {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
}
.card-logo-sm {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Grand chiffre PTS */
.card-pts-hero {
  position: absolute;
  bottom: 11px;
  left: 14px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}
.card-pts-val {
  font-size: 2.6rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.card-pts-lbl {
  font-size: .72rem;
  font-weight: 800;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding-bottom: 5px;
}

/* Corps de la carte */
.card-body {
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

/* Stats row */
.card-stats-row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.card-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  flex: 1;
  padding: 6px 2px;
  border-radius: 8px;
  background: var(--j-50);
}
.card-stat .l {
  font-size: .62rem;
  font-weight: 700;
  color: var(--j-500);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.card-stat .v {
  font-size: .92rem;
  font-weight: 900;
  color: var(--j-900);
  font-variant-numeric: tabular-nums;
}
.card-stat--muted .v { color: var(--j-500); }

/* Footer carte */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 7px;
  border-top: 1px solid var(--j-100);
}
.card-min {
  font-size: .72rem;
  color: var(--j-500);
  font-weight: 600;
}
.card-wl {
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--j-100);
  color: var(--j-700);
}

/* ============================================================
   TABLEAU RÉCAPITULATIF
   ============================================================ */
.panel {
  background: #fff;
  border: 1px solid var(--j-200);
  border-radius: var(--j-radius);
  overflow: hidden;
  margin-top: 20px;
  box-shadow: var(--j-shadow);
}
.panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--j-100);
}
.panel header strong {
  font-size: .92rem;
  font-weight: 800;
  color: var(--j-900);
}

.tbl {
  width: 100%;
  border-collapse: collapse;
}
.tbl thead th {
  padding: 10px 12px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--j-500);
  text-align: left;
  white-space: nowrap;
  background: var(--j-50);
  border-bottom: 1px solid var(--j-200);
  cursor: pointer;
  user-select: none;
  transition: background .1s;
}
.tbl thead th:hover { background: var(--j-100); color: var(--j-900); }
.tbl thead th.td-right { text-align: right; }
.tbl tbody tr {
  border-bottom: 1px solid var(--j-100);
  cursor: pointer;
  transition: background .1s;
}
.tbl tbody tr:last-child { border-bottom: none; }
.tbl tbody tr:hover { background: #eef4ff; }
.tbl tbody td {
  padding: 10px 12px;
  font-size: .875rem;
  vertical-align: middle;
  color: var(--j-900);
}
.tbl tbody td.td-right {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--j-200);
  background: var(--j-50);
}
.logo-sm {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}

.player-cell { min-width: 140px; }
.player-cell-inner { display: flex; flex-direction: column; gap: 2px; }
.player-name { font-weight: 800; font-size: .875rem; }
.records-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .68rem;
  color: var(--j-blue);
  text-decoration: none;
  font-weight: 700;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--j-blue) 25%, transparent);
  background: color-mix(in srgb, var(--j-blue) 6%, transparent);
  transition: background .12s;
}
.records-btn::before { content: '🏆'; font-size: .65rem; }
.records-btn:hover { background: color-mix(in srgb, var(--j-blue) 12%, transparent); }

/* Team pill – utilisé dans les deux tableaux */
.team-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(var(--acR, 30), var(--acG, 30), var(--acB, 80), .10),
    rgba(255,255,255,.9)
  );
  border: 1px solid rgba(var(--acR, 30), var(--acG, 30), var(--acB, 80), .2);
  font-weight: 800;
  font-size: .78rem;
  white-space: nowrap;
  color: var(--j-900);
}
.team-pill img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  background: var(--j-100);
  color: var(--j-700);
  border: 1px solid var(--j-200);
}

/* Colonne PTS mise en valeur */
.th-pts {
  background: color-mix(in srgb, #1d4ed8 8%, var(--j-50)) !important;
  color: #1d4ed8 !important;
}
.td-pts {
  font-weight: 900 !important;
  color: #1d4ed8 !important;
  font-size: .92rem !important;
}

/* Zéros dans faits marquants */
.hl-zero {
  color: var(--j-300) !important;
  font-size: .8rem;
}
/* DD et TD : couleurs spéciales */
.hl-dd strong { color: #7c3aed; }
.hl-td strong { color: #d97706; }

/* Tri */
.sortable { position: relative; cursor: pointer; }
.th-inner { display: inline-flex; align-items: center; gap: 4px; }
.th-ico { font-size: .9rem; }
.th-label { font-size: .7rem; font-weight: 700; letter-spacing: .04em; }
.th-sort { opacity: .35; font-size: .8rem; margin-left: 2px; transition: opacity .1s; }
.sortable.sorted-asc .th-sort,
.sortable.sorted-desc .th-sort { opacity: 1; color: var(--j-blue); }

/* Scroll (les deux tableaux) */
.tbl-scroll,
.hl-scroll { overflow-x: auto; }

/* Annule les marges horizontales de 14px de joueurs-inline.css */
#panelHighlightsPlayers,
.player-records,
.pinfo-block,
.games-wrap,
.form-card {
  margin-right: 0 !important;
  margin-left:  0 !important;
}

/* ============================================================
   PLAYER PAGE – wrapper couleur équipe
   ============================================================ */
.player-page {
  /* Tous les blocs héritent --acR/G/B/accent du wrapper */
}

/* Teinte douce sur les blocs blancs de la page joueur */
.player-page .pinfo-block,
.player-page .form-card,
.player-page .player-records,
.player-page .games-wrap {
  background: rgba(var(--acR,240),var(--acG,240),var(--acB,250),.03) !important;
  border-color: rgba(var(--acR,29),var(--acG,78),var(--acB,216),.16) !important;
}
/* highlights a son propre fond sombre – ne pas toucher */

/* Ligne de séparation interne teintée */
.player-page .pinfo-tiles,
.player-page .pinfo-section {
  border-color: rgba(var(--acR,29),var(--acG,78),var(--acB,216),.12) !important;
}
.player-page .pinfo-item {
  border-color: rgba(var(--acR,29),var(--acG,78),var(--acB,216),.1) !important;
}

/* Titres de section teintés */
.player-page .pinfo-section-title,
.player-page .pstats-title,
.player-page .form-kicker,
.player-page .player-records-sub {
  color: rgba(var(--acR,29),var(--acG,78),var(--acB,216),.7) !important;
}

/* Fond des tuiles stats teintées */
.player-page .form-kpi,
.player-page .games-table thead {
  background: rgba(var(--acR,29),var(--acG,78),var(--acB,216),.05) !important;
  border-color: rgba(var(--acR,29),var(--acG,78),var(--acB,216),.1) !important;
}

/* Lignes du game log au hover */
.player-page .games-table tbody tr:hover {
  background: rgba(var(--acR,29),var(--acG,78),var(--acB,216),.06) !important;
}

/* ============================================================
   HERO DÉTAIL V2.0
   ============================================================ */
.hero {
  position: relative;
  border-radius: var(--j-radius);
  overflow: hidden;
  background: var(--j-900);
  box-shadow: var(--j-shadow-md);
  margin-bottom: 14px;
}

/* Fond dégradé équipe */
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(var(--acR),var(--acG),var(--acB),1)    0%,
    rgba(var(--acR),var(--acG),var(--acB),.65)  40%,
    rgba(15,23,42,.96) 100%
  );
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--team-logo, none);
  background-size: 340px;
  background-position: right 20px center;
  background-repeat: no-repeat;
  opacity: .07;
  pointer-events: none;
}

/* Inner du héro */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 290px;
  align-items: end;
  min-height: 260px;
  padding: 28px 28px 0 32px;
  gap: 0;
}

/* Gauche */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 28px;
  gap: 12px;
}

/* Badges du haut */
.hero-top-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.badge-mini {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  white-space: nowrap;
}
.badge-mini--era {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.42);
  font-weight: 900;
}
.badge-mini--year { opacity: .8; }
.stripe-logo {
  height: 20px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 2px;
}

/* Nom joueur */
.hero-name {
  font-size: clamp(1.7rem, 3.8vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,.4);
}

/* Réseaux sociaux */
.hero-socials { display: flex; gap: 8px; align-items: center; }
.tw-mini, .ig-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  transition: background .15s;
  flex-shrink: 0;
}
.tw-mini:hover, .ig-mini:hover { background: rgba(255,255,255,.24); }
.tw-mini svg, .ig-mini svg { width: 14px; height: 14px; fill: #fff; }

/* Stats big */
.hero-big-stats {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.hero-big-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.hero-big-stat + .hero-big-stat {
  padding-left: 24px;
  border-left: 1px solid rgba(255,255,255,.2);
}
.hbs-val {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.hbs-lbl {
  font-size: .65rem;
  font-weight: 800;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .09em;
}

/* Stats mini sous les grandes */
.hero-mini-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 4px;
}
.hms-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 14px 0 0;
  margin-right: 14px;
  border-right: 1px solid rgba(255,255,255,.15);
}
.hms-stat:last-of-type { border-right: none; }
.hms-lbl {
  font-size: .58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
  margin-bottom: 1px;
}
.hms-val {
  font-size: .95rem;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hms-sep {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.2);
  margin: 0 10px;
}
.hms-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  white-space: nowrap;
  margin-right: 5px;
}

/* Droite : headshot */
.hero-right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.hero-hs {
  height: 280px;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(-8px 0 24px rgba(0,0,0,.45));
  display: block;
}

/* Ancienne .stripe – masquée (V2.0 utilise hero-inner) */
.hero > .stripe,
.hero .stripe-inner,
.hero .left,
.hero .right { display: none !important; }

/* ============================================================
   FORM CARD (5 DERNIERS MATCHS)
   ============================================================ */
.form-card {
  background: #fff;
  border: 1px solid var(--j-200);
  border-radius: var(--j-radius);
  padding: 16px 18px;
  margin-top: 14px;
  box-shadow: var(--j-shadow);
}
.form-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
  flex-wrap: wrap;
}
.form-title { display: flex; flex-direction: column; }
.form-kicker {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--j-500);
}
.form-main {
  font-size: .98rem;
  font-weight: 800;
  color: var(--j-900);
}
.form-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.form-pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  background: var(--j-100);
  color: var(--j-700);
}
.form-pill--live {
  background: #dcfce7;
  color: #15803d;
}
.form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.form-grid-6 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.form-kpi {
  background: var(--j-50);
  border: 1px solid var(--j-100);
  border-radius: var(--j-radius-sm);
  padding: 10px 6px;
  text-align: center;
}
.form-kpi .t {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--j-500);
  margin-bottom: 2px;
}
.form-kpi .v {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--j-900);
  font-variant-numeric: tabular-nums;
}
.form-kpi .arr { font-size: .85rem; margin-left: 2px; }
.form-kpi .sub {
  font-size: .62rem;
  margin-top: 2px;
  color: var(--j-500);
}
.form-kpi .sub small { font-size: .58rem; }
.d-pos { color: var(--j-green) !important; }
.d-neg { color: var(--j-red) !important; }
.d-neutral { color: var(--j-500) !important; }
.form-footer {
  margin-top: 10px;
  border-top: 1px solid var(--j-100);
  padding-top: 8px;
}
.form-note { font-size: .72rem; color: var(--j-500); }

/* ============================================================
   BLOC PROFIL UNIFIÉ (infos perso + parcours + récompenses)
   ============================================================ */
.pinfo-block {
  background: #fff;
  border: 1px solid var(--j-200);
  border-radius: var(--j-radius);
  overflow: hidden;
  margin-top: 14px;
  box-shadow: var(--j-shadow);
}

/* Grille infos perso */
.pinfo-tiles {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--j-100);
}
.pinfo-item {
  flex: 1 1 140px;
  padding: 14px 18px;
  border-right: 1px solid var(--j-100);
}
.pinfo-item:last-child { border-right: none; }
.pinfo-label {
  display: block;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--j-500);
  margin-bottom: 4px;
}
.pinfo-value {
  display: block;
  font-size: .92rem;
  font-weight: 800;
  color: var(--j-900);
}

/* Sections Parcours / Récompenses dans le bloc profil */
.pinfo-section {
  padding: 16px 20px;
  border-top: 1px solid var(--j-100);
}
.pinfo-section-title {
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--j-500);
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .pinfo-item { flex-basis: calc(50% - 1px); }
}

/* ============================================================
   PARCOURS & RÉCOMPENSES
   ============================================================ */
.player-extra { display: grid; gap: 12px; margin-top: 14px; }
.player-extra-block {
  background: #fff;
  border: 1px solid var(--j-200);
  border-radius: var(--j-radius);
  overflow: hidden;
  box-shadow: var(--j-shadow);
}
.fold-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background .12s;
}
.fold-toggle:hover { background: var(--j-50); }
.fold-label {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--j-700);
}
.fold-icon { font-size: 1.2rem; color: var(--j-500); }
/* fold-content toujours visible (cohérent avec joueurs-inline.css) */
.fold-content { display: block; padding: 0 18px 18px; }
.fold-content.is-hidden { display: none; }

/* Timeline parcours */
.player-timeline {
  list-style: none !important;
  margin: 0;
  padding: 0 0 0 16px !important;
  border-left: 2px solid rgba(var(--acR,29),var(--acG,78),var(--acB,216),.3);
  text-align: left !important;
}
.player-timeline .line-text {
  position: relative;
  font-size: .84rem;
  color: var(--j-700);
  padding: 5px 0 5px 12px !important;
  line-height: 1.5;
  text-align: left !important;
}
.player-timeline .line-text::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent, #1a2c5e);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--accent, #1a2c5e);
}

/* Récompenses */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.award-year-card {
  background: var(--j-50);
  border: 1px solid var(--j-200);
  border-radius: 12px;
  padding: 10px 12px;
}
.award-year-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  background: #eff6ff;
  color: var(--j-blue);
  letter-spacing: .04em;
}
.award-year-list { list-style: none; margin: 6px 0 0; padding: 0; }
.award-item { font-size: .83rem; color: var(--j-900); padding: 2px 0; line-height: 1.3; }
.award-label { font-weight: 600; }
.award-league { font-size: .78rem; color: var(--j-500); margin-left: 4px; }

/* ============================================================
   RECORDS
   ============================================================ */
.player-records {
  background: #fff;
  border: 1px solid var(--j-200);
  border-radius: var(--j-radius);
  overflow: hidden;
  margin-top: 14px;
  box-shadow: var(--j-shadow);
}
.player-records-scroll { overflow-x: auto; }
.player-records-inner { padding: 18px 20px; min-width: 380px; }
.player-records-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--j-900);
  margin: 0 0 2px;
}
.player-records-sub {
  font-size: .75rem;
  color: var(--j-500);
  margin: 0 0 14px;
}
.player-records-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  border-bottom: 1px solid var(--j-100);
  align-items: center;
}
.player-records-grid:last-child { border-bottom: none; }
.player-records-header {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--j-500);
  background: var(--j-50);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 4px;
  border: none;
}
.player-records-stat {
  font-size: .78rem;
  font-weight: 700;
  color: var(--j-700);
  padding: 10px 10px;
  white-space: nowrap;
}
.player-records-val {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 10px;
}
/* rec-main : joueurs-inline.css met le fond en sombre → on hérite blanc du parent */
.rec-main {
  font-size: 1.5rem !important;
  font-weight: 900;
  color: inherit !important;        /* hérite #f9fafb du .player-records-val */
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.rec-meta {
  font-size: .72rem;
  color: inherit !important;
  opacity: .72;
}
.rec-link { text-decoration: none; color: inherit; }
.rec-link:hover .rec-main { opacity: .85; }
.player-records-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.player-records-note { font-size: .72rem; color: var(--j-500); margin: 8px 0 0; }

/* ============================================================
   GAME LOG (DERNIERS MATCHS)
   ============================================================ */
.games-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--j-900);
  margin: 20px 0 8px;
}

.games-wrap {
  background: #fff;
  border: 1px solid var(--j-200);
  border-radius: var(--j-radius);
  overflow: hidden;
  box-shadow: var(--j-shadow);
}
.games-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.games-table thead th {
  padding: 10px 10px;
  background: var(--j-50);
  border-bottom: 1px solid var(--j-200);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--j-500);
  text-align: left;
  white-space: nowrap;
}
.games-table thead th.num { text-align: right; }
.games-table tbody tr {
  border-bottom: 1px solid var(--j-100);
  cursor: pointer;
  transition: background .1s;
}
.games-table tbody tr:last-child { border-bottom: none; }
.games-table tbody tr:hover { background: #f0f7ff; }
.games-table td { padding: 9px 10px; vertical-align: middle; font-size: .82rem; }
.games-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.games-actions {
  text-align: center;
  padding: 14px;
  border-top: 1px solid var(--j-100);
}
.games-cards { display: none; }
.game-card {
  padding: 12px 16px;
  border-bottom: 1px solid var(--j-100);
}
.game-card:last-child { border-bottom: none; }

.gs-elite { color: #7c3aed; font-weight: 900; }
.gs-good  { color: var(--j-green); font-weight: 800; }
.gs-ok    { color: var(--j-700); font-weight: 700; }
.gs-low   { color: var(--j-red); font-weight: 700; }
.rec-season { color: #b45309; font-weight: 900; }

.badge-wl {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 800;
}
.badge-wl.w { background: #dcfce7; color: var(--j-green); }
.badge-wl.l { background: #fee2e2; color: var(--j-red); }

.opp-cell, .match-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wl {
  font-size: .7rem;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid;
  font-weight: 800;
}
.wl.w { color: var(--j-green); border-color: #bbf7d0; background: #dcfce7; }
.wl.l { color: var(--j-red); border-color: #fecaca; background: #fee2e2; }
.pm-pos { color: var(--j-green); font-weight: 800; }
.pm-neg { color: var(--j-red); font-weight: 800; }

/* ============================================================
   FAITS MARQUANTS (fiche joueur)
   ============================================================ */
.highlights {
  background: #fff;
  border: 1px solid var(--j-200);
  border-radius: var(--j-radius);
  overflow: hidden;
  margin-top: 14px;
  box-shadow: var(--j-shadow);
  padding: 20px;
}
.hl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.hl-title { font-size: 1rem; font-weight: 800; color: var(--j-900); margin: 0 0 2px; }
.hl-sub { font-size: .75rem; color: var(--j-500); }
.hl-chip {
  font-size: .8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--j-100);
  color: var(--j-700);
}
.hl-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.hl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.hl-card {
  background: var(--j-50);
  border: 1px solid var(--j-100);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
}
.hl-card--big {
  background: linear-gradient(
    140deg,
    rgba(var(--acR),var(--acG),var(--acB),.07) 0%,
    rgba(var(--acR),var(--acG),var(--acB),.02) 100%
  );
  border-color: rgba(var(--acR),var(--acG),var(--acB),.18);
}
.hl-ico { font-size: 1.3rem; margin-bottom: 5px; }
.hl-k { font-size: .7rem; font-weight: 700; color: var(--j-500); margin-bottom: 6px; line-height: 1.3; }
.hl-v { font-size: 2.2rem; font-weight: 900; color: var(--j-900); line-height: 1; }
.hl-mini { font-size: .62rem; color: var(--j-500); margin-top: 4px; }
.hl-wm-player { display: none; }

/* ============================================================
   KPIs hero table (boxscores, etc.)
   ============================================================ */
.kpis { display: flex; flex-direction: column; gap: 10px; }
.kpis-row { display: grid; gap: 10px; }
.kpis-row--7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.kpis-row--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpi {
  background: var(--j-50);
  border: 1px solid var(--j-100);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}
.kpi .t {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--j-500);
  white-space: nowrap;
}
.kpi .v {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--j-900);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tables hero (byyear, clean) */
table.byyear, table.clean {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
table.byyear thead th, table.clean thead th {
  font-size: .7rem;
  font-weight: 700;
  color: var(--j-500);
  text-align: left;
  padding: 6px 10px;
  background: var(--j-50);
  border-bottom: 1px solid var(--j-200);
}
table.byyear tbody tr, table.clean tbody tr {
  border-bottom: 1px solid var(--j-100);
  transition: background .1s;
}
table.byyear tbody tr:hover, table.clean tbody tr:hover { background: var(--j-50); }
table.byyear td, table.clean td { padding: 8px 10px; font-size: .85rem; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Page reset */
.page-players a { text-decoration: none; color: inherit; }
.page-players a:focus { outline: 2px solid #8ab4f8; outline-offset: 2px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .kpis-row--7 { grid-template-columns: repeat(4, 1fr); }
  .kpis-row--6 { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr 240px; }
  .hero-hs { height: 240px; }
}

@media (max-width: 900px) {
  .panel { overflow-x: auto; }
  .panel .tbl { min-width: 700px; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 10px; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding: 22px 20px 0; }
  .hero-right { display: none; }
  .hero-left { padding-bottom: 22px; }
  .hero-name { font-size: 1.7rem; }
  .hero-big-stats { gap: 16px; }
  .hbs-val { font-size: 1.9rem; }
  .primary-stats { grid-template-columns: repeat(2, 1fr); }
  .secondary-stats { grid-template-columns: repeat(3, 1fr); }
  .form-grid-6 { grid-template-columns: repeat(4, 1fr); }
  .hl-top { grid-template-columns: 1fr; }
  .games-table { display: none; }
  .games-cards { display: block; }
  .kpis-row--7 { grid-template-columns: repeat(3, 1fr); }
  .kpis-row--6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-pts-val { font-size: 2.1rem; }
  .form-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .hl-grid { grid-template-columns: repeat(2, 1fr); }
  .primary-stats { grid-template-columns: repeat(2, 1fr); }
  .secondary-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .card-top { height: 152px; }
  .hl-top { grid-template-columns: 1fr; }
  .kpis-row--7, .kpis-row--6 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Badge phase postseason (Play-In / 1er tour / etc.) ── */
.po-stage-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  color: #fff;
  border-radius: 5px;
  padding: 1px 6px;
  vertical-align: middle;
  white-space: nowrap;
}

.score-sm {
  font-size: 11px;
  color: var(--muted, #64748b);
  margin-left: 4px;
}
