:root {
  --bg: #0a0a0b;
  --panel: rgba(16, 16, 18, 0.82);
  --text: #e8e8ea;
  --muted: #9ca3af;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.14);
  --danger: #f87171;
  --warn: #fbbf24;
  --ok: #34d399;
  --radius: 6px;
  --font: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
}

video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.overlay {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  backdrop-filter: blur(10px);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.top {
  top: 0;
}

.bottom {
  bottom: 0;
  justify-content: space-between;
}

input {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

input:focus {
  border-color: var(--accent);
}

button {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.35);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  background: rgba(34, 211, 238, 0.25);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--muted);
}

.badge .value {
  color: var(--accent);
  font-weight: 700;
}

.status {
  font-size: 12px;
  color: var(--muted);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.error .live-dot {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
  animation: none;
}

.buffering .live-dot {
  background: var(--warn);
  box-shadow: 0 0 8px var(--warn);
}