.btt-stadium main.spectate-page {
  max-width: 1680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 20px;
}
.spectate-stage,
.spectate-sidebar {
  min-width: 0;
}
.spectate-sidebar {
  position: sticky;
  top: 16px;
}
.spectate-page form {
  display: grid;
  gap: 10px;
  border-top: 1px solid #36588c;
  padding-top: 20px;
  margin-top: 20px;
}
.spectate-page form input {
  width: 100%;
  min-width: 0;
}
.spectate-page form .primary {
  margin: 0;
}
.spectate-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.spectate-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.spectate-heading #spectate-inputs {
  width: 180px;
  max-width: 40%;
  flex-shrink: 0;
  margin-bottom: 12px;
}
.spectate-screen {
  position: relative;
  border: 1px solid #36588c;
}
.spectate-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  background: #050b18;
}
.spectate-stage canvas:fullscreen {
  height: 100vh;
  width: 100vw;
  object-fit: contain;
}
.spectate-heading h2 {
  margin-bottom: 8px;
}
#frame-status {
  font-variant-numeric: tabular-nums;
  margin: 0 0 12px;
}
#spectate-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: #a9c6ef;
  background: radial-gradient(ellipse at center, #16356288, transparent 70%);
  pointer-events: none;
}
#spectate-placeholder strong {
  color: #edf4ff;
  font-size: clamp(20px, 3vw, 32px);
}
#spectate-placeholder[hidden] {
  display: none;
}
.players-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.players-heading h2 {
  margin: 0;
}
#online-count {
  border: 1px solid #467463;
  border-radius: 20px;
  padding: 3px 10px;
  color: #67edb9;
  font-variant-numeric: tabular-nums;
}
#online-players {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  max-height: 55vh;
  overflow-y: auto;
}
#online-players li + li {
  margin-top: 8px;
}
.live-player {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid #36588c;
  border-radius: 3px;
  text-decoration: none;
  background: #07142b;
}
.live-player strong {
  color: #edf4ff;
  overflow-wrap: anywhere;
}
.live-player strong::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #67edb9;
  border-radius: 50%;
  margin-right: 9px;
}
.live-player span {
  color: #a9c6ef;
  font-size: 12px;
}
.live-player:hover,
.live-player:focus-visible {
  background: #1c365c;
  border-color: #9abcf0;
}
.live-player[aria-current] {
  border-color: #ffe33d;
  background: #273142;
}
.live-player[aria-current] strong {
  color: #ffe33d;
}
.directory-hint {
  font-size: 12px;
}
@media (max-width: 850px) {
  .btt-stadium main.spectate-page {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .spectate-sidebar {
    position: static;
  }
  #online-players {
    max-height: 320px;
  }
}
