/* 160C room refinement.  The page remains a dark, portrait-first watch room:
   commerce and chat stay in their own columns and only socket-backed lines are
   shown as activity. */

@media (min-width: 900px) {
  html, body { background: #110e19; }
  body .watch {
    grid-template-columns: minmax(270px, 23%) minmax(0, 1fr) minmax(300px, 25%);
    grid-template-rows: 60px minmax(0, 1fr);
    grid-template-areas: "head head head" "shop stage chat";
    gap: 10px;
    padding: 0 16px 16px;
    background: #110e19;
  }
  .watch-head { background: #110e19; border-bottom: 1px solid #292239; }
  .watch .shop,
  .watch section.chat,
  .watch .stage-wrap { border: 1px solid #2c2440; }
  .watch .shop { background: #1a1627; border-radius: 18px; padding: 0 14px 14px; }
  .watch .shop-title { padding: 22px 14px 14px; font-size: 23px; }
  .room-shop-filters { padding: 0 0 14px; gap: 8px; margin: 0 0 12px; }
  .room-shop-filters button { min-height: 36px; padding: 6px 15px; border-radius: 999px; color: #d9d0ea; font-size: 13px; }
  .room-shop-filters button[aria-pressed=true] { background: #35284c; color: #fff; }
  .room-products-154 { gap: 8px; padding: 0; }
  .room-product-154 {
    min-height: 82px;
    padding: 10px 42px 10px 10px;
    border: 1px solid transparent;
    border-radius: 15px;
    background: transparent;
    color: #eee9f7;
  }
  .room-product-154.is-current { border-color: #863bff; background: #2b2140; box-shadow: inset 3px 0 #9b55ff; }
  .room-product-open { gap: 13px; color: #eee9f7; }
  .room-product-open > img { width: 58px; height: 58px; border-radius: 12px; background: #fff; }
  .room-product-copy { gap: 4px; }
  .room-product-copy strong { font-size: 15px; line-height: 1.25; color: #f3eefc; }
  .room-product-copy b { font-size: 17px; color: #f7f3fd; font-variant-numeric: tabular-nums; }
  .room-product-154.is-current .room-product-copy strong::before { content: '正在讲'; display: block; margin-bottom: 2px; color: #bd8bff; font-size: 12px; }
  .room-cart-154 { width: 36px; height: 36px; right: 10px; bottom: 12px; background: #292039; color: #b36cff; border-radius: 10px; }
  .room-cart-154.is-current { background: #913eff; color: #fff; }
  .room-list-empty { color: #c4b9d7; }

  .watch .stage-wrap { background: #0b0910; border-radius: 18px; }
  /* Reserve the interaction rail and Now Showing strip below the player. */
  .watch .stage { inset: 0 0 170px; background: #0b0910; }
  .watch .stage-carry, .watch .room-poster { inset: 0; }
  .watch .stage:before {
    content: '';
    position: absolute;
    inset: -34px;
    background-image: var(--room-poster-154);
    background-position: center;
    background-size: cover;
    filter: blur(30px) brightness(.42);
    opacity: .95;
  }
  .watch .stage video.clip,
  .watch .stage-carry video,
  .watch .room-poster { background: #0b0910; object-fit: contain; }
  .watch .top { padding: 18px 18px 48px; }
  .watch .top .live-badge { background: #241d32; border: 1px solid #493862; border-radius: 999px; padding: 9px 16px; font-size: 13px; }
  .watch .top .live-badge .live-dot { background: #ff3167; }
  .watch .host-name { font-size: 19px; }
  .watch .host-avatar { width: 45px; height: 45px; }
  .watch .desktop-follow { min-height: 36px; padding: 0 17px; background: #913eff; font-size: 14px; }
  .watch .room-more-154 { width: 36px; height: 36px; border: 1px solid #493862; border-radius: 50%; background: #1b1527; }
  .watch .room-category-154 { display: none !important; }
  .watch .room-deal-154 { display: none !important; }
  .watch .room-overlay-composer,
  .watch .room-heart-154 { display: none !important; }
  .watch .player-controls { left: 50%; right: auto; bottom: 186px; transform: translateX(-50%); min-width: 220px; justify-content: center; border-radius: 13px; background: #3a3545cc; }
  .watch .player-icon { color: #fff; }
  .watch .stage-purchase { inset: auto 12px 12px; }
  .watch .room-now-154 { height: 80px; align-items: stretch; }
  .watch .room-now-label { width: 95px; justify-content: center; padding: 0 10px; border-radius: 12px 0 0 12px; background: #fff; color: #8e42ff; font-size: 13px; }
  .watch .room-now-154 > .room-product-154 { width: min(55%, 360px); border-radius: 0 14px 14px 0; background: #fff; color: #191222; }
  .watch .room-now-154 .room-product-open { color: #191222; }
  .watch .room-now-154 .room-product-open > img { width: 61px; height: 61px; border-radius: 10px; }
  .watch .room-now-154 .room-product-copy strong { color: #191222; font-size: 14px; }
  .watch .room-now-154 .room-product-copy b { color: #191222; font-size: 20px; }
  .watch .room-now-154 .room-product-154.is-current { border: 0; box-shadow: none; }
  .watch .room-now-154 .room-product-154.is-current .room-product-copy strong::before { display: none; }
  .watch .room-now-carousel { align-items: center; }
  .watch .room-now-carousel button { width: 68px; min-width: 68px; height: 70px; background: #fff; border-radius: 12px; }
  .watch .stage .captions, .watch .stage-wrap .caption { bottom: 8px; }
  .room-gifts-160 { position: absolute; z-index: 62; left: 12px; right: 12px; bottom: 98px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
  .room-gifts-160 { display: block; padding: 8px; border: 1px solid #302542; border-radius: 16px; background: #171122e8; }
  .room-interaction-head { display: flex; align-items: center; justify-content: space-between; min-height: 22px; margin: 0 4px 6px; color: #ddd3ea; font-size: 12px; }
  .room-points-188 { color: #d5a9ff; font-variant-numeric: tabular-nums; }
  .room-points-topup { margin-left: auto; border: 1px solid rgba(196,181,253,.55); border-radius: 999px; background: rgba(124,58,237,.24); color: #f5f3ff; padding: 4px 9px; font: inherit; cursor: pointer; }
  .room-gift-grid-188 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
  .room-gift-160,
  .room-gifts-160 .clip-request { min-width: 0; min-height: 72px; padding: 7px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid #302542; border-radius: 15px; background: #1b1527; color: #f3eefc; font: inherit; cursor: pointer; }
  .room-gift-160.is-request,
  .room-gifts-160 .clip-request { border-color: #8e3eff; background: #2a1552; }
  .room-gift-icon { font-size: 22px; line-height: 1; }
  .room-gift-label { font-size: 12px; line-height: 1.2; text-align: center; white-space: nowrap; }
  .room-product-request-188 { position: absolute; right: 48px; bottom: 14px; border: 1px solid #7443a7; border-radius: 8px; padding: 5px 7px; background: #241533; color: #d8b8ff; font: inherit; font-size: 10px; cursor: pointer; }
  .room-interaction-notice { min-height: 16px; margin: 6px 4px 0; color: #f0d68a; font-size: 12px; }
  .room-gifts-160 .clip-request { font-size: 12px; }
  .room-gifts-160 .clip-request::before { content: '🕺'; display: block; font-size: 22px; }
  .room-gifts-160 .clip-request { color: #f3eefc; }
  .watch section.chat { background: #1a1627; border-radius: 18px; padding: 0 14px 14px; }
  .room-chat-tabs { height: 70px; padding: 0 16px; gap: 24px; }
  .room-chat-tabs button { font-size: 20px; color: #9f94b3; }
  .room-chat-tabs button.is-current { color: #fff; border-color: #a958ff; }
  .watch .chat-head { padding: 14px 8px 10px; }
  .watch .chat-ai-disclosure { color: #9f94b3; font-size: 12px; }
  .watch #ai-tag,
  .watch .host-line::after { display: none !important; }
  .watch section.chat .feed { margin-top: 8px; padding: 0 6px; }
  .watch section.chat .line { padding: 8px 10px; border: 0; border-radius: 12px; color: #efe9f7; font-size: 14px; line-height: 1.5; }
  .watch section.chat .line.event { display: block !important; color: #b9adc9; opacity: 1; }
  .watch section.chat .line.reply { margin: 6px 0; background: #2a2140; border: 1px solid #42325e; }
  .watch section.chat .line .who { color: #c8a4ff; font-size: 13px; }
  .watch section.chat .line.reply .who { color: #c78dff; }
  .watch .room-chat-empty { color: #aaa0b9; font-size: 14px; }
  .watch section.chat .composer { min-height: 52px; background: #211a30; border-color: #45345a; }
  .watch section.chat .composer input { min-height: 50px; font-size: 14px; }
  .watch section.chat .composer button { min-height: 48px; padding: 0 16px; background: #8f3fff; color: #fff; }
}

/* 160C desktop fix: the shared language menu stays legible on the dark room shell. */
.watch-head .lang-switch {
  display: block !important;
  min-width: 138px;
  height: 44px;
  border: 1px solid #493862;
  border-radius: 999px;
  background: #1b1527;
  color: #f3eefc;
}
.watch-head .lang-switch > summary { color: #f3eefc; }
.watch-head .lang-globe { color: #c49aff; }
.watch-head .lang-menu { border-color: #493862; background: #211a30; box-shadow: 0 14px 30px rgba(0,0,0,.38); }
.watch-head .lang-opt { color: #f3eefc !important; }
.watch-head .lang-opt:hover,
.watch-head .lang-opt[aria-selected="true"] { background: #35284c !important; color: #e0c7ff !important; }

@media (max-width: 899px) {
  html, body { background: #0b0910; }
  /* 198G mobile shell: the stage owns the full viewport. This prevents a
     narrow mobile grid from leaving a desktop-sized black gutter when the
     browser viewport is wider than the portrait player. */
  body .watch { width: 100vw; min-width: 100vw; max-width: none; overflow: hidden; }
  .watch .stage-wrap { width: 100vw; min-width: 100vw; height: 100svh; min-height: 100svh; border-radius: 0; background: #0b0910; }
  .watch .stage { width: 100%; height: 100%; }
  .watch .stage:before { display: none !important; }
  .watch .stage video.clip, .watch .stage-carry video, .watch .room-poster { object-fit: contain; background: #0b0910; }
  .watch .top { background: linear-gradient(180deg, #0b0910e6 0%, #0b091099 58%, transparent 100%); color: #fff; padding: 16px 14px 76px; }
  .watch .host-name, .watch .host-line, .watch .top-room-code { color: #fff !important; text-shadow: 0 1px 2px #0008; }
  .watch .top .live-badge { background: #e93267; color: #fff; border: 0; }
  .watch .room-more-154 { background: #171122dd; border-color: #8e3eff; color: #fff; }
  .watch .room-deal-154, .watch .room-category-154 { display: none !important; }
  .watch .room-overlay-composer { display: flex; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); left: 12px; right: 66px; height: 44px; background: #1a1426cc; }
  .watch .room-heart-154 { display: grid; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); right: 12px; width: 44px; height: 44px; }
  .watch .player-controls { bottom: calc(env(safe-area-inset-bottom, 0px) + 166px); }
  .watch .stage-purchase { bottom: calc(env(safe-area-inset-bottom, 0px) + 72px); left: 12px; right: 12px; }
  .watch .room-now-154 { display: flex !important; height: 64px; }
  .watch .room-now-label { width: 70px; font-size: 11px; }
  .watch .room-now-154 > .room-product-154 { width: 60%; height: 64px; background: #fff; }
  .watch .room-now-154 .room-product-open > img { width: 46px; height: 48px; }
  .watch .room-now-154 .room-product-copy strong { color: #18121f; font-size: 11px; }
  .watch .room-now-154 .room-product-copy b { color: #18121f; font-size: 15px; }
  .watch .room-now-carousel button { width: 50px; min-width: 50px; height: 56px; }
  .room-gifts-160 { position: absolute; z-index: 62; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 124px); display: block; overflow: hidden; padding: 6px; border: 1px solid #302542; border-radius: 14px; background: #171122e8; }
  .room-interaction-head { display: flex; align-items: center; justify-content: space-between; min-height: 18px; margin: 0 3px 4px; color: #ddd3ea; font-size: 11px; }
  .room-points-topup { min-height: 32px; }
  .room-gift-grid-188 { display: flex; gap: 6px; overflow-x: auto; padding: 0; scrollbar-width: none; }
  .room-gift-160, .room-gifts-160 .clip-request { min-width: 74px; min-height: 58px; border-radius: 14px; }
  .room-gift-icon { font-size: 20px; }
  .room-gift-label { font-size: 10px; }
  .room-product-request-188 { right: 46px; bottom: 10px; padding: 4px 5px; font-size: 9px; }
  .room-interaction-notice { min-height: 14px; margin: 4px 3px 0; font-size: 10px; }
  .room-gifts-160 .clip-request { font-size: 10px; }
  .watch section.chat { background: transparent; border: 0; pointer-events: none; }
  .watch section.chat .feed { position: absolute; left: 12px; right: 72px; bottom: calc(env(safe-area-inset-bottom, 0px) + 180px); max-height: 170px; overflow: hidden; pointer-events: none; mask-image: linear-gradient(to bottom, transparent 0, #000 20%, #000 100%); }
  .watch section.chat .line { padding: 5px 8px; font-size: 12px; background: #17112299; border-radius: 8px; }
  .watch section.chat .line.event { display: block !important; color: #d2c7dc; }
  .watch section.chat .chat-head, .watch section.chat .room-chat-tabs, .watch section.chat .room-details { display: none; }
  .watch section.chat .composer { position: absolute; left: 12px; right: 66px; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); pointer-events: auto; min-height: 44px; background: #1a1426dd; }
  .watch section.chat .composer input { min-height: 42px; color: #fff; }
  .watch section.chat .composer button { min-height: 42px; padding: 0 12px; }
}
/* 198G: the phone room is an immersive, single surface.  Keep this block
   last so the older phone rules above cannot re-introduce the desktop card
   shell, the second composer, or the light poster haze. */
@media (max-width: 768px) {
  body:has(dialog.sheet[open]) { overflow: hidden !important; }
  :root {
    --room-bottom-safe: env(safe-area-inset-bottom, 0px);
    --room-composer-h: 48px;
  }

  html,
  body,
  body .watch,
  .watch .stage-wrap {
    width: 100%;
    min-width: 0;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  body,
  body .watch {
    background: #08070b;
  }

  .watch .stage-wrap {
    position: fixed;
    inset: 0;
    border-radius: 0;
    background: #08070b;
    isolation: isolate;
  }

  /* The video and poster own every pixel of the phone viewport. */
  .watch .stage,
  .watch .stage-carry,
  .watch .stage video.clip,
  .watch .stage-carry video,
  .watch .room-poster {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .watch .stage video.clip,
  .watch .stage-carry video,
  .watch .room-poster {
    object-fit: cover !important;
    background: #08070b;
  }

  .watch .stage:before,
  .watch .stage-wrap:before {
    display: none !important;
    content: none !important;
  }

  /* One readable row: the only background is a dark top gradient. */
  .watch .top {
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    min-height: 58px;
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 12px;
    background: linear-gradient(to bottom, rgba(5, 5, 8, .88), rgba(5, 5, 8, .42) 70%, transparent);
  }

  .watch .top .only-phone,
  .watch .top .cc-desk,
  .watch .top .ai-tag,
  .watch .top .viewer-count,
  .watch .top .test-badge,
  .watch .top .desktop-share {
    display: none !important;
  }

  .watch .top .host-line {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 38vw;
    min-height: 40px;
    gap: 6px;
    color: #fff;
  }

  .watch .top .host-avatar {
    display: inline-grid !important;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .7);
  }

  .watch .top .host-name {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 650;
  }

  .watch .top .desktop-host-tools {
    display: inline-flex !important;
    flex: 0 0 auto;
    margin: 0;
  }

  .watch .top .desktop-follow {
    min-height: 32px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    background: rgba(10, 9, 15, .3);
    color: #fff;
    font-size: 11px;
    white-space: nowrap;
  }

  .watch .top .top-room-code {
    /* The room code is part of the live pill on phones; avoid showing it twice. */
    display: none !important;
  }

  .watch .top .live-badge {
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 0 7px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(10, 9, 15, .36);
    color: #fff;
    font-size: 10px;
    white-space: nowrap;
  }

  .watch .top .live-dot { width: 6px; height: 6px; }

  .watch .top #unmute {
    display: inline-grid !important;
    flex: 0 0 32px;
    place-items: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 50%;
    background: rgba(10, 9, 15, .36);
    color: transparent;
    font-size: 0;
  }

  .watch .top #unmute::before {
    content: '\1F50A';
    color: #fff;
    font-size: 14px;
    line-height: 1;
  }

  .watch .top #unmute[aria-pressed="true"]::before { content: '\1F507'; }

  .watch .top .room-more-154 {
    position: relative;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 50%;
    background: rgba(10, 9, 15, .36);
    color: transparent;
    font-size: 0;
  }

  .watch .top .room-more-154::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
    box-shadow: 0 -7px #fff, 0 7px #fff;
  }

  /* 360px still keeps the complete row on one line.  The name may ellipsize;
     the layout never wraps the avatar/name pair onto a second row. */
  @media (max-width: 380px) {
    .watch .top { gap: 4px; padding-inline: 10px; }
    .watch .top .host-line { max-width: 86px; }
    .watch .top .host-avatar { flex-basis: 30px; width: 30px; height: 30px; }
    .watch .top .host-name { font-size: 13px; }
    .watch .top .desktop-follow { min-height: 30px; padding-inline: 7px; font-size: 10px; }
    .watch .top .live-badge { padding-inline: 5px; font-size: 9px; }
    .watch .top #unmute,
    .watch .top .room-more-154 { flex-basis: 32px; width: 32px; min-width: 32px; height: 32px; min-height: 32px; }
  }

  /* AI copy is a small, tappable line under the top row; the first-visit
     note below is intentionally compact rather than a quarter-screen card. */
  .watch .stage-wrap > .ai-disclosure-group {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 58px);
    left: 12px;
    right: 12px;
    z-index: 63;
    display: block !important;
    color: rgba(255, 255, 255, .78);
  }

  .watch .stage-wrap > .ai-disclosure-group > summary {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    color: inherit;
    font-size: 10px;
    line-height: 1.2;
  }

  .watch .stage-wrap > .ai-disclosure-group > summary .ai-mark,
  .watch .stage-wrap > #ai-mark {
    display: inline !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    max-width: none;
    overflow: visible !important;
    clip: auto !important;
    opacity: .82 !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    pointer-events: auto;
  }

  .watch .stage-wrap > .ai-disclosure-group .disclosure-chevron { display: inline; }

  .watch .stage-wrap > .ai-disclosure-group > #ai-disclosure,
  .watch .stage-wrap > #ai-disclosure {
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin: 0;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 9px;
    background: rgba(8, 7, 11, .72);
    color: rgba(255, 255, 255, .9);
    font-size: 10px;
    line-height: 1.35;
  }

  .watch .stage-wrap > .ai-disclosure-group:not([open]) > #ai-disclosure { display: none !important; }

  .watch .ai-disclosure p { min-width: 0; }
  .watch .ai-disclosure button { min-width: 36px; min-height: 28px; padding: 0 6px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 6px; font-size: 10px; }

  /* The four action buttons sit in their own lane above the interaction rail. */
  .watch .side-actions {
    right: 10px;
    /* Keep the rail above the 44px gift pills and their 56px product row. */
    bottom: calc(var(--room-bottom-safe) + 188px);
    display: flex !important;
    gap: 8px;
    z-index: 64;
  }

  .watch .side-actions #follow-btn { display: none !important; }

  .watch .side-actions .act {
    width: 48px;
    min-height: 48px;
    padding: 4px 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background: rgba(8, 7, 11, .4);
    color: #fff;
    backdrop-filter: blur(5px);
  }

  .watch .side-actions .act svg { width: 21px; height: 21px; }
  .watch .side-actions .act-label { font-size: 9px; line-height: 1; }

  /* Four short real-event lines only; older lines are clipped, never invented. */
  .watch section.chat {
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    padding: 0 12px calc(var(--room-bottom-safe) + 12px);
    pointer-events: none;
  }

  .watch section.chat::before {
    top: 0;
    background: linear-gradient(to top, rgba(8, 7, 11, .82), rgba(8, 7, 11, .36) 42%, transparent 78%);
  }

  .watch section.chat .chat-head,
  .watch section.chat .room-chat-tabs,
  .watch section.chat .room-details,
  .watch section.chat #clip-requests-mobile,
  .watch section.chat #strip-slot,
  .watch section.chat .room-chat-empty { display: none !important; }

  .watch section.chat .feed {
    position: absolute;
    left: 12px;
    right: 78px;
    bottom: calc(var(--room-bottom-safe) + 202px);
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: none;
    max-height: 112px;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 100%);
  }

  .watch section.chat .feed > :nth-last-child(n + 5) { display: none !important; }
  .watch section.chat .feed > :nth-last-child(4) { opacity: .42; }
  .watch section.chat .feed > :nth-last-child(3) { opacity: .62; }
  .watch section.chat .feed > :nth-last-child(2) { opacity: .82; }
  .watch section.chat .line {
    width: fit-content;
    max-width: 100%;
    padding: 3px 7px;
    border: 0;
    border-radius: 7px;
    background: rgba(8, 7, 11, .46);
    color: rgba(255, 255, 255, .92);
    font-size: 11px;
    line-height: 1.35;
    pointer-events: none;
  }

  .watch section.chat .line.event { display: block !important; color: rgba(255, 255, 255, .84); }

  /* Gift/request controls are a horizontal, real-event rail above the product. */
  .watch .room-gifts-160 {
    left: 12px;
    right: 12px;
    bottom: calc(var(--room-bottom-safe) + 124px);
    z-index: 62;
    display: block;
    overflow: hidden;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .watch .room-interaction-head { display: none !important; }
  .watch .room-gift-grid-188 { display: flex; gap: 6px; height: 44px; overflow-x: auto; scrollbar-width: none; }
  .watch .room-gift-grid-188::-webkit-scrollbar { display: none; }
  .watch .room-gift-160,
  .watch .room-gifts-160 .clip-request {
    flex: 0 0 58px;
    min-width: 58px;
    min-height: 44px;
    height: 44px;
    padding: 3px 5px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(8, 7, 11, .58);
    color: #fff;
    backdrop-filter: blur(7px);
  }

  .watch .room-gift-icon { font-size: 15px; line-height: 1; }
  .watch .room-gift-label { max-width: 3.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; line-height: 1; }
  .watch .room-interaction-notice { position: absolute; left: 0; right: 0; bottom: 48px; min-height: 0; margin: 0; font-size: 9px; }

  /* Now explaining: one short row and one add-to-cart control. */
  .watch #current-product {
    left: 12px;
    right: 12px;
    bottom: calc(var(--room-bottom-safe) + 68px);
    width: auto;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 11px;
    background: rgba(8, 7, 11, .72);
    color: #fff;
    backdrop-filter: blur(7px);
  }

  .watch #current-product .current-product-label {
    display: none;
  }

  .watch #current-product .product-strip {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 0;
    color: #fff;
  }

  .watch #current-product .product-strip .open {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 7px;
    min-width: 0;
    width: auto;
    padding: 0;
    color: #fff;
  }

  .watch #current-product .product-strip .art { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 6px; }
  .watch #current-product .product-strip .meta { min-width: 0; }
  .watch #current-product .product-strip .meta .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-size: 11px; line-height: 1.2; }
  .watch #current-product .product-strip .meta .p { color: rgba(255, 255, 255, .76); font-size: 10px; line-height: 1.2; }
  .watch #current-product .product-strip .actions { display: flex; flex: 0 0 auto; width: auto; }
  .watch #current-product .product-strip .actions .btn { display: none; }
  .watch #current-product .product-strip .actions .btn.primary { display: inline-flex; min-height: 34px; padding: 0 9px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #b46cff, #7441f2); color: #fff; box-shadow: 0 4px 14px rgba(116, 65, 242, .28); font-size: 10px; white-space: nowrap; }

  /* One composer; the room-154 duplicate is deliberately inert on phones. */
  .watch .room-overlay-composer { display: none !important; }
  .watch section.chat .composer {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: calc(var(--room-bottom-safe) + 12px);
    display: flex;
    gap: 6px;
    height: var(--room-composer-h);
    min-height: var(--room-composer-h);
    pointer-events: auto;
  }

  .watch section.chat .composer input {
    min-height: var(--room-composer-h);
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    background: rgba(8, 7, 11, .72);
    color: #fff;
    font-size: 16px;
  }

  .watch section.chat .composer input::placeholder { color: rgba(255, 255, 255, .72); }
  .watch section.chat .composer button { min-height: var(--room-composer-h); padding: 0 12px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #b46cff, #7441f2); color: #fff; box-shadow: 0 4px 14px rgba(116, 65, 242, .28); font-size: 11px; }

  /* Balance is available from the real points endpoint through the More menu.
     It stays out of the compact gift rail and remains hidden until a balance
     is returned for this viewer. */
  .watch .more-points-188 { margin: 0 0 8px; padding: 0 0 8px; border-bottom: 1px solid rgba(255, 255, 255, .16); color: #d5a9ff; font-size: 11px; line-height: 1.3; }
}

/* 221G mobile room: a single, dark commerce surface inspired by the supplied
   reference.  The shared C222 header remains the source of navigation labels
   and icons; this layer only gives it the room's compact treatment. */
@media (max-width: 768px) {
  :root { --room-header-h: 116px; --room-purple: #8b45f4; --room-pink: #ff477e; }
  html, body, body .watch { background: #110d1b; }
  .watch-head {
    display: block !important;
    position: fixed;
    z-index: 86;
    inset: 0 0 auto;
    height: var(--room-header-h);
    border: 0 !important;
    background: linear-gradient(180deg, rgba(18, 13, 30, .98), rgba(18, 13, 30, .86));
    color: #fff;
  }
  .watch-head .top-bar {
    position: relative;
    display: block !important;
    width: 100%;
    height: var(--room-header-h);
    padding: 0 14px;
  }
  .watch-head .top-left { position: absolute; top: 8px; right: 106px; display: flex; align-items: center; gap: 6px; min-width: 0; }
  .watch-head .top-left .only-phone { display: inline-flex !important; width: 44px; height: 44px; align-items: center; justify-content: center; color: #fff; }
  .watch-head .top-left .header-search { display: none; }
  .watch-head .wordmark { position: absolute; top: 8px; left: 14px; display: inline-flex; min-width: 0; padding: 0; color: #fff; font-size: 25px; font-weight: 800; letter-spacing: .18em; }
  .watch-head .primary-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    width: calc(100vw - 28px);
    min-width: 0;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
    font-size: 14px;
    font-weight: 500;
  }
  .watch-head .primary-nav::-webkit-scrollbar { display: none; }
  .watch-head .primary-nav a { flex: 0 0 auto; min-height: 44px; padding: 13px 0 9px; border-bottom: 3px solid transparent; color: rgba(255,255,255,.74); }
  .watch-head .primary-nav a { border-bottom-color: transparent !important; }
  .watch-head .primary-nav a:first-child { color: #fff; border-color: #a855f7; font-weight: 750; }
  .watch-head .primary-nav a:last-child { display: none !important; }
  .watch-head .top-right { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; justify-content: flex-end; gap: 2px; min-width: 0; }
  .watch-head > .menu-btn { display: none !important; }
  .watch-head .top-right .lang-switch, .watch-head .top-right .account-btn, .watch-head .room-notification-154 { display: none !important; }
  .watch-head .room-favorite-154, .watch-head .head-bag { display: inline-flex !important; position: relative; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; }
  .watch-head .room-favorite-154[aria-pressed="true"] { color: #ff5f93; }
  .watch-head .head-bag svg, .watch-head .room-favorite-154 svg { width: 24px; height: 24px; }
  .watch-head .head-bag > span:first-child { display: none; }
  .watch-head .head-bag .count { top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #9b4df5; color: #fff; font-size: 10px; line-height: 18px; }

  .watch .stage-wrap { top: 0; border-radius: 0; background: #110d1b url('/img/hosts/ella-featured.webp') center 22% / cover no-repeat !important; }
  .watch .room-name { display: none !important; }
  .watch .top, .watch .stage-wrap { border: 0 !important; border-bottom: 0 !important; }
  .watch .top { top: var(--room-header-h); left: 0; right: 0; z-index: 64; min-height: 64px; padding: 10px 14px 8px; gap: 8px; background: linear-gradient(180deg, rgba(10,7,16,.84), rgba(10,7,16,.18)); }
  .watch .top .host-line { flex: 1 1 auto; max-width: none; min-width: 148px; min-height: 44px; gap: 8px; }
  .watch .top .host-avatar { flex-basis: 44px; width: 44px; height: 44px; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; }
  .watch .top .host-avatar img { border-radius: 50%; }
  .watch .top .host-name { display: block; min-width: 42px; max-width: 100%; font-size: 17px; font-weight: 700; }
  .watch .top .host-line::after { display: none !important; }
  .watch .top .desktop-host-tools { display: inline-flex !important; margin-left: 0; }
  .watch .top .desktop-follow { min-height: 32px; height: 32px; padding: 0 13px; border: 0; border-radius: 999px; background: linear-gradient(135deg,#9b42f4,#7134eb); color: #fff; box-shadow: 0 5px 14px rgba(112,52,235,.38); font-size: 13px; font-weight: 700; }
  .watch .top .live-badge { min-height: 30px; padding: 0 8px; border: 0; border-radius: 999px; background: #f13762; color: #fff; font-size: 11px; font-weight: 700; }
  .watch .top .live-badge .live-dot { background: #fff; }
  .watch .top #unmute { display: none !important; }
  .watch .top .room-more-154 { width: 34px; min-width: 34px; height: 34px; min-height: 34px; border-color: rgba(255,255,255,.3); }
  .watch .room-category-154 { display: inline-flex !important; position: absolute; z-index: 63; top: calc(var(--room-header-h) + 68px); left: 14px; min-height: 28px; padding: 4px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(24,17,35,.62); color: #fff; font-size: 11px; font-weight: 650; }
  .watch .stage-wrap > .ai-disclosure-group { top: calc(var(--room-header-h) + 66px); left: auto; right: 14px; z-index: 63; }
  .watch .stage-wrap > .ai-disclosure-group > summary { min-height: 24px; color: rgba(255,255,255,.76); font-size: 10px; writing-mode: horizontal-tb; }
  .watch .stage-wrap > .ai-disclosure-group > summary .ai-mark { display: none !important; }
  .watch .stage-wrap > .ai-disclosure-group > summary::before { content: 'AI 生成内容'; }
  html:not([lang^="zh"]) .watch .stage-wrap > .ai-disclosure-group > summary::before { content: 'AI-generated content'; }
  .watch .stage-wrap > .ai-disclosure-group .ai-disclosure,
  .watch .stage-wrap > .ai-disclosure-group[open] > #ai-disclosure { display: none !important; }

  .watch .room-deal-154 {
    display: block !important; position: absolute; z-index: 61; top: calc(var(--room-header-h) + 116px); right: 12px; width: min(184px, 48vw); overflow: hidden; border: 1px solid rgba(255,255,255,.34); border-radius: 16px; background: #fff; color: #23133d; box-shadow: 0 12px 30px rgba(4,1,13,.34);
  }
  .watch .room-deal-154 > h2 { margin: 0; padding: 9px 12px; background: linear-gradient(135deg,#8d42f2,#6430d7); color: #fff; font-size: 14px; line-height: 1.2; }
  .watch .room-deal-body { display: grid; gap: 5px; padding: 9px; }
  .watch .room-deal-body > img, .watch .room-deal-body > .room-art-empty { width: 100%; height: 82px; object-fit: contain; border-radius: 9px; background: #f7efff; }
  .watch .room-deal-brand { color: #766b83; font-size: 9px; }
  .watch .room-deal-body > strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12px; line-height: 1.25; }
  .watch .room-deal-price { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
  .watch .room-deal-price b { color: #1d102f; font-size: 18px; }
  .watch .room-deal-price del { color: #8d8596; font-size: 10px; }
  .watch .room-deal-discount { padding: 2px 5px; border-radius: 999px; background: #ff4c82; color: #fff; font-size: 9px; font-weight: 700; }
  .watch .room-buy-154 { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; width: 100%; border: 0; border-radius: 999px; background: linear-gradient(135deg,#9b43f4,#7134eb); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 5px 12px rgba(113,52,235,.25); }

  /* On the smallest phones the fixed chat composer sits higher.  Lift the
     deal card with it so the card never covers the input/action row. */
  @media (max-width: 375px) {
    .watch .room-deal-154 { top: calc(var(--room-header-h) + 78px) !important; }
  }

  .watch .side-actions { right: 10px; bottom: calc(var(--room-bottom-safe) + 144px); z-index: 66; display: flex !important; flex-direction: column; align-items: center; gap: 8px; }
  .watch .side-actions #follow-btn, .watch .side-actions #cc-btn { display: none !important; }
  .watch .side-actions .act, .watch .room-gift-toggle-221 { display: grid; place-items: center; width: 46px; min-width: 46px; height: 46px; min-height: 46px; padding: 3px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(17,12,28,.62); color: #fff; backdrop-filter: blur(8px); }
  .watch .side-actions .act-label, .watch .room-gift-toggle-221 span { font-size: 8px; line-height: 1; }
  .watch .side-actions #heart-btn { background: linear-gradient(135deg,#ff6393,#ff316b); border: 0; box-shadow: 0 8px 18px rgba(255,49,107,.35); }
  .watch .side-actions #heart-btn svg { width: 24px; height: 24px; }
  .watch .room-gift-toggle-221 { order: 2; }
  .watch .side-actions #share-btn { order: 1; }
  .watch .side-actions #bag-btn { order: 3; }
  .watch .side-actions #heart-btn { order: 4; }

  .watch section.chat .feed { left: 12px; right: 70px; bottom: calc(var(--room-bottom-safe) + 242px); max-height: 148px; gap: 4px; }
  .watch section.chat .line { padding: 6px 9px; border-radius: 999px; background: rgba(17,12,28,.62); font-size: 12px; line-height: 1.25; backdrop-filter: blur(7px); }
  .watch section.chat .line.reply { background: rgba(121,54,218,.62); border: 0; }
  .watch section.chat .line .who { color: #f0caff; font-size: 11px; }
  .watch section.chat .composer { left: 12px; right: 68px; bottom: calc(var(--room-bottom-safe) + 12px); height: 46px; min-height: 46px; }
  .watch section.chat .composer input { height: 46px; min-height: 46px; padding: 0 14px; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; background: rgba(17,12,28,.48); font-size: 14px; }
  .watch section.chat .composer button { display: none; }

  .watch .room-gifts-160 { left: 12px; right: 68px; bottom: calc(var(--room-bottom-safe) + 144px); z-index: 65; display: none; height: auto; max-height: 146px; padding: 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(19,13,33,.94); box-shadow: 0 12px 30px rgba(0,0,0,.3); backdrop-filter: blur(12px); }
  .watch .room-gifts-160[data-open="true"] { display: block; }
  .watch .room-gift-grid-188 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; height: auto; overflow: visible; }
  .watch .room-gift-160, .watch .room-gifts-160 .clip-request { min-width: 0; width: auto; height: 44px; min-height: 44px; border-radius: 999px; background: rgba(255,255,255,.08); }
  .watch .room-interaction-head { display: flex !important; align-items: center; justify-content: space-between; min-height: 22px; margin: 0 2px 6px; color: rgba(255,255,255,.82); font-size: 11px; }
  .watch .room-points-topup { min-height: 32px; }
  .watch .room-gift-icon { display: inline-grid; place-items: center; font-size: 14px; }
  .watch .room-gift-icon svg { width: 15px; height: 15px; stroke: currentColor; }
  .watch .room-gift-label { max-width: none; font-size: 10px; }
  .watch .room-gift-cost { display: block; color: #e2c6ff; font-size: 8px; line-height: 1; white-space: nowrap; }
  .watch .room-interaction-notice { bottom: -24px; font-size: 10px; }

  .watch #current-product { left: 12px; right: 12px; bottom: calc(var(--room-bottom-safe) + 66px); height: 56px; min-height: 56px; max-height: 56px; border: 0; border-radius: 14px; background: #fff; color: #20152e; box-shadow: 0 10px 22px rgba(0,0,0,.26); }
  .watch #current-product .product-strip .art { width: 42px; height: 42px; border-radius: 8px; }
  .watch #current-product .product-strip .meta .t { color: #20152e; font-size: 11px; font-weight: 700; }
  .watch #current-product .product-strip .meta .p { color: #20152e; font-size: 14px; font-weight: 800; }
  .watch #current-product .product-strip .actions .btn.primary { min-height: 36px; width: 36px; padding: 0; border-radius: 10px; font-size: 0; }
  .watch #current-product .product-strip .actions .btn.primary svg { width: 17px; height: 17px; }
  .watch #current-product { display: flex; align-items: center; }
  .watch #current-product::before { content: '正在讲解'; position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 68px; height: 56px; border-radius: 14px 0 0 14px; background: linear-gradient(135deg,#a044f5,#7134eb); color: #fff; font-size: 11px; font-weight: 750; }
  html:not([lang^="zh"]) .watch #current-product::before { content: 'Now Showing'; }
  .watch #current-product .current-product-label { display: none; }
  .watch #current-product .product-strip { width: calc(100% - 68px); margin-left: 68px; }

  .watch .room-heart-154 { display: none !important; }
  .watch .hearts { right: 56px; bottom: calc(var(--room-bottom-safe) + 190px); z-index: 70; }
  .watch .heart { color: #ff4d86; text-shadow: 0 2px 9px rgba(255,56,120,.7); }
  .watch .product-transition { left: 12px; right: 72px; top: calc(var(--room-header-h) + 96px); max-width: none; border-radius: 14px; }
  .watch .product-transition .pt-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: calc(100% - 72px); }
}

@media (max-width: 380px) {
  :root { --room-header-h: 112px; }
  .watch-head .top-bar { padding-inline: 10px; }
  .watch-head .primary-nav { gap: 18px; font-size: 13px; }
  .watch .top { padding-inline: 10px; }
  .watch .top .host-line { max-width: 40vw; }
  .watch .room-deal-154 { right: 10px; width: 164px; }
  .watch .room-deal-body > img, .watch .room-deal-body > .room-art-empty { height: 68px; }
  .watch .room-gifts-160 { right: 64px; }
  .watch #current-product { left: 10px; right: 10px; }
}

/* 221G-R2: final phone-room review corrections. */
@media (max-width: 768px) {
  .watch-head .wordmark,
  .watch-head .primary-nav a { text-decoration: none !important; }
  .watch-head .primary-nav a { border-bottom: 0 !important; }
  .watch-head .primary-nav a:first-child { border-bottom: 3px solid #a855f7 !important; }
  .watch .top, .watch .stage-wrap { border-bottom: 0 !important; box-shadow: none !important; }
  .watch .room-overlay-composer { left: 12px !important; right: 12px !important; width: auto !important; background: transparent !important; }
  .watch .room-overlay-composer input { width: 100% !important; flex: 1 1 auto; background: rgba(17,12,28,.82) !important; border: 1px solid rgba(255,255,255,.34) !important; }
  .watch .room-overlay-composer::before, .watch .room-overlay-composer::after { display: none !important; }
  .watch section.chat .composer { left: 12px !important; right: 12px !important; width: auto !important; background: transparent !important; }
  .watch section.chat .composer input { width: 100% !important; flex: 1 1 auto; font-family: var(--font-ui, Inter, sans-serif) !important; font-variant-numeric: normal !important; }
  dialog.sheet .price, dialog.sheet .price * { font-family: var(--font-ui, Inter, sans-serif) !important; font-variant-numeric: tabular-nums !important; }
  .watch .hearts { right: 66px; }
  .watch .heart { width: 28px !important; height: 28px !important; color: #ff4d86 !important; opacity: 1 !important; fill: #ff4d86 !important; font-size: 28px !important; text-shadow: 0 3px 12px rgba(255,56,120,.8); animation: room-heart-rise-221 1.2s ease-out forwards !important; }
  @keyframes room-heart-rise-221 { from { transform: translateY(8px) scale(.76); opacity: 0; } 18% { opacity: 1; } to { transform: translateY(-132px) scale(1.08); opacity: 0; } }
  .watch .room-cart-154 { display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,#a044f5,#7134eb) !important; }
  .watch .room-cart-154 svg { display: block !important; width: 18px !important; height: 18px !important; }
  .watch:has(.room-gifts-160[data-open="true"]) section.chat .feed { bottom: calc(var(--room-bottom-safe) + 294px) !important; }
  dialog.sheet { z-index: 1000 !important; top: auto !important; bottom: 0 !important; left: 0 !important; right: 0 !important; width: 100% !important; max-width: 560px !important; max-height: 85dvh !important; margin: 0 auto !important; overflow: hidden auto !important; opacity: 1 !important; background: #fff !important; color: #20152e !important; border: 0 !important; border-radius: 20px 20px 0 0 !important; box-shadow: 0 -12px 40px rgba(0,0,0,.28) !important; }
  dialog.sheet::backdrop { background: rgba(0,0,0,.56) !important; opacity: 1 !important; }
  dialog.sheet .sheet-body { background: #fff !important; opacity: 1 !important; min-height: 0; overflow: visible; }
  dialog.sheet .sheet-art, dialog.sheet .pdp-slide img { opacity: 1 !important; }
}

/* 233G ROOM-POLISH: the phone room is a layered, tactile commerce surface.
   All copy and media remain sourced by the room controller; this block only
   sets the type, depth, spacing and interaction affordances. */
@media (max-width: 768px) {
  :root {
    --room-ui-font: "Inter Variable", Inter, "PingFang SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --room-purple: #8d45f6;
    --room-purple-deep: #6730d8;
    --room-pink: #ff4c86;
    --room-ink: #15101f;
  }
  html, body, body .watch { font-family: var(--room-ui-font) !important; }
  .watch *, .watch button, .watch input { font-family: var(--room-ui-font) !important; font-weight: 500; }
  .watch strong, .watch b, .watch h1, .watch h2, .watch h3 { font-weight: 600; }
  .watch :where(.room-deal-price b, .room-product-copy b, .room-now-154 .room-product-copy b, dialog.sheet .price, .price) {
    font-family: Inter, "Inter Variable", var(--room-ui-font) !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums lining-nums;
    letter-spacing: 0;
  }

  /* ROAN and five compact channel tabs. */
  .watch-head .wordmark { font-family: var(--room-ui-font) !important; font-size: 28px; font-weight: 800; letter-spacing: .08em; }
  .watch-head .primary-nav { gap: 22px; font-size: 16px; }
  .watch-head .primary-nav a { position: relative; min-height: 46px; padding: 12px 0 10px; border: 0 !important; font-weight: 500; }
  .watch-head .primary-nav a { min-width: 44px; text-align: center; }
  .watch-head .primary-nav a:first-child { color: #fff; font-weight: 700; }
  .watch-head .primary-nav a:first-child::after { content: ''; position: absolute; left: 0; right: 0; bottom: 1px; height: 4px; border-radius: 999px; background: linear-gradient(90deg, #c184ff, #7b3df2); }

  /* The media itself sits in a rounded stage card below the tabs. */
  .watch .stage-wrap { background: #0c0912 !important; }
  .watch .stage {
    top: calc(var(--room-header-h) + 58px) !important;
    left: 8px !important;
    right: 8px !important;
    bottom: 184px !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    background-color: #100c17;
    box-shadow: 0 2px 6px rgba(0,0,0,.28), 0 16px 36px rgba(0,0,0,.34);
  }
  .watch .stage::before,
  .watch .stage::after { content: ''; display: block !important; position: absolute; left: 0; right: 0; z-index: 4; pointer-events: none; }
  .watch .stage::before { top: 0; height: 34%; background: linear-gradient(180deg, rgba(7,4,12,.76), rgba(7,4,12,.22) 62%, transparent); }
  .watch .stage::after { bottom: 0; height: 40%; background: linear-gradient(0deg, rgba(7,4,12,.9), rgba(7,4,12,.24) 65%, transparent); }
  /* Media layers must stay stacked inside the stage.  Relative positioning
     lets the poster occupy normal flow before the active clip, so when the
     poster fades the clip is pushed below the viewport and the room turns
     black. */
  .watch .stage video.clip, .watch .stage-carry video, .watch .room-poster {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 24px;
  }

  /* The host row is a real glass capsule, with a real host portrait. */
  .watch .top {
    top: calc(var(--room-header-h) + 8px) !important;
    left: 16px !important;
    right: 16px !important;
    min-height: 62px;
    padding: 8px 10px !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 999px;
    background: rgba(20,16,32,.45) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.2), 0 12px 28px rgba(3,0,10,.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .watch .top .host-line { display: grid !important; grid-template-columns: 44px minmax(0,1fr); grid-template-rows: 22px 17px; column-gap: 9px; row-gap: 0; min-height: 44px; max-width: none; }
  .watch .top .host-avatar { grid-row: 1 / span 2; width: 44px; height: 44px; flex-basis: 44px; padding: 2px; border: 0; background: linear-gradient(#251a38,#251a38) padding-box, linear-gradient(135deg,#d79aff,#7139ed 55%,#ff5d9c) border-box; box-shadow: 0 0 0 1px rgba(255,255,255,.24), 0 4px 16px rgba(127,67,244,.34); }
  .watch .top .host-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
  .watch .top .host-name { grid-column: 2; grid-row: 1; align-self: end; font-size: 17px; line-height: 1.15; font-weight: 600; }
  .room-host-meta-233 { grid-column: 2; grid-row: 2; overflow: hidden; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
  .watch .top .desktop-follow { height: 34px; min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: linear-gradient(135deg,#b36cff,#7135eb); box-shadow: 0 6px 20px rgba(124,58,237,.45); font-size: 13px; font-weight: 700; transition: transform .2s ease; }
  .watch .top .desktop-follow:active, .watch .side-actions button:active, .watch .room-buy-154:active { transform: scale(.96); }
  .watch .top .live-badge { min-height: 28px; padding: 0 10px; border: 0; border-radius: 999px; background: #ef3158; font-size: 0; font-weight: 700; box-shadow: 0 5px 14px rgba(239,49,88,.25); }
  .watch .top .live-badge .live-dot { display: none; }
  .watch .top .live-badge::before { content: ''; width: 0; height: 0; margin-right: 5px; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid #fff; }
  .watch .top .live-badge > span:last-child { font-size: 11px; }
  .watch .top .room-more-154 { width: 34px; min-width: 34px; height: 34px; min-height: 34px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); }
  .watch .room-category-154 { top: calc(var(--room-header-h) + 78px) !important; left: 18px !important; min-height: 28px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(20,16,32,.45); font-size: 12px; font-weight: 600; gap: 5px; backdrop-filter: blur(16px); }
  .watch .room-category-154 svg { width: 14px; height: 14px; stroke: #e9caff; }

  /* Today's Deals is a small luminous white commerce card. */
  .watch .room-deal-154 { top: calc(var(--room-header-h) + 130px) !important; right: 14px !important; width: min(194px, 52vw) !important; border: 1px solid rgba(255,255,255,.72); border-radius: 20px; background: rgba(255,255,255,.95); box-shadow: 0 2px 6px rgba(0,0,0,.16), 0 12px 32px rgba(125,55,237,.34); }
  .watch .room-deal-154 > h2 { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 20px 20px 0 0; background: linear-gradient(135deg,#a45bff,#7131df); font-size: 15px; font-weight: 600; }
  .watch .room-deal-title svg { stroke: #ffe28b; filter: drop-shadow(0 0 5px rgba(255,226,139,.8)); }
  .watch .room-deal-body { position: relative; gap: 6px; padding: 10px; }
  .watch .room-deal-body > img, .watch .room-deal-body > .room-art-empty { height: 76px; border-radius: 12px; background: #f6effe; }
  .watch .room-deal-brand { font-size: 12px; font-weight: 500; }
  .watch .room-deal-body > strong { font-size: 15px; font-weight: 600; }
  .watch .room-deal-price b { font-size: 22px; }
  .watch .room-deal-price del { font-size: 12px; }
  .watch .room-deal-discount { padding: 3px 6px; border-radius: 999px; background: #f04468; font-size: 10px; }
  .watch .room-buy-154 { min-height: 38px; background: linear-gradient(135deg,#b25cff,#7432e7); box-shadow: 0 6px 18px rgba(116,50,231,.38); font-size: 13px; transition: transform .2s ease; }
  .room-deal-next { position: absolute; top: 50%; right: -14px; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(24,13,41,.82); color: #fff; font-size: 23px; line-height: 1; transform: translateY(-50%); }

  /* Real event feed: no data means the controller's explanation fallback. */
  /* Keep the real-event/caption rail in the left visual lane; the deal card
     owns the right lane and must never be covered by chat copy. */
  .watch section.chat .feed { left: 16px !important; right: 48% !important; bottom: calc(var(--room-bottom-safe) + 210px) !important; max-height: 156px; gap: 6px; }
  .watch section.chat .line { padding: 7px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(20,16,32,.48); box-shadow: 0 2px 6px rgba(0,0,0,.16), 0 8px 20px rgba(0,0,0,.14); backdrop-filter: blur(14px); font-size: 13px; line-height: 1.25; }
  .watch section.chat .line .who { margin-right: 4px; color: #f0caff; font-size: 12px; font-weight: 600; }
  .watch section.chat .line.reply { border-color: rgba(196,135,255,.28); background: linear-gradient(90deg,rgba(126,60,230,.78),rgba(96,44,170,.66)); }

  /* Share, gifts and likes share one horizontal action row. */
  .watch .side-actions { left: auto !important; right: 12px !important; bottom: calc(var(--room-bottom-safe) + 12px) !important; display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; z-index: 75; }
  .watch .side-actions #follow-btn, .watch .side-actions #cc-btn, .watch .side-actions #bag-btn { display: none !important; }
  .watch .side-actions .act, .watch .room-gift-toggle-221 { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(20,16,32,.52); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18), 0 8px 18px rgba(0,0,0,.16); backdrop-filter: blur(14px); transition: transform .2s ease; }
  .watch .side-actions .act-label, .watch .room-gift-toggle-221 span { display: none; }
  .watch .side-actions #share-btn { order: 1; }
  .watch .room-gift-toggle-221 { order: 2; }
  .watch .side-actions #heart-btn { order: 3; width: 52px; min-width: 52px; height: 52px; min-height: 52px; background: linear-gradient(135deg,#ff79a5,#ef356e); border: 0; box-shadow: 0 6px 20px rgba(255,49,107,.46); }
  .watch .side-actions #heart-btn svg { width: 25px; height: 25px; }
  .watch section.chat .composer { left: 12px !important; right: 174px !important; bottom: calc(var(--room-bottom-safe) + 16px) !important; height: 44px; min-height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(20,16,32,.54); box-shadow: 0 2px 6px rgba(0,0,0,.18), 0 10px 22px rgba(0,0,0,.15); backdrop-filter: blur(14px); }
  .watch section.chat .composer::before { content: ''; position: absolute; left: 14px; top: 14px; width: 15px; height: 11px; border: 1.5px solid rgba(255,255,255,.72); border-radius: 4px; pointer-events: none; }
  .watch section.chat .composer::after { content: ''; position: absolute; left: 16px; top: 23px; width: 4px; height: 4px; border-left: 1.5px solid rgba(255,255,255,.72); border-bottom: 1.5px solid rgba(255,255,255,.72); transform: skew(-22deg); pointer-events: none; }
  .watch section.chat .composer input { height: 44px; min-height: 44px; padding: 0 14px 0 40px; border: 0; border-radius: 999px; background: transparent; font-size: 14px; }
  .watch section.chat .composer button { display: none; }

  /* Current product: purple label, real art and horizontally scrollable real SKUs. */
  .watch #current-product { left: 12px !important; right: 12px !important; bottom: calc(var(--room-bottom-safe) + 70px) !important; height: 60px; min-height: 60px; max-height: 60px; border-radius: 16px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18), 0 12px 28px rgba(0,0,0,.2); }
  .watch #current-product::before { width: 76px; height: 60px; border-radius: 16px 0 0 16px; background: linear-gradient(135deg,#b263ff,#7132e6); font-size: 12px; }
  .watch #current-product .product-strip { width: calc(100% - 76px); margin-left: 76px; gap: 8px; }
  .watch #current-product .product-strip .art { width: 44px; height: 44px; border-radius: 10px; }
  .watch #current-product .product-strip .meta .t { font-size: 12px; font-weight: 600; }
  .watch #current-product .product-strip .meta .p { font-size: 18px; font-weight: 700; }
  .watch #current-product .product-strip .actions .btn.primary { width: 38px; min-height: 38px; border-radius: 11px; box-shadow: 0 5px 14px rgba(116,50,231,.36); }
  .watch .room-now-carousel { display: flex; gap: 6px; overflow-x: auto; }
  .watch .room-now-carousel button { width: 44px; min-width: 44px; height: 44px; border-radius: 10px; }

  /* Hearts are textured, bright and layered instead of flat glyphs. */
  .watch .hearts { right: 62px !important; bottom: calc(var(--room-bottom-safe) + 126px) !important; z-index: 86; }
  .watch .heart { width: 28px !important; height: 28px !important; color: transparent !important; font-size: 30px !important; line-height: 1; background: radial-gradient(circle at 32% 24%, #fff 0 8%, #ffb5d2 10%, #ff4e8a 38%, #dc1d62 78%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 4px 9px rgba(255,53,122,.78)); text-shadow: none !important; animation: room-heart-rise-233 1.4s ease-out forwards !important; }
  @keyframes room-heart-rise-233 { 0% { opacity: 0; transform: translate3d(0, 8px, 0) scale(.72) rotate(-8deg); } 18% { opacity: 1; } 55% { transform: translate3d(var(--dx), -74px, 0) scale(1.08) rotate(6deg); } 100% { opacity: 0; transform: translate3d(calc(var(--dx) * .72), -170px, 0) scale(.88) rotate(-4deg); } }

  /* Gift sheet: dark glass, real balance, vivid SVG strokes and point pills. */
  .watch .room-gifts-160 { left: 12px !important; right: 12px !important; bottom: calc(var(--room-bottom-safe) + 126px) !important; max-height: 168px; padding: 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; background: rgba(24,16,38,.86); box-shadow: 0 2px 6px rgba(0,0,0,.24), 0 16px 36px rgba(0,0,0,.3); backdrop-filter: blur(18px); }
  .watch .room-gift-grid-188 { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
  .watch .room-gift-160, .watch .room-gifts-160 .clip-request { height: 48px; min-height: 48px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(255,255,255,.08); }
  .watch .room-gift-160.is-request, .watch .room-gifts-160 .clip-request { border-color: rgba(166,97,255,.55); background: rgba(123,52,224,.26); }
  .watch .room-gift-icon svg { width: 21px; height: 21px; stroke-width: 1.7; filter: drop-shadow(0 2px 5px currentColor); }
  .watch .room-gift-160:nth-child(1) .room-gift-icon { color: #ffcf6b; }
  .watch .room-gift-160:nth-child(2) .room-gift-icon { color: #72d5ff; }
  .watch .room-gift-160:nth-child(3) .room-gift-icon { color: #ff6c9d; }
  .watch .room-gift-160:nth-child(4) .room-gift-icon { color: #ffad5e; }
  .watch .room-gift-160:nth-child(5) .room-gift-icon { color: #f8e082; }
  .watch .room-gift-160:nth-child(6) .room-gift-icon { color: #a78bff; }
  .watch .room-gift-label { font-size: 11px; font-weight: 600; }
  .watch .room-gift-cost { padding: 2px 5px; border-radius: 999px; background: rgba(255,255,255,.12); color: #f0d4ff; font-size: 9px; font-variant-numeric: tabular-nums; }
}

@media (max-width: 380px) {
  .watch-head .primary-nav { gap: 17px; font-size: 15px; }
  .watch .top { left: 12px !important; right: 12px !important; }
  .watch .top .desktop-follow { padding-inline: 11px; }
  .watch .room-deal-154 { right: 12px !important; width: 176px !important; }
  .watch section.chat .composer { right: 170px !important; }
  .watch .room-deal-body > img, .watch .room-deal-body > .room-art-empty { height: 68px; }
}

/* 233G follow-through: show the room-owned Now Showing rail on phones. */
@media (max-width: 768px) {
  .watch .stage-purchase { display:block !important; position:absolute !important; z-index:72 !important; left:12px !important; right:12px !important; bottom:calc(var(--room-bottom-safe) + 68px) !important; height:60px !important; min-height:60px !important; padding:0 !important; border:0 !important; background:transparent !important; pointer-events:auto; }
  .watch .stage-purchase > .interaction-slot, .watch .stage-purchase > .purchase-slot { display:none !important; }
  .watch .room-now-154 { display:flex !important; align-items:stretch !important; width:100% !important; height:60px !important; min-height:60px !important; gap:6px !important; overflow:hidden !important; }
  .watch .room-now-label { display:flex !important; flex:0 0 78px !important; align-items:center !important; justify-content:center !important; gap:4px !important; padding:0 8px !important; border-radius:16px 0 0 16px !important; background:linear-gradient(135deg,#b76cff,#7132e6) !important; color:#fff !important; font-size:11px !important; font-weight:700 !important; line-height:1.15 !important; white-space:pre-line !important; text-align:center !important; }
  .watch .room-now-label svg { flex:0 0 auto; width:14px; height:14px; stroke:#f6ddff; }
  .watch .room-now-154 > .room-product-154 { display:flex !important; flex:1 1 198px !important; width:auto !important; min-width:190px !important; height:60px !important; min-height:60px !important; padding:6px 38px 6px 7px !important; border:0 !important; border-radius:0 16px 16px 0 !important; background:#fff !important; color:#20152e !important; box-shadow:0 2px 6px rgba(0,0,0,.18),0 12px 28px rgba(0,0,0,.22) !important; }
  .watch .room-now-154 .room-product-open { display:flex !important; flex:1 1 auto !important; min-width:0 !important; align-items:center !important; gap:8px !important; color:#20152e !important; }
  .watch .room-now-154 .room-product-open > img, .watch .room-now-154 .room-product-open > .room-art-empty { flex:0 0 44px !important; width:44px !important; height:44px !important; border-radius:10px !important; object-fit:contain !important; background:#f6effe !important; }
  .watch .room-now-154 .room-product-copy { display:grid !important; gap:2px !important; min-width:0 !important; }
  .watch .room-now-154 .room-product-copy strong { overflow:hidden !important; color:#20152e !important; font-size:12px !important; font-weight:600 !important; line-height:1.18 !important; text-overflow:ellipsis !important; white-space:nowrap !important; }
  .watch .room-now-154 .room-product-copy b { color:#20152e !important; font-family:Inter,"Inter Variable",sans-serif !important; font-size:18px !important; font-weight:700 !important; font-variant-numeric:tabular-nums lining-nums !important; line-height:1 !important; }
  .watch .room-now-154 .room-product-request-188 { display:none !important; }
  .watch .room-now-154 .room-cart-154 { display:grid !important; position:absolute !important; right:7px !important; top:11px !important; place-items:center !important; width:38px !important; height:38px !important; min-height:38px !important; padding:0 !important; border:0 !important; border-radius:11px !important; background:linear-gradient(135deg,#b263ff,#7132e6) !important; color:#fff !important; box-shadow:0 5px 14px rgba(116,50,231,.36) !important; }
  .watch .room-now-154 .room-cart-154 svg { width:18px !important; height:18px !important; }
  .watch .room-now-carousel { display:flex !important; flex:0 0 84px !important; align-items:center !important; gap:6px !important; max-width:84px !important; overflow-x:auto !important; scrollbar-width:none !important; }
  .watch .room-now-carousel::-webkit-scrollbar { display:none; }
  .watch .room-now-carousel button { flex:0 0 40px !important; width:40px !important; height:48px !important; min-height:48px !important; padding:4px !important; border:1px solid rgba(255,255,255,.64) !important; border-radius:11px !important; background:#f7efff !important; box-shadow:0 2px 6px rgba(0,0,0,.16) !important; }
  .watch .room-now-carousel img { width:100% !important; height:100% !important; object-fit:contain !important; }
  .watch #current-product { display:none !important; }
  .watch section.chat .feed { right:48% !important; bottom:calc(var(--room-bottom-safe) + 204px) !important; max-height:140px !important; }
  .watch section.chat .line { border:1px solid rgba(255,255,255,.12) !important; border-radius:999px !important; background:rgba(20,16,32,.5) !important; box-shadow:0 2px 6px rgba(0,0,0,.16),0 8px 20px rgba(0,0,0,.14) !important; backdrop-filter:blur(14px) !important; }
}

@media (max-width: 380px) {
  .watch .room-now-label { flex-basis:70px !important; }
  .watch .room-now-154 > .room-product-154 { min-width:174px !important; }
  .watch .room-now-carousel { flex-basis:74px !important; max-width:74px !important; }
  .watch .room-now-carousel button { flex-basis:34px !important; width:34px !important; height:44px !important; }
}

/* 233G-R2: keep the phone room's action layers clear and source-led. */
@media (max-width: 768px) {
  /* The reaction stream rises from the lower-right like button, outside the
     commerce card's text and purchase action. */
  .watch .hearts {
    right: 6px !important;
    bottom: calc(var(--room-bottom-safe) + 54px) !important;
    width: 44px !important;
    height: 26% !important;
    z-index: 90 !important;
  }
  .watch .heart {
    left: 7px !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 30px !important;
  }

  /* Let the chevron sit half outside the card rather than over the title.
     The body remains clipped so the real product image/text stay inside. */
  .watch .room-deal-154 {
    overflow: visible !important;
    width: min(158px, 43vw) !important;
  }
  .watch .room-deal-body {
    overflow: hidden !important;
    border-radius: 0 0 20px 20px;
  }
  .watch .room-deal-body > strong {
    display: -webkit-box !important;
    min-width: 0;
    padding-right: 2px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.22;
  }
  .watch .room-deal-next {
    right: -22px !important;
    z-index: 3;
  }

  /* Reserve the cart inside the current-product card. The following
     thumbnails begin after the card, never beneath its action button. */
  .watch .room-now-154 > .room-product-154 {
    position: relative !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding-right: 58px !important;
  }
  .watch .room-now-154 .room-product-open {
    min-width: 0 !important;
  }
  .watch .room-now-154 .room-product-copy {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .watch .room-now-154 .room-cart-154 {
    right: 8px !important;
    z-index: 2 !important;
  }
}

/* 233G interaction clearance: every tappable control keeps a 44px hit area
   even where the visual glyph is deliberately smaller. */
@media (max-width: 768px) {
  .watch .top .desktop-follow { min-height:44px !important; height:44px !important; }
  .watch .top .room-more-154 { width:44px !important; min-width:44px !important; height:44px !important; min-height:44px !important; }
  /* Keep the deal card below the centered face-safe box; it sits beside the
     torso/hand while the interaction rail owns the left lane. */
  .watch .room-deal-154 { top:calc(var(--room-header-h) + 280px) !important; right:6px !important; width:min(158px,43vw) !important; }
  .watch .room-deal-body > img, .watch .room-deal-body > .room-art-empty { height:72px !important; }
  .watch .room-buy-154 { min-height:44px !important; }
  .watch .room-deal-next { width:44px !important; height:44px !important; right:-14px !important; }
  .watch .room-now-154 .room-cart-154 { width:44px !important; height:44px !important; min-height:44px !important; top:8px !important; }
}

/* Final cascade for 233G-R2's review geometry. */
@media (max-width: 768px) {
  .watch .room-deal-154 { top: calc(var(--room-header-h) + 350px) !important; overflow: visible !important; }
  .watch .room-deal-body { overflow: hidden !important; border-radius: 0 0 20px 20px !important; }
  .watch .room-deal-body { gap: 4px !important; padding: 8px !important; }
  .watch .room-deal-body > img, .watch .room-deal-body > .room-art-empty { height: 54px !important; }
  .watch .room-deal-154 > h2 { padding: 8px 10px !important; }
  .watch .room-deal-body > strong { font-size: 13px !important; }
  .watch .room-buy-154 { min-height: 44px !important; }
  .watch .room-deal-next { right: -22px !important; z-index: 3 !important; }
  .watch .room-now-154 > .room-product-154 { min-width: 0 !important; padding-right: 58px !important; }
  .watch .room-now-154 .room-cart-154 { right: 8px !important; z-index: 2 !important; }
}

/* Keep the deal card clear of the composer on 360px phones after the final
   233G geometry cascade above. */
@media (max-width: 375px) {
  .watch .room-deal-154 { top: calc(var(--room-header-h) + 298px) !important; }
}
