body {
  margin: 0;
  font-family: system-ui;
  background: #020617;
  color: #e5e7eb;
}

header {
  padding: 12px;
  display: flex;
  justify-content: space-between;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 10px;
}

.mode {
  font-weight: 600;
  color: #60a5fa;
}

.video-section {
  display: flex;
  justify-content: center;
  padding: 10px;
}

.box {
  position: relative;
  width: 100%;
  max-width: 420px;
}

video {
  width: 100%;
  border-radius: 10px;
}

canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 10px;
  padding: 12px;
}

.card {
  background: #020617;
  padding: 10px;
  border-radius: 8px;
}

.pro {
  display: none;
}

/* Bars */
.bar {
  height: 14px;
  background: #111827;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-top: 6px;
}

.bar::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background: #64748b;
}

.bar-fill {
  height: 100%;
  width: 50%;
  background: #22c55e;
}

.mt {
  display: block;
  margin-top: 8px;
}
