/* LiveMe shell — host chip + clean overrides (loads last) */

.liveme-native-root {
  --lm-purple: #9d1dff;
  --lm-pink: #ff526d;
  --lm-gold: #fcbb55;
  direction: ltr;
  text-align: left;
}

[dir='rtl'] .liveme-native-root,
html[dir='rtl'] .liveme-native-root {
  direction: ltr;
  text-align: left;
}

/* No decorative image overlay over the video */
.liveme-native-stage::after {
  content: none !important;
  display: none !important;
}

.liveme-native-top .live_video_header,
.liveme-native-root .lm-host-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 48px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.liveme-native-top .lm-host-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  max-width: min(78vw, 420px);
  padding: 4px 8px 4px 4px !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.42) !important;
  backdrop-filter: blur(10px);
}

.liveme-native-top .live_creator_avatar_live img {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  object-fit: cover !important;
}

.liveme-native-top .live_creator_live_username a {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45) !important;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liveme-native-top .live_creator_live_name {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  gap: 6px !important;
}

.liveme-native-top .lm-live-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 16px;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  background: linear-gradient(122.91deg, #f88954 10.31%, #fcbb55 91.65%) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px;
}

.liveme-native-top .sumonline {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 16px !important;
  padding: 1px 8px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #fff !important;
}

.liveme-native-top .live_owner_flw_btn .i_btn_like_item,
.liveme-native-top .live_owner_flw_btn .loginForm.i_btn_like_item,
.liveme-native-top #i_btn_like_item {
  border-radius: 999px !important;
  padding: 6px 12px !important;
  background: linear-gradient(95.93deg, #9d1dff 0.51%, #ff526d 99.49%) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border: none !important;
  white-space: nowrap;
}

.liveme-native-top .live_header_in_right {
  gap: 8px !important;
  flex-shrink: 0;
  align-items: center !important;
}

.liveme-native-top .lm-audience-rail {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  max-width: min(46vw, 220px);
}

.liveme-native-top .lm-audience-avatars {
  display: inline-flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
}

.liveme-native-top .lm-audience-avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
  margin-inline-start: -8px !important;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.liveme-native-top .lm-audience-avatar:last-child {
  margin-inline-start: 0 !important;
}

.liveme-native-top .lm-audience-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.liveme-native-top .lm-audience-count.sumonline {
  min-width: 28px !important;
  min-height: 28px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.45) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.liveme-native-top .live_mics_cameras .i_header_btn_item {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.liveme-native-top .live_mics_cameras svg {
  width: 16px !important;
  height: 16px !important;
}

/* Hide leftover site chrome */
.liveme-native-root .live_right_in_right_in,
.liveme-native-stash .live_right_in_right_in,
.live_wrapper_tik.liveme-native-root .live_left,
.live_wrapper_tik.liveme-native-root .header,
.live_wrapper_tik.liveme-native-root .mobile_footer_fixed_menu_container,
.liveme-native-root .live_pulse,
.liveme-native-root .live_share_live_btn,
.liveme-native-root .klr-vue-rail {
  display: none !important;
}

.liveme-native-composer .live_send_message_box_wrapper {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  backdrop-filter: none;
}

/* Modules stay collapsed inside sheet until host opens the sheet */
.liveme-native-root .live_interaction_modules:not(.is-panel-open) {
  display: none !important;
}

.liveme-native-root .live_module.is-open .live_module_body {
  display: block;
}

/* reference-preview aliases */
.liveme-native-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-direction: row !important;
  width: 100% !important;
  gap: 10px !important;
  min-height: 48px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.liveme-native-top .liveme-native-header .liveme-live-pill {
  flex-shrink: 0 !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}

.liveme-host-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  flex: 0 1 auto !important;
  max-width: min(78vw, 420px);
  padding: 4px 8px 4px 4px !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.42) !important;
  backdrop-filter: blur(10px);
}

.liveme-avatar {
  flex-shrink: 0;
  display: block;
  line-height: 0;
}

.liveme-avatar img {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  object-fit: cover !important;
  display: block !important;
}

.liveme-host-meta {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 2px !important;
  min-width: 0 !important;
  min-height: 40px !important;
}

.liveme-host-meta strong,
.liveme-host-meta .live_creator_live_username {
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}

.liveme-host-meta strong a,
.liveme-host-meta .live_creator_live_username a {
  color: #fff !important;
  text-decoration: none !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45) !important;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

.liveme-viewer-meta,
.liveme-host-meta em {
  font-style: normal !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  line-height: 1.2 !important;
}

.liveme-live-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  background: linear-gradient(90deg, #ff2d55, #ff5c8a) !important;
  color: #fff !important;
  line-height: 1.2 !important;
  flex-shrink: 0 !important;
}
