/* Footage (13.13, footage.js): every full recording and upload as a grid of 16:9 pictures, each opening a drawer with
   its player and what can be done with it. Card-free like the rest of the app (flat.css): the picture is the card, the
   words sit under it. Colours come from the app's tokens, so Light and Dark both follow. */
.ft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 26px 20px; margin-top: 8px; }
.ft-card { cursor: pointer; min-width: 0; display: grid; gap: 10px; outline: none; border-radius: 14px; }
.ft-card:focus-visible { box-shadow: 0 0 0 3px var(--focus); }
.ft-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--media-bg);
  border: 1px solid var(--rule-2, var(--rule)); }
.ft-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.ft-card:hover .ft-media img { transform: scale(1.03); }
.ft-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); }
.ft-ph .icon { width: 34px; height: 34px; }
.ft-media .dur { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px;
  border-radius: 6px; background: rgba(4, 10, 22, .78); color: #fff; font: 650 12px/1.3 var(--font); font-variant-numeric: tabular-nums; }
.ft-card.thin .ft-media img { filter: saturate(.75); opacity: .86; }
.ft-body { display: grid; gap: 3px; min-width: 0; }
.ft-body b { font-size: 15px; color: var(--text); }
.ft-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--text-3); font-size: 13px; }
.ft-where { color: var(--text-2); font-size: 13px; line-height: 1.4; }
.ft-leave { color: var(--amber, #b45309); font-size: 12.5px; }
.ft-sum { margin: 0 0 14px; color: var(--text-3); font-size: 13.5px; }
.ft-note { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 22px; padding: 14px 0; border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule); }
.ft-note .grow { display: grid; gap: 3px; min-width: min(100%, 260px); flex: 1; }
.ft-note b { color: var(--text); font-size: 14.5px; }
.ft-note span { color: var(--text-3); font-size: 13.5px; line-height: 1.45; }
.ft-empty { grid-column: 1 / -1; }

/* the drawer: the player on top, then its name and what can be done with it */
.ft-drawer { display: grid; gap: 16px; min-width: 0; }
.ft-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.ft-stage video, .ft-stage img { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.ft-stage img { object-fit: cover; opacity: .55; }
.ft-over { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 16px; text-align: center;
  color: #fff; background: linear-gradient(180deg, rgba(4, 10, 22, .15), rgba(4, 10, 22, .6)); }
.ft-over p { margin: 0; max-width: 46ch; font-size: 14.5px; line-height: 1.45; }
.ft-over small { color: rgba(255, 255, 255, .82); font-size: 12.5px; max-width: 46ch; }
.ft-head h2 { margin: 0; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.ft-head p { margin: 4px 0 0; }
.ft-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-keep { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--rule); }
.ft-keep .link.danger { color: var(--red, #dc2626); background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; }
@media (max-width: 560px) {
  .ft-grid { gap: 22px; }
  .ft-acts .btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
}

/* Share (13.13, share.js): the small dialog for a link, or for a video that took longer than a press lasts */
.sh-box { display: grid; gap: 12px; min-width: 0; }
.sh-head { display: flex; align-items: center; gap: 10px; }
.sh-head h3 { margin: 0; font-size: 18px; }
.sh-head .icon { width: 20px; height: 20px; color: var(--accent-text); }
.sh-title { margin: -4px 0 0; color: var(--text-3); font-size: 13.5px; }
.sh-body { display: grid; gap: 12px; min-width: 0; }
.sh-wait { display: flex; align-items: center; gap: 14px; padding: 6px 0; }
.sh-spin { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2.5px solid var(--rule); border-top-color: var(--accent-text);
  animation: sh-spin .9s linear infinite; }
@keyframes sh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sh-spin { animation-duration: 2.4s; } }
.sh-lead { margin: 0; color: var(--text-2); }
.sh-alt { justify-self: center; background: none; border: 0; color: var(--accent-text); cursor: pointer; font-size: 13.5px; }
.sh-lab { color: var(--text-3); font-size: 13px; }
.sh-row { display: flex; gap: 8px; min-width: 0; }
.sh-row .input { flex: 1; min-width: 0; font-size: 13.5px; }
.sh-apps { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--rule); }
.sh-foot .link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; color: var(--accent-text); font-size: 13.5px; text-decoration: none; }
.sh-foot .link.dim { color: var(--text-3); }
