/* Copy a video (public/video-copy.js). Same furniture as the Templates tab
   (set-group, vid-card, seg) so the two read as one page; the creative (the
   reference video, the photos) is the only thing with colour, and Generate is
   the one saturated action (DESIGN.md §0). One signature motion: a dropzone
   answers a dragged file with an accent hairline and a 2px lift of its glyph. */

.vid-tabs { margin-bottom: var(--s5, 24px); }

.vcp-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* dropzones: hairline dashed frame, glyph in a ring (from 21st.dev "File Dropzone", restyled) */
.vcp-drop-wrap { position: relative; }
.vcp-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 100%; height: 100%; min-height: 96px; padding: 12px; cursor: pointer;
  border: 1px dashed var(--border-2); border-radius: var(--r-lg); background: var(--panel-2);
  color: var(--text-2); font: inherit; text-align: center;
  transition: border-color .15s ease, background-color .15s ease;
}
.vcp-drop.is-big { min-height: 180px; gap: 6px; }
.vcp-drop:hover { border-color: var(--text-2); }
.vcp-drop:focus-visible { outline: none; box-shadow: var(--focus); }
.vcp-drop.is-over { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.vcp-drop-glyph {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--panel); color: var(--text-2);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
.vcp-drop.is-big .vcp-drop-glyph { width: 48px; height: 48px; margin-bottom: 4px; }
.vcp-drop-glyph svg { width: 18px; height: 18px; }
.vcp-drop.is-big .vcp-drop-glyph svg { width: 22px; height: 22px; }
.vcp-drop.is-over .vcp-drop-glyph { transform: translateY(-2px); color: var(--accent); }
.vcp-drop-label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.vcp-drop:not(.is-big) .vcp-drop-label { font-size: 12.5px; font-weight: 500; }
.vcp-drop-hint { font-size: 12px; color: var(--muted); }
.vcp-drop:not(.is-big) .vcp-drop-hint { display: none; }

/* the chosen reference video */
.vcp-source { display: flex; gap: var(--s4); align-items: flex-start; }
.vcp-preview { width: 132px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r); background: var(--panel-3); flex: none; }
.vcp-preview.is-wide { width: 220px; aspect-ratio: 16 / 9; }
.vcp-source-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vcp-source-meta p { margin: 0; }
.vcp-source-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcp-mono { font-family: var(--mono); font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* person + product: two slots side by side, thumbnails then an Add tile */
.vcp-slots { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.vcp-slot-head { margin: 0 0 var(--s2); font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.vcp-thumbs { display: flex; flex-wrap: wrap; gap: var(--s2); }
.vcp-thumbs > * { width: 78px; }
.vcp-thumbs .vcp-drop-wrap, .vcp-thumb { aspect-ratio: 1; }
.vcp-thumbs .vcp-drop { min-height: 0; }
.vcp-thumb { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); background: var(--panel-3); }
.vcp-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcp-thumb-x {
  position: absolute; top: 4px; right: 4px; display: grid; place-items: center;
  width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgb(20 21 24 / .72); color: #fff;
}
.vcp-thumb-x svg { width: 12px; height: 12px; }
.vcp-thumb-x:focus-visible { outline: none; box-shadow: var(--focus); }

/* the brand's own products, as small chips */
.vcp-brand { margin-top: var(--s3); }
.vcp-brand .set-note { margin: 0 0 var(--s2); }
.vcp-brand-products { display: flex; flex-wrap: wrap; gap: var(--s2); }
.vcp-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 220px; padding: 4px 10px 4px 4px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); color: var(--text); font: inherit; font-size: 12.5px;
  transition: border-color .15s ease;
}
.vcp-chip:hover { border-color: var(--border-2); }
.vcp-chip.is-sel { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.vcp-chip:focus-visible { outline: none; box-shadow: var(--focus); }
.vcp-chip-img { width: 28px; height: 28px; border-radius: var(--r-xs); object-fit: cover; background: var(--panel-3); flex: none; }
.vcp-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vcp-consent { margin-top: var(--s3); align-items: flex-start; line-height: 1.45; }
.vcp-consent input { margin-top: 2px; }
.vcp-form .vid-make:disabled { opacity: 1; background: var(--panel-3); border-color: var(--border-2); color: var(--text-2); }
.vcp-model-row { justify-content: flex-start; flex-wrap: wrap; margin: 0 0 var(--s2); }
/* Four models: the bar wraps instead of pushing the page sideways on a phone. */
.vcp-model-row .seg { flex: 0 1 auto; flex-wrap: wrap; max-width: 100%; }
/* Four models never fit one line of the card (354px, 308 on a phone), and
   wrapping left Genjutsu alone on a second line: a two-by-two plate instead,
   every cell the same width; the chosen one still slides (lot 5, 26/10). */
.vcp-model-row .seg[aria-label="Model"]:has(> button:nth-of-type(4)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1 1 100%; }
.vcp-model-row .seg[aria-label="Model"]:has(> button:nth-of-type(4)) > button { justify-content: center; }

.vcp-prompt { margin-top: 4px; font-size: 12px; }
.vcp-prompt summary { cursor: pointer; color: var(--text-2); }
.vcp-prompt p { margin: 6px 0 0; max-height: 160px; overflow: auto; white-space: pre-wrap; color: var(--muted); line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .vcp-drop, .vcp-drop-glyph, .vcp-chip { transition: none; }
  .vcp-drop.is-over .vcp-drop-glyph { transform: none; }
}
@media (max-width: 560px) {
  .vcp-slots { grid-template-columns: 1fr; }
  .vcp-source { flex-direction: column; }
}

/* Apple finish, batch 5: a product chip presses like a button; the chosen outline settles on the spring. */
.vcp-chip { transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--spring), transform var(--dur-press) var(--ease-out); }
.vcp-chip:active { transform: scale(.97); }
