:root {
  color-scheme: dark;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --bg: #07070a;
  --panel: #101018;
  --line: #2a2a38;
  --text: #f4f1ea;
  --muted: #9a958c;
  --live: #ff3b4e;
  --accent: #d7ff3c;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 10% -10%, #1c1230, transparent 55%),
    linear-gradient(180deg, #0c0c12, var(--bg));
  color: var(--text);
}
.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}
.top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 22px;
}
.eyebrow {
  margin: 0;
  color: var(--live);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
}
h1 {
  margin: 4px 0 0;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.06em;
  line-height: 0.9;
}
.tagline {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.7fr);
  gap: 18px;
}
.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px #0008;
}
video {
  width: 100%;
  height: 100%;
  display: block;
}
.live-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--live);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 5px 8px;
}
.chat-log {
  position: absolute;
  left: 14px;
  right: 90px;
  bottom: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 42%;
  overflow: hidden;
  pointer-events: none;
}
.chat-log li {
  align-self: flex-start;
  max-width: 100%;
  background: #000a;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  padding: 4px 8px;
  border-radius: 2px;
}
.chat-log strong {
  color: var(--accent);
  font-weight: 800;
  margin-right: 6px;
}
.comment-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.comment-form #comment-name {
  flex: 0 0 110px;
}
.audio-button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border: 1px solid #fff8;
  background: #000c;
  color: white;
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
}
form {
  margin-top: 18px;
}
label {
  font-weight: 700;
}
.help {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 14px;
}
.controls {
  display: flex;
  gap: 8px;
}
input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}
button[type="submit"] {
  border: 0;
  background: var(--accent);
  color: #111;
  padding: 0 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.example {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #c4b5fd;
  padding: 0;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#message {
  min-height: 22px;
  color: #fbbf24;
  font-size: 14px;
}
#message.error {
  color: #fb7185;
}
.rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 14px 16px;
}
.kicker {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.value {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}
.meter {
  height: 7px;
  background: #222;
  margin: 8px 0;
}
#battery-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
}
.card.muted .value,
.card.muted p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
footer {
  margin-top: 28px;
  color: #6b6570;
  font-size: 12px;
}
@media (max-width: 800px) {
  .top,
  .layout,
  .controls {
    display: flex;
    flex-direction: column;
  }
  button[type="submit"] {
    padding: 14px;
  }
}
