/* ShotGram v1.3.6 — LIGHT CHAT.
   Inside any chat (DM thread + inbox, LIVE chat for host and viewers, clan
   chat, comments) nothing animates forever and nothing re-paints by itself:
   no shine running over clan tags, no spinning / pulsing badges, no drop
   shadows or blur behind each line, and no gradient-painted names.
   The colours stay (clan colours, subscriber colours) — only the costly
   effects go. Dozens of lines × an endless animation each was what made
   chats stutter on iPhone. */

:is(#liveChatList, #creatorChatList, .live-chat-list, .ltt-chat, .room-body, #threads, .thread-list, .cm-body, #clanTextMessages, #mjChat, .clan-chat-message)
  :is(.clan-tag, .ltt-clan, .sub-badge, .sg-badge, .streak, .badge-slot, .identity-badge, .staff-badge) {
  animation: none !important;
  box-shadow: none !important;
  filter: none !important;
  transition: none !important;
}
:is(#liveChatList, #creatorChatList, .live-chat-list, .ltt-chat, .room-body, #threads, .thread-list, .cm-body, #clanTextMessages, #mjChat, .clan-chat-message)
  :is(.clan-tag, .ltt-clan, .sg-badge, .streak, .identity-badge)::after,
:is(#liveChatList, #creatorChatList, .live-chat-list, .ltt-chat, .room-body, #threads, .thread-list, .cm-body, #clanTextMessages, #mjChat, .clan-chat-message)
  :is(.clan-tag, .ltt-clan, .sg-badge, .streak, .identity-badge)::before {
  animation: none !important;
  display: none !important;
}
:is(#liveChatList, #creatorChatList, .live-chat-list, .ltt-chat, .room-body, #threads, .thread-list, .cm-body, #clanTextMessages, #mjChat, .clan-chat-message) .sub-badge svg,
:is(#liveChatList, #creatorChatList, .live-chat-list, .ltt-chat, .room-body, #threads, .thread-list, .cm-body, #clanTextMessages, #mjChat, .clan-chat-message) svg {
  filter: none !important;
}
/* subscriber names: one solid colour per tier instead of text painted with a gradient */
:is(#liveChatList, #creatorChatList, .live-chat-list, .ltt-chat, .cm-body, #clanTextMessages, #mjChat) .sub-name {
  background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
}
:is(#liveChatList, #creatorChatList, .live-chat-list, .ltt-chat, .cm-body, #clanTextMessages, #mjChat) .sub-name.sub-t3 { color: #fbbf24 !important; }
:is(#liveChatList, #creatorChatList, .live-chat-list, .ltt-chat, .cm-body, #clanTextMessages, #mjChat) .sub-name.sub-t4 { color: #34d399 !important; }
:is(#liveChatList, #creatorChatList, .live-chat-list, .ltt-chat, .cm-body, #clanTextMessages, #mjChat) .sub-name.sub-t5 { color: #60a5fa !important; }
:is(#liveChatList, #creatorChatList, .live-chat-list, .ltt-chat, .cm-body, #clanTextMessages, #mjChat) .sub-name.sub-t6 { color: #c084fc !important; }
:is(#liveChatList, #creatorChatList, .live-chat-list, .ltt-chat, .cm-body, #clanTextMessages, #mjChat) .sub-name.sub-t7 { color: #fb7185 !important; }
:is(#liveChatList, #creatorChatList, .live-chat-list, .ltt-chat, .cm-body, #clanTextMessages, #mjChat) .sub-name.sub-t8 { color: #67e8f9 !important; }
/* no blur behind chat lines (each blurred line is a full re-render on iPhone) */
:is(#liveChatList, #creatorChatList, .live-chat-list, .ltt-chat) > * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
/* the list itself scrolls on its own layer */
#liveChatList, #creatorChatList, .live-chat-list, .ltt-chat, .room-body, .cm-body { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

/* v1.3.6 — ONE notification theme. Every toast / banner uses the same dark
   glass card as the message banner; success/error only tint a thin edge. */
.toast, .toast.error, .toast.success {
  background: rgba(22, 23, 38, .96) !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  color: #fff !important; border-radius: 16px !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .4) !important;
}
.toast.error { border-inline-start: 3px solid #ff4e6b !important; }
.toast.success { border-inline-start: 3px solid #2fe3a0 !important; }
.msg-banner .mb-logo { width: 36px; height: 36px; border-radius: 10px; flex: none; object-fit: cover; }

/* v1.3.6 — ONE call bar. The small pill (room · mic · leave) shows on every
   screen; the old big dock on the clan page doubled it, so it is hidden. */
#persistentVoice { display: none !important; }
body.sg-vp-on #app { padding-bottom: 66px; }
.top-clan-voice:empty { display: none !important; }
/* the call bar steps aside on full-screen players (LIVE, stories, video)
   so it never covers their chat or buttons; the call keeps going */
body:has(.live-watch-shell) .sg-voice-pill,
body:has(.live-tt-host) .sg-voice-pill,
body:has(.live-tt-pre) .sg-voice-pill,
body:has(.story-viewer) .sg-voice-pill,
body.watch-open .sg-voice-pill { display: none !important; }
/* in a DM the bar sits over the last messages: leave room for it */
body.sg-vp-on .room-body { padding-bottom: 70px !important; }
/* computer / iPad wide: the call bar sits at the bottom of the side menu */
@media (min-width: 900px) {
  .sg-voice-pill { left: 12px !important; right: auto !important; width: 222px !important; bottom: 16px !important; }
  body.sg-vp-on #app { padding-bottom: 0; }
  body.sg-vp-on .room-body { padding-bottom: 0 !important; }
  .sg-voice-pill .vp-main small { display: none; }
}
/* v1.3.7 — carousel arrows in the post viewer: computer (mouse) only */
.w-nav { display: none; }
html.sg-mouse .w-nav:not([hidden]) {
  display: grid; place-items: center; position: absolute; top: 50%; z-index: 6;
  width: 38px; height: 38px; margin-top: -19px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .88); color: #111;
}
html.sg-mouse .w-nav svg { width: 20px; height: 20px; }
html.sg-mouse .w-nav.prev { left: 14px; }
html.sg-mouse .w-nav.next { right: 14px; }
html[dir="rtl"].sg-mouse .w-nav.prev { left: auto; right: 14px; transform: scaleX(-1); }
html[dir="rtl"].sg-mouse .w-nav.next { right: auto; left: 14px; transform: scaleX(-1); }
/* v1.3.7 — comments on a computer: a panel on the right (like TikTok web),
   full height, so the post stays visible and the comment box is never cut */
@media (min-width: 900px) and (pointer: fine) {
  .cm-sheet { left: auto !important; right: 0; top: 0; bottom: 0 !important; width: min(440px, 40vw); height: auto !important;
    border-radius: 18px 0 0 18px; transform: translateX(100%); box-shadow: -10px 0 40px rgba(0,0,0,.45); }
  .cm-sheet-wrap.open .cm-sheet { transform: translateX(0); }
}
/* v1.3.7 — LIVE chat: "new comments" pill, and lines that cost nothing to scroll */
.lc-new-pill { position: absolute; inset-inline-start: 12px; bottom: 62px; z-index: 20; border: 0; border-radius: 999px;
  padding: 7px 14px; background: #fff; color: #fe2c55; font: 700 13px/1.2 inherit; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
/* v1.3.7 — LIVE comments like TikTok: no bubble, the text sits on the video
   with a soft shadow; the name small and grey above the comment */
html body .live-tt :is(#liveChatList, #creatorChatList) > :is(.live-chat-message, .live-creator-chat-line) {
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  padding: 3px 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html body .live-tt :is(#liveChatList, #creatorChatList) > :is(.live-chat-message, .live-creator-chat-line) > img { width: 30px !important; height: 30px !important; min-width: 30px !important; }
html body .live-tt :is(#liveChatList, #creatorChatList) > :is(.live-chat-message, .live-creator-chat-line) .ltt-name {
  color: rgba(255,255,255,.72) !important; font-size: 13px !important; font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
}
html body .live-tt :is(#liveChatList, #creatorChatList) > :is(.live-chat-message, .live-creator-chat-line) .ltt-msg {
  color: #fff !important; font-size: 15px !important; font-weight: 500 !important; line-height: 1.3 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.6), 0 0 1px rgba(0,0,0,.4);
}
html body .live-tt :is(#liveChatList, #creatorChatList) > .live-chat-system { background: transparent !important; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
html body :is(#liveChatList, #creatorChatList) > * { contain: layout paint; }
html body :is(#liveChatList, #creatorChatList) .ltt-fam { display: none !important; }
html body :is(#liveChatList, #creatorChatList) .ltt-clan { animation: none !important; box-shadow: none !important; filter: none !important; }
.lv-sheet h3 { margin: 0 0 10px; font-size: 16px; }
.lv-list { display: grid; gap: 4px; max-height: 60vh; overflow-y: auto; }
.lv-row { display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: 12px; background: transparent; color: inherit; text-align: start; cursor: pointer; }
.lv-row:active, .lv-row:hover { background: rgba(255,255,255,.06); }
.lv-row .grow { display: grid; min-width: 0; }
.lv-row small { color: var(--muted, #9aa0b8); font-size: 12px; }
:is(#liveViewerFaces, .ltt-count, .live-viewers) { cursor: pointer; }
/* v1.3.7 — Viewers sheet (ranked, ShotGram colours) */
.lvs-wrap { position: fixed; inset: 0; z-index: 2600; background: rgba(0,0,0,0); transition: background .2s; }
.lvs-wrap.open { background: rgba(0,0,0,.45); }
.lvs { position: absolute; left: 0; right: 0; bottom: 0; max-height: 72dvh; display: flex; flex-direction: column;
  background: #14141d; color: #fff; border-radius: 22px 22px 0 0; transform: translateY(100%); transition: transform .22s ease;
  padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -12px 40px rgba(0,0,0,.45); }
.lvs-wrap.open .lvs { transform: none; }
@media (min-width: 900px) and (pointer: fine) { .lvs { left: 50%; right: auto; width: 440px; transform: translate(-50%, 100%); } .lvs-wrap.open .lvs { transform: translate(-50%, 0); } }
.lvs-grip { width: 40px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); margin: 8px auto 0; }
.lvs-head { display: flex; align-items: center; gap: 6px; padding: 10px 16px 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.lvs-head b { font-size: 17px; } .lvs-count { color: #a7a9c4; font-weight: 700; margin-inline-end: auto; }
.lvs-x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.07); color: #fff; display: grid; place-items: center; }
.lvs-x svg { width: 16px; height: 16px; }
.lvs-list { overflow-y: auto; padding: 6px 8px 10px; flex: 1 1 auto; min-height: 120px; }
.lvs-empty { padding: 28px 0; text-align: center; color: #9a9db9; font-size: 14px; }
.lvs-row, .lvs-me { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 14px; background: transparent; color: inherit; text-align: start; }
.lvs-row:active, .lvs-row:hover { background: rgba(255,255,255,.05); }
.lvs-row.is-me { background: rgba(139,92,255,.12); }
.lvs-rank { width: 22px; flex: none; text-align: center; font: 800 16px/1 Inter, system-ui, sans-serif; color: #9a9db9; }
.lvs-rank.top1 { color: #00d8ff; } .lvs-rank.top2 { color: #8b5cff; } .lvs-rank.top3 { color: #ff3db8; }
.lvs-name { display: grid; min-width: 0; flex: 1; }
.lvs-name b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvs-name small { font-size: 12.5px; color: #9a9db9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvs-coins { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 14px; color: #e9e3ff; }
.lvs-coins img { width: 18px; height: 18px; }
.lvs-me { border-top: 1px solid rgba(255,255,255,.08); border-radius: 0; padding: 12px 16px; }
.lvs-gift { flex: none; border: 0; border-radius: 999px; padding: 10px 18px; color: #fff; font: 800 14px/1 inherit;
  background: linear-gradient(90deg, #00d8ff, #8b5cff 50%, #ff3db8); }
/* v1.3.7 — join as guest (TikTok flow, ShotGram colours) */
.live-tt .ltt-ico.ltt-join { background: rgba(255,255,255,.1) !important; box-shadow: none !important; }
.live-tt .ltt-ico.ltt-join svg { width: 26px; height: 22px; stroke: none !important; }
.live-tt .ltt-ico.ltt-join.is-wait { box-shadow: inset 0 0 0 2px #ff3db8 !important; background: rgba(255,61,184,.14) !important; }
.live-tt .ltt-ico.ltt-join.is-on { box-shadow: inset 0 0 0 2px #00d8ff !important; background: rgba(0,216,255,.16) !important; }
.lgj-seats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 16px 14px 6px; }
.lgj-seat { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; }
.lgj-seat .avatar, .lgj-seat > i { width: 58px !important; height: 58px !important; border-radius: 50%; }
.lgj-seat > i { display: grid; place-items: center; border: 2px dashed rgba(255,255,255,.22); color: rgba(255,255,255,.55); }
.lgj-seat > i svg { width: 20px; height: 20px; }
.lgj-seat.host .avatar { box-shadow: 0 0 0 2px #14141d, 0 0 0 4px #8b5cff; }
.lgj-seat small { font-size: 12px; color: #cfd2ea; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgj-seat em { position: absolute; top: 54px; left: 50%; transform: translateX(-50%); font: 800 10px/1 inherit; font-style: normal; padding: 3px 7px; border-radius: 999px; background: linear-gradient(90deg, #00d8ff, #8b5cff); color: #fff; }
.lgj-body { margin: 10px 18px 4px; font-size: 13.5px; line-height: 1.5; color: #b9bcd6; text-align: center; }
.lgj-foot { padding: 12px 16px 16px; }
.lgj-btn { width: 100%; height: 50px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  color: #fff; font: 800 15.5px/1 inherit; background: linear-gradient(90deg, #00d8ff, #8b5cff 50%, #ff3db8); cursor: pointer; }
.lgj-btn:disabled { opacity: .45; }
.lgj-btn.ghost { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.lgj-btn.danger { background: #fe2c55; }
/* v1.3.7 — LIVE bottom bar like TikTok: one row of even round buttons */
html body .live-tt .ltt-bar { gap: 8px !important; align-items: center !important; }
html body .live-tt .ltt-bar .ltt-ico {
  width: 44px !important; height: 44px !important; min-width: 44px !important; flex: none !important; padding: 0 !important;
  display: grid !important; place-items: center !important; border-radius: 50% !important; border: 0 !important;
  background: rgba(255,255,255,.14) !important; box-shadow: none !important; color: #fff !important;
}
html body .live-tt .ltt-bar .ltt-ico > svg { width: 24px !important; height: 24px !important; stroke: none !important; }
html body .live-tt .ltt-bar .ltt-gift > svg { width: 28px !important; height: 28px !important; }
html body .live-tt .ltt-bar .ltt-join > svg { width: 27px !important; height: 23px !important; }
html body .live-tt .ltt-bar .ltt-qgift img, html body .live-tt .ltt-bar .ltt-qgift .ltt-gift-art { width: 30px !important; height: 30px !important; object-fit: contain; }
html body .live-tt .ltt-bar .ltt-input { flex: 1 1 auto !important; min-width: 0 !important; height: 44px !important; border-radius: 999px !important; background: rgba(255,255,255,.14) !important; border: 0 !important; padding-inline-end: 6px !important; }
html body .live-tt .ltt-bar .ltt-input input::placeholder { color: rgba(255,255,255,.75); }
html body .live-tt .ltt-emoji { flex: none; width: 32px; height: 32px; border: 0; background: none; padding: 0; display: grid; place-items: center; }
html body .live-tt .ltt-bar.is-typing .ltt-emoji, html body .live-tt .ltt-bar.has-text .ltt-emoji { display: none; }
html body .live-tt .ltt-bar .ltt-join.is-wait { box-shadow: inset 0 0 0 2px #ff3db8 !important; }
html body .live-tt .ltt-bar .ltt-join.is-on { box-shadow: inset 0 0 0 2px #00d8ff !important; }
/* v1.3.7 — LIVE clear display */
html body .live-screen.is-clear :is(.ltt-bottom, .ltt-right, .ltt-sub, .ltt-follow, .ltt-host-txt small, .lg-tiles, .sg-gift-layer, .sg-top-gifters,
  .sg-big-gift, .live-heart-burst, .sg-swipe-hint, .live-rotate-btn, .live-battle-bar, .sg-join-layer, .lc-new-pill, .live-watch-side) { opacity: 0 !important; pointer-events: none !important; }
html body .live-screen.is-clear .ltt-host { background: rgba(0,0,0,.35) !important; }
.ltt-clear-exit { position: absolute; z-index: 30; left: 16px; bottom: calc(var(--sa-b, env(safe-area-inset-bottom, 0px)) + 18px);
  width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff;
  background: rgba(0,0,0,.45); }
.ltt-clear-exit svg { width: 22px; height: 22px; }
.sg-mylvl { display: flex; align-items: center; gap: 8px; padding: 8px 14px 4px; font-size: 12px; color: #c9cce8; }
.sg-mylvl .sg-lvl { height: 20px; font-size: 12px; }
.sg-mylvl-bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.sg-mylvl-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #00d8ff, #8b5cff, #ff3db8); }
.sg-mylvl-txt { white-space: nowrap; }
html body .ltt-clear-exit { background: rgba(0,0,0,.5) !important; }
/* v1.3.7 — update pill with a hide button */
.sg-update-pill { display: inline-flex !important; align-items: center; gap: 2px; padding: 0 !important; overflow: hidden; }
.sg-update-pill button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.sg-update-pill .sgu-go { padding: 9px 6px 9px 16px; }
.sg-update-pill .sgu-x { padding: 9px 14px 9px 8px; opacity: .75; font-size: 13px; }
html[dir="rtl"] .sg-update-pill .sgu-go { padding: 9px 16px 9px 6px; }
html[dir="rtl"] .sg-update-pill .sgu-x { padding: 9px 8px 9px 14px; }
