.theater .tv-glass {
  background: #17161b center / cover no-repeat;
}

.theater[data-ready] video {
  opacity: 0;
}

.theater[data-ready] .has-picture video {
  opacity: 1;
}

.theater .wall-controls button {
  min-height: 44px;
}

.theater [data-wall-motion] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.theater [data-wall-motion]::before {
  content: '';
  width: 9px;
  height: 10px;
  box-sizing: border-box;
  border-inline: 3px solid currentColor;
}

.theater [data-wall-motion][data-motion='off']::before {
  border: 0;
  background: currentColor;
  clip-path: polygon(8% 0, 100% 50%, 8% 100%);
}

.theater .tv:focus-visible,
.theater .wall-controls button:focus-visible {
  outline: 2px solid #ffdc75;
  outline-offset: 3px;
}

@media (min-width: 901px) and (max-width: 1150px) {
  .theater .tv-label .product-icon {
    display: none;
  }
}

@media (max-width: 900px) {
  .theater-camera {
    aspect-ratio: auto;
    height: clamp(295px, 97vw, 500px);
    background-size: cover;
  }

  .theater .tv-wall {
    display: block;
    inset: 5% 6% 9%;
  }

  .theater .tv-bank {
    position: absolute;
    inset: 0;
    width: min(100%, 620px);
    margin-inline: auto;
    transform: none;
    grid-template: auto / repeat(2, minmax(0, 1fr));
    gap: clamp(6px, 2vw, 11px);
    align-content: center;
  }

  .theater .tv-bank[aria-hidden='true'] {
    display: none;
  }

  .theater .bank-1 > .tv:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: center;
    width: min(83%, 345px);
  }

  .theater .bank-1 > .tv:not(:first-child) {
    grid-column: auto;
  }

  .theater .tv-label {
    min-height: 26px;
    padding: 3px 6px;
    gap: 4px;
  }

  .theater .tv-label b {
    font-size: clamp(.72rem, 2.8vw, .85rem);
  }

  .theater .tv-label .product-icon {
    display: none;
  }

  .theater .tv-label time {
    font-size: .66rem;
  }

  .theater .wall-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px max(10px, 3vw);
  }

  .theater .wall-views {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 3px;
  }

  .theater .wall-views button[aria-pressed='true'] {
    background: #f8dc80;
    border-color: #f4d36e;
    color: #22200e;
  }

  .theater .wall-controls button {
    padding: 5px 7px;
    font: 500 clamp(.68rem, 2.8vw, .82rem)/1.2 Geist, sans-serif;
  }

  .theater:not([data-ready]) .theater-camera {
    height: auto;
    padding: 18px;
  }

  .theater:not([data-ready]) .tv-wall,
  .theater:not([data-ready]) .tv-bank {
    position: static;
  }

  .theater:not([data-ready]) .tv-bank + .tv-bank {
    margin-top: 14px;
  }
}

@media (min-width: 480px) and (max-width: 900px) {
  .theater .wall-controls {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .theater .wall-controls button {
    padding-inline: 14px;
  }
}

.theater:not([data-ready]) .wall-controls {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .theater .tv {
    transition: none;
  }
}
