:root {
  color-scheme: dark;
  --red: #e50914;
  --red-d: #b20710;
  --bg: #0b0b0c;
  --card: #151517;
  --card2: #1c1c1f;
  --line: #2a2a2e;
  --fg: #f2f2f3;
  --muted: #9a9aa1;
  --ok: #3ddc84;
  --warn: #f5b942;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--fg);
  font: 15px/1.45 Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
body { background:
  radial-gradient(1200px 500px at 15% -10%, rgba(229, 9, 20, .16), transparent 60%),
  radial-gradient(900px 400px at 100% 0%, rgba(229, 9, 20, .08), transparent 60%),
  var(--bg); }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px 48px; }
header.top { display: flex; align-items: center; gap: 16px; padding: 18px 0; }
.logo { font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif; font-weight: 900; font-size: 34px;
  letter-spacing: .04em; color: var(--red); text-decoration: none; line-height: 1; }
header.top .spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin: 0 0 20px; }
.card h1, .card h2 { margin: 0 0 6px; font-size: 22px; }
.card h2 { font-size: 18px; }
.card > p { margin: 0 0 16px; color: var(--muted); }
label { display: block; margin: 14px 0 6px; color: var(--muted); font-size: 13px; }
input, select { width: 100%; background: var(--card2); color: var(--fg); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px; font: inherit; }
input:focus, select:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: transparent; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 16px; }
button, .btn { background: var(--card2); color: var(--fg); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 14px; font: inherit; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .btn:hover { border-color: #4a4a50; }
button.primary { background: var(--red); border-color: var(--red); font-weight: 600; }
button.primary:hover { background: var(--red-d); }
button.danger:hover { border-color: var(--red); color: #ff6b73; }
button:disabled { opacity: .5; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.error { color: #ff6b73; min-height: 1.4em; margin-top: 10px; }
.notice { color: var(--ok); min-height: 1.4em; margin-top: 10px; }
.auth { max-width: 420px; margin: 8vh auto 0; }
.auth .logo { display: block; text-align: center; font-size: 56px; margin-bottom: 20px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.otp { letter-spacing: .35em; text-align: center; font-size: 22px; font-variant-numeric: tabular-nums; }

.room { display: grid; gap: 12px; }
.room .head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.room .head h3 { margin: 0; font-size: 17px; }
.badge { font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.badge.live { color: var(--ok); border-color: rgba(61, 220, 132, .5); }
.badge.in { color: var(--warn); border-color: rgba(245, 185, 66, .5); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: 13px; }
.rooms .room + .room { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.empty { color: var(--muted); }
pre.copy { background: #0e0e10; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 8px 0;
  overflow-x: auto; white-space: pre-wrap; word-break: break-all; font: 12.5px/1.45 ui-monospace, Consolas, monospace; }
dialog { background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 14px; max-width: 640px; width: calc(100% - 32px); padding: 22px; }
dialog::backdrop { background: rgba(0, 0, 0, .7); }
dialog h2 { margin: 0 0 8px; }
.warnbox { border: 1px solid rgba(245, 185, 66, .45); background: rgba(245, 185, 66, .07); border-radius: 10px; padding: 10px 12px; margin: 12px 0; font-size: 13.5px; }

/* Zuschauer / Sender */
body.player { height: 100vh; overflow: hidden; }
.player main { display: flex; flex-direction: column; height: 100%; }
.stage { position: relative; flex: 1; min-height: 0; background: #000; display: flex; align-items: center; justify-content: center; }
.stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.stage.fit-cover video { object-fit: cover; }
.overlay { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center;
  text-align: center; padding: 24px; color: var(--muted); }
.overlay[hidden] { display: none; }
.overlay form { width: min(320px, 100%); }
.bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--bg); }
.bar .spacer { flex: 1; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #666; display: inline-block; margin-right: 6px; }
.dot.live { background: var(--ok); } .dot.wait { background: var(--warn); } .dot.off { background: #e5534b; }
.stats { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.sendpanel { max-width: 560px; margin: 0 auto; padding: 16px; width: 100%; }
.checkrow { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; color: var(--fg); font-size: 14px; }
.checkrow input { width: auto; margin-top: 3px; }
@media (max-width: 560px) { .stats { width: 100%; } .logo { font-size: 28px; } }

/* Marken-Assets von share.mogel.space */
.logo img { height: 34px; width: auto; display: block; }
.logo-img { height: 46px; width: auto; display: block; }
.logo-img.big { height: 74px; margin: 0 auto 22px; }
body.bg-login { background:
  linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.85)),
  #000 url('/static/img/login-bg.jpg') center / cover no-repeat fixed; }
body.bg-app { background:
  linear-gradient(180deg, rgba(0,0,0,.82), rgba(0,0,0,.94)),
  #000 url('/static/img/login-bg.jpg') center / cover no-repeat fixed; }
.auth.card { background: rgba(10,10,12,.82); backdrop-filter: blur(6px); }
.intro { position: fixed; inset: 0; z-index: 50; background: #000; display: flex; align-items: center; justify-content: center; }
.intro[hidden] { display: none; }
.intro video { width: 100%; height: 100%; object-fit: contain; }
.intro-ctl { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.intro-ctl button { background: rgba(30,30,32,.85); }
