/* iPhone: keep the top bar inside the viewport so the page doesn't scroll sideways.
   On a narrow screen the link row sits on its own line inside the bar and wraps if
   needed (SOS, Manifesto, Privacy, Contact, Submit, and Human Registry when shown),
   so every button stays reachable. The bar is position:relative and grows downward,
   never over the player. Desktop is unchanged. */
@media (max-width: 760px) {
  body.tv-mode .tv-topbar {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    overflow-x: hidden;
    flex-wrap: wrap;
  }
  body.tv-mode .tvbar-links {
    flex: 1 1 100%;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 2px;
    column-gap: 8px;
  }
  body.tv-mode .tvb-link {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  body.tv-mode .tvb-osd-slot {
    min-width: 0;
    max-width: 100%;
  }
}
