.mobile-trtc-channel-item a {
  -webkit-tap-highlight-color: transparent;
}

.mobile-trtc-channel-item a[data-mobile-trtc-status="connecting"] span,
.mobile-trtc-channel-item a[data-mobile-trtc-status="connected"] span,
.mobile-trtc-channel-item a[data-mobile-trtc-status="muted"] span {
  color: #2373ff;
  font-weight: 700;
}

.mobile-trtc-shell-frame {
  position: fixed;
  z-index: 9000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  border: 0;
  background: #fff;
}

html.mobile-trtc-shell-active,
html.mobile-trtc-shell-active body {
  overflow: hidden;
}

.mobile-trtc-float {
  position: fixed;
  z-index: 9100;
  right: 14px;
  bottom: 86px;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  color: #182b4d;
  -webkit-tap-highlight-color: transparent;
}

.mobile-trtc-float[hidden] {
  display: none;
}

.mobile-trtc-ball {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b8cff, #0f62e6);
  box-shadow: 0 10px 28px rgba(24, 104, 230, 0.34);
  cursor: pointer;
  position: relative;
}

.mobile-trtc-ball img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

.mobile-trtc-dot {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #9aa7bc;
}

.mobile-trtc-float[data-status="connecting"] .mobile-trtc-dot {
  background: #ffb020;
  animation: mobile-trtc-pulse 1.2s ease-in-out infinite;
}

.mobile-trtc-float[data-status="connected"] .mobile-trtc-dot {
  background: #20c875;
}

.mobile-trtc-float[data-status="muted"] .mobile-trtc-dot {
  background: #ff8a00;
}

.mobile-trtc-float[data-status="error"] .mobile-trtc-dot,
.mobile-trtc-float[data-status="permission-denied"] .mobile-trtc-dot {
  background: #f05252;
}

.mobile-trtc-panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: 226px;
  display: none;
  padding: 12px;
  border: 1px solid rgba(35, 115, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 34px rgba(28, 47, 85, 0.18);
  box-sizing: border-box;
}

.mobile-trtc-float.is-open .mobile-trtc-panel {
  display: block;
}

.mobile-trtc-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 20px;
}

.mobile-trtc-status {
  max-width: 136px;
  overflow: hidden;
  color: #182b4d;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-trtc-time {
  color: #62708a;
  font-size: 12px;
}

.mobile-trtc-actions {
  display: flex;
  gap: 8px;
}

.mobile-trtc-actions button {
  flex: 1;
  height: 32px;
  border: 0;
  border-radius: 16px;
  color: #235175;
  background: #eef5ff;
  font-size: 13px;
  font-weight: 700;
}

.mobile-trtc-actions .mobile-trtc-leave {
  color: #b4232b;
  background: #fff0f0;
}

@keyframes mobile-trtc-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.38);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 176, 32, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 176, 32, 0);
  }
}

@media (max-width: 360px) {
  .mobile-trtc-panel {
    width: 210px;
  }
}
