:root {
  --bg: #0e0f12;
  --panel: #17181c;
  --border: #2a2c32;
  --text: #e8e8ea;
  --muted: #8b8d95;
  --accent: #5b8cff;
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.card {
  width: 100%;
  max-width: 560px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

h1 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

input, textarea, select {
  width: 100%;
  background: #0b0c0e;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

.field { margin-bottom: 16px; }

button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 10px;
  min-height: 16px;
}

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

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

/* Portrait (9:16) frame, sized so the whole clip fits on a laptop screen. */
video {
  display: block;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  max-height: 75vh;
  object-fit: contain;
  margin: 16px auto 0;
  border-radius: 8px;
  background: black;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: -2px;
}

@keyframes spin { to { transform: rotate(360deg); } }
