* { box-sizing: border-box; }
body {
  background: #0f1115;
  color: #e6e6e6;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 24px;
}
.wrap { max-width: 640px; margin: 0 auto; }
h1 { font-size: 22px; margin-bottom: 20px; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; color: #9aa0aa; margin: 0 0 12px; }
.card {
  background: #1a1d24;
  border: 1px solid #262a33;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
}
.status { font-size: 14px; color: #b8bcc4; }
.status.live { color: #4ade80; font-weight: 600; }
.status.offline { color: #f87171; font-weight: 600; }
.scene-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
button {
  background: #2b6cff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
}
button.active { background: #4ade80; color: #06210f; }
button:hover { opacity: 0.9; }
input[type=text] {
  width: 100%;
  padding: 8px 10px;
  background: #0f1115;
  border: 1px solid #333844;
  border-radius: 6px;
  color: #e6e6e6;
  margin-bottom: 10px;
  font-size: 14px;
}
.row { display: flex; gap: 8px; margin-bottom: 8px; }
label.hint { display: block; margin-bottom: 4px; }
.row.small a { font-size: 12px; color: #7ea2ff; margin-right: 12px; }
.hint { font-size: 12px; color: #7c8290; margin-top: 10px; }
code { background: #0f1115; padding: 2px 6px; border-radius: 4px; word-break: break-all; }

/* Broadcast / BRB */
button.success { background: #22c55e; color: #06210f; font-weight: 700; }
button.success:disabled { background: #1d3b2a; color: #6f8f7c; cursor: not-allowed; }
button.danger { background: #ef4444; color: #fff; font-weight: 700; }
button.danger:disabled { background: #3b1d1d; color: #8f6f6f; cursor: not-allowed; opacity: 1; }
button.brb { background: #f59e0b; color: #241a02; font-weight: 800; padding: 12px 28px; font-size: 16px; letter-spacing: 0.06em; }
button.brb.on { background: #ef4444; color: #fff; animation: brb-blink 1.4s ease-in-out infinite; }
@keyframes brb-blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
  50% { box-shadow: 0 0 18px 4px rgba(239, 68, 68, 0.55); }
}

/* Overlay files */
.dropzone {
  border: 2px dashed #333844;
  border-radius: 10px;
  padding: 26px 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone.hover { border-color: #2b6cff; background: rgba(43, 108, 255, 0.08); }
.dropzone p { margin: 4px 0; }
.file-list { margin-top: 10px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  border-bottom: 1px solid #22262e;
  font-size: 13px;
}
.file-item:last-child { border-bottom: none; }
.file-item a { color: #7ea2ff; text-decoration: none; flex: 1; overflow-wrap: anywhere; }
.file-item .meta { color: #7c8290; white-space: nowrap; }
.small-btn { padding: 4px 8px; font-size: 12px; }
