/* Scoped strictly to the mobile stream watcher. Desktop and broadcaster are unchanged. */
@media (max-width: 991.98px) {
  #mobileStream .mobile-bottom-panel {
    padding: 6px 12px max(8px, env(safe-area-inset-bottom));
    background: linear-gradient(transparent, rgba(0,0,0,.25) 28%, rgba(0,0,0,.48));
  }
  #mobileStream .mobile-chat-input { margin-bottom: 6px; gap: 8px; align-items: center; }
  #mobileStream .mobile-chat-input input {
    flex: 1 1 auto; max-width: calc(100% - 54px); min-height: 44px;
    border: 1px solid rgba(255,255,255,.55); border-radius: 22px;
    background: rgba(0,0,0,.28); color: #fff; font-size: 16px;
  }
  body.lk-browser-chat-kb:not(.wtn-native-app) {
    overflow: hidden !important;
  }
  body.lk-browser-chat-kb:not(.wtn-native-app) #mobileBottomPanel,
  body.lk-browser-chat-kb:not(.wtn-native-app) #mobileChatOverlay,
  body.lk-browser-chat-kb:not(.wtn-native-app) .mobile-top-bar {
    transform: none !important;
  }
  #mobileStream .mobile-chat-input input::placeholder { color: rgba(255,255,255,.55); }
  #mobileStream .mobile-chat-input button { min-width: 44px; min-height: 44px; border-radius: 22px; flex: 0 0 44px; }
  #mobileStream .chat-toggle-btn { display: none !important; }
  #mobileStream .mobile-product-bar {
    position: relative; margin: 0; padding: 8px; min-height: 138px; box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.48); border-radius: 16px;
    background: rgba(20,20,22,.35); backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  #mobileStream .lk-viewer-leader {
    font-size: 12px; font-weight: 700; line-height: 1.4; color: #ffda68;
    padding: 3px 0; margin: 0 0 4px; border-radius: 0; background: transparent;
    overflow-wrap: anywhere; text-shadow: 0 1px 3px #000;
  }
  #mobileStream .lk-viewer-product-heading {
    display: grid !important; grid-template-columns: 52px minmax(0,1fr) auto;
    align-items: start !important; gap: 8px; min-height: 64px;
  }
  #mobileStream .lk-viewer-product-photo {
    width: 52px; height: 62px; position: relative; background: rgba(255,255,255,.12);
    border-radius: 12px; border: 1px solid rgba(255,255,255,.5);
  }
  #mobileStream .lk-viewer-product-photo img { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; }
  #mobileStream .lk-viewer-pin {
    position: absolute; top: -8px; left: -8px; width: 23px; height: 23px; border-radius: 50%;
    background: #ff7900; color: #fff; font-size: 13px; display: grid; place-items: center;
  }
  #mobileStream .lk-viewer-product-copy { min-width: 0; }
  #mobileStream .lk-viewer-product-copy > .badge { display: block; width: fit-content; margin-bottom: 3px; font-size: 9px !important; padding: 2px 4px; }
  #mobileStream .lk-viewer-product-copy > .small { font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  #mobileStream .lk-viewer-product-figures { text-align: right; max-width: 108px; }
  #mobileStream .lk-viewer-product-figures .d-flex { justify-content: flex-end; }
  #mobileStream .lk-mobile-price-label { font-size: 9px; color: rgba(255,255,255,.75); }
  #mobileStream #mobilePrice { font-size: clamp(18px,5vw,22px) !important; font-variant-numeric: tabular-nums; }
  #mobileStream #mobileTimer { color: #ff685f !important; font-size: 17px; margin-top: 3px; line-height: 1.2; }
  #mobileStream .lk-timer-host { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
  #mobileStream .lk-extend-flash {
    display: inline-block; background: #ff7900; color: #111; font-size: 11px; font-weight: 800;
    border-radius: 8px; padding: 3px 7px; line-height: 1.2;
  }
  #mobileStream .lk-extend-flash[hidden] { display: none !important; }
  #mobileStream .lk-viewer-empty { min-height: 120px; justify-content: space-between; }
  #mobileStream .lk-viewer-empty-actions {
    display: flex; gap: 8px; margin-top: 6px; width: 100%;
  }
  #mobileStream .lk-viewer-empty-actions .btn {
    min-height: 46px; border-radius: 24px; opacity: .55; pointer-events: none;
  }
  #mobileStream .lk-viewer-empty-actions .btn-lk { flex: 1; }
  #mobileStream .lk-mobile-bid-row { display: block; margin-top: 8px; }
  #mobileStream .lk-mobile-bid-actions { width: 100%; max-width: none; }
  #mobileStream .lk-bid-actions-row { display: flex; gap: 8px; align-items: stretch; }
  #mobileStream .lk-bid-actions-row .btn { min-height: 46px; border-radius: 24px; font-size: 14px; padding: 9px 10px; white-space: normal; }
  #mobileStream .lk-bid-max-btn { flex: 0 0 34%; width: auto; min-width: 0; border: 1px solid rgba(255,255,255,.85); background: rgba(255,255,255,.05); color: #fff; }
  #mobileStream .lk-bid-max-btn i, #mobileStream .lk-bid-max-btn svg { display: none; }
  #mobileStream .lk-bid-max-label { font-size: 13px; line-height: 1.2; }
  #mobileStream #mobileBidFixedBtn { min-width: 0; background: linear-gradient(120deg,#ff9200,#ff6900); color: #111; border: 1px solid rgba(255,255,255,.6); }
  #mobileStream .lk-viewer-empty { display: flex; flex-direction: column; gap: 5px; color: #fff; padding: 0; }
  #mobileStream .lk-viewer-empty strong { font-size: 14px; padding: 10px 2px; }
  #mobileStream .lk-viewer-empty span { font-size: 12px; color: rgba(255,255,255,.75); }
  #mobileStream .mobile-chat-overlay { padding: 0 76px 6px 14px; }
  #mobileStream .mobile-chat-mask { background: transparent; }
  #mobileStream .mobile-chat-messages { max-height: min(23dvh,180px); gap: 7px; }
  #mobileStream .mobile-chat-msg { max-width: 100%; font-size: 13px; line-height: 1.3; }
  #mobileStream .mobile-chat-msg .mob-chat-avatar { width: 26px; height: 26px; }
  #mobileStream .mobile-chat-msg .chat-user { display: block; font-weight: 500; color: rgba(255,255,255,.78); }
  #mobileStream .mobile-chat-msg .mob-chat-text { font-weight: 600; }
  #mobileStream .mobile-chat-overlay, #mobileStream .mobile-chat-mask,
  #mobileStream .mobile-chat-messages, #mobileStream .mobile-chat-msg,
  #mobileStream .mobile-chat-msg .mob-chat-content, #mobileStream .mobile-chat-msg .mob-chat-text,
  #mobileStream .mobile-chat-msg .chat-user, #mobileStream .mobile-chat-msg .chat-bubble,
  #mobileStream .mobile-chat-msg .bid-message, #mobileStream .mobile-chat-msg .system-message,
  #mobileStream .mobile-chat-msg .purchase-message, #mobileStream .lk-viewer-leader {
    background: transparent !important; background-image: none !important; border: 0 !important;
    box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    text-shadow: 0 1px 2px #000, 0 0 5px rgba(0,0,0,.8);
  }
  #mobileStream .lk-viewer-share {
    position: absolute; right: max(12px,env(safe-area-inset-right)); top: calc(env(safe-area-inset-top,0px) + 130px);
    z-index: 36; width: 52px; min-height: 60px; border: 0; border-radius: 16px;
    background: rgba(0,0,0,.3); color: white; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 4px; font-size: 12px;
  }
  #mobileStream .lk-viewer-share svg { width: 28px; height: 28px; }
  #mobileStream .lk-viewer-points {
    position: absolute; right: max(12px,env(safe-area-inset-right)); top: calc(env(safe-area-inset-top,0px) + 130px);
    z-index: 36; width: 52px; min-height: 60px; margin: 0; padding: 4px 0; border: 0; border-radius: 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    background: rgba(0,0,0,.3); color: #fff; text-decoration: none; font-size: 12px;
  }
  #mobileStream .lk-viewer-points[hidden] { display: none !important; }
  #mobileStream .lk-viewer-points svg { width: 28px; height: 28px; }
  #mobileStream .lk-viewer-points-meta { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #mobileStream .lk-viewer-points:not([hidden]) ~ .lk-viewer-share { top: calc(env(safe-area-inset-top,0px) + 200px); }
  #mobileStream .lk-viewer-points:not([hidden]) ~ #lkStreamLikeRail { top: calc(env(safe-area-inset-top,0px) + 275px); }
  #mobileStream .lk-viewer-points:not([hidden]) ~ .mobile-feature-fabs { top: calc(env(safe-area-inset-top,0px) + 350px); }
  #mobileStream #lkStreamLikeRail { top: calc(env(safe-area-inset-top,0px) + 205px); bottom: auto; }
  #mobileStream .mobile-feature-fabs { top: calc(env(safe-area-inset-top,0px) + 295px); transform: none; }
  #mobileStream button:focus-visible, #mobileStream input:focus-visible { outline: 2px solid white; outline-offset: 3px; }
  @media (max-height: 550px) {
    #mobileStream .mobile-chat-messages { max-height: 65px; }
    #mobileStream .lk-viewer-product-photo { width: 48px; height: 50px; }
    #mobileStream .lk-viewer-product-heading { grid-template-columns: 48px minmax(0,1fr) auto; }
    #mobileStream .lk-viewer-product-copy > .small { -webkit-line-clamp: 2; }
    #mobileStream .lk-viewer-share { top: 82px; }
    #mobileStream #lkStreamLikeRail { top: 150px; }
  }
}
@media (max-width: 991.98px) {
  #mobileStream .mobile-chat-msg .mob-chat-content { display: block !important; min-width: 0; }
  #mobileStream .mobile-chat-msg .chat-user { display: block !important; width: auto; margin: 0 0 1px; }
  #mobileStream .lk-bid-max-label { white-space: nowrap; font-size: 12px; }
  #mobileStream .lk-bid-max-btn { padding-left: 8px; padding-right: 8px; }
}

@media (max-width: 991.98px) { #mobileStream .lk-viewer-shipping { font-size: 10px; line-height: 1.2; color: rgba(255,255,255,.75); margin-top: 3px; } }
@media (max-width: 991.98px) and (max-height: 550px) {
  #mobileStream .lk-viewer-share { top: 60px; right: 76px; min-height: 52px; }
  #mobileStream #lkStreamLikeRail { top: 60px; }
  #mobileStream .mobile-feature-fabs { top: 60px; right: 140px; flex-direction: row; }
  #mobileStream .lk-viewer-points { top: 60px; right: 140px; }
  #mobileStream .lk-viewer-points:not([hidden]) ~ .lk-viewer-share { top: 60px; }
  #mobileStream .lk-viewer-points:not([hidden]) ~ #lkStreamLikeRail { top: 60px; }
  #mobileStream .lk-viewer-points:not([hidden]) ~ .mobile-feature-fabs { top: 60px; right: 204px; }
}
