:root {
  color-scheme: dark;
  --bg: #14161a;
  --panel: #1e2126;
  --text: #e8e8e8;
  --muted: #9aa0a8;
  --accent: #3b82f6;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.landing {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

body:has(.videos) {
  display: flex;
  flex-direction: column;
}

.status {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  background: var(--panel);
}

.videos {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #000;
}

#remote-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

#local-video {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 25vw;
  max-width: 220px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #000;
}

.controls {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  padding: 1rem;
  background: var(--panel);
}

.controls button {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid #333;
  background: #2a2e35;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
}

.controls button:hover {
  background: #343943;
}

.fatal {
  padding: 2rem;
  text-align: center;
  color: #f87171;
}
