.confrontation-page .title{
  font-size: 28px;
  font-weight: 700;
}

.confrontation-page .vs{
  opacity: .6;
  margin: 0 8px;
}

.confrontation-page .sub{
  opacity: .75;
  margin-top: 6px;
}

.confrontation-page .result{
  margin-top: 10px;
  font-size: 18px;
}

.grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.card{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px;
}

.card-title{
  font-weight: 700;
  margin-bottom: 8px;
}

.form-row{
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill{
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.2);
}

.pill.win{ background: #3fb950; }
.pill.loss{ background: #f85149; }

.replays{ margin-top: 14px; }
.replay-list{ margin: 0; padding-left: 18px; }
.replay-list li{ margin: 6px 0; }

.tag{
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  opacity: .8;
  font-size: 12px;
}

.muted{ opacity: .7; }

/* On s'en fout du wrapper absolu, on force l'iframe */
.card.replays .replay-embed-wrapper{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.card.replays iframe.replay-iframe{
  display: block;
  width: 100% !important;
  height: 700px !important;
  min-height: 700px !important;
  border: 0 !important;
  border-radius: 12px;
  background: #111;
}

@media (max-width: 900px){
  .card.replays iframe.replay-iframe{
    height: 600px !important;
    min-height: 600px !important;
  }
}

/* La card replays doit prendre toute la largeur (sinon width:fit-content du style global la shrink) */
.confrontation-page .card.replays{
  width: 100% !important;
}

/* Optionnel : éviter que les autres cards de la page soient aussi “fit-content” */
.confrontation-page .card{
  width: 100%;
}

/* === HEADER === */
.confrontation-page .title{
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.confrontation-page .vs{
  opacity: .6;
  margin: 0 10px;
}

.confrontation-page .player-name.loser{
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255,255,255,.55);
  opacity: .75;
}

/* h2 style subtitle */
.confrontation-page h2.match-h2{
  margin: 10px 0 0 0;
  font-size: 2rem; /* match theme-neon h2 scale */
  opacity: .95;
}

.confrontation-page .match-h2 a{
  text-decoration: none;
}

/* === 3 COL LAYOUT === */
.confrontation-layout{
  display: grid;
  grid-template-columns: minmax(170px, 20%) 1fr minmax(170px, 20%);
  gap: 14px;
  margin-top: 16px;
  align-items: start;
}

.side{
  position: sticky;
  top: 150px; /* ajuste si ta topbar est plus grande */
}

.center{
  min-width: 0; /* important pour éviter overflow grid */
}

/* Player cards */
.player-card .player-head{
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.player-card img.avatar{
width: clamp(80px, 6vw, 96px);
height: clamp(80px, 6vw, 96px);
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.14);
  background:white;
}

/* Cards */
.confrontation-page .card{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px;
  width: 100%;
}

.card-title{
  font-weight: 700;
  margin-bottom: 8px;
}

/* === FORM PILLS: fix theme-neon override === */
.form-row{
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* theme-neon sets .pill background transparent + border 2px => we override hard */
.confrontation-page .pill{
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.22) !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.confrontation-page .pill.win{
  background: #3fb950 !important;
  border-color: rgba(63,185,80,.65) !important;
}

.confrontation-page .pill.loss{
  background: #f85149 !important;
  border-color: rgba(248,81,73,.65) !important;
}

/* === REPLAYS === */
.replays{ width: 100% !important; }
.replay-block{ margin-top: 14px; }
.replay-meta{
  opacity: .8;
  margin-bottom: 6px;
}

.replay-meta a{
  text-decoration: none;
}

/* wrapper + iframe sizing */
.card.replays .replay-embed-wrapper{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.card.replays iframe.replay-iframe{
  display: block;
  width: 100% !important;
  height: 700px !important;
  min-height: 700px !important;
  border: 0 !important;
  border-radius: 12px;
  background: #111;
}

@media (max-width: 1100px){
  .confrontation-layout{
    grid-template-columns: 1fr;
  }
  .side{
    position: static;
  }
  .card.replays iframe.replay-iframe{
    height: 600px !important;
    min-height: 600px !important;
  }
}


h1
{
text-align:center;
}

h2
{
text-align:center;
}

/* h2 links silver, no underline */
.confrontation-page h2.match-h2 a{
  color: rgba(220, 225, 235, 0.85);
  text-decoration: none;
}
.confrontation-page h2.match-h2 a:hover{
  color: rgba(240, 245, 255, 0.95);
  text-decoration: none;
}


.player-meta{
  min-width: 0;
}

.form-line{
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.extra-info{
  opacity: .75;
  font-size: 13px;
  letter-spacing: .2px;
}

.form-row{
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.player-link{
    color: gold;
  text-decoration: none;
}

.player-link:hover{
    color: white;
  text-decoration: none;
}


.pill.pill-super { width: 20px; height: 20px; }

/* colonne verticale */
.confrontation-page .form-col{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  font-weight: 0;

}

/* une ligne cliquable : carré + texte */
.confrontation-page .form-item{
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  margin:8px

}

/* carré reste piloté par .pill */
.confrontation-page .form-item .pill{
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* super major: 2× (par rapport à 12px => 24px) */
.confrontation-page .form-item .pill.pill-super{
  width: 24px !important;
  height: 24px !important;
  border-radius: 5px;
}

/* mini texte */
.confrontation-page .form-mini{
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-size: 1rem;
    font-family: "Roboto", sans-serif;
    margin-left: 16px;
}

.confrontation-page .form-mini-top{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.confrontation-page .form-mini-bot{

}

/* liens argentés */
.confrontation-page a{
  color: rgba(220, 225, 235, 0.85);
  text-decoration: none;
}

.confrontation-page a:hover{
  color: rgba(245, 248, 255, 0.95);
  text-decoration: none;
}

body.theme-neon .cheat-banner{
  margin: 10px 0 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 80, 80, .55);
  background: rgba(255, 40, 40, .12);
  color: rgba(255,255,255,.95);
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 0 22px rgba(255, 60, 60, .18);
  text-align:center;
}

body.theme-neon .cheat-banner + .confrontation-layout{
  margin-top: 6px;
}

#table-details
{
font-size: 1.5rem;
}

#h2hBeforeDetails {
  transition: opacity .15s ease;
}

body.theme-neon .confrontation-page .card.neon-frame.h2hatthispoint{
  width: 75% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background: none !important;
  border: none !important;
}