:root {
  --bg: #0b0f14;
  --panel: #131a23;
  --accent: #2f6df6;
  --text: #e7edf3;
  --muted: #8aa0b4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #16202c, var(--bg));
  color: var(--text);
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.stage {
  width: min(520px, 92vw);
  text-align: center;
  padding: 24px;
}

h1 { font-size: 1.25rem; font-weight: 600; margin: 0 0 18px; letter-spacing: .2px; }

.video-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--panel);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}

#avatar { width: 100%; height: 100%; object-fit: cover; display: block; background: #0e141b; }

.status {
  position: absolute; left: 12px; bottom: 12px;
  font-size: .8rem; color: var(--muted);
  background: rgba(0,0,0,.45); padding: 4px 10px; border-radius: 999px;
}

.captions {
  margin: 16px 0;
  min-height: 84px;
  max-height: 160px;
  overflow-y: auto;
  text-align: left;
  background: var(--panel);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .95rem;
  line-height: 1.4;
}

.cap-line { margin: 0 0 6px; }
.cap-who { font-weight: 600; opacity: .8; margin-right: 4px; }
.cap-user { color: var(--muted); }
.cap-agent { color: var(--text); }

.btn {
  appearance: none; border: 0; cursor: pointer;
  background: var(--accent); color: #fff;
  font-size: 1rem; font-weight: 600;
  padding: 14px 22px; border-radius: 12px;
  width: 100%;
  transition: filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn-stop { background: #46556a; margin-top: 8px; }

.hint { color: var(--muted); font-size: .8rem; margin-top: 14px; }
