/* OIKANIA TV – gemeinsames Design */
:root {
  --navy: #1a1f41;
  --navy-2: #232a55;
  --navy-3: #2e3668;
  --gold: #b9822c;
  --gold-2: #d39c45;
  --text: #f4f1ea;
  --muted: #a9adc6;
  --danger: #c2453d;
  --ok: #3e9d6a;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--navy);
  color: var(--text);
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
a { color: var(--gold-2); }
.brand { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.5rem; letter-spacing: .02em; }
.brand b { color: var(--gold); font-weight: 400; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 16px; }
header.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.card { background: var(--navy-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 16px; }
.muted { color: var(--muted); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stack > * + * { margin-top: 10px; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--navy);
  border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 9px 11px; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
button, .btn {
  font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 8px;
  padding: 9px 14px; background: var(--gold); color: var(--navy); text-decoration: none; display: inline-block;
}
button:hover, .btn:hover { background: var(--gold-2); }
button.ghost { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.25); }
button.ghost:hover { border-color: var(--gold); }
button.danger { background: var(--danger); color: #fff; }
button.small { padding: 5px 10px; font-size: .9rem; }
button:disabled { opacity: .5; cursor: default; }
button.off { background: var(--danger); color: #fff; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.pill.live { background: var(--danger); color: #fff; }
.pill.wait { background: var(--navy-3); color: var(--muted); }
.pill.on { background: var(--ok); color: #fff; }
.hidden { display: none !important; }

/* Video-Raster */
.stage { position: relative; background: #0d1028; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; width: 100%; }
.grid { position: absolute; inset: 0; display: grid; gap: 4px; padding: 4px; grid-template-columns: repeat(var(--cols, 1), 1fr); }
.tile { position: relative; background: #000; border-radius: 8px; overflow: hidden; min-height: 0; }
.tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .label { position: absolute; left: 8px; bottom: 8px; background: rgba(26,31,65,.75); padding: 2px 8px; border-radius: 6px; font-size: .85rem; }
.tile .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-family: 'Instrument Serif', serif; font-size: 2rem; }

/* Einblendungen */
.lowerthird {
  position: absolute; left: 4%; bottom: 8%; max-width: 70%;
  background: var(--navy); border-left: 6px solid var(--gold); padding: 10px 18px; border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0,0,0,.4); transition: opacity .4s, transform .4s;
}
.lowerthird .n { font-family: 'Instrument Serif', serif; font-size: clamp(1.1rem, 3vw, 2rem); line-height: 1.1; }
.lowerthird .t { color: var(--gold-2); font-size: clamp(.75rem, 1.8vw, 1.05rem); }
.question {
  position: absolute; right: 4%; top: 6%; max-width: 46%;
  background: rgba(26,31,65,.92); border: 1px solid var(--gold); padding: 10px 14px; border-radius: 10px;
  font-size: clamp(.8rem, 2vw, 1.1rem); transition: opacity .4s;
}
.question .q { color: var(--gold-2); font-size: .8em; text-transform: uppercase; letter-spacing: .08em; }
.fade { opacity: 0; transform: translateY(8px); pointer-events: none; }

.center-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; }
.center-msg h2 { margin-bottom: .2em; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--navy-3); border: 1px solid var(--gold); padding: 8px 16px; border-radius: 8px; z-index: 50; }
