/* H8: phone live room (<= 768 px) back to G's 233G geometry.
   mobile-222.css (shared public header) puts the room header in the page flow and moves the
   stage below it (top: 100px); live-160.css (233G) already offsets every overlay by
   --room-header-h for an overlaid header, so both offsets applied: the host row, tag, deal card
   and bottom rows all sat ~100px low and the bottom row fell off-screen. This file keeps the
   shared header's content and look, but overlays it again as 233G expects. */
@media (max-width: 768px) {
  /* 5. One offset only: the header overlays the stage again; the stage card sits under the tabs. */
  body.watch .watch-head { position: fixed; inset: 0 0 auto; min-height: var(--room-header-h); }
  body.watch .stage-wrap { top: 0; }
  /* The card's insets (left/right 8, top header + 58, bottom 184) define its box; an older
     width/height: 100% made it 390 wide from x = 8 and as tall as the screen. */
  .watch .stage { width: auto !important; height: auto !important; }

  /* 1. Host portrait: a true circle, the face kept in frame. */
  .watch .top .host-avatar { overflow: hidden; }
  .watch .top .host-avatar img,
  .watch .top #host-avatar { display: block; width: 100% !important; height: 100% !important; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 18%; border-radius: 50%; }

  /* 4. Today's deal card: anchored above the now-showing row (16 px gap), never over the
     input row or the now-showing bar, at any viewport height. */
  .watch .room-deal-154 { top: auto !important; bottom: calc(var(--room-bottom-safe) + 144px) !important; max-height: calc(100% - var(--room-header-h) - 120px - 144px - var(--room-bottom-safe)); }

  /* 2. The activity stream stays below the category tag (tag bottom = header + 99 px). */
  .watch section.chat .feed { max-height: min(148px, calc(100% - var(--room-header-h) - 108px - 242px - var(--room-bottom-safe))); overflow: hidden; }
}
