@media (max-width: 800px) {
  /* Keep saved desktop heights and viewport-fill modes out of inline mobile players. */
  #communityPage#communityPage .layout.layout.layout.layout
    :is(#videoShell.video-shell, .video-shell, .dual-chaturbate-screen,
        .stream-pair-screen, .dual-movie-screen):not(:fullscreen) {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    flex: none !important;
    align-self: start;
  }

  #communityPage .layout-resize-handle.horizontal {
    display: none !important;
  }

  #communityPage .chat-twitch-inline {
    aspect-ratio: 16 / 9;
  }

  /* Preserve Twitch's minimum viewport before scaling to the chat column. */
  #communityPage .chat-twitch-inline > iframe:not(:fullscreen) {
    width: 544px;
    height: 306px;
  }
}
