/* === Layout === */
.page {
  width: 100%;
  max-width: none;
  margin: 24px 0;
  padding: 0 16px;
}

html, body {
  width: 100%;
  overflow-x: auto;
}

/* === Header === */
.header { text-align: center; margin-bottom: 18px; }
.title { font-size: 32px; font-weight: 800; }
.sub { margin-top: 6px; color: #666; }
.winner { font-size: 28px; font-weight: 900; margin-top: 10px; }

/* === Bracket === */
.bracket {
  margin-top: 14px;

}

.round-col {
  min-width: 240px;
  flex: 0 0 auto;
}

.round-title {
  font-weight: 900;
  margin: 6px 0 12px;
  text-align: center;
}

.match {
  border: 1px solid #e9e9ef;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
  margin-bottom: 14px;
}

.players { font-size: 14px; line-height: 1.35; }
.p { padding: 2px 0; }
.win { font-weight: 900; }

.meta {
  margin-top: 8px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.pill {
  display:inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background:#eee;
  font-size: 12px;
}

.muted { color:#777; font-size:1.4rem; }


/* Brackets viewer: player color chips */
.brackets-viewer .player-chip{
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

/* optionnel: un peu d'air dans les cellules */
#bv .player-chip { margin: 1px 0; }


.round-filters{
  display:flex;
  gap:14px;
  justify-content:center;
  align-items:center;
  margin: 10px 0 14px;
  flex-wrap:wrap;
}
.round-filters label{
  background:#fff;
  border:1px solid #e9e9ef;
  padding:6px 10px;
  border-radius:999px;
  font-weight:700;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}
.round-filters input{ margin-right:6px; }

.matchups-list { margin: 8px 0 0; padding-left: 18px; }
.matchups-list li { margin: 4px 0; }

/* scoped : uniquement pour la section matchups */
.matchups-rounds .win  { color: #1fb141 !important; font-weight: 800 !important; }
.matchups-rounds .loss { color: #d04a4a !important; font-weight: 700 !important; }

.matchups-rounds{
  display:flex !important;
  gap:12px;
  align-items:flex-start;
  overflow-x:auto;
  padding-bottom: 6px;
}

.matchups-rounds > .matchup-round{
  flex: 0 0 340px !important;
  width: 340px !important;
  min-width: 340px !important;
}

.matchup-round{
  min-width: 340px;       /* ajuste selon ton design */
  flex: 0 0 340px;
}

.matchup-round-title{
  font-weight:700;
  margin-bottom: 8px;
}

.matchup-block{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.08);
}

.matchup-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.winner-cancelled{
  opacity: 0.9;
}

.cancelled-note{
  margin-left: 8px;
  opacity: 0.75;
  font-size: 1.3rem;
}

.cancelled-note a{
  color: #8fe3ff;
  text-decoration: none;

  text-shadow:
    0 0 6px rgba(120,200,255,.8),
    0 0 12px rgba(120,200,255,.6);

  animation: neonPulse 1.8s ease-in-out infinite alternate;
}

.cancelled-note a:hover{
  text-decoration: underline;
}

/* Header: h2 centrés + faible marge */
.page .header h2{
  text-align: center;
  margin-top: 2%;
  margin-bottom: 0;
    color: white;
}

/* (optionnel) évite que le <h1> colle trop */
.page .header h1{
  margin-top: 0.5rem;
}

body.theme-neon h2{
  margin-top: 2%;
}
/* Winner link: même look qu’un texte, mais cliquable */
.winner .winner-link{
  text-decoration: none;
  color: inherit;
  font-weight: inherit;
font-size: 3.5rem;
}



/* Bracket viewer: fond transparent */
#bv,
#bv.brackets-viewer,
#bv *{
  background: transparent !important;
}


/* Empêche le viewer d’être collé à gauche */
#bv > .brackets-viewer,
#bv .brackets-viewer-container{
  margin: 0 auto;
}

/* =========================
   Bracket – Round labels (Round 1, Round 2, ...)
   ========================= */

#bv .round-label,
#bv .round-name,
#bv .round-header,
#bv .round-title,
#bv [class*="round"][class*="label"]{
  color: #ffffff !important;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .4px;
  text-transform: uppercase;
}

/* Optionnel : petit glow pour matcher thème neon */
#bv .round-label,
#bv .round-name{
  text-shadow:
    0 0 6px rgba(255,255,255,.35),
    0 0 12px rgba(255,255,255,.15);
}

#bv .round-label{ color: #fff !important; }
#bv .round-label{
  color: #bfc6d1 !important;
}

#bv .round-label:last-child{
  color: #ffffff !important;
  font-weight: 900;
}
/* =========================
   Bracket – Round titles (h3)
   ========================= */

#bv .rounds h3,
#bv .round h3,
#bv [class*="round"] h3{
  color: #fff !important;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.match {
border:0px;
}


/* =========================
   Winner path: gold fill + glowing text
   (appliqué sur .participant.winner-path)
   ========================= */

#bv .participant.winner-path .name{
  /* fond gold style "bar" */
  background: linear-gradient(90deg,
    rgba(255,215,120,.32) 0%,
    rgba(255,200,90,.52) 55%,
    rgba(255,215,120,.20) 100%) !important;

  /* on vire l’idée de bordure (si tu en avais) */
  outline: none !important;
  border-left: none !important;

  /* un peu plus “premium” */
  box-shadow:
    inset 0 0 0 1px rgba(255, 211, 106, .55),
    0 0 14px rgba(255, 183, 0, .35) !important;

  border-radius: 10px !important;
}

/* glow du texte comme tes classes gold */
#bv .participant.winner-path .name{
  color: #fff !important;
  font-weight: 900 !important;
  text-shadow:
    0 0 6px rgba(255, 212, 120, .65),
    0 0 14px rgba(255, 183, 0, .45),
    0 1px 2px rgba(0,0,0,.75) !important;
}

/* optionnel : petit pulse, si tu veux un effet vivant */
@keyframes winnerGoldPulse {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.12); }
}
#bv .participant.winner-path .name{
  animation: winnerGoldPulse 1.6s ease-in-out infinite;
}

.brackets-viewer .participant .name {
    width: 80%;
    color: white;
    font-weight: 100;

}

/* Bracket: rendre les matchs cliquables visuellement */
#bv .match[data-match-id],
#bv .match[data-match-id] .participant,
#bv .match[data-match-id] .name{
  cursor: pointer;
}

/* Optionnel: hover léger pour que ça se voie */
#bv .match[data-match-id]:hover .name{
  filter: brightness(1.08);
}

#toggleLast5
{
    padding:1%;
    font-size:1.4rem;
    border-radius:8px;
}



/* =========================
   Winner players links
   (exact same look as winner-link gold-anim)
   ========================= */

.winner-players .winner-player-link{
  color: inherit !important;
  text-decoration: none !important;
  font-weight: inherit;
  cursor: pointer;
}

/* empêche le bleu / underline du navigateur */
.winner-players .winner-player-link:link,
.winner-players .winner-player-link:visited,
.winner-players .winner-player-link:hover,
.winner-players .winner-player-link:active{
  color: inherit !important;
  text-decoration: none !important;
}

/* applique le glow gold comme winner-link */
.winner-players .winner-player-link{
  text-shadow:
    0 0 6px rgba(255, 212, 120, .65),
    0 0 14px rgba(255, 183, 0, .45),
    0 1px 2px rgba(0,0,0,.75);
}

/* hover subtil, pas de underline */
.winner-players .winner-player-link:hover{
  filter: brightness(1.15);
}

.winner-players a,
.winner-players a:link,
.winner-players a:visited,
.winner-players a:hover,
.winner-players a:active,
.winner-players a:focus {
  text-decoration: none !important;
}

.winner-player-link,
.winner-player-link:hover,
.winner-player-link:focus,
.winner-player-link:visited {
  text-decoration: none !important;
}

/* =========================
   Tournament – Sheet + Bracket layout
   ========================= */

.t-sheet-link{
  display:block;
  text-decoration:none !important;
  color: inherit !important;
}

.t-sheet-title{
  text-align:center;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 10px;
  color: #fff;
}

.t-sheet-img{
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  outline: 1px solid rgba(255,255,255,.10);
}

.t-sheet-link:hover .t-sheet-img{
  filter: brightness(1.06);
}

/* responsive: stack */
@media (max-width: 1100px){
  .t-bracket-wrap{
    flex-direction: column;
  }
  .t-sheet-col{
    flex: 0 0 auto;
    max-width:99%;
    margin: 0 auto;
    margin-top:5%;
  }
  .t-bracket-col{
    min-width: 0;
  }
}

/* a bit of spacing for the top50 block */
.t-top50-block{
  margin-top: 26px;
}

.t-bracket-wrap{
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

/* par défaut: pas d'image => bracket normal (colonne unique) */
.t-bracket-col{
  flex: 1 1 auto;
  min-width: 0;
}

/* si l'image est présente => empile verticalement */
.t-bracket-wrap.has-sheet{
  flex-direction: column;
}

/* colonne image prend toute la largeur */
.t-bracket-wrap.has-sheet .t-sheet-col{
  width: 100%;
  max-width: 99%;   /* ajuste si tu veux plus large */
  margin: 0 auto;
}

/* bracket en dessous */
.t-bracket-wrap.has-sheet .t-bracket-col{
  width: 100%;
}

.t-top50-block .pill{
  font-size: 1.4rem;
  font-weight: 800;
  padding: 6px 12px;   /* rend la pill plus “présente” */
}

/* =========================
   Tournament winner rows (gold)
   ========================= */

.winner-row td,
.winner-row .rk-player-name,
.winner-row .pill{
  color: #fff;
  font-weight: 900;
  text-shadow:
    0 0 6px rgba(255, 212, 120, .65),
    0 0 14px rgba(255, 183, 0, .45),
    0 1px 2px rgba(0,0,0,.75);
}

/* optionnel: léger fond premium */
.winner-row{
  background: linear-gradient(
    90deg,
    rgba(255,215,120,.06),
    rgba(255,215,120,.02),
    rgba(255,215,120,.06)
  );
}

.winner-avatar{
  width: 90px;
  height: 90px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.winner-inline {
      display: inline-flex;
    gap: 10px;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: stretch;
    align-items: center;
}

/* Team winners: gold mais sans animation agressive */
.team-winners-only.gold-anim{
  font-size:2rem;
}
.subcups.subcups-col {
width:100%;
}


body.theme-neon .subcups .winner-link.gold-anim.subcup-winner-name
{
    font-size:1.5rem;
}

.subcups .winner-avatar.winner-avatar--mini {
  width: 50px;
  height: 50px;
}

.noreplay
{
text-align:center;
margin-top:4%;
}