@media (orientation: landscape) and (any-pointer: coarse) and (max-height: 600px) {
  body:has(#direct) {
    overflow: hidden;
  }

  #direct .video-area > .embedded-player {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    margin: 0;
    border: 0;
    border-radius: 0;
    aspect-ratio: auto;
  }

  #direct .video-area > .embedded-player iframe {
    width: min(100vw, calc(100dvh * 16 / 9));
    height: min(100dvh, calc(100vw * 9 / 16));
  }

  #direct #live-audio {
    position: fixed;
    z-index: 10001;
    left: max(12px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
    margin: 0;
  }

  body:not(.tv-preview):has(#tv-frame) {
    overflow: hidden;
  }

  body:not(.tv-preview) #tv-frame {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
  }

  body:not(.tv-preview) #tv-frame .embedded-player {
    width: min(100vw, calc(100dvh * 16 / 9));
    height: min(100dvh, calc(100vw * 9 / 16));
    min-height: 0;
    border: 0;
    border-radius: 0;
  }

  #tv-frame #tv-audio-enable {
    left: max(3%, env(safe-area-inset-left));
    bottom: max(12%, env(safe-area-inset-bottom));
  }
}
