/* Multi-guest / PK stage layout (from Kemetok live + LiveMe parity) */

.liveme-native-root .live_stage_active {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.liveme-native-root .live_stage_layout--dual .live_stage_remote_strip,
.liveme-native-root .live_stage_layout--dual .live_stage_main {
  width: 50%;
  vertical-align: top;
}

.liveme-native-root .live_stage_layout--triple .live_stage_remote_strip {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.liveme-native-root .live_stage_layout--triple .live_stage_main {
  width: 60%;
}

.liveme-native-root .live_stage_layout--grid .live_stage_remote_strip {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px;
  margin-bottom: 6px;
}

.liveme-native-root .live_stage_layout--grid .live_stage_main {
  width: 100%;
}

.liveme-native-root .live_stage_pane {
  position: relative;
  background: #000;
  min-height: 120px;
  border-radius: 8px;
  overflow: hidden;
}

.liveme-native-root .live_stage_label {
  position: absolute;
  top: 6px;
  left: 8px;
  z-index: 3;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  pointer-events: none;
}

.liveme-native-root .live_stage_hls {
  width: 100%;
  max-height: 40vh;
  object-fit: cover;
  background: #000;
  display: block;
}

.liveme-native-root .live_stage_webrtc {
  width: 100%;
  min-height: 120px;
  max-height: 40vh;
  background: #000;
}

.liveme-native-root .live_stage_webrtc video {
  width: 100%;
  max-height: 40vh;
  object-fit: cover;
}

.liveme-native-root .live_stage_main_label {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(157, 29, 255, 0.75);
  color: #fff;
  font-weight: 700;
  pointer-events: none;
}

.liveme-native-root .live_gift_recipient_bar {
  padding: 8px 10px 4px;
}

.liveme-native-root .live_gift_recipient_title {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  opacity: 0.85;
  color: #e5e7eb;
}

.liveme-native-root .live_gift_recipient_chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.liveme-native-root .live_gift_recipient {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #e5e7eb;
  cursor: pointer;
}

.liveme-native-root .live_gift_recipient.is-active {
  border-color: #f5b400;
  background: rgba(245, 180, 0, 0.2);
}

/* LiveMe gift-layer / trail hooks */
.gift-layer {
  position: absolute;
  inset: 0;
  z-index: 35;
  pointer-events: none;
  overflow: hidden;
}

.gift-layer .giftTrail {
  position: absolute;
  inset: 0;
  pointer-events: none;
}