/* Beam web. Black and white, matching the Mac app (desktop/src/renderer/library/index.html).
   Record red is the only colour. */
:root {
  --bg:#0a0a0b; --surface:#141416; --surface-2:#1a1a1d; --line:#242429; --line-hi:#38383e;
  --ink:#f5f5f6; --muted:#8a8a90; --dim:#57575d; --rec:#ec4444;
  --sans:'Hanken Grotesk', -apple-system, system-ui, sans-serif;
  --mono:'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing:border-box; }
html, body { height:100%; }
body { margin:0; background:var(--bg); color:var(--ink); font:15px/1.5 var(--sans); -webkit-font-smoothing:antialiased; }
a { color:var(--ink); }

.wrap { max-width:940px; margin:0 auto; padding:22px 16px 64px; }
header.bar { display:flex; align-items:center; gap:12px; margin-bottom:22px; }
header.bar h1 { font-size:15px; font-weight:700; letter-spacing:-0.01em; margin:0; display:flex; align-items:center; gap:9px; }
header.bar .right { margin-left:auto; display:flex; gap:8px; align-items:center; }

h2 { font:600 12px/1 var(--mono); color:var(--muted); text-transform:uppercase; letter-spacing:.03em; margin:26px 0 10px; }
.mono { font-family:var(--mono); font-size:11.5px; }
.muted { color:var(--muted); }
.card { background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:16px; }
.row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

button, .btn { font:600 12px/1 var(--sans); cursor:pointer; border-radius:8px; padding:9px 14px;
  background:var(--surface); border:1px solid var(--line); color:var(--ink); }
button:hover:not(:disabled), .btn:hover { border-color:var(--line-hi); }
button:disabled { opacity:.35; cursor:default; }
button.primary { background:var(--ink); color:var(--bg); border:0; border-radius:10px; padding:13px 18px; font-weight:700; font-size:13px; }
button.primary:active:not(:disabled) { transform:scale(.98); }
button.icon { width:30px; height:30px; padding:0; border:0; background:none; color:var(--muted); border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center; transition:background .12s, color .12s; }
button.icon:hover { background:rgba(255,255,255,.08); color:var(--ink); }

label.check { display:inline-flex; gap:7px; align-items:center; font-size:13px; }
select { font:inherit; font-size:13px; color:var(--ink); background:var(--surface-2);
  border:1px solid var(--line); border-radius:8px; padding:8px 9px; }

.dot { width:9px; height:9px; border-radius:50%; background:var(--rec); display:inline-block; }
.live .dot { animation:beat 1.3s infinite; }
.paused .dot { animation:none; opacity:.5; }
@keyframes beat { 50% { opacity:.3; } }
.timer { font-family:var(--mono); font-variant-numeric:tabular-nums; font-size:22px; }

.bar-progress { height:6px; background:var(--surface-2); border-radius:3px; overflow:hidden; margin-top:10px; }
.bar-progress i { display:block; height:100%; width:0; background:var(--ink); transition:width .25s; }

video { width:100%; background:#000; border-radius:10px; display:block; }
.player-wrap { position:relative; }
.spinner { position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font:500 12px/1 var(--mono); color:var(--muted); background:rgba(10,10,11,.55); border-radius:10px; }

.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:14px; }
.tile { background:var(--surface); border:1px solid var(--line); border-radius:10px; overflow:hidden;
  transition:border-color .12s, transform .12s; }
.tile:hover { border-color:var(--line-hi); transform:translateY(-2px); }
.tile .thumb { aspect-ratio:16/10; background:var(--surface-2) center/cover no-repeat; display:block; }
.tile .meta { padding:10px 12px; }
.tile .meta b { display:block; font-size:13px; font-weight:600; }
.tile.pending { opacity:.5; }
.badge { font:500 10px/1 var(--mono); border:1px solid var(--line-hi); border-radius:4px; padding:3px 5px; color:var(--muted); }

.notice { border:1px solid var(--line); background:var(--surface-2); border-radius:8px; padding:11px 13px;
  font-size:13px; color:var(--muted); }
.notice.bad { border-color:var(--rec); color:var(--ink); }

/* Watch page: the video leads, everything else is small and underneath. */
.watch { max-width:900px; margin:0 auto; padding:18px 16px 60px; }
.watch h1 { font-size:17px; margin:16px 0 4px; }
.watch .by { color:var(--muted); font-size:13px; }

@media (max-width:520px) {
  .wrap, .watch { padding-left:16px; padding-right:16px; }
  .grid { grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); }
}
