/* ===================================================================
   feeds.css — floating camera-feed field  (VIDEO-ASSETS workstream)
   Owns: .feed-field, .feed and all its inner layers, selection + ripple.
   Paired with js/feeds.js.
   Real video: a feed's .scene may be a <video> (see js/feeds.js) — the
   `.feed video.scene` rule below makes it cover the tile like the placeholder.
   =================================================================== */
/* full-width field so feeds can be pinned to the viewport edges in js/feeds.js */
.feed-field{position:absolute;top:104px;left:0;right:0;bottom:0;z-index:-2;pointer-events:none}
/* below this the side gutters can't show a whole feed clear of the title, so
   the edge-float layout doesn't fit — instead lay the feeds out as a visible
   grid below the hero content (all six shown). The cursor stays gated off in
   composer.js; the active feed still lights up + plays via the .selected state. */
/* below this the side gutters can't show a whole feed clear of the title, so
   the edge-float layout doesn't fit — hide the ambient field entirely. On
   mobile/tablet the active camera is shown INSIDE the composer card instead
   (see .composer-preview in css/composer.css, driven by js/composer.js). */
@media(max-width:1240px){.feed-field{display:none}}
.feed{
  position:absolute;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 24px 60px rgba(0,0,0,0.5);
  opacity:0;
  /* feeds are ambient background — dimmed so they recede behind the composer;
     the selected feed pops to full when the cursor clicks it (rule below) */
  filter:saturate(.9) brightness(.6) opacity(.82);
  transition:filter .3s ease;
  animation:feedIn 1.1s cubic-bezier(0.16,1,0.3,1) forwards, drift linear infinite;
}
@keyframes feedIn{to{opacity:1}}
@keyframes drift{
  0%{transform:translate(0,0)}
  25%{transform:translate(14px,-18px)}
  50%{transform:translate(-10px,-30px)}
  75%{transform:translate(-16px,-12px)}
  100%{transform:translate(0,0)}
}
.feed .scene{position:absolute;inset:0;background-size:cover}
.feed video.scene{width:100%;height:100%;object-fit:cover}
.feed .scanlines{position:absolute;inset:0;background:repeating-linear-gradient(to bottom,rgba(0,0,0,0) 0 2px,rgba(0,0,0,0.16) 2px 3px);mix-blend-mode:multiply;opacity:.5}
.feed .vign{position:absolute;inset:0;background:radial-gradient(120% 120% at 50% 40%,transparent 45%,rgba(0,0,0,0.42))}
.feed .bar{position:absolute;top:0;left:0;right:0;height:22px;display:flex;align-items:center;gap:6px;padding:0 8px;background:linear-gradient(to bottom,rgba(0,0,0,0.6),transparent);font-family:var(--mono);font-size:9px;letter-spacing:.04em;color:rgba(255,255,255,.82);white-space:nowrap;overflow:hidden}
.feed .bar .cam{flex:none}
.feed .rec{width:6px;height:6px;border-radius:50%;background:#ff4d4d;box-shadow:0 0 8px #ff4d4d;animation:blink 1.4s steps(2) infinite}
@keyframes blink{50%{opacity:.25}}

/* selection state (set by js/composer.js when the cursor clicks a feed):
   the chosen feed lights up to full brightness so the pick is obvious */
.feed.selected{filter:saturate(1.06) brightness(1) opacity(1)!important;border-color:var(--text)!important;box-shadow:0 0 0 1px var(--text),0 0 30px rgba(247,248,250,.22),0 24px 60px rgba(0,0,0,0.5)!important}
.feed .sel-badge{position:absolute;left:8px;bottom:8px;font-family:var(--mono);font-size:8px;font-weight:500;letter-spacing:.05em;background:var(--emphasis);color:var(--bg);padding:2px 6px;border-radius:3px;opacity:0;transition:opacity .2s ease;text-transform:uppercase}
.feed.selected .sel-badge{opacity:1}
.ripple{position:absolute;border-radius:50%;border:2px solid var(--text);pointer-events:none;transform:translate(-50%,-50%);animation:ripple .6s ease-out forwards}
@keyframes ripple{from{width:6px;height:6px;opacity:.9}to{width:92px;height:92px;opacity:0}}
