/* VidLab API platform: Systems (pages/systems.js). Prefix: vlsy-. Our dark look: quiet panels, hairlines, no gradients,
 * glass or blur; "Make this" is a plain button on every tile (the view has no one white pill: nothing is the one action). */
/* The page's full width, like Home and the rest (owner 2026-11-11), no cap. */
.vlsy { width: 100%; }
.vlsy-top { margin-bottom: 24px; }
.vlsy-top .vla-sub { max-width: 720px; margin-top: 8px; font-size: 15px; line-height: 1.5; }
.vlsy-note { margin: 0; padding: 32px 4px; color: var(--vla-ink-3); }

/* Picture cards (owner 2026-11-13: "cleaner"): the example picture, the name and one line; the whole card opens the
 * system's pop-up. */
.vlsy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.vlsy-card { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 1px solid var(--vla-line); border-radius: 16px; background: var(--vla-panel); color: var(--vla-ink); font: inherit; text-align: left; cursor: pointer; transition: border-color 150ms ease, transform 200ms var(--vla-ease); }
.vlsy-card:hover { border-color: var(--vla-line-2); transform: translateY(-2px); }
.vlsy-card:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vlsy-card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--vla-panel-2); }
.vlsy-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--vla-ease); }
.vlsy-card:hover .vlsy-card__media img { transform: scale(1.03); }
/* A system's example video over its picture (2026-11-13): unseen until it plays, so a video that is slow, or not there,
   never shows a black box in place of the picture. */
.vlsy-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 240ms var(--vla-ease); pointer-events: none; }
.vlsy-clip.is-on { opacity: 1; }
.vlsy-card__none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--vla-ink-3); }
.vlsy-card__body { display: grid; gap: 4px; padding: 14px 16px 18px; }
.vlsy-card__t { font: 500 16px/1.3 var(--vla-font-display); letter-spacing: -0.01em; }
.vlsy-card__d { font-size: 13.5px; line-height: 1.45; color: var(--vla-ink-2); }
@media (prefers-reduced-motion: reduce) {
  .vlsy-card, .vlsy-card__media img { transition: none; }
  .vlsy-card:hover, .vlsy-card:hover .vlsy-card__media img { transform: none; }
}
@media (max-width: 640px) {
  .vlsy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vlsy-card__body { padding: 10px 12px 14px; }
  .vlsy-card__t { font-size: 15px; }
  .vlsy-card__d { font-size: 12.5px; }
}

/* ---------- a system's pop-up (window.VLSYS.open: this page and Home) ---------- */
.vla-dialog.vlsy-dlg { width: min(860px, calc(100vw - 32px)); border-radius: 20px; }
.vlsy-dlg .vla-dialog__box { padding: 0; }
.vlsy-pop { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.vlsy-pop__media { position: relative; min-height: 320px; background: var(--vla-panel-2); }
.vlsy-pop__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vlsy-pop__none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--vla-ink-3); }
.vlsy-pop__body { min-width: 0; padding: 28px; }
.vlsy-pop__k { margin: 0 0 8px; font: 500 11.5px/1 var(--vla-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--vla-ink-3); }
.vlsy-pop__t { margin: 0; }
.vlsy-pop__d { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--vla-ink-2); }
.vlsy-pop__api { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--vla-line-2); border-radius: 12px; background: var(--vla-panel-2); font-size: 13.5px; line-height: 1.5; color: var(--vla-ink-2); }
.vlsy-pop__api b { color: var(--vla-ink); font-weight: 500; }
.vlsy-pop__code { margin: 14px 0 0; padding: 14px; overflow-x: auto; border: 1px solid var(--vla-line); border-radius: 12px; background: var(--vla-field); font: 12.5px/1.6 var(--vla-code); color: var(--vla-ink-2); white-space: pre; }
.vlsy-pop__codewrap { position: relative; }
.vlsy-pop__code { cursor: copy; transition: border-color 150ms ease, background-color 150ms ease; }
.vlsy-pop__code:hover { border-color: var(--vla-line-2); background: #0d0d0d; }
.vlsy-pop__copied { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border: 1px solid var(--vla-line-2); border-radius: 8px; background: var(--vla-panel-2); color: var(--vla-ink); font-size: 12.5px; font-weight: 500; opacity: 0; transform: translateY(-2px); transition: opacity 150ms ease, transform 150ms ease; pointer-events: none; }
.vlsy-pop__copied svg { color: var(--vla-ok); }
.vlsy-pop__codewrap.is-copied .vlsy-pop__copied { opacity: 1; transform: none; }
.vlsy-pop__code:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vlsy-pop__hint { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--vla-ink-3); }
.vlsy-pop__hint code { font: 12px var(--vla-code); color: var(--vla-ink-2); }
.vlsy-pop__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
body.vla .vlsy-pop__btn { height: 46px; justify-content: center; font-size: 15px; font-weight: 500; border-radius: 12px; }
body.vla .vlsy-pop__btn:not(.vla-btn--primary) { border: 1px solid var(--vla-line-2); background: var(--vla-panel-2); color: var(--vla-ink); }
body.vla .vlsy-pop__btn:not(.vla-btn--primary):hover { border-color: rgba(255, 255, 255, .24); background: var(--vla-hover-2); }
body.vla .vlsy-pop__btn.vla-btn--primary { background: #fff; color: #0a0a0a; border-color: #fff; box-shadow: 0 6px 20px rgba(255, 255, 255, .12); }
.vlsy-pop__x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--vla-ink-2); cursor: pointer; }
.vlsy-pop__x:hover { color: var(--vla-ink); }
.vlsy-pop__x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 700px) {
  .vlsy-pop { grid-template-columns: minmax(0, 1fr); }
  .vlsy-pop__media { min-height: 0; aspect-ratio: 16 / 9; }
  .vlsy-pop__body { padding: 20px; }
}
