* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Noto Sans CJK SC", "Microsoft Yahei", sans-serif;
  background: #0a0d14;
  color: #eaf1ff;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.title {
  font-size: 18px;
  font-weight: 700;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #2a3244;
}

.stage {
  position: relative;
  flex: 1;
  padding: 10px 12px 0;
}

.remote-wrap {
  position: relative;
  height: 100%;
  min-height: 320px;
  background: #141a27;
  border-radius: 16px;
  overflow: hidden;
}

.video-box {
  width: 100%;
  height: 100%;
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.empty-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a8b4cf;
  font-size: 15px;
}

.local-wrap {
  position: absolute;
  right: 20px;
  bottom: 12px;
  width: 34vw;
  max-width: 148px;
  min-width: 112px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #3a4766;
  background: #101522;
}

.panel {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.label {
  width: 68px;
  color: #c1cbe0;
  font-size: 13px;
}

.input {
  flex: 1;
  height: 36px;
  border: 1px solid #34415d;
  border-radius: 8px;
  background: #121929;
  color: #eaf1ff;
  padding: 0 10px;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn {
  flex: 1;
  height: 40px;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
}

.btn.primary {
  background: #3a7afe;
  color: #fff;
}

.btn.danger {
  background: #e95656;
  color: #fff;
}

.btn:disabled {
  opacity: 0.5;
}

.msg {
  min-height: 18px;
  font-size: 13px;
  color: #f2c57c;
}
