* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #0f1420;
  color: #e6ecf5;
  min-height: 100vh;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #22304a;
}
header h1 { font-size: 18px; font-weight: 600; }
.status { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.badge { background: #1d2c47; padding: 4px 10px; border-radius: 12px; }
.badge b { color: #4fd1c5; }
main { padding: 20px 24px; max-width: 1200px; margin: 0 auto; }
section { margin-bottom: 24px; }
h2 { font-size: 15px; margin-bottom: 10px; color: #9fb3d1; }
.video-box {
  background: #000; border-radius: 12px; overflow: hidden;
  aspect-ratio: 16 / 9; max-width: 480px;
}
video { width: 100%; height: 100%; object-fit: contain; }
.controls { margin-top: 10px; display: flex; gap: 10px; }
button {
  background: #1d2c47; color: #e6ecf5; border: 1px solid #2f4368;
  padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 14px;
}
button:hover { background: #273a5c; }
button.off { background: #5b2a2a; border-color: #8a3b3b; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.remote-card {
  background: #162033; border: 1px solid #22304a; border-radius: 12px; overflow: hidden;
}
.remote-card .video-box { aspect-ratio: 16/9; max-width: none; border-radius: 0; }
.remote-card .meta { padding: 8px 12px; font-size: 13px; color: #9fb3d1; }
.empty { color: #5b6b87; padding: 30px; text-align: center; border: 1px dashed #2a3a58; border-radius: 12px; }
.log-wrap pre {
  background: #0a0e17; border: 1px solid #1d2c47; border-radius: 10px;
  padding: 12px; font-size: 12px; line-height: 1.6; max-height: 220px; overflow: auto;
  color: #8fb8a8;
}
