.live-route .content {
  max-width: none;
  padding: 16px 20px 12px;
}

.live-route .page-head {
  margin-bottom: 12px;
}

.live-route .page-head h1 {
  font-size: 24px;
}

.live-route .footer {
  display: none;
}

.livegrid {
  display: grid;
  grid-template-columns: repeat(var(--wall-columns), minmax(0, 1fr));
  grid-template-rows: repeat(var(--wall-rows), minmax(0, 1fr));
  gap: 1px;
  height: calc(100dvh - 205px);
  min-height: 420px;
  overflow: hidden;
  background: #343b49;
  border: 1px solid #343b49;
}

.livegrid .video-cell {
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: #151a23;
  overflow: hidden;
}

.livegrid .video-cell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #080b10;
}

.livegrid .video-cell video:fullscreen,
.livegrid .video-cell video:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: #000;
}

.video-tools {
  position: absolute;
  z-index: 3;
  top: 5px;
  right: 5px;
  display: flex;
  gap: 4px;
  opacity: .25;
  transition: opacity .15s ease;
}

.video-cell:hover .video-tools,
.video-cell:focus-within .video-tools {
  opacity: 1;
}

.video-picker,
.video-expand {
  position: relative;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  min-width: 27px;
  margin: 0;
  padding: 0;
  border: 1px solid #69738680;
  border-radius: 4px;
  background: #111722cc;
  color: #d3d9e5;
  cursor: pointer;
}

.video-picker select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: .01;
  cursor: pointer;
}

.livegrid .video-cell .placeholder {
  z-index: 0;
  padding: 0;
  color: #626b7c;
}

.livegrid .video-cell .placeholder p {
  display: none;
}

.video-state {
  position: absolute;
  z-index: 3;
  left: 7px;
  bottom: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #768093;
  box-shadow: 0 0 0 2px #10151dcc;
}

.video-cell[data-stream-state="playing"] .video-state {
  background: #2bc18f;
}

.video-cell[data-stream-state="loading"] .video-state,
.video-cell[data-stream-state="buffering"] .video-state {
  background: #dca64f;
}

.video-cell[data-stream-state="retry"] .video-state {
  background: #df6477;
}

@media (max-width: 760px) {
  .live-route .content {
    padding: 16px 10px;
  }

  .livegrid {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .livegrid .video-cell {
    aspect-ratio: 16 / 9;
  }

  .video-tools {
    opacity: .8;
  }
}
