* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --border: #2a2f3d;
  --text: #e8eaed;
  --muted: #8b919a;
  --primary: #4f8cff;
  --success: #5dd39e;
  --warning: #f0b429;
}

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

body {
  display: flex;
  flex-direction: column;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-left h1 {
  font-size: 18px;
  font-weight: 600;
}

.badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.badge-quality {
  background: rgba(79, 140, 255, 0.12);
  color: var(--primary);
  border-color: rgba(79, 140, 255, 0.3);
}

.badge-wait {
  background: rgba(240, 180, 41, 0.12);
  color: var(--warning);
  border-color: rgba(240, 180, 41, 0.3);
}

.badge-live {
  background: rgba(93, 211, 158, 0.12);
  color: var(--success);
  border-color: rgba(93, 211, 158, 0.3);
}

.meta {
  font-size: 13px;
  color: var(--muted);
}

.preview-area {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.placeholder {
  text-align: center;
  color: var(--muted);
}

.placeholder-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.placeholder p {
  font-size: 16px;
  margin-bottom: 8px;
}

.placeholder .hint {
  font-size: 13px;
  opacity: 0.7;
}

#remoteVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  image-rendering: auto;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  padding: 8px 20px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.status-bar .active {
  color: var(--success);
}
