:root {
  color-scheme: dark;
  --bg: #0f172a;
  --card: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 760px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h1 {
  margin-bottom: 0.25rem;
}

.subtitle {
  color: var(--muted);
  margin-top: 0;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
}

input,
select {
  width: 100%;
  border: 1px solid #334155;
  background: #0b1220;
  color: var(--text);
  border-radius: 8px;
  padding: 0.65rem;
  margin-bottom: 0.75rem;
}

.actions {
  display: flex;
  gap: 0.5rem;
}

button {
  border: 0;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: var(--primary-hover);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  min-height: 1.2rem;
  color: var(--muted);
}

.video-meta {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.video-meta img {
  width: 220px;
  max-width: 40%;
  border-radius: 8px;
  object-fit: cover;
}

.hidden {
  display: none;
}

.progress-wrap {
  margin-top: 0.9rem;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 99px;
  background: #0b1220;
  border: 1px solid #334155;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width 0.25s ease;
}
