:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #08111a;
  color: #f5f7fa;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #152436 0, #08111a 42%, #050b11 100%); }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 64px; }
.hero { margin-bottom: 24px; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #8ba0b7; font-weight: 800; }
h1 { margin: 8px 0; font-size: clamp(30px, 4vw, 48px); line-height: 1; }
h2 { margin: 0 0 16px; font-size: 20px; }
h3 { margin: 0; font-size: 16px; }
p { color: #aebdcb; line-height: 1.55; }
.card { background: rgba(14, 27, 40, .94); border: 1px solid #26394b; border-radius: 14px; padding: 22px; box-shadow: 0 18px 55px rgba(0,0,0,.22); }
.stack { display: grid; gap: 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(12, 1fr); }
.col-4 { grid-column: span 4; }.col-5 { grid-column: span 5; }.col-6 { grid-column: span 6; }.col-7 { grid-column: span 7; }.col-8 { grid-column: span 8; }.col-12 { grid-column: span 12; }
@media (max-width: 820px) { .col-4,.col-5,.col-6,.col-7,.col-8 { grid-column: span 12; } .shell { width: min(100% - 20px, 1180px); padding-top: 22px; } }
label { display: grid; gap: 7px; font-size: 13px; color: #9eb0c0; font-weight: 700; }
input { width: 100%; background: #09131e; color: #fff; border: 1px solid #30465b; border-radius: 9px; padding: 11px 12px; outline: none; }
input:focus { border-color: #6f91af; box-shadow: 0 0 0 3px rgba(111,145,175,.14); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn { border: 1px solid #36516a; background: #182b3d; color: #f7fbff; border-radius: 9px; padding: 10px 14px; font-weight: 800; }
.btn:hover { background: #20384e; }
.btn.primary { background: #f2555f; border-color: #f2555f; color: #fff; }
.btn.primary:hover { background: #ff6872; }
.btn.good { background: #16835b; border-color: #16835b; }
.btn.danger { background: transparent; border-color: #6b3238; color: #ff9da4; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.meta { color: #8599ab; font-size: 13px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; color: #cfe5f7; }
.status { display: inline-flex; gap: 7px; align-items: center; font-size: 12px; font-weight: 800; color: #aebdcb; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #536779; }
.dot.live { background: #37d590; box-shadow: 0 0 10px rgba(55,213,144,.45); }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; background: #1a2e41; border: 1px solid #2d465e; color: #bcd0e2; font-size: 11px; font-weight: 800; }
.divider { height: 1px; background: #26394b; margin: 6px 0; }
.player-list { display: grid; gap: 9px; }
.player-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(150px, .9fr) auto; gap: 10px; align-items: center; padding: 11px; border: 1px solid #25394b; background: #0a1722; border-radius: 10px; }
@media (max-width: 700px) { .player-row { grid-template-columns: 1fr; } }
.player-id { font-weight: 800; word-break: break-word; }
.subtle { color: #8297a8; font-size: 12px; }
.empty { padding: 24px; border: 1px dashed #33485a; border-radius: 10px; text-align: center; color: #8195a6; }
.error { color: #ff979e; font-size: 13px; min-height: 20px; }
.success { color: #6ee6ad; font-size: 13px; }
.hidden { display: none !important; }
.toggle { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; }
.toggle input { width: 18px; height: 18px; }
.join-shell { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.join-card { width: min(620px, 100%); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { min-height: 120px; text-align: left; padding: 18px; border-radius: 12px; border: 1px solid #36516a; background: #102235; color: #fff; }
.choice strong { display: block; font-size: 18px; margin-bottom: 6px; }
.choice span { color: #9fb3c4; line-height: 1.45; }
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr; } }
.embed-mode { background: #030609; overflow: hidden; }
.embed-toolbar { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; background: #08111a; border-bottom: 1px solid #213345; font-size: 12px; color: #9bb0c2; }
.vdo-frame { display: block; width: 100vw; height: calc(100vh - 44px); border: 0; background: #000; }

/* Producer playercam previews */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.preview-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0,0,0,.22);
}
.preview-frame-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050505;
  overflow: hidden;
}
.preview-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050505;
  pointer-events: none;
}
.preview-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
}
.preview-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.preview-mode {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--muted);
}
