/* Align the navigation and video players on narrow portrait and landscape screens. */
@media (max-width: 900px) {
  .stage {
    padding-right: max(20px, 7%);
    padding-left: max(20px, 7%);
  }

  .home-view { padding-right: 0; padding-left: 0; }

  .view .player-shell,
  .film-detail .player-shell,
  .film-detail.has-film .player-shell {
    display: block;
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .category-nav,
  .category-nav-level {
    justify-items: center;
    justify-content: center;
    text-align: center;
  }

  .category-nav { width: 100%; }
  .category-nav-level { width: 100%; }
  .category-nav-level button { text-align: center; }
}

/* The source video is available on YouTube but its embedded player is blocked. */
.player-shell .youtube-direct-link {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: #15131a center / cover no-repeat;
  color: white;
  text-align: center;
  text-decoration: none;
}
.player-shell .youtube-direct-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .56);
}
.youtube-direct-link span { position: relative; max-width: 90%; }
.youtube-direct-link .youtube-direct-action {
  padding: .8rem 1.1rem;
  border-radius: 4px;
  background: #fff;
  color: #16131a;
}
