/* J8: WCAG AA text contrast on the live room (tools/contrast-scan.mjs). Includes the approved colour/backdrop repair and PM mobile touch/text minima;
   loaded last by live.html so the room's own sheets (264C, I) stay untouched. */
.watch .top .live-badge { background: #d4183f !important; }                     /* white 5.25:1 (was 3.8:1 on #ed3157) */
html body.watch .watch #stage-wrap > .top .host-name { padding: 1px 6px !important; border-radius: 6px !important; background: rgba(17, 12, 30, .65) !important; } /* readable even over a white video frame */
html body.watch .watch #stage-wrap > .top .room-ai-badge-r4 { background: rgba(17, 12, 30, .6) !important; color: #fff !important; } /* "AI" over video (was 2.9:1) */
.watch .room-now-154 .room-now-label { background: #6d28d9 !important; }        /* white 7.1:1 (was 3.9:1) */
html body .watch .top .desktop-follow:not([aria-pressed="true"]), html body .watch .h4-follow:not([aria-pressed="true"]) { background: #6d28d9 !important; } /* white 7.1:1 (was 4.0-4.5:1); outranks h11 .watch .top .desktop-follow */
.watch .room-deal-154 > h2 { background: #6d28d9 !important; }                 /* white 7.1:1 (was 4.1:1) */
.watch .room-deal-154 { background-color: rgba(255, 255, 255, .97) !important; } /* was .82 over video: title fell to 3.4:1 on bright frames */
html body .lang-switch .lang-chevron { color: inherit; }                         /* the room header is dark; the chevron follows its text */

/* PM 05:25Z mobile gate: 12px readable text and real 44px hit boxes.
   Keep the approved compact AI/follow pills inside those boxes. Desktop is untouched. */
@media (max-width: 768px) {
  .watch { --c264-action: 44px; }
  html body.watch .watch #stage-wrap > .top { min-height: 44px !important; }
  html body.watch .watch #stage-wrap > .top .desktop-host-tools { height: 44px !important; }
  html body.watch .watch #stage-wrap > .top .room-ai-badge-r4,
  html body.watch .watch #stage-wrap > .top #desktop-follow-btn {
    position: relative; isolation: isolate; min-height: 44px !important; height: 44px !important;
    line-height: 44px !important; font-size: 12px !important; background: transparent !important; box-shadow: none !important;
  }
  html body.watch .watch #stage-wrap > .top .room-ai-badge-r4 { width: 44px; min-width: 44px; padding: 0 !important; }
  html body.watch .watch #stage-wrap > .top .room-ai-badge-r4::before {
    content: ""; position: absolute; inset: 13px 9px; z-index: -1; border-radius: 4px;
    background: rgba(17, 12, 30, .8); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
  }
  html body.watch .watch #stage-wrap > .top #desktop-follow-btn::before {
    content: ""; position: absolute; inset: 11px 0; z-index: -1; border-radius: 999px; background: #6d28d9;
  }
  html body.watch .watch #stage-wrap > .top #desktop-follow-btn[aria-pressed="true"]::before { background: rgba(17,12,30,.8); }
  html body.watch .watch #desktop-follow-label,
  html body.watch .watch #stage-wrap > .top #live-badge { font-size: 12px !important; }
  html body.watch .watch .side-actions .act,
  html body.watch .watch .side-actions .room-gift-toggle-221 { min-width: 44px !important; width: 44px !important; min-height: 44px !important; height: 44px !important; }
  html body.watch .watch .room-product-open,
  html body.watch .watch .room-deal-154 .room-buy-154 { min-height: 44px !important; height: auto !important; }
  html body.watch .watch .room-deal-price del,
  html body.watch .watch .room-deal-discount { font-size: 12px !important; }
}

/* 270F-07: AI disclosure and playback hints remain readable on desktop too. */
html body.watch .watch .more-disclosure,
html body.watch .watch .sound-hint,
html body.watch .watch .h4-host-ai,
html body.watch .watch .chat-ai-disclosure,
html body.watch .watch .room-product-request-188,
html body.watch .watch .room-now-label { font-size: 12px !important; }

/* 271C / 270F-05: the 1036 room's tablet and desktop controls retain their
   compact visual glyphs, but the interactive boxes are always at least 44px.
   This is intentionally scoped to the room and loaded last so later compact
   polish cannot shrink the real hit area again. */
@media (min-width: 768px) {
  html body.watch .watch .room-product-open,
  html body.watch .watch .room-deal-154 .room-buy-154,
  html body.watch .watch .room-now-154 .room-product-open,
  html body.watch .watch .room-overlay-composer button,
  html body.watch .watch .room-cart-154,
  html body.watch .watch .room-product-request-188,
  html body.watch .watch .room-more-154,
  html body.watch .watch #desktop-follow-btn,
  html body.watch .watch .h4-follow,
  html body.watch .watch .room-gift-toggle-221,
  html body.watch .watch #share-btn,
  html body.watch .watch #heart-btn,
  html body.watch .watch .room-chat-tabs button,
  html body.watch .watch .room-shop-filters button {
    min-height: 44px !important;
    box-sizing: border-box;
  }

  html body.watch .watch .room-cart-154,
  html body.watch .watch .room-more-154,
  html body.watch .watch .room-gift-toggle-221,
  html body.watch .watch #share-btn,
  html body.watch .watch #heart-btn,
  html body.watch .watch .room-overlay-composer button {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
  }

  html body.watch .watch .room-product-request-188 {
    padding-block: 0 !important;
  }

  html body.watch .watch .room-product-open {
    height: auto !important;
  }

  /* H4's player controls are icon-first, but the buttons remain tappable. */
  html body.watch .watch[data-h4] .player-controls button,
  html body.watch .watch[data-h4] .player-controls .player-icon {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    box-sizing: border-box;
  }
}

@media (max-width: 767px) {
  html body.watch .watch .room-now-154 .room-cart-154 { min-width: 44px !important; width: 44px !important; min-height: 44px !important; height: 44px !important; }
  html body.watch .watch .room-now-154 > .room-product-154 { padding-right: 54px !important; }
}
