[hidden] { display: none !important; }
/* Vidicap OR brand: graphite #414143, orange #ff6f00, white capsule */
:root {
  --bg: #f4f4f5; --card: #fff; --panel: #ececee; --line: #e1e1e4; --text: #2c2c2e; --ink: #414143;
  --muted: #76767c; --accent: #ff6f00; --accent-hi: #ff8a2e; --accent-soft: #fff1e6; --ok: #2e9e3e; --off: #d6322f;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: #e25f00; text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 26px; margin: 8px 0 18px; font-weight: 600; color: var(--ink); }
h2 { font-size: 19px; margin: 6px 0 12px; }
h3 { font-size: 15px; margin: 16px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.muted { color: var(--muted); } .small { font-size: 13px; } .danger { color: var(--off); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px;
  background: #fff; border-bottom: 3px solid var(--accent); flex-wrap: wrap; }
.brand { color: var(--ink); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; } .brand img { height: 40px; display: block; }
.brand .edition { color: var(--muted); letter-spacing: .04em; }
.topbar nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar nav a { color: var(--ink); }
.page { max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card.narrow { max-width: 460px; margin: 60px auto; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.columns.broadcast { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: start; }
@media (max-width: 860px) { .columns.broadcast { grid-template-columns: 1fr; } }
input.copy { width: 100%; } details summary { cursor: pointer; margin: 10px 0; }
.btn { display: inline-block; background: var(--panel); color: var(--ink); border: 1px solid #d6d6da; border-radius: 999px;
  padding: 9px 18px; font: inherit; font-weight: 500; cursor: pointer; }
.btn:hover { background: #e2e2e6; text-decoration: none; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; } .btn.accent:hover { background: var(--accent-hi); }
.btn.danger { background: var(--off); border-color: var(--off); color: #fff; }
.btn:disabled { opacity: .5; cursor: default; } .btn.small { font-size: 13px; padding: 4px 10px; vertical-align: middle; } .btn.wide { width: 100%; }
button.link { background: none; border: 0; color: #e25f00; cursor: pointer; font: inherit; padding: 0; }
form.inline { display: inline; } .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .row.top { margin-top: 18px; }
input, select, textarea { background: #fff; color: #222; border: 1px solid #cfcfd4; border-radius: 8px; padding: 8px 10px; font: inherit; }
form p label { display: block; margin-bottom: 4px; color: var(--muted); }
form p input:not([type=checkbox]), form p select, form p textarea { width: 100%; }
.helptext, .errorlist { font-size: 13px; color: var(--muted); } .errorlist { color: var(--off); }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; background: var(--accent-soft); border-left: 4px solid var(--accent); }
.flash.success { border-color: var(--ok); } .flash.error { border-color: var(--off); }
.flash.warning { border-color: #e2b93b; }
table { width: 100%; border-collapse: collapse; } td, th { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
input.copy { width: 100%; font-size: 12px; }
ul.plain { list-style: none; padding: 0; margin: 0 0 8px; } ul.plain li { padding: 4px 0; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; } dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; }
.code { font: 700 34px/1 ui-monospace, monospace; letter-spacing: .12em; background: var(--accent-soft); color: var(--ink); padding: 14px; border-radius: 8px; text-align: center; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; } .dot.on { background: var(--ok); } .dot.off { background: var(--off); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.point { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; color: var(--text); min-height: 110px; }
.point:hover { border-color: var(--accent); text-decoration: none; box-shadow: 0 2px 10px rgba(255,111,0,.12); } .point strong { font-size: 17px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.badge i { width: 10px; height: 10px; border-radius: 50%; background: #b9b9be; }
.badge .on { display: none; } .live .badge, .badge.live { color: var(--off); }
.live .badge i, .badge.live i { background: var(--off); box-shadow: 0 0 0 4px rgba(214,50,47,.25); animation: pulse 1.6s infinite; }
.live .badge .on, .badge.live .on { display: inline; } .live .badge .off, .badge.live .off { display: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(208,48,48,.1); } }
.watch { padding: 14px 16px; max-width: 1600px; margin: 0 auto; }
.watch-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.watch-head h1 { margin: 0 0 12px; }
.watch-body { display: grid; grid-template-columns: 1fr 340px; gap: 14px; }
@media (max-width: 900px) { .watch-body { grid-template-columns: 1fr; } }
.player { position: relative; background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
/* any aspect ratio (screens, portrait phones, 4:3 endoscopes) is fitted and centred */
.player video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #000;
  object-fit: contain; object-position: 50% 50%; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; color: #b9b9be; font-size: 18px;
  pointer-events: none; text-align: center; padding: 20px; }
.overlay.hidden { display: none; }
.watermark { position: absolute; right: 14px; top: 10px; color: rgba(255,255,255,.28); font-size: 14px; pointer-events: none;
  user-select: none; }
.chat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column;
  min-height: 300px; max-height: calc(100vh - 140px); padding: 12px; }
.chat ol { list-style: none; margin: 0 0 10px; padding: 0; overflow-y: auto; flex: 1; }
.chat li { padding: 6px 2px; border-bottom: 1px solid var(--line); word-wrap: break-word; }
.chat li .who { font-weight: 600; } .chat li .who.guest { color: var(--muted); } .chat li time { color: var(--muted); font-size: 12px; margin-left: 6px; }
.chat li .hide { float: right; font-size: 12px; }
.chat form { display: flex; gap: 6px; } .chat input { flex: 1; }
.hero-logo { display: block; width: 100%; max-width: 360px; margin: 0 auto 6px; }
.center { text-align: center; }
.login h1 { margin-top: 18px; }
.side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.side .chat { flex: 1; }
.voice { margin: 0; padding: 14px 16px; }
.voice h2 { margin-top: 0; }
.voice-people li::before { content: "🎙 "; } .voice-people li.muted-mic::before { content: "🔇 "; }
.copy-row { display: flex; gap: 6px; align-items: center; } .copy-row input { flex: 1; min-width: 0; }
.voice-on { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.voice-modes label { margin-right: 10px; }
.voice-talk { user-select: none; touch-action: none; padding: 14px; }
.voice-talk.talking { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 4px rgba(255,111,0,.25); }
kbd { border: 1px solid #cfcfd4; border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; font: 12px ui-monospace, monospace; background: #fff; }
.voice-people li.talking::before { content: "🗣 "; }
