:root {
  --bg: #0b1020;
  --panel: #141b33;
  --border: #26315a;
  --text: #e6ebff;
  --muted: #8b95b8;
  --accent: #4ade80;
  --accent-dim: rgba(74, 222, 128, 0.15);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 70% -10%, #1c2547, var(--bg));
  color: var(--text);
  min-height: 100vh;
  padding: 24px;
}
header {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
header h1 { font-size: 22px; }
.me { color: var(--muted); font-size: 14px; }
.me #selfId { color: var(--accent); font-weight: 600; }
.relay-toggle { color: var(--muted); font-size: 14px; margin-left: auto; cursor: pointer; }

main {
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  max-width: 1100px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
.panel h2 { font-size: 15px; margin-bottom: 12px; color: var(--muted); }

/* 在线列表 */
.user-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.user-list li {
  display: flex; justify-content: space-between; align-items: center;
  background: #0f152b; border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; font-size: 14px;
}
.user-list li.empty { color: var(--muted); justify-content: center; text-align: center; }
.user-list button {
  background: var(--accent-dim); color: var(--accent);
  border: 1px solid rgba(74,222,128,0.4); border-radius: 8px;
  padding: 6px 12px; cursor: pointer; font-size: 13px; font-weight: 600;
}
.user-list button:hover { background: rgba(74,222,128,0.25); }

/* 视频 */
.videos { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 16px; }
.video-box { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.video-box .label { color: var(--muted); font-size: 13px; }
video {
  width: 100%; aspect-ratio: 4/3; background: #000;
  border-radius: 12px; border: 1px solid var(--border); object-fit: cover;
}

/* 状态 */
.status { grid-column: 1; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.status span { color: var(--accent); }
.status button {
  margin-top: 6px; background: #3a1620; color: #ff6b8a;
  border: 1px solid #5a2634; border-radius: 8px; padding: 8px; cursor: pointer;
}
.status button:disabled { opacity: 0.4; cursor: not-allowed; }

@media (max-width: 760px) {
  main { grid-template-columns: 1fr; }
  .videos { grid-column: 1; grid-row: auto; flex-direction: column; }
  .status { grid-column: 1; }
}
