
body {
    background-color: #121212;
    color: #f0f0f0;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

h2.current-step {
    text-align: center;
    color: #00ffcc;
    font-size: 1.5em;
    margin-top: 1rem;
}

#draft-board {
    width: 80%;
    max-width: 1600px;
    margin: auto;
    padding: 1rem;
    background-color: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 0 10px #000;
}

.team {
  display: flex;
  align-items: flex-start; /* ← important pour éviter l'alignement sur la ligne de base */
  justify-content: center;
  gap: 10px;
  margin: 0.5rem 0;
}

.team img {
  height: auto;
  width: auto;
  max-height: 80px;
  object-fit: contain;
  vertical-align: top;
}

.class-choice {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    margin: 5px;
    padding: 5px;
    cursor: pointer;
}

.class-choice:hover {
    background-color: #444;
}

.timer {
    text-align: center;
    font-size: 1.2rem;
    color: #ffcc00;
    margin-bottom: 1rem;
}

button {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    margin: 0.3rem;
    cursor: pointer;
}

button:hover {
    background-color: #444;
}

.draft-step {
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-bottom: 1px solid #333;
}

.teams-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
}

.draft-summary {
    text-align: center;
    margin-top: 2rem;
}

/* 🎨 Affichage du rôle du joueur */
.role-banner {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.8rem;
    color: black;
}

.role-A {
    background-color: #046E8FFF;
}

.role-B {
    background-color: #02734AFF;
}

.role-Spectator {
    background-color: #ccc;
    color: #333;
}

.player-header {
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 1rem;
  color: #000;
}

.player-header.A {
  background-color: #046E8FFF;
}

.player-header.B {
  background-color: #02734AFF;
}

.draft-timeline {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 1rem auto;
  overflow-x: auto;
  padding: 0.5rem;
}

.timeline-cell {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: bold;
  text-align: center;
  color: #000;
  box-shadow: 0 0 5px #00000066;
  flex-shrink: 0;
  padding: 5px;
}

.timeline-cell.A {
  background-color: #046E8FFF;
}

.timeline-cell.B {
  background-color: #02734AFF;
}

.timeline-cell img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
}

.timeline-cell.simultaneous {
  background-color: #CE471CFF;
}

.timer {
  display: none !important;
}

.match-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #333;
}

.match-section:last-of-type {
  border-bottom: none;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.match-section h3 {
  text-align: center;
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  margin-top: 0.5rem;
}

.match-section .teams-container {
  margin-top: 1rem;
  flex-wrap: wrap;
  gap: 15px;
}

.timeline-cell.double-pick {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  height: 80px;
  width: 80px;
  position: relative;
}

.timeline-cell.double-pick .mini-pick {
  width: 36px;
  height: 36px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  border: 2px solid white;
}

.timeline-cell.double-pick .mini-pick.A {
  box-shadow: 0 0 0 2px #007BFF;
}

.timeline-cell.double-pick .mini-pick.B {
  box-shadow: 0 0 0 2px #FF4500;
}

.timeline-cell.simultaneous {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

.timeline-cell.simultaneous .mini-pick {
  display: flex;
  align-items: center;  /* Centrage vertical */
  justify-content: center;
  height: 100%; /* ou remplace par 80% si besoin */
}

.timeline-cell img[alt="Pick"],
.timeline-cell img[alt="Ban"] {
  opacity: 0.6;
  filter: grayscale(100%);
}

.banned-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.banned-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ban-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

@media (max-width: 1000px) {
  #draft-board {
    width: 95%;
    padding: 1rem;
  }

  .timeline-cell {
    width: 45px;
    height: 45px;
    font-size: 0.6rem;
    padding: 4px;
  }

  .class-choice img {
    max-width: 35px;
    max-height: 35px;
  }

  .class-choice {
    padding: 6px;
    margin: 5px;
  }

  .player-header {
    font-size: 1.3rem;
    padding: 1rem;
  }

  .team {
    flex-wrap: wrap;
    gap: 10px;
  }

  button {
    padding: 0.6rem 1rem;
    font-size: 1.1rem;
  }

  .timer {
    font-size: 1.2rem;
  }

  .match-section h3 {
    font-size: 1.1rem;
  }

  .match-section {
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
  }

  .draft-timeline {
    gap: 6px;
  }
}