:root {
  --bg: #0a0a0a;
  --fg: #f5f5f5;
  --muted: #888;
  --accent: #fff;
  --error: #ff5050;
  --border: #2a2a2a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.card {
  width: min(560px, 92vw);
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

h1 {
  margin: 0 0 2rem;
  font-weight: 200;
  font-size: 2rem;
  letter-spacing: 0.3em;
}

label {
  display: block;
  margin: 1.25rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

input[type="url"], input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
}

input[type="range"] { width: 100%; }

button {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--fg);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-transform: uppercase;
}

button:disabled { opacity: 0.4; cursor: progress; }

.status { color: var(--muted); margin-top: 1rem; }
.error { color: var(--error); margin-top: 1rem; }

#result { margin-top: 1.5rem; }
#player { width: 100%; }
#download-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--fg);
  border-bottom: 1px solid var(--muted);
  text-decoration: none;
  padding-bottom: 1px;
}
