body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  background: #050505;
  color: #f5f5f5;
}

header {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid #222;
}

header h1 {
  margin: 0 0 4px;
  font-size: 22px;
}

header p {
  margin: 0;
  font-size: 14px;
  color: #aaa;
}

main {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#videoContainer {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

video,
canvas {
  width: 100%;
  border-radius: 8px;
  background: #000;
}

#overlayText {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

#controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

button.primary {
  background: #00b894;
  color: #000;
}

button.secondary {
  background: #333;
  color: #f5f5f5;
}

button:disabled {
  opacity: 0.4;
  cursor: default;
}

#analysis {
  max-width: 480px;
  margin: 0 auto;
  background: #111;
  padding: 12px;
  border-radius: 8px;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.4;
}


