/* Экран видео — по higgsfield.ai/ai/video. Числа: _ref/higgsfield/ЗАМЕРЫ-видео-и-просмотр.md */

body.mode-video .toolbar, body.mode-video .feed, body.mode-video .dock { display: none; }
body.is-booting .vl { visibility: hidden; }
.vl { position: fixed; top: 44px; left: 16px; right: 17px; bottom: 16px; display: flex; gap: 8px; }

.vl-side {
  width: 320px; flex: none; display: flex; flex-direction: column; min-height: 0;
  background: #131517; border-radius: 20px; border: 1px solid rgba(217, 217, 217, 0.04);
}
.vl-tabs { display: flex; gap: 12px; padding: 12px 16px 0; }
.vl-tab { height: 36px; display: flex; align-items: center; border-bottom: 2px solid transparent; font-size: 14px; line-height: 20px; font-weight: 500; color: rgba(255, 255, 255, 0.6); }
.vl-tab.is-on { color: var(--white); border-bottom-color: var(--white); }
.vl-form { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; }
.vl-foot { padding: 0 16px 12px; }

.vl-preset { position: relative; height: 130px; border-radius: 12px; overflow: hidden; background: #1c1e20; flex: none; }
.vl-preset video, .vl-preset img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.vl-preset::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0) 60%); pointer-events: none; }
.vl-preset-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 6px 12px 12px; }
/* у донора Space Grotesk 20/28 700 прописными; кириллицы в нём нет — Inter */
.vl-preset-title { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: -0.2px; }
.vl-preset-sub { font-size: 12px; line-height: 18px; color: rgba(255, 255, 255, 0.8); }
/* строже, чем «.vl-side .chip-wrap» ниже — иначе кнопка уезжает в левый угол */
.vl-side .vl-preset > .chip-wrap { position: absolute; top: 6px; right: 6px; z-index: 3; }
.vl-change {
  height: 24px; padding: 0 8px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(27, 27, 27, 0.3); border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px; line-height: 16px; font-weight: 500; color: var(--white);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.vl-change .ico { width: 14px; height: 14px; }

.vl-seg { display: flex; padding: 4px; border-radius: 12px; background: #1c1e20; flex: none; }
.vl-seg button { flex: 1; height: 40px; border-radius: 10px; font-size: 14px; line-height: 20px; font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.vl-seg button.is-on { background: rgba(255, 255, 255, 0.1); color: var(--white); }

.vl-drop {
  height: 120px; flex: none; padding: 16px; border-radius: 16px; background: #1c1e20; border: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.vl-drop.is-drop { border-color: var(--primary); }
.vl-slot { position: relative; width: 48px; height: 48px; border-radius: 12px; background: #23262a; display: grid; place-items: center; color: #898a8b; flex: none; margin-bottom: 18px; }
.vl-slot .ico { width: 16px; height: 16px; }
.vl-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.vl-slot.is-loading img { opacity: .4; }
.vl-slot-cap { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: 11px; line-height: 14px; color: #898a8b; white-space: nowrap; }
.vl-slot-rm { position: absolute; top: -6px; right: -6px; z-index: 1; width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; background: #2a2d31; border: 1px solid rgba(217, 217, 217, 0.04); color: var(--white); }
.vl-slot-rm .ico { width: 8px; height: 8px; stroke-width: 2.5; }
.vl-arrow { color: #5f6164; margin-bottom: 18px; }
.vl-arrow .ico { width: 16px; height: 16px; }

.vl-prompt { position: relative; flex: none; border-radius: 12px; background: #1c1e20; border: 1px solid rgba(217, 217, 217, 0.04); }
.vl-prompt-label { position: absolute; left: 12px; top: 12px; font-size: 14px; line-height: 20px; font-weight: 500; color: #898a8b; pointer-events: none; }
.vl-prompt textarea {
  display: block; width: 100%; height: 210px; padding: 36px 12px 12px; border: 0; outline: none; resize: none; background: none;
  font-size: 14px; line-height: 20px; color: #f7f7f8; scrollbar-width: thin;
}
.vl-prompt textarea::placeholder { color: #5f6164; }
.vl-under { display: flex; gap: 6px; padding: 0 12px 12px; flex-wrap: wrap; }
.vl-under .chip-wrap { position: relative; }
.vl-pill {
  height: 24px; padding: 4px 6px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px;
  background: #131517; font-size: 12px; line-height: 16px; font-weight: 500; color: #898a8b; white-space: nowrap;
}
.vl-pill .ico { width: 14px; height: 14px; }
.vl-pill.is-set { color: var(--white); }
.vl-pill .proj-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.vl-pill .dot { width: 8px; height: 8px; }

.vl-row {
  width: 100%; min-height: 48px; padding: 6px 12px; border-radius: 6px; background: #1c1e20; flex: none;
  display: flex; align-items: center; gap: 8px; text-align: left;
}
.vl-side .chip-wrap > .vl-row { display: flex; }
.vl-row .grow { flex: 1; min-width: 0; }
.vl-row-label { font-size: 12px; line-height: 16px; font-weight: 500; color: rgba(255, 255, 255, 0.6); }
.vl-row-val { display: flex; align-items: center; gap: 4px; font-size: 14px; line-height: 20px; font-weight: 500; color: #f7f7f8; }
.vl-row-val .ico { width: 16px; height: 16px; color: var(--primary); }
.vl-row > .ico { width: 16px; height: 16px; color: rgba(255, 255, 255, 0.6); }
.vl-row--toggle { padding: 12px; }
.vl-row--toggle .vl-row-val { line-height: 14px; }
.vl-row .switch { margin-left: auto; }
.vl-row[aria-pressed="true"] .switch { background: var(--primary); }
.vl-row[aria-pressed="true"] .switch::after { transform: translateX(12px); background: var(--on-primary); }
.vl-trio { display: grid; grid-template-columns: 106fr 90fr 90fr; gap: 8px; flex: none; }
.vl-trio .chip-wrap { display: grid; position: relative; }
.vl-mini {
  height: 40px; padding: 0 12px; border-radius: 6px; background: #1c1e20;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 14px; line-height: 20px; font-weight: 500; color: #f7f7f8; white-space: nowrap;
}
.vl-mini .ico { width: 16px; height: 16px; color: var(--white); }
.vl-mini .ratio { border-color: var(--white); }
.vl-side .chip-wrap { position: relative; }
.vl-side .pop { left: 0; right: auto; }
.vl-side .pop.pop--down { top: calc(100% + 8px); bottom: auto; }
.vl-side .pop--wide { width: 302px; }

.vl-go {
  width: 100%; height: 48px; padding: 0 16px 3px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: #14151a; font-size: 16px; line-height: 24px; font-weight: 600;
}
.vl-go-price { display: inline-flex; align-items: center; gap: 4px; }
.vl-go-price .ico { width: 20px; height: 20px; }
.vl-go:disabled { cursor: default; }
@media (hover: hover) {
  .vl-row:hover, .vl-mini:hover { background: #23262a; }
  .vl-seg button:not(.is-on):hover { color: var(--white); }
  .vl-change:hover { background: rgba(27, 27, 27, 0.6); }
  .vl-slot:not(:has(img)):hover { color: var(--white); }
}

/* у донора правая часть с полями 0 16: карточка истории 361…1887 при окне 1920 */
.vl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 0 16px; }
.vl-top { height: 56px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 0 12px; }
.vl-htabs { display: flex; gap: 4px; }
.vl-htab {
  height: 32px; padding: 4px 8px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; line-height: 16px; font-weight: 500; color: rgba(255, 255, 255, 0.5);
}
.vl-htab .ico { width: 16px; height: 16px; }
.vl-htab.is-on { color: var(--white); border: 1px solid rgba(255, 255, 255, 0.05); background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)); }
.vl-tools { display: flex; align-items: center; gap: 8px; }
.vl-group { height: 36px; display: flex; align-items: center; gap: 12px; border-radius: 16px; background: #131517; }
.vl-size { width: 178px; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 2px; cursor: pointer; touch-action: none; }
.vl-size-ico { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; color: var(--white); flex: none; }
.vl-size-ico .ico { width: 14px; height: 14px; }
.vl-size .zoom-track { flex: 1; }
.vl-view { display: flex; gap: 4px; padding: 2px; border-radius: 8px; background: #131517; }
.vl-vbtn {
  height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 18px; font-weight: 600; color: #898a8b;
}
.vl-vbtn .ico { width: 16px; height: 16px; }
.vl-vbtn.is-on { background: #1c1e20; border-color: rgba(217, 217, 217, 0.04); color: var(--white); }
.vl-tools .menu-wrap .pop { right: 0; left: auto; top: calc(100% + 8px); bottom: auto; }

.vl-card {
  flex: 1; min-height: 0; overflow-y: auto; padding: 16px 16px 80px;
  background: #131517; border-radius: 20px; border: 1px solid rgba(217, 217, 217, 0.04);
}
.vg-group + .vg-group { padding-top: 12px; }
.vg-head { height: 40px; display: flex; align-items: flex-start; gap: 8px; }
.vg-head h3 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 700; color: #f7f7f8; }
.vg-check { width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; border: 2px solid rgba(255, 255, 255, 0.08); display: grid; place-items: center; color: var(--on-primary); flex: none; }
.vg-check .ico { width: 12px; height: 12px; stroke-width: 2.5; opacity: 0; }
.vg-check[aria-checked="true"] { background: var(--white); border-color: var(--white); }
.vg-check[aria-checked="true"] .ico { opacity: 1; }
.vg-tiles { display: flex; flex-wrap: wrap; gap: 16px; padding-bottom: 16px; }
.vg-tiles .tile { width: var(--vs, 171px); height: var(--vs, 171px); border-radius: 16px; background: #1c1e20; }
.vg-tiles .tile > video, .vg-tiles .tile > img, .vg-li .tile > video { object-fit: contain; }
.vg-list { display: flex; flex-direction: column; gap: 8px; padding-bottom: 16px; }
.vg-li { display: grid; grid-template-columns: 208px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 8px; border-radius: 16px; background: #1c1e20; }
.vg-li .tile { width: 208px; height: 117px; border-radius: 12px; background: #131517; }
.vg-li-text { margin: 0; font-size: 14px; line-height: 20px; color: #f7f7f8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vg-li-meta { font-size: 12px; line-height: 18px; color: #898a8b; text-align: right; white-space: nowrap; }
.vg-empty { padding: 80px 16px; text-align: center; color: #898a8b; font-size: 14px; line-height: 20px; }

@media (max-width: 899px) {
  .vl { position: static; flex-direction: column; margin: 44px 12px 12px; }
  body.mode-video { overflow: auto; }
  .vl-side { width: auto; }
  .vl-form, .vl-card { overflow: visible; }
  .vl-size { display: none; }
}
