/* ===== Generador de videos con fotos =====
   Diseño solo de esta herramienta. Se carga después de /assets/style.css. */
.vf { padding: 40px 16px 80px; }
.vf h1 { font-size: clamp(28px, 5vw, 40px); margin: 16px 0 8px; letter-spacing: -.02em; }
.vf .lead { max-width: 780px; }
.vf-layout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 20px; align-items: start; }
.vf-side { display: grid; gap: 14px; }
.vf-drop { aspect-ratio: auto; min-height: 140px; }
.vf-tip { margin: -6px 0 0; }
.vf-tip a, .vf-opt .hint a { color: var(--brand-2); font-weight: 600; }
.vf-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vf-head .btn { width: auto; }
#photos-box > .hint { margin: 4px 0 8px; }
.vf-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; max-height: 360px; overflow: auto; padding: 2px; }
.vf-ph { position: relative; border-radius: 8px; overflow: hidden; background: #000; aspect-ratio: 1; border: 2px solid transparent; cursor: grab; }
.vf-ph.drag { opacity: .4; }
.vf-ph.over { border-color: var(--brand); }
.vf-ph img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.vf-ph .n { position: absolute; top: 3px; left: 3px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 99px; }
.vf-ph .x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; }
.vf-ph .mv { position: absolute; bottom: 3px; left: 3px; right: 3px; display: flex; justify-content: space-between; }
.vf-ph .mv button { width: 24px; height: 22px; border-radius: 6px; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; font-size: 12px; }
.vf-opts { display: grid; gap: 14px; }
.vf-opt { display: grid; gap: 6px; margin: 0; font-size: 14px; font-weight: 600; }
.vf-opt select { padding: 9px 10px; font-size: 14px; font-weight: 400; }
.vf-opt input[type=range] { width: 100%; accent-color: var(--brand); }
.vf-opt .hint { margin: 0; font-weight: 400; }
.vf-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.vf-seg button { font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.vf-seg button.active { color: var(--text); border-color: var(--brand); background: rgba(98, 70, 234, .12); }
.vf-music { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vf-music .btn { width: auto; margin: 0; }
.vf-music .hint { margin: 0; font-weight: 400; word-break: break-all; }
.vf-main { position: sticky; top: 84px; display: grid; gap: 12px; }
.vf-stage { position: relative; background: #0b0d12; border-radius: 14px; display: grid; place-items: center; min-height: 320px; padding: 12px; }
.vf-stage canvas { display: block; max-width: 100%; max-height: 62vh; border-radius: 6px; background: #000; }
.vf-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #9aa3b2; text-align: center; padding: 20px; }
.vf-empty[hidden] { display: none; }
.vf-play { display: flex; align-items: center; gap: 10px; }
.vf-play .btn { width: auto; flex-shrink: 0; }
.vf-play input[type=range] { flex: 1; min-width: 0; accent-color: var(--brand); }
.vf-play .hint { margin: 0; flex-shrink: 0; font-variant-numeric: tabular-nums; }
#export:disabled, #play:disabled { opacity: .5; cursor: not-allowed; }
.vf-done { display: grid; gap: 6px; }
.vf-done .hint { margin: 0; }
.vf-done a { color: var(--brand-2); font-weight: 600; }
#file-msg .nudge { margin-top: 4px; }
#file-msg:empty { display: none; }
@media (max-width: 900px) {
  .vf-layout { grid-template-columns: minmax(0, 1fr); }
  .vf-main { position: static; }
  .vf-stage { min-height: 220px; }
}
