/* Stage 2.36: only applies after JS confirms a detail page in an installed mobile PWA. */
@media (max-width: 991.98px) {
  html.am36-watch { scroll-padding-top: 84px; scroll-padding-bottom: 96px; }
  html.am36-watch .detail-hero { margin-bottom: 12px; }
  html.am36-watch .detail-hero > .d-flex { gap: 10px !important; }
  html.am36-watch .detail-title { font-size: clamp(1.25rem, 5.4vw, 1.75rem); line-height: 1.17; overflow-wrap: anywhere; }
  html.am36-watch .detail-subtitle { font-size: .89rem; }
  html.am36-watch .detail-hero .meta-pill { font-size: .76rem; padding: 7px 10px; }
  html.am36-watch .detail-hero .quality-pill { font-size: .76rem; padding: 6px 10px; }
  html.am36-watch .detail-player-card { padding: 6px !important; border: 0; border-radius: 12px; box-shadow: none; }
  html.am36-watch .detail-player-card .player-shell, html.am36-watch .detail-player-card .plyr { border-radius: 10px; }
  html.am36-watch .detail-player-card #fullscreenButton { min-height: 44px; touch-action: manipulation; }
  html.am36-watch .watch-resume-hint { padding: 10px 12px; gap: 8px; }
  html.am36-watch .detail-share-card { padding: 14px !important; border-radius: 12px; box-shadow: none; }
  html.am36-watch .related-thumb { border-radius: 12px; }
  html.am36-watch .related-title { margin-top: 6px; font-size: .84rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  html.am36-watch .am36-watch-tools { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin: 0 0 12px; }
  html.am36-watch .am36-watch-tools a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 13px; color: var(--text-main); background: var(--bg-hover); text-decoration: none; font-size: .82rem; font-weight: 700; touch-action: manipulation; }
  html.am36-watch .am36-watch-tools a:focus-visible { outline: 3px solid #d94375; outline-offset: 2px; }
  html.am36-watch .am36-watch-more { color: #d94375 !important; }
  html.am36-watch.am36-fullscreen #am-main-app-tabs { display: none !important; }
  html.am36-watch #am36-watch-related { scroll-margin-top: 92px; }
}
@media (max-width: 390px) {
  html.am36-watch .am36-watch-tools a { font-size: .74rem; padding: 8px; }
  html.am36-watch .detail-hero .meta-pill { font-size: .72rem; }
}
