
main.wrap.fr-night{
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px 28px;
  box-sizing: border-box;
}    .page-title{ margin:16px 0 8px; font-size:1.35rem; font-weight:900; color:#0f172a; text-align:center; }
    .page-sub{ margin:0 0 14px; color:#475569; text-align:center; }

    .card{
      background:#fff;
      border:1px solid rgba(15,23,42,.10);
      border-radius:14px;
      box-shadow:0 8px 20px rgba(15,23,42,.08);
      padding:12px;
      margin-bottom:14px;
    }

    .navrow{
      display:flex; gap:10px; flex-wrap:wrap;
      align-items:center; justify-content:center;
      margin-bottom:12px;
    }
    .navbtn{
      display:inline-flex; align-items:center; gap:8px;
      padding:8px 12px;
      border-radius:999px;
      border:1px solid rgba(15,23,42,.12);
      background:#fff;
      font-weight:900;
      color:#0f172a;
      text-decoration:none;
      transition:all .15s ease;
    }
    .navbtn:hover{ background:#f1f5f9; transform:translateY(-1px); }
    .navbtn.primary{
      color:#fff;
      border-color:transparent;
      background:linear-gradient(90deg,#1d4ed8,#0f172a,#dc2626);
    }

    .dates-grid{
      display:flex; justify-content:center;
      gap:8px; flex-wrap:wrap;
      margin-top:8px;
    }
    .date-pill{
      display:inline-flex; align-items:center;
      padding:6px 10px; border-radius:999px;
      border:1px solid rgba(15,23,42,.10);
      background:rgba(255,255,255,.9);
      color:#0f172a;
      font-weight:900; font-size:.82rem;
      text-decoration:none;
      transition:all .15s ease;
    }
    .date-pill:hover{ background:#f1f5f9; transform:translateY(-1px); }
    .date-pill.active{
      color:#fff; border-color:transparent;
      background:linear-gradient(90deg,#1d4ed8,#0f172a,#dc2626);
    }

    .seo-text{ max-width:900px; margin:0 auto; color:#0f172a; line-height:1.55; }
    .seo-text h2{ font-size:1.05rem; margin:0 0 8px; color:#0f172a; }

    .explore{ text-align:center; }
    .explore-title{ font-weight:800; color:#475569; margin-bottom:10px; }
    .explore-links{ display:flex; justify-content:center; gap:12px; flex-wrap:wrap; }
    .explore-chip{
      display:inline-flex; align-items:center; gap:6px;
      padding:8px 14px; border-radius:999px;
      border:1px solid rgba(15,23,42,.12);
      background:#fff;
      font-weight:800; font-size:14px;
      color:#1d4ed8; text-decoration:none;
      transition:all .15s ease;
    }
    .explore-chip:hover{ background:#f1f5f9; transform:translateY(-1px); }

    /* petit fix: la card générée par app.js doit s'intégrer bien */
    #frNightHost .card{ margin-bottom:14px; }
    .bbd-statcard-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}

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

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

.bbd-statcard-dialog{
  position: relative;
  width: min(980px, calc(100% - 24px));
  margin: 4vh auto;
  background: #0f172a;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  padding: 18px;
  z-index: 2;
}

.bbd-statcard-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.bbd-statcard-preview-wrap{
  margin-top: 8px;
  border-radius: 14px;
  overflow: hidden;
  background: #091224;
}

.bbd-statcard-preview-wrap canvas{
  width: 100%;
  height: auto;
  display: block;
}

.bbd-statcard-actions{
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.bbd-statcard-btn{
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  background: #1f2937;
  color: #fff;
}

.bbd-statcard-btn.primary{
  background: #2563eb;
  color: #fff;
}

.bbd-statcard-btn:hover{
  filter: brightness(1.05);
}
.fr-night-table td.player-cell{
  position: relative;
}

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

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

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

.bbd-card-btn--inline:disabled{
  opacity: .7;
  cursor: wait;
}
.bbd-card-mini-btn{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid #ef4135;
  background: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  padding: 0;

  transition: transform .12s ease, box-shadow .12s ease;
}

.bbd-card-mini-btn:hover{
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 3px 8px rgba(0,0,0,.15);
}

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

/* points bleu blanc rouge */

.bbd-fr-dots{
  position: absolute;
  bottom: -3px;
  display: flex;
  gap: 1px;
}

.bbd-fr-dots i{
  width: 3px;
  height: 3px;
  border-radius: 50%;
  display: block;
}

.bbd-fr-dots i:nth-child(1){ background:#2563eb; }
.bbd-fr-dots i:nth-child(2){ background:#ffffff; border:1px solid #ddd;}
.bbd-fr-dots i:nth-child(3){ background:#ef4135; }

.bbd-card-mini-btn{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  width:26px;
  height:26px;
  border-radius:999px;
  border:2px solid #ef4135;
  background:#fff;

  display:flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;
  padding:0;

  transition:transform .12s ease, box-shadow .12s ease;
}

.bbd-card-mini-btn:hover{
  transform:translateY(-50%) scale(1.08);
  box-shadow:0 3px 8px rgba(0,0,0,.15);
}

.bbd-card-mini-btn__icon{
  width:18px;
  height:18px;
}
.bbd-card-mini-btn{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  width:26px;
  height:26px;
  border-radius:999px;
  border:2px solid #ef4135;
  background:#fff;

  display:flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;
  padding:0;

  transition:transform .12s ease, box-shadow .12s ease;
}

.bbd-card-mini-btn:hover{
  transform:translateY(-50%) scale(1.08);
  box-shadow:0 3px 8px rgba(0,0,0,.15);
}

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

main.wrap.fr-night{
  width:100%;
  max-width:1280px;
  margin:0 auto;
  padding:16px 20px 28px;
  box-sizing:border-box;
}

.fr-night .page-title{
  margin:16px 0 8px;
  font-size:1.35rem;
  font-weight:900;
  color:#0f172a;
  text-align:center;
}

.fr-night .page-sub{
  margin:0 0 14px;
  color:#475569;
  text-align:center;
}

.fr-night .card{
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:14px;
  box-shadow:0 8px 20px rgba(15,23,42,.08);
  padding:12px;
  margin-bottom:14px;
}

.fr-night .navrow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  margin-bottom:12px;
}

.fr-night .navbtn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  font-weight:900;
  color:#0f172a;
  text-decoration:none;
  transition:all .15s ease;
}

.fr-night .navbtn:hover{
  background:#f1f5f9;
  transform:translateY(-1px);
}

.fr-night .navbtn.primary{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(90deg,#1d4ed8,#0f172a,#dc2626);
}

/* =========================================================
   FR NIGHT - carte récap et tableau
   ========================================================= */

.fr-night #frNightHost .card,
.fr-night #frNightHost .card.fr-night{
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 8px;
  margin: 12px 0 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15,23,42,.15);
}

.fr-night #frNightHost .card.fr-night{
  border: 2px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg,#0055a4,#ffffff,#ef4135) border-box;
}

.fr-night #frNightHost .card-main{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px 6px;
  text-align: center;
  background: #f9fbff;
  border-radius: 14px;
}

.fr-night #frNightHost .card-main .score{
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.fr-night #frNightHost .card-details{
  display: block;
  padding: 0;
  border-top: 1px solid #e2e8f0;
  margin-top: 8px;
  text-align: left;
}

.fr-night #frNightHost .table-wrap{
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

/* tableau */
.fr-night #frNightHost table.bx,
.fr-night #frNightHost .fr-night-table{
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 0;
}

.fr-night #frNightHost table.bx thead,
.fr-night #frNightHost .fr-night-table thead{
  background: #0f172a;
  color: #fff;
}

.fr-night #frNightHost table.bx th,
.fr-night #frNightHost .fr-night-table th{
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 12px;
  white-space: nowrap;
  text-align: center;
}

.fr-night #frNightHost table.bx td,
.fr-night #frNightHost .fr-night-table td{
  padding: 9px 12px;
  font-size: .88rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
  vertical-align: middle;
}

.fr-night #frNightHost table.bx th:first-child,
.fr-night #frNightHost table.bx td:first-child,
.fr-night #frNightHost .fr-night-table th:first-child,
.fr-night #frNightHost .fr-night-table td:first-child{
  text-align: left;
}

.fr-night #frNightHost table.bx tbody tr:nth-child(even),
.fr-night #frNightHost .fr-night-table tbody tr:nth-child(even){
  background: #f9fafb;
}

.fr-night #frNightHost table.bx tbody tr:hover,
.fr-night #frNightHost .fr-night-table tbody tr:hover{
  background: #e5edff;
}

/* ligne FR */
.fr-night #frNightHost table.bx tr.row-fr,
.fr-night #frNightHost .fr-night-table tr.row-fr{
  background: linear-gradient(
    90deg,
    rgba(0,85,164,0.18) 0%,
    rgba(0,85,164,0.10) 16%,
    rgba(255,255,255,1) 50%,
    rgba(239,65,53,0.10) 84%,
    rgba(239,65,53,0.18) 100%
  );
}

.fr-night #frNightHost table.bx tr.row-fr:hover,
.fr-night #frNightHost .fr-night-table tr.row-fr:hover{
  background: linear-gradient(
    90deg,
    rgba(0,85,164,0.24) 0%,
    rgba(0,85,164,0.14) 16%,
    rgba(255,255,255,1) 50%,
    rgba(239,65,53,0.14) 84%,
    rgba(239,65,53,0.24) 100%
  );
}

/* cellule joueur */
.fr-night #frNightHost td.player-cell,
.fr-night #frNightHost .fr-night-table td.player-cell{
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.fr-night #frNightHost td.player-cell .pname,
.fr-night #frNightHost .fr-night-table td.player-cell .pname{
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

/* avatar */
.fr-night #frNightHost td.player-cell img,
.fr-night #frNightHost .fr-night-table td.player-cell img{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.fr-night #frNightHost td.player-cell .hs-wrap{
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.fr-night #frNightHost td.player-cell .hs-bg{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255,255,255,1) 0%,
    rgba(230,230,230,1) 35%,
    rgba(180,180,180,1) 100%
  );
}

.fr-night #frNightHost td.player-cell .hs-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* colonne match */
.fr-night #frNightHost .match-cell,
.fr-night #frNightHost .fr-night-table .match-cell{
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  height: 100%;
}

.fr-night #frNightHost .match-res,
.fr-night #frNightHost .fr-night-table .match-res{
  width: 22px;
  flex: 0 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.fr-night #frNightHost .res-dot,
.fr-night #frNightHost .fr-night-table .res-dot{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

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

.fr-night #frNightHost .res-dot.loss,
.fr-night #frNightHost .fr-night-table .res-dot.loss{
  background: #ef4444;
}

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

.fr-night #frNightHost .match-tris .mtri{
  font-size: 13px;
  font-weight: 700;
}

.fr-night #frNightHost .match-tris .mtri-win{
  font-weight: 900;
}

.fr-night #frNightHost .match-tris .mtri-loss{
  font-weight: 700;
  opacity: .55;
}

.fr-night #frNightHost .match-tris .vs{
  font-size: 11px;
  opacity: .45;
}

/* points en gras */
.fr-night #frNightHost td.pts,
.fr-night #frNightHost .fr-night-table td.pts{
  font-weight: 800;
  color: #111827;
}

/* bouton carte dans tableau */
.fr-night #frNightHost td.player-cell.player-cell--with-card,
.fr-night #frNightHost .fr-night-table td.player-cell.player-cell--with-card{
  padding-right: 34px !important;
}

.fr-night #frNightHost .bbd-card-btn--inline,
.fr-night #frNightHost .fr-night-table .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;
  padding: 0;
  background: #2563eb;
  color: #fff;
  opacity: .92;
  transition: .15s;
}

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

.fr-night #frNightHost .bbd-card-btn--inline:disabled{
  opacity: .7;
  cursor: wait;
}

/* responsive */
@media (max-width: 920px){
  .fr-night #frNightHost table.bx,
  .fr-night #frNightHost .fr-night-table{
    min-width: 980px;
  }
}

/* =========================
   EDITORIAL FR NIGHT
   ========================= */

.fr-night-editorial{
  margin: 14px 0 18px;
  display: flex;
  justify-content: center;
}

.fr-night-editorial-inner{
  max-width: 780px;
  width: 100%;
  padding: 14px 18px;

  border-radius: 14px;

  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(90deg,#0055a4,#ffffff,#ef4135) border-box;

  border: 1px solid transparent;

  box-shadow: 0 8px 24px rgba(15,23,42,.08);

  text-align: center;
}

.fr-night-editorial .line1{
  font-weight: 800;
  font-size: 15px;
  color: #0f172a;
  margin: 0;
}

.fr-night-editorial .line2{
  margin-top: 4px;
  font-size: 13px;
  color: #475569;
  font-weight: 500;
}

/* petit effet subtil */
.fr-night-editorial-inner:hover{
  box-shadow: 0 10px 28px rgba(15,23,42,.12);
  transform: translateY(-1px);
  transition: .15s;
}