/* The phone app's bottom menu (Join, Recent, OBN TV, Host): pinned to the bottom of the screen on phones,
   on every host page, so it never scrolls away. Hidden on computers. */
.app-tabs { display: none; }
@media (max-width: 760px) {
  :root { --app-tabs-h: calc(63px + env(safe-area-inset-bottom, 0px)); }
  body { box-sizing: border-box; padding-bottom: var(--app-tabs-h) !important; }
  .app-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 6px 8px calc(env(safe-area-inset-bottom, 0px) + 6px); border-top: 1px solid #2a2d33; background: rgba(16, 17, 20, .97);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transform: translateZ(0); }
  .app-tabs a { min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 12px;
    color: #9a9fa8; font: 500 11px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .app-tabs a[aria-current] { color: #2997ff; }
  .app-tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .app-tabs img { width: 24px; height: 24px; object-fit: contain; filter: grayscale(1); opacity: .6; }
  .app-tabs a:active { transform: scale(.97); filter: brightness(1.15); }
}

/* Dashboard header on phones: the Host tab already goes home, so keep only Search, Help and the profile button. */
@media (max-width: 760px) {
  .dash ~ * .watch-link, .nav-right .watch-link, .nav-right a.btn[href="/"] { display: none !important; }
  .nav-right { gap: 8px !important; }
}

/* Phones: keep the page at its normal size, like an app. No double-tap zoom, and text boxes are at least
   16px so the iPhone doesn't zoom in when you tap one. */
@media (max-width: 760px) {
  html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: max(16px, 1em) !important; }
}
