/* Charte I MEERIO — Régie Playout */
:root {
  --bg: #0a0e17;
  --panel: #10172a;
  --panel-2: #162036;
  --line: #22304b;
  --text: #eef3fb;
  --muted: #8fa0be;
  --dim: #5a6b86;
  --cyan: #2ee0f2;
  --cyan-2: #26d6ee;
  --blue: #3d7bf6;
  --accent: #26d6ee;
  --accent-2: #3d7bf6;
  --grad: linear-gradient(135deg, #2ee0f2, #3d7bf6);
  --live: #ff3b5c;
  --ok: #22c38e;
  --warn: #f5b13d;
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px;
  cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap;
}
button:hover { border-color: var(--accent); }
button.primary { background: var(--grad); border: 0; color: #0a0e17; font-weight: 700; }
button.primary:hover { filter: brightness(1.1); }
button.danger { color: #ff8a96; }
button.danger:hover { border-color: var(--live); }
button.ai { background: linear-gradient(135deg, #8b5cf6, #3d7bf6); border: 0; color: #fff; font-weight: 600; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.icon { padding: 5px 8px; }
input, select, textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--panel-2); color: var(--muted);
}
.badge.live { background: var(--live); color: #fff; }
.badge.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
.badge.schedule { background: #3b2a7a; color: #cbbcff; }
.badge.playlist { background: #0d3a4a; color: #7fecf8; }
.channel-tag { border: 1px solid rgba(38,214,238,.45); color: var(--cyan-2); background: rgba(38,214,238,.08);
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo img { height: 34px; display: block; }
.logo .sub { font-size: 9px; letter-spacing: .38em; color: var(--muted); font-weight: 700; display: block; margin-top: -2px; }
.badge.manual { background: #4a3510; color: #ffd38a; }
.badge.ok { background: #0e3d2e; color: #7ff0c5; }
.badge.warn { background: #4a3510; color: #ffd38a; }
.badge.err { background: #4a1219; color: #ff9aa5; }
@keyframes pulse { 50% { opacity: .3; } }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.progress { height: 6px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad); width: 0; transition: width .5s; }
.player-wrap { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; }
.player-wrap video { width: 100%; height: 100%; display: block; background: #000; }
video::cue { background: rgba(0,0,0,.72); color: #fff; font-size: 1.05em; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
