/* BeatSync — style minimal, sombre, mobile-first. */
:root {
  --bg: #0d0d12;
  --card: #16161f;
  --border: #262633;
  --text: #e8e8f0;
  --muted: #8a8a9a;
  --accent: #7c5cff;
  --accent-2: #ff5c8a;
  --ok: #4ade80;
  --err: #ff5c5c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #1a1430 0%, var(--bg) 55%);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 32px 18px 60px; }
header { text-align: center; margin-bottom: 24px; }
h1 { margin: 0; font-size: 34px; letter-spacing: -0.02em;
     background: linear-gradient(90deg, var(--accent), var(--accent-2));
     -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sub { color: var(--muted); margin: 8px 0 0; font-size: 14px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 18px;
}
.hidden { display: none; }

.field { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.hint { color: var(--muted); font-weight: 400; font-size: 12px; }
.row { display: flex; gap: 14px; }
.row .field { flex: 1; }

input[type=file], input[type=number], select {
  width: 100%;
  background: #0f0f16;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 11px 12px;
  font-size: 14px;
  font-family: inherit;
}
input[type=file] { padding: 9px; }
input:focus, select:focus { outline: none; border-color: var(--accent); }

.check { display: flex; align-items: center; gap: 9px; font-weight: 400;
         color: var(--muted); font-size: 14px; margin: 6px 0 18px; }
.check input { width: auto; }

button[type=submit], .btn-dl {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  text-align: center;
  text-decoration: none;
  display: block;
}
button[disabled] { opacity: .5; cursor: not-allowed; }
.btn-secondary {
  width: 100%; margin-top: 10px; padding: 12px; border-radius: 12px;
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  font-size: 14px; cursor: pointer; font-family: inherit;
}

.error, .warn { font-size: 13px; margin-top: 10px; }
.error { color: var(--err); }
.warn { color: #fbbf24; }

.bar { height: 12px; background: #0f0f16; border-radius: 999px; overflow: hidden; margin: 6px 0 14px; }
.bar-fill { height: 100%; width: 0%; border-radius: 999px;
            background: linear-gradient(90deg, var(--accent), var(--accent-2));
            transition: width .4s ease; }
.status { color: var(--muted); font-size: 14px; margin: 0; }

video { width: 100%; border-radius: 12px; background: #000; margin-bottom: 14px; max-height: 70vh; }
h2 { margin: 0 0 14px; font-size: 18px; }
