#arena-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

#duel-bar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 40px;
  background-color: #222;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.duel-bar-segment {
  height: 100%;
  position: absolute;
  top: 0;
}

#duel-bar-left {
  background-color: #ff7088;
  left: 0;
}

#duel-bar-right {
  background-color: #427eff;
  right: 0;
}

#duel-bar-labels {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: white;
}

.player-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-label img {
  height: 40px;
  border-radius: 6px;
}



#streams-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}


.stream-frame {
  flex: 1 1 45%;
  min-width: 300px;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stream-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 8px;
}


@media (max-width: 800px) {
  .stream-frame {
    max-width: 100%;
  }
}


.stream-label {
  margin-top: 0.3rem;
  font-size: 1rem;
  color: var(--color-muted);
  text-align: center;
}

#match-selector-toggle {
  display: inline-block;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  margin-right: -9rem;
  color: var(--color-accent);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  margin-bottom: 0.2rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

#match-selector-toggle:hover {
  background-color: var(--color-accent);
  color: white;
  transform: scale(1.04);
}



#match-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
  gap: 0.5rem;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

#match-selector.hidden {
  max-height: 0;
  padding: 0;
  overflow: hidden;
}

#match-list {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  white-space: nowrap;
  gap: 0.6rem;
  max-width: 80vw; /* wichtig: begrenzt Breite, damit Buttons sichtbar */
  scrollbar-width: none;
}

#match-list::-webkit-scrollbar {
  display: none;
}


.match-entry {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0; /* ⬅ verhindert Schrumpfen bei Überfüllung */
  transition: background 0.2s;
}

.match-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.match-entry img {
  height: 24px;
  border-radius: 4px;
}

.live-dot {
  margin: -8px;
}

.vs-text {
  margin: 0 0.5rem;
  color: var(--color-muted);
}

.match-entry img {
  height: 24px;
  border-radius: 4px;
  margin: 0 6px;
}

/* Entfernt die Pfeile bei type=number Eingabefeld */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#bet-match-limits {
  display: block !important;
  color: #ccc;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.nav-toggle-button {
  display: inline-block;
  text-align: right;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-accent);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.3rem 0.9rem;
  margin: 1rem auto;
  margin-right: 0.3rem;
  margin-bottom: 0.2rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-toggle-button:hover {
  background-color: var(--color-accent);
  color: white;
  transform: scale(1.04);
}

@font-face {
  font-family: 'Minecraftia';
  src: url('../fonts/Minecraftia.ttf') format('truetype');
}

header {
  position: relative;
}


.match-timer {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Minecraftia', sans-serif;
  font-size: 3rem;
  color: white;
  text-shadow: 0px 6px 0 #000000; /* harter Schatten */
  pointer-events: none;
  z-index: 5;
}

