:root {
  color-scheme: dark;
  --bg: #0f1117;
  --card: #1b1f2a;
  --muted: #a8b0c0;
  --line: #2b3243;
  --primary: #4f8cff;
  --danger: #ff5f77;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: radial-gradient(circle at top, #182033, var(--bg));
  color: #eaf0ff;
}

.container {
  width: min(1100px, 95%);
  margin: 24px auto;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

label { display:block; margin:8px 0 6px; color: var(--muted); }
input, select, button {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #111624;
  color: #f0f4ff;
  padding: 10px 12px;
}
input, select { width: 100%; }
button {
  cursor: pointer;
  background: linear-gradient(180deg, #5b94ff, #417eff);
  border: none;
  font-weight: 700;
}
button:hover { filter: brightness(1.05); }
button:disabled { opacity: .55; cursor: not-allowed; }

.danger { background: linear-gradient(180deg, #ff7c93, #ff5f77); }
.row { display: flex; gap: 10px; align-items: center; margin: 10px 0; }
.row > * { flex: 1; }

.badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

video {
  width: 100%;
  max-height: 72vh;
  background: #000;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.hint { color: var(--muted); margin-top: 8px; }
.error { color: #ff9bad; min-height: 20px; }
.hidden { display: none !important; }

