/* J32 (Roger's screenshot of the room on a desktop, 2026-11-16): the like button answers every tap; the "today's pick"
   card stays readable over the captions; the chat's "nobody has spoken yet" line leaves once anything is in the chat.
   Loaded after the room's layout sheets. Weights 400 / 500 / 600 only. */

/* ---- likes: "×N" for quick repeated taps, on the button itself ---- */
.watch .h4-like, .watch .side-actions #heart-btn { position: relative; }
.watch .j32-like-count {
  position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  min-width: 34px; padding: 3px 8px; box-sizing: border-box; border-radius: 999px;
  background: rgba(22, 15, 40, .82); color: #fff; border: 1px solid rgba(255, 255, 255, .22);
  font: 600 13px/1.2 "Inter Variable", "Noto Sans SC", sans-serif; font-variant-numeric: tabular-nums;
  text-align: center; white-space: nowrap; pointer-events: none; z-index: 2;
}
.watch .j32-like-count[hidden] { display: none; }
/* phone: the sound button sits right above the like button, so the count rides the like button's top-right corner */
@media (max-width: 768px) {
  .watch .side-actions #heart-btn > .j32-like-count { left: auto; right: -6px; bottom: auto; top: -5px; transform: none; min-width: 0; padding: 2px 6px; font-size: 12px; background: #fff; color: #c2185b; border-color: transparent; }
  .watch .side-actions #heart-btn > .j32-like-count.is-bump { animation: j32-bump-corner .22s ease; }
}
@keyframes j32-bump-corner { 50% { transform: scale(1.18); } }
.watch .j32-like-count.is-bump { animation: j32-bump .22s ease; }
@keyframes j32-bump { 50% { transform: translateX(-50%) scale(1.18); } }

/* each heart rises for its own 1.2–1.8 s */
.watch[data-h4] .h4-heart { animation-duration: var(--h4-dur, 1.6s); }

/* "reduce motion": no floating hearts (the scripts do not create them); the button's press still shows */
@media (prefers-reduced-motion: reduce) {
  .watch[data-h4] .h4-like.is-pop { animation: j32-press .2s ease; }
  .watch .side-actions #heart-btn.h11-pop { animation: j32-press .2s ease; }
  .watch .j32-like-count.is-bump { animation: none; }
}
@keyframes j32-press { 50% { transform: scale(.92); } }

/* ---- the "today's pick" card sits above the pop-up captions, and the captions keep out of its column ---- */
@media (min-width: 1024px) {
  body.watch #shell[data-reference] .stage-wrap > .room-deal-154 { z-index: 64; }
  body.watch #shell[data-reference] .stage-wrap:has(> .room-deal-154:not([hidden])) .pop-captions { right: 207px !important; }
}

/* ---- chat: the invitation line is for an empty chat only; any line (a message or a room event) retires it ---- */
.watch section.chat:has(#feed .line) .room-chat-empty { display: none !important; }

/* ---- the desktop room header's bag: same badge as every other header (css/header-j26.css) — on the icon's
   top-right corner, not across its middle ---- */
html body.watch .watch-head .head-bag { position: relative !important; overflow: visible !important; }
html body.watch .watch-head .head-bag > .count:not(:empty) {
  position: absolute !important; top: 0 !important; right: -5px !important; left: auto !important; bottom: auto !important; transform: none !important; margin: 0 !important;
  display: grid !important; place-items: center; min-width: 16px !important; width: auto !important; height: 16px !important; padding: 0 4px !important; box-sizing: border-box;
  border-radius: 999px; background: var(--roan-violet-400, #b48cff) !important; color: #1b1430 !important;
  font: 600 10px/1 "Inter Variable", "Noto Sans SC", sans-serif !important; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none;
}
html body.watch .watch-head .head-bag > .count:empty { display: none !important; }
html body.watch .watch-head .head-bag:focus-visible { outline: 2px solid #c994ff; outline-offset: 2px; border-radius: 12px; }

/* ---- contrast (the 332D scan): the room-number chip beside the host's name read 4.1:1 over a bright video ---- */
.watch[data-h4] .h4-host-code { color: #fff !important; background: rgba(13, 10, 20, .66) !important; }
