:root {
  --bg: #0f1419;
  --panel: #1a2330;
  --line: #2b3a4d;
  --text: #e8eef5;
  --muted: #93a4b8;
  --accent: #3d8bfd;
  --accent-dark: #1f6feb;
  --ok: #3fb950;
  --warn: #d29922;
  --danger: #f85149;
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

h1, h2 { margin: 0 0 16px; }
p { color: var(--muted); }

label {
  display: block;
  margin: 12px 0 6px;
  font-size: 14px;
  color: var(--muted);
}

input, select, textarea, button {
  font: inherit;
}

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0f1720;
  color: var(--text);
}

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 600;
}

button:hover, .btn:hover { background: var(--accent-dark); }
button.secondary { background: #314155; }
button.danger { background: var(--danger); }

.row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

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

.video-list { display: grid; gap: 12px; }

.video-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #121a24;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #314155;
}

.badge.ok { background: #16351f; color: var(--ok); }
.badge.warn { background: #3d2e0d; color: var(--warn); }
.badge.err { background: #3d1212; color: var(--danger); }

.error {
  background: #3d1212;
  color: #ffd8d6;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0;
}

.empty { padding: 24px; text-align: center; color: var(--muted); }

video {
  width: 100%;
  background: black;
  border-radius: 10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.user-picks {
  display: grid;
  gap: 8px;
  margin: 8px 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1720;
}

.user-picks .pick {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: var(--text);
}

.user-picks input {
  width: auto;
}

@media (max-width: 720px) {
  .grid-2, .video-item, .row, .topbar { display: block; }
  .video-item button { margin-top: 12px; width: 100%; }
}
