
  /* === Bloc RECORDS : fond France + bordure dégradée === */
  .player-records{
    margin:28px 14px 26px;
    padding:22px 22px 18px;
    border-radius:22px;
    position:relative;
    overflow:hidden;
    border:0 solid transparent;
    background:
      linear-gradient(135deg,
        rgba(37,99,235,1) 0%,
        rgba(255,255,255,1) 50%,
        rgba(220,38,38,1) 100%
      ) border-box,
      linear-gradient(135deg,
        rgba(12,32,68,0.93) 0%,
        rgba(230,230,240,0.75) 45%,
        rgba(180,40,40,0.85) 100%
      ) padding-box;
    box-shadow:0 18px 40px rgba(15,23,42,0.55);
  }

  .player-records::before{
    content:"";
    position:absolute;
    top:0; left:0; right:0;
    height:95px;
    background:linear-gradient(to bottom,
      rgba(0,0,0,0.22),
      rgba(0,0,0,0.05)
    );
    pointer-events:none;
    border-radius:22px 22px 0 0;
    z-index:1;
  }

  .player-records-title{
    margin:0 0 4px;
    font-size:1.2rem;
    font-weight:800;
    letter-spacing:.06em;
    text-transform:uppercase;
    position:relative;
    z-index:2;
    color:#000;
  }

  .player-records-sub{
    margin:0 0 16px;
    font-size:.8rem;
    position:relative;
    z-index:2;
    color:#000;
  }

  .player-records-grid{
    display:grid;
    grid-template-columns:160px 1fr 1fr;
    column-gap:14px;
    row-gap:8px;
    align-items:center;
  }

  .player-records-grid.player-records-header{
    font-size:.72rem;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#000;
    margin-bottom:4px;
  }

  .player-records-stat{
    font-size:.84rem;
    font-weight:700;
    color:#000;
    padding-left:10px;
    align-self:center;
  }

  .player-records-val{
    font-variant-numeric:tabular-nums;
    padding:9px 14px;
    border-radius:12px;
    background:linear-gradient(135deg,#020617,#020617 40%,#020b1f 100%);
    border:1px solid rgba(191,219,254,.7);
    color:#f9fafb;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
  }

  .rec-link{
    display:inline-flex;
    align-items:baseline;
    text-decoration:none;
    color:inherit;
    border-bottom:1px dashed rgba(148,163,184,.7);
    padding-bottom:1px;
    transition:border-color .15s, transform .15s, box-shadow .15s;
  }
  .rec-link:hover{
    border-color:currentColor;
    transform:translateY(-1px);
    box-shadow:0 4px 10px rgba(15,23,42,.45);
  }

  .rec-main{
    font-size:1.08rem;
    font-weight:800;
  }
  .rec-meta{
    margin-left:6px;
    font-size:.72rem;
    opacity:.85;
  }

  .player-records-note{
    margin-top:14px;
    font-size:.72rem;
    color:#000;
    text-align:right;
    opacity:.85;
  }

  /* ===== FIX RESPONSIVE RECORDS (scroll mobile) ===== */
  .player-records-scroll{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width: thin;
    padding-bottom: 6px;
    position:relative;
    z-index:2;
  }
  .player-records-inner{
    min-width: 680px; /* déclenche scroll sur mobile */
  }
  @media (min-width: 900px){
    .player-records-scroll{ overflow: visible; padding-bottom:0; }
    .player-records-inner{ min-width:0; }
  }

  /* blocs repliables */
  .fold-label{
    text-transform:uppercase;
    letter-spacing:.08em;
    font-size:.8rem;
  }
  .fold-icon{
    font-size:1rem;
    color:#94a3b8;
    margin-left:8px;
  }
  .fold-content{
    display:block;
  }
  .fold-content.is-hidden{
    display:none;
  }
  .player-extra-block .player-extra-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    background:transparent;
    border:0;
    padding:0;
    margin:0 0 8px;
    font-size:.9rem;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#0f172a;
    text-align:left;
    cursor:pointer;
  }
  .player-timeline{
    margin:8px 0 0;
    padding:0;
    list-style:none;
    text-align:center;
  }
  .player-timeline .line-text,
  .player-path-line{
    display:block;
    margin:2px 0;
  }
  .pre-nba,
  .player-timeline-empty{
    text-align:center;
  }

  /* Ligne de stats de tir plus compacte */
  .kpis-row--6 .kpi .t {
    font-size:0.7rem;
  }
  .kpis-row--6 .kpi .v {
    font-size:0.85rem;
  }
  .kpis-row--6 .kpi .v,
  .kpis-row--6 .kpi .t {
    white-space:normal;
  }





  /* ===== Tableau récap: scroll horizontal sur mobile ===== */
  #panelRecapPlayers{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }


  /* ===== Carousel tweets NBA France ===== */
  .tweets-carousel{
    display:flex;
    align-items:center;
    gap:8px;
  }

  .tw-nav{
    border:0;
    background:#0f172a;
    color:#fff;
    font-weight:800;
    width:36px;
    height:36px;
    border-radius:999px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 4px 10px rgba(0,0,0,.15);
    transition:transform .12s ease, opacity .12s ease;
  }
  .tw-nav:hover{ transform:translateY(-1px); }
  .tw-nav:disabled{
    opacity:.35;
    cursor:default;
    transform:none;
  }

  .tweets-viewport{
    overflow:hidden;
    width:100%;
  }

  .tweets-track{
    display:flex;
    gap:12px;
    transition:transform .35s ease;
    will-change:transform;
  }
  .tw-mini{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:32px;
    height:32px;
    border-radius:999px;
    background:rgba(255,255,255,.10);
    border:1px solid rgba(148,163,184,.35);
    margin-left:8px;
    transition:transform .12s ease, background .12s ease, border-color .12s ease;
  }
  .tw-mini svg{
    width:16px;
    height:16px;
    fill:#0f172a;
    opacity:.9;
  }
  .tw-mini:hover{
    transform:translateY(-1px);
    background:rgba(255,255,255,.16);
    border-color:rgba(148,163,184,.55);
  }
  .ig-mini{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:32px;
    height:32px;
    border-radius:999px;
    background:rgba(255,255,255,.10);
    border:1px solid rgba(148,163,184,.35);
    margin-left:6px;
    transition:transform .12s ease, background .12s ease, border-color .12s ease;
  }
  .ig-mini svg{
    width:16px;
    height:16px;
    fill:#E1306C;
  }
  .ig-mini:hover{
    transform:translateY(-1px);
    background:rgba(255,255,255,.16);
    border-color:rgba(225,48,108,.6);
  }

  .tweet-item{
    flex:0 0 calc((100% - 24px) / 3);
    background:#fff;
    border:1px solid rgba(148,163,184,.4);
    border-radius:12px;
    padding:6px;
    box-sizing:border-box;
    display:flex;
    justify-content:center;
  }

  .tweet-item iframe{
    width:100% !important;
  }

  @media (max-width: 900px){
    .tweet-item{ flex-basis: calc((100% - 12px) / 2); }
  }
  @media (max-width: 560px){
    .tweet-item{ flex-basis: 100%; }
  }

  .tc-logo {
    transition: transform 0.25s ease, filter 0.25s ease;
    transform-origin: center center;
  }
  .team-card:hover .tc-logo,
  .player-card:hover .tc-logo,
  .info-team-card:hover .tc-logo {
    transform: translateY(-3px) rotate(-8deg) scale(1.04);
    filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.35));
  }

  .player-records-actions{
    margin-top:14px;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:center;
    position:relative;
    z-index:2;
  }

  .player-records-actions .btn{
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 14px;
    border-radius:999px;
    font-weight:900;
    border:1px solid rgba(15,23,42,.18);
    background:rgba(255,255,255,.92);
    color:#0f172a;
    box-shadow:0 10px 22px rgba(15,23,42,.18);
    transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
  }

  .player-records-actions .btn:hover{
    transform:translateY(-1px);
    background:rgba(255,255,255,.98);
    box-shadow:0 14px 26px rgba(15,23,42,.22);
  }
/* ===== Bloc Identité Joueur ===== */

.profile-grid{
  margin: 18px 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.profile-tile{
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 14px 12px;
  text-align: center;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(15,23,42,.25);
}

.profile-tile .label{
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  color: rgba(255,255,255,.55);
  margin-bottom: 6px;
}

.profile-tile .value{
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
}



/* Mobile */
@media (max-width: 720px){
  .profile-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px){
  .profile-grid{ grid-template-columns: 1fr; }
}

/* ===== Games (detail joueur) ===== */
.games-wrap{ margin: 0 14px 18px; }
.games-actions{ margin: 10px 0 0; text-align:center; }

.games-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;           /* lignes “cartes” */
}

.games-table thead th{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#64748b;
  text-align:left;
  padding:0 12px 6px;
}

.games-table tbody tr{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(148,163,184,.28);
  box-shadow:0 10px 22px rgba(15,23,42,.08);
  border-radius:14px;
  overflow:hidden;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.games-table tbody tr:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 26px rgba(15,23,42,.12);
  border-color:rgba(148,163,184,.45);
}

.games-table tbody td{
  padding:12px;
  vertical-align:middle;
  border-top:1px solid rgba(148,163,184,.18);
  border-bottom:1px solid rgba(148,163,184,.18);
}

.games-table tbody tr td:first-child{
  border-left:1px solid rgba(148,163,184,.18);
  border-top-left-radius:14px;
  border-bottom-left-radius:14px;
}

.games-table tbody tr td:last-child{
  border-right:1px solid rgba(148,163,184,.18);
  border-top-right-radius:14px;
  border-bottom-right-radius:14px;
}

.games-table .num{ text-align:right; font-variant-numeric: tabular-nums; }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.match-cell{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 220px;
}
.opp-logo{
  width:28px;height:28px;border-radius:8px;
  background:#fff;
  border:1px solid rgba(148,163,184,.25);
  object-fit:contain;
}
.match-meta{ display:flex; flex-direction:column; line-height:1.1; }
.match-top{ font-weight:900; color:#0f172a; }
.match-sub{ font-size:12px; color:#64748b; margin-top:2px; }

.badge-wl{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  border:1px solid rgba(148,163,184,.25);
  margin-right:6px;
}
.badge-wl.w{ background:rgba(34,197,94,.14); color:#166534; border-color:rgba(34,197,94,.25); }
.badge-wl.l{ background:rgba(239,68,68,.14); color:#991b1b; border-color:rgba(239,68,68,.25); }

.kpi-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(2,6,23,.06);
  border:1px solid rgba(148,163,184,.18);
  font-weight:900;
  font-size:12px;
}

/* Mobile: table off, cards on */
.games-cards{ display:none; }

@media (max-width: 840px){
  .games-table{ display:none; }
  .games-cards{ display:grid; gap:10px; }
  .game-card{
    background:rgba(255,255,255,.92);
    border:1px solid rgba(148,163,184,.28);
    border-radius:16px;
    box-shadow:0 10px 22px rgba(15,23,42,.08);
    padding:12px;
    cursor:pointer;
  }
  .game-card:hover{ border-color:rgba(148,163,184,.45); }
  .gc-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
  .gc-left{ display:flex; align-items:center; gap:10px; }
  .gc-date{ font-size:12px; color:#64748b; }
  .gc-opp{ font-weight:950; }
  .gc-score{ font-size:12px; color:#64748b; margin-top:2px; }
  .gc-grid{
    margin-top:10px;
    display:grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap:8px;
  }
  .gc-stat{
    text-align:center;
    background:rgba(2,6,23,.04);
    border:1px solid rgba(148,163,184,.18);
    border-radius:12px;
    padding:8px 6px;
  }
  .gc-stat .t{ font-size:10px; letter-spacing:.08em; text-transform:uppercase; color:#64748b; font-weight:900; }
  .gc-stat .v{ margin-top:3px; font-weight:950; font-variant-numeric: tabular-nums; }
  .gc-tirs{ grid-column:1 / -1; display:flex; justify-content:space-between; gap:8px; }
  .gc-tirs .gc-stat{ flex:1; }
}
.games-table td:nth-last-child(4),
.games-table td:nth-last-child(3),
.games-table td:nth-last-child(2){
  min-width: 56px;
}
/* ===== Records de saison (game log) ===== */
.rec-season{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 32px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 950;
  color: #0f172a;
  background: rgba(250, 204, 21, .22);            /* or */
  border: 1px solid rgba(250, 204, 21, .55);
  box-shadow: 0 6px 16px rgba(15,23,42,.12);
}

.rec-season::after{
  content:"★";
  font-size: .7em;
  margin-left: 6px;
  opacity: .9;
}

/* Turnovers record = “pas un record sympa” (optionnel) */
.rec-season-bad{
  background: rgba(239, 68, 68, .14);
  border-color: rgba(239, 68, 68, .35);
}

.rec-season-bad::after{
  content:"!";
  font-size: .75em;
  margin-left: 6px;
  opacity: .85;
}
/* ===== Chips MIN / PTS : visuel différent ===== */
.chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  padding:5px 10px;
  border-radius:999px;
  font-weight:950;
  font-size:12px;
  border:1px solid rgba(148,163,184,.20);
  font-variant-numeric: tabular-nums;
}
.form-card{
  box-shadow:
    0 12px 32px rgba(250,204,21,.18),
    0 0 0 1px rgba(250,204,21,.25);
}
.form-card .v{
  font-size: 26px;
  font-weight: 950;
}

/* MIN: plus "tech", sobre, légèrement bleuté */
.chip--min{
  background:linear-gradient(135deg, rgba(2,6,23,.06), rgba(59,130,246,.08));
  color:#0f172a;
}

/* PTS: plus "scoring", plus punchy */
.chip--pts{
  background:linear-gradient(135deg, rgba(251,191,36,.22), rgba(234,88,12,.16));
  border-color: rgba(234,88,12,.22);
  color:#111827;
}

/* ===== Records: flashy + badges ===== */
.stat-wrap{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.18);
  background:rgba(2,6,23,.04);
  font-weight:950;
}

/* Record saison (★) : glow + pulse doux */
.stat-wrap.is-record{
  background:linear-gradient(135deg, rgba(251,191,36,.26), rgba(34,197,94,.12));
  border-color: rgba(251,191,36,.45);
  box-shadow: 0 10px 26px rgba(251,191,36,.18), 0 0 0 3px rgba(251,191,36,.10);
  animation: recPulse 1.6s ease-in-out infinite;
}

@keyframes recPulse{
  0%,100%{ transform: translateY(0); filter: saturate(1); }
  50%{ transform: translateY(-1px); filter: saturate(1.25); }
}

/* Badge étoile */
.games-table td:first-child{
  white-space: nowrap;
}
/* ===== FORM CARD (L5) ===== */
.form-card{
  margin: 14px 14px 6px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(900px 260px at 20% 0%, rgba(251,191,36,.18), transparent 60%),
    radial-gradient(900px 260px at 80% 0%, rgba(59,130,246,.14), transparent 60%),
    rgba(255,255,255,.92);

  border: 1px solid rgba(148,163,184,.28);
  box-shadow: 0 14px 34px rgba(15,23,42,.10);
}

.form-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: 20px;
  padding:2px;
  background: linear-gradient(90deg, rgba(251,191,36,.55), rgba(59,130,246,.45), rgba(34,197,94,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events:none;
  opacity:.7;
}

.form-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  position:relative;
  z-index:1;
}

.form-title .form-kicker{
  display:block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 950;
  color: #64748b;
}

.form-title .form-main{
  display:block;
  font-size: 16px;
  font-weight: 980;
  color: #0f172a;
  margin-top:2px;
}

.form-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.form-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  background: rgba(2,6,23,.04);
  border: 1px solid rgba(148,163,184,.22);
  color:#0f172a;
}

.form-pill--live{
  background: rgba(34,197,94,.10);
  border-color: rgba(34,197,94,.22);
  color:#166534;
}

.form-grid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
  position:relative;
  z-index:1;
}

.form-kpi{
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(148,163,184,.20);
}

.form-kpi .t{
  font-size: 11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight: 950;
  color:#64748b;
}

.form-kpi .v{
  margin-top: 5px;
  font-size: 22px;
  font-weight: 1000;
  color:#0f172a;
  font-variant-numeric: tabular-nums;
  display:flex;
  align-items:baseline;
  gap:8px;
}

.form-kpi .arr{
  font-size: 14px;
  opacity:.9;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(251,191,36,.20);
  border: 1px solid rgba(251,191,36,.35);
}

.form-kpi .d{
  margin-top: 4px;
  font-size: 12px;
  font-weight: 900;
  opacity:.92;
}

.d-pos{ color:#166534; }
.d-neg{ color:#991b1b; }
.d-neutral{ color:#64748b; }

.form-footer{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  position:relative;
  z-index:1;
}

.form-note{
  font-size: 12px;
  color:#334155;
  font-weight: 800;
  opacity:.92;
}

.form-cta{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 1000;
  border: 1px solid rgba(15,23,42,.18);
  background: rgba(255,255,255,.96);
  color:#0f172a;
  box-shadow: 0 10px 22px rgba(15,23,42,.10);
  transition: transform .12s ease, box-shadow .12s ease;
}
.form-cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15,23,42,.14);
}

@media (max-width: 720px){
  .form-grid{ grid-template-columns: 1fr; }
  .form-kpi .v{ font-size: 20px; }
}
/* ===== Bloc Performance Saison ===== */

.hero .kpis{
  background: linear-gradient(
    135deg,
    rgba(var(--acR), var(--acG), var(--acB), .08),
    rgba(255,255,255,.95)
  );
  border: 1px solid rgba(var(--acR), var(--acG), var(--acB), .25);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
}

.hero .kpi{
  background: rgba(255,255,255,.85);
  border-radius: 14px;
  padding: 14px 12px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.hero .kpi:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15,23,42,.12);
}

.hero .kpi .t{
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 800;
}

.hero .kpi .v{
  font-size: 22px;
  font-weight: 900;
  margin-top: 6px;
  color: #0f172a;
}
/* ===== Bloc Saison Performance ===== */

.season-block{
  margin: 20px 14px;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(var(--acR), var(--acG), var(--acB), .08),
    rgba(255,255,255,.95)
  );
  border: 1px solid rgba(var(--acR), var(--acG), var(--acB), .25);
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
}

.primary-stats{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:16px;
  margin-bottom:20px;
}

.primary-stat{
  background:#ffffff;
  border-radius:16px;
  padding:16px;
  text-align:center;
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
}

.primary-stat .label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:800;
  color:#64748b;
}

.primary-stat .value{
  font-size:28px;
  font-weight:900;
  margin-top:6px;
  color:#0f172a;
}

/* Stats secondaires */

.secondary-stats{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap:12px;
}

.secondary-stat{
  background:rgba(255,255,255,.7);
  border-radius:12px;
  padding:10px;
  text-align:center;
}

.secondary-stat .label{
  font-size:10px;
  font-weight:700;
  color:#64748b;
}

.secondary-stat .value{
  font-size:15px;
  font-weight:800;
  margin-top:4px;
}
.badge-mini--era{
  background: linear-gradient(135deg, rgba(250,204,21,.25), rgba(59,130,246,.18));
  border-color: rgba(250,204,21,.45);
  font-weight: 1000;
}
.badge-mini--year{
  background: rgba(2,6,23,.06);
  border-color: rgba(148,163,184,.22);
  font-weight: 950;
}
/* ===== Percentiles + Impact bar ===== */
.season-pcts{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.pct-pill{
  display:inline-flex;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  font-weight:950;
  font-size:12px;
  background:rgba(2,6,23,.04);
  border:1px solid rgba(148,163,184,.22);
  color:#0f172a;
}

/* Barre d'impact sous PTS */
.impact-bar{
  margin-top:10px;
  height:8px;
  border-radius:999px;
  background:rgba(2,6,23,.08);
  border:1px solid rgba(148,163,184,.18);
  overflow:hidden;
}
.impact-bar span{
  display:block;
  height:100%;
  border-radius:999px;
  background: linear-gradient(90deg,
    rgba(59,130,246,.55),
    rgba(250,204,21,.55),
    rgba(34,197,94,.45)
  );
}
.form-grid-4{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:10px;
  position:relative;
  z-index:1;
}
.form-grid-6{
  margin-top: 10px;
  display:grid;
  grid-template-columns: repeat(7, minmax(0,1fr)); /* ← 7 colonnes */
  gap:10px;
  position:relative;
  z-index:1;
}
.form-grid-6 .form-kpi{
  padding: 8px 8px;
}

.form-grid-6 .form-kpi .v{
  font-size:18px;
}

.form-grid-6 .form-kpi .t{
  font-size:10px;
}
.form-grid-6{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(148,163,184,.25);
}


.form-kpi .sub{
  margin-top: 4px;
  font-size: 12px;
  font-weight: 900;
  opacity:.92;
}
.form-kpi .sub small{
  font-size: 11px;
  font-weight: 900;
  opacity:.85;
}
.form-kpi .sub.d-pos{ color:#166534; }
.form-kpi .sub.d-neg{ color:#991b1b; }
.form-kpi .sub.d-neutral{ color:#64748b; }

@media (max-width: 900px){
  .form-grid-4{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .form-grid-6{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .form-grid-6{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.hero-body{
  display:grid;
  grid-template-columns: 240px 1fr; /* plus de place au portrait */
  gap: 18px;
  align-items: center;
}

.hero .hs-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 240px;          /* donne une “hauteur” au bloc portrait */
}

.hero img.hs{
  width: 420px;               /* portrait plus gros */
  max-width: 100%;
  height: auto;
  object-fit: contain;
  transform: translateY(6px); /* petit drop visuel (optionnel) */
}
@media (max-width: 900px){
  .hero-body{ grid-template-columns: 1fr; }
  .hs-wrap{ min-height: 260px; }
  .hs{ width: 240px; }
}
.pm-pos{ color:#0a7d2c; font-weight:900; background:rgba(10,125,44,.08); border-radius:10px; padding:2px 8px; }
.pm-neg{ color:#c62828; font-weight:900; background:rgba(198,40,40,.08); border-radius:10px; padding:2px 8px; }

/* === CARD BODY LAYOUT (joueurs.php) === */
.player-card .card-body{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px 16px;
}

/* Portrait */
.player-card .card-headshot{
  width: 120px;
  height: 120px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:hidden;
}

.player-card .card-headshot img{
  width: 120px;
  height: 120px;
  object-fit: contain;      /* important: éviter les têtes coupées */
  transform: translateY(6px); /* petit “pose” naturel */
}
/* ===== VIGNETTES joueurs.php : portrait + lisibilité ===== */
.page-players .grid .card .row{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items:center;
}

/* zone portrait */
.page-players .grid .card .hs-wrap{
  width: 140px;
  height: 140px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.page-players .grid .card img.hs{
  width: 140px;
  height: 140px;
  object-fit: contain;
  object-position: center;
  transform: scale(1.15);
}

/* zone stats : meilleure lisibilité */
.page-players .grid .card .stats{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 10px 12px;
  backdrop-filter: blur(6px);
}

/* watermark équipe (si tu l’utilises via --team-logo) : trop agressif sur tes chiffres */
.page-players .grid .card{
  background-size: cover;
  background-position: center;
}
.page-players .grid .card::before{
  /* si tu as déjà un ::before quelque part, dis-moi et on l’intègre dedans */
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.25);
  pointer-events:none;
}
.page-players .grid .card > *{
  position:relative;
  z-index:1;
}

/* Zone stats lisible */
.player-card .card-stats{
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 10px 12px;
  backdrop-filter: blur(6px);
}

/* Grid stats */
.player-card .stat-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 10px;
}

.player-card .stat{
  text-align:center;
}

.player-card .stat .k{
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
  font-weight: 700;
}

.player-card .stat .v{
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}

/* Watermark -> beaucoup plus discret */
.player-card .team-watermark{
  opacity: 0.10;     /* au lieu de 0.25/0.3 */
  filter: blur(0.2px);
}
/* ===== TABLEAU JOUEURS CLEAN ALIGNMENT ===== */

#panelRecapPlayers table{
  width:100%;
  table-layout: fixed;
}

/* Avatar */
#panelRecapPlayers th:nth-child(1),
#panelRecapPlayers td:nth-child(1){
  width:4%;
}

/* Joueur */
#panelRecapPlayers th:nth-child(2),
#panelRecapPlayers td:nth-child(2){
  width:22%;
}

/* Équipe */
#panelRecapPlayers th:nth-child(3),
#panelRecapPlayers td:nth-child(3){
  width:8%;
}

/* V-D */
#panelRecapPlayers th:nth-child(4),
#panelRecapPlayers td:nth-child(4){
  width:6%;
}

/* Toutes les stats */
#panelRecapPlayers th:nth-child(n+5),
#panelRecapPlayers td:nth-child(n+5){
  width:5%;
  text-align:right;
  font-variant-numeric: tabular-nums;
}

.player-cell-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.player-name{
  font-weight:600;
}

.records-btn{
  font-size:12px;
  font-weight:700;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(250,204,21,.18);
  border:1px solid rgba(250,204,21,.35);
  text-decoration:none;
  color:#0f172a;
  white-space:nowrap;
}
.team-inner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
#panelRecapPlayers tbody tr{
  background:#fff;
  transition:background .15s ease;
}

#panelRecapPlayers tbody tr:hover{
  background:rgba(59,130,246,.05);
}
.player-cell-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  overflow:hidden;
}

.player-name{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.records-btn{
  flex-shrink:0;
}
@media (max-width: 900px){
  #panelRecapPlayers{
    overflow-x:auto;
  }

  #panelRecapPlayers table{
    min-width: 900px;
  }
}
/* ===== HIGHLIGHTS : layout robuste ===== */
.card.highlights{
  position:relative;
  overflow:hidden;
}

/* Le watermark reste derrière */
.card.highlights .hl-wm-player{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  opacity:.18;            /* ajuste */
  background:
    radial-gradient(1200px 600px at 30% 70%, rgba(0,0,0,.10), transparent 60%),
    var(--wmPlayer) left bottom / cover no-repeat;
  filter: grayscale(1);
}

/* Tout le contenu devant, SAUF le watermark */
.card.highlights > :not(.hl-wm-player){
  position:relative;
  z-index:2;
}

/* En-tête */
.hl-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  width:100%;
  margin-bottom:10px;
}

/* Top KPIs = 3 colonnes */
.hl-top{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  width:100%;
  margin:10px 0 14px;
}

/* Grid secondaire = 3 colonnes aussi */
.hl-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  width:100%;
}

/* Cartes */
.hl-card{
  border:1px solid rgba(148,163,184,.25);
  border-radius:14px;
  padding:12px;
  background:rgba(15,23,42,.60);
  backdrop-filter: blur(4px);
  text-align:center;
}

/* Responsive */
@media (max-width: 860px){
  .hl-top, .hl-grid{ grid-template-columns:1fr; }
  .hl-head{ flex-direction:column; align-items:flex-start; }
}
/* Watermark : beaucoup plus léger et plus bas */
.card.highlights .hl-wm-player{
  opacity:.07;                 /* avant .18 */
  filter: grayscale(1) blur(0.2px);
  background-position: 35% 20%;
}

/* Cartes : vrai style glass / dark clean */
.hl-card{
  background: rgba(15,23,42,.52);       /* au lieu du gris */
  border: 1px solid rgba(148,163,184,.22);
  color: #e5e7eb;                       /* texte clair */
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

/* Titres/valeurs plus lisibles */
.hl-card .kpi-title{ 
  font-weight: 700;
  color:#f3f4f6;
  letter-spacing: .2px;
}

.hl-card .kpi-val{
  font-size: 22px;
  font-weight: 800;
  color:#ffffff;
  line-height: 1.1;
}

.hl-card .kpi-sub{
  color: rgba(226,232,240,.9);
  font-size: 13px;
}

/* Header */
.hl-title{ font-size: 20px; font-weight: 800; color:#f8fafc; }
.hl-sub{ color: rgba(226,232,240,.85); }
.hl-chip{
  background: rgba(2,6,23,.55);
  border: 1px solid rgba(148,163,184,.22);
  color:#e5e7eb;
  border-radius: 999px;
  padding: 8px 12px;
}

/* Cartes moins “plates” */
.hl-card{
  border-radius: 16px;
  padding: 14px 14px;
  min-height: 84px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap: 6px;
}

.hl-card .kpi-emoji{ font-size: 18px; }

.hl-top, .hl-grid{ gap: 14px; }
@media (max-width: 1100px){
  .hl-top, .hl-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px){
  .hl-top, .hl-grid{ grid-template-columns: 1fr; }
}

/* ===========================
   HIGHLIGHTS (Faits marquants)
   =========================== */

.card.highlights{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 16px;
  background:
    radial-gradient(900px 420px at 18% 10%, rgba(99,102,241,.18), transparent 58%),
    radial-gradient(700px 380px at 85% 30%, rgba(34,211,238,.12), transparent 60%),
    rgba(2,6,23,.72);
  border: 1px solid rgba(148,163,184,.18);
  box-shadow: 0 18px 45px rgba(0,0,0,.30);
}

/* Watermark joueur */
.card.highlights .hl-wm-player{
  position:absolute;
  inset: 0;
  pointer-events:none;
  background-image: var(--wmPlayer);
  background-repeat:no-repeat;
  background-position: 50% 18%;
  background-size: clamp(520px, 70%, 860px);
  opacity: .06;                 /* <- énorme gain */
  filter: grayscale(1) contrast(.95) blur(.2px);
  transform: translateY(6px);
}

/* (Optionnel) watermark logo si tu l’utilises ailleurs */
.card.highlights.has-wm::before{
  content:"";
  position:absolute;
  inset:-40px -40px auto auto;
  width: 280px; height: 280px;
  background-image: var(--wmLogo);
  background-repeat:no-repeat;
  background-size: contain;
  opacity:.04;
  filter: grayscale(1);
  pointer-events:none;
  transform: rotate(8deg);
}

/* Header */
.card.highlights .hl-head{
  position: relative;
  z-index: 1;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card.highlights .hl-title{
  margin:0;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: .2px;
  color: rgba(248,250,252,.98);
}

.card.highlights .hl-sub{
  margin-top: 4px;
  font-size: 13px;
  color: rgba(226,232,240,.80);
}

/* Chip matchs joués */
.card.highlights .hl-chip{
  background: rgba(15,23,42,.62);
  border: 1px solid rgba(148,163,184,.18);
  color: rgba(226,232,240,.92);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}
.card.highlights .hl-chip strong{
  color: #fff;
  font-weight: 900;
}

/* Grilles */
.card.highlights .hl-top{
  position: relative;
  z-index: 1;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.card.highlights .hl-grid{
  position: relative;
  z-index: 1;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* Cartes */
.card.highlights .hl-card{
  position: relative;
  background: rgba(15,23,42,.52);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.card.highlights .hl-card:hover{
  transform: translateY(-2px);
  border-color: rgba(148,163,184,.28);
  background: rgba(15,23,42,.60);
}

/* Variante big */
.card.highlights .hl-card--big{
  padding: 16px 16px 14px;
  min-height: 108px;
}

/* Contenu interne */
.card.highlights .hl-ico{
  font-size: 18px;
  line-height: 1;
  margin-bottom: 8px;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
}

.card.highlights .hl-k{
  font-size: 13px;
  font-weight: 800;
  color: rgba(241,245,249,.92);
  letter-spacing: .15px;
  margin-bottom: 4px;
}

.card.highlights .hl-v{
  font-size: 22px;
  font-weight: 950;
  letter-spacing: .2px;
  color: rgba(255,255,255,.98);
  line-height: 1.05;
}

.card.highlights .hl-mini{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(226,232,240,.78);
}

/* Responsive */
@media (max-width: 980px){
  .card.highlights .hl-top,
  .card.highlights .hl-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card.highlights .hl-chip{ white-space: normal; }
}
@media (max-width: 640px){
  .card.highlights{ padding: 14px; }
  .card.highlights .hl-head{ flex-direction: column; align-items:flex-start; }
  .card.highlights .hl-top,
  .card.highlights .hl-grid{
    grid-template-columns: 1fr;
  }
}

/* ===========================
   HIGHLIGHTS – Team Themed V2
   =========================== */

.card.highlights{
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 18px;

  /* Couleur équipe visible mais élégante */
  background:
    radial-gradient(900px 500px at 0% 0%, 
      color-mix(in srgb, var(--team) 22%, transparent),
      transparent 60%
    ),
    radial-gradient(900px 500px at 100% 100%, 
      color-mix(in srgb, var(--team) 15%, transparent),
      transparent 65%
    ),
    rgba(15,23,42,.82);   /* moins foncé qu'avant */

  border: 1px solid rgba(148,163,184,.18);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}


/* ===========================
   LOGO ÉQUIPE – HAUT GAUCHE
   =========================== */

.card.highlights::before{
  content:"";
  position:absolute;
  top:20px;
  left:20px;
  width:180px;
  height:180px;
  background-image: var(--wmLogo);
  background-repeat:no-repeat;
  background-size:contain;
  opacity:.06;   /* très subtil */
  filter: grayscale(1);
  pointer-events:none;
}


/* ===========================
   PORTRAIT JOUEUR – BAS DROITE
   =========================== */

.card.highlights .hl-wm-player{
  position:absolute;
  bottom:-40px;
  right:-20px;
  width:520px;
  height:520px;
  background-image: var(--wmPlayer);
  background-repeat:no-repeat;
  background-size:contain;
  background-position:bottom right;
  opacity:.08;         /* léger */
  filter: grayscale(1) contrast(1.05);
  pointer-events:none;
}


/* ===========================
   CONTENU AU DESSUS
   =========================== */

.card.highlights > *{
  position: relative;
  z-index: 2;
}


/* ===========================
   CARTES – MOINS FONCÉES
   =========================== */

.card.highlights .hl-card{
  background: rgba(30,41,59,.70); /* plus clair */
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(10px);
  transition: transform .15s ease, background .15s ease;
}

.card.highlights .hl-card:hover{
  transform: translateY(-3px);
  background: rgba(30,41,59,.82);
}


/* ===========================
   TYPO PLUS PREMIUM
   =========================== */

.card.highlights .hl-k{
  font-size: 13px;
  font-weight: 700;
  color: rgba(241,245,249,.90);
}

.card.highlights .hl-v{
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  margin-top: 4px;
}

.card.highlights .hl-mini{
  font-size: 12px;
  color: rgba(226,232,240,.75);
}


/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 900px){
  .card.highlights .hl-wm-player{
    width:380px;
    height:380px;
    opacity:.06;
  }

  .card.highlights::before{
    width:120px;
    height:120px;
  }
}

/* ===========================
   CARTES = COULEURS ÉQUIPE
   =========================== */

/* couleur de fond des tuiles teintée */
.card.highlights .hl-card{
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--team) 22%, rgba(15,23,42,.88)),
      rgba(15,23,42,.82) 55%
    );
  border: 1px solid color-mix(in srgb, var(--team) 28%, rgba(148,163,184,.18));
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(10px);
  transition: transform .15s ease, filter .15s ease, border-color .15s ease;
}

/* petit accent “team” en haut de chaque tuile */
.card.highlights .hl-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 16px;
  pointer-events:none;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--team) 70%, transparent),
      transparent 45%
    );
  opacity:.10;
}

/* hover plus vivant */
.card.highlights .hl-card:hover{
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--team) 55%, rgba(148,163,184,.18));
  filter: brightness(1.06);
}

/* cartes "big" encore plus marquées */
.card.highlights .hl-card--big{
  background:
    radial-gradient(800px 200px at 20% 0%,
      color-mix(in srgb, var(--team) 35%, transparent),
      transparent 55%
    ),
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--team) 24%, rgba(15,23,42,.90)),
      rgba(15,23,42,.84) 60%
    );
}

/* petite barre accent sous l’icône (team color) */
.card.highlights .hl-ico{
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.25));
}

.card.highlights .hl-ico::after{
  content:"";
  display:block;
  width:32px;
  height:3px;
  margin:10px auto 0;
  border-radius:999px;
  background: color-mix(in srgb, var(--team) 85%, rgba(255,255,255,.15));
  opacity:.85;
}
/* =========================
   FIX MOBILE HERO (joueurs.php detail)
   - supprime débordements horizontaux
   - stabilise le portrait
   - rend les grilles (season-block) vraiment responsive
   ========================= */

/* 1) anti "scroll horizontal" global */
html, body{
  max-width:100%;
  overflow-x:hidden;
}

/* 2) sécurité : tout doit pouvoir shrink */
.hero, .hero *{
  box-sizing:border-box;
  min-width:0;
}

/* 3) STRIPE : autoriser le wrap + empiler sur mobile */
.hero .stripe{
  height:auto;                 /* au lieu de height fixe */
}

.hero .stripe-inner{
  width:100%;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:10px;
}

.hero .left{
  flex:1 1 220px;              /* le nom prend la place */
  min-width:0;
}

.hero .left .name{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.hero .right{
  flex:1 1 260px;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:6px;
}

/* badges: éviter qu’un badge force le débordement */
.hero .right .badge-mini{
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* 4) HERO BODY : supprimer les tailles “420px” et stabiliser portrait */
.hero-body{
  grid-template-columns: 220px minmax(0, 1fr);
  align-items:start;
}

.hero .hs-wrap{
  width:220px;
  height:auto;
  min-height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0;                    /* stop les décalages */
}

.hero img.hs,
.hero .hs{
  width:100% !important;        /* override tes anciens width:420px */
  max-width:260px;
  height:auto !important;
  object-fit:contain;
  transform:none !important;    /* stop translateY(...) qui donne l’effet “se balade” */
}

/* 5) SEASON BLOCK : grilles responsive => plus de dépassement à droite */
.season-block{
  margin: 14px 0;              /* enlève les 14px latéraux en + du wrap */
  padding: 16px;
  max-width:100%;
}

.primary-stats{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.secondary-stats{
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* ✅ breakpoints : 2 colonnes puis 1 colonne */
@media (max-width: 900px){
  .hero-body{
    grid-template-columns: 1fr;
    justify-items:center;
    gap:12px;
  }
  .hero .hs-wrap{
    width:180px;
    min-height:180px;
  }
  .season-block{
    width:100%;
  }
  .primary-stats{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .secondary-stats{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px){
  .secondary-stats{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero .stripe-inner{
    flex-direction:column;
    align-items:stretch;
  }
  .hero .right{
    justify-content:flex-start;
  }
}
/* =========================
   RECORDS – FIX MOBILE ONLY
   ========================= */

@media (max-width: 520px){

  /* 1) Le conteneur du bloc records (adapte si ton wrapper a un autre nom)
     👉 j'ai mis plusieurs sélecteurs "safe", tu peux en garder 1 si tu sais le bon. */
  .records,
  .records-section,
  #records,
  .player-records{
    max-width: 100%;
  }

  /* 2) La "table" records : 3 colonnes propres (STAT / SAISON / CARRIÈRE) */
  .records .grid,
  .records-grid,
  .records-table,
  .player-records .grid{
    display: grid !important;
    grid-template-columns: 1.15fr 1fr 1fr; /* + large pour STAT */
    gap: 10px 10px;
    align-items: center;
    width: 100%;
  }

  /* 3) Titres de colonnes (STAT / SAISON / CARRIÈRE) */
  .records .head,
  .records-header,
  .records-table .head{
    display: grid !important;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 10px;
    align-items: end;
  }

  .records .head,
  .records .head *{
    min-width: 0;
  }

  /* 4) Libellés à gauche (POINTS / REBONDS / ...) */
  .records .label,
  .records-table .stat,
  .records .stat-name{
    font-size: 14px !important;
    letter-spacing: .04em;
    white-space: normal;     /* autorise retour ligne */
  }

  /* 5) Les carrés noirs : plus de taille fixe, ils "respirent" */
  .records .card,
  .records-card,
  .records-table .pill,
  .records-table .box{
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;     /* garde le côté carré */
    border-radius: 14px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
  }

  /* 6) Typo à l’intérieur des cards (ex: "40", "DAL", "22/10/25") */
  .records .card .n,
  .records .card .value{
    font-size: 22px !important;  /* le gros chiffre */
    line-height: 1.0;
  }

  .records .card .meta,
  .records .card .sub,
  .records .card small{
    font-size: 11px !important;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }
}

/* ===== RECORDS : FIX MOBILE ===== */
@media (max-width: 520px){

  /* 1) on masque la ligne d'entête Stat / Saison / Carrière */
  .player-records-header{
    display:none !important;
  }

  /* 2) grille principale : 2 colonnes (Saison / Carrière) */
  .player-records .player-records-grid{
    display:grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 12px !important;
    row-gap: 10px !important;
    align-items: stretch !important;
  }

  /* 3) la stat (POINTS, REBONDS...) prend toute la ligne */
  .player-records .player-records-stat{
    grid-column: 1 / -1 !important;
    text-align: center !important;
    font-weight: 800;
    letter-spacing: .08em;
    margin-top: 10px;
    margin-bottom: 2px;
  }

  /* 4) les 2 valeurs deviennent 2 "cartes" lisibles */
  .player-records .player-records-val{
    display:flex !important;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding: 10px 8px !important;
    border-radius: 16px;
    overflow:hidden;

    /* si tu as déjà un fond noir via CSS, garde-le.
       sinon, décommente la ligne suivante :
    */
    /* background: rgba(10,14,25,.92); */
  }

  .player-records .rec-link{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap: 4px;
    text-decoration:none;
  }

  .player-records .rec-main{
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 900;
  }

  .player-records .rec-meta{
    font-size: 11px !important;
    line-height: 1.15 !important;
    opacity: .9;
    white-space: normal !important;
  }
}

@media (max-width: 520px){
  .player-records .player-records-val:nth-of-type(2)::before{
    content:"SAISON";
    display:block;
    font-size:10px;
    letter-spacing:.12em;
    opacity:.7;
    margin-bottom:6px;
  }
  .player-records .player-records-val:nth-of-type(3)::before{
    content:"CARRIÈRE";
    display:block;
    font-size:10px;
    letter-spacing:.12em;
    opacity:.7;
    margin-bottom:6px;
  }
}