:root {
  --bg: #0a0a0f;
  --bg2: #14141c;
  --fg: #f4f4f4;
  --muted: #8a8a9a;
  --accent: #e91e63;
  --accent2: #00d4ff;
  --ok: #4caf50;
  --warn: #ffc107;
  --err: #f44336;
  --br: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  min-height: 100vh;
}
.container { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.brand {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.subbrand { color: var(--muted); margin-bottom: 24px; }
.card {
  background: var(--bg2);
  border-radius: var(--br);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #1f1f2a;
}
h2 { margin-bottom: 12px; font-size: 22px; }
h3 { margin-bottom: 8px; font-size: 18px; color: var(--muted); }
label { display: block; margin-top: 12px; margin-bottom: 4px; font-size: 14px; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 12px;
  background: #0a0a14; color: var(--fg);
  border: 1px solid #2a2a38;
  border-radius: 8px; font-size: 16px;
  font-family: inherit;
}
input:focus, textarea:focus { outline: 2px solid var(--accent2); }
button, .btn {
  background: var(--accent); color: white;
  padding: 12px 20px; border: none; border-radius: 8px;
  font-size: 16px; font-weight: 600; cursor: pointer;
  margin-top: 16px; display: inline-block; text-decoration: none;
}
button:hover, .btn:hover { filter: brightness(1.1); }
button.ghost { background: transparent; border: 1px solid var(--muted); color: var(--fg); }
button.ok { background: var(--ok); }
button.err { background: var(--err); }
button.warn { background: var(--warn); color: black; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.success { color: var(--ok); }
.warning { color: var(--warn); }
.error { color: var(--err); }
.nav {
  display: flex; gap: 16px; margin-bottom: 16px;
  padding: 12px 0; border-bottom: 1px solid #1f1f2a;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted); text-decoration: none; padding: 6px 12px;
  border-radius: 6px;
}
.nav a:hover, .nav a.active { color: var(--fg); background: #1f1f2a; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; text-align: left; border-bottom: 1px solid #1f1f2a; font-size: 14px; }
th { color: var(--muted); font-weight: 500; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 12px;
  font-size: 12px; font-weight: 600;
}
.badge.ok { background: var(--ok); color: white; }
.badge.no { background: #555; color: white; }
.badge.live { background: var(--err); color: white; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.checkbox-row input { width: auto; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.tile {
  background: var(--bg2); border-radius: var(--br); overflow: hidden;
  border: 1px solid #1f1f2a; cursor: pointer; position: relative;
  aspect-ratio: 16/9;
}
.tile:hover { transform: scale(1.02); transition: 0.15s; }
.tile video { width: 100%; height: 100%; object-fit: cover; background: black; }
.tile .name { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px; background: linear-gradient(transparent, rgba(0,0,0,.8)); font-weight: 600; }
.tile .live { position: absolute; top: 6px; left: 6px; }
.codeblock {
  background: #060609; padding: 10px; border-radius: 6px;
  font-family: monospace; font-size: 13px; word-break: break-all;
  border: 1px solid #1f1f2a;
}
.big-msg { font-size: 22px; padding: 20px; text-align: center; }
@media (max-width: 600px) {
  .nav { font-size: 13px; }
  .container { padding: 16px 12px; }
}
