/* Экран аудио — по higgsfield.ai/audio. Каркас общий с видео (#vl), здесь только отличия.
   Числа: _ref/higgsfield/ЗАМЕРЫ-аудио.md */

body.mode-audio .toolbar, body.mode-audio .feed, body.mode-audio .dock { display: none; }
.vl--audio { top: 56px; right: 16px; gap: 24px; }

/* колонка слева: 342, #1c1e21, радиус 24; высота по содержимому */
.vl--audio .vl-side {
  width: 342px; align-self: flex-start; max-height: 100%; padding: 0 12px 16px;
  background: #1c1e21; border-radius: 24px; border-color: rgba(255, 255, 255, 0.05);
}
.vl--audio .vl-tabs { gap: 22px; padding: 12px 8px 0; border-bottom: 1px solid rgba(217, 217, 217, 0.04); }
.vl--audio .vl-form { padding: 12px 0 0; gap: 12px; }
.vl--audio .vl-foot { padding: 56px 0 0; }

.al-text { display: flex; flex-direction: column; flex: none; padding: 8px 8px 12px; border-radius: 12px; background: #27292c; border: 1px solid rgba(255, 255, 255, 0.05); }
.al-text > .chip-wrap { align-self: flex-start; }
.al-spk {
  height: 32px; padding: 0 8px 0 6px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px; line-height: 18px; font-weight: 500; color: #f7f7f8; white-space: nowrap;
}
.al-spk > .ico:first-child { width: 16px; height: 16px; padding: 3px; border-radius: 50%; background: rgba(0, 0, 0, 0.4); }
.al-spk .chev { width: 12px; height: 12px; color: var(--muted); transform: rotate(90deg); }
.al-text textarea {
  display: block; width: 100%; height: 96px; margin-top: 12px; padding: 0 4px; border: 0; outline: none; resize: none; background: none;
  font-size: 12px; line-height: 16px; font-weight: 500; color: #f7f7f8; scrollbar-width: thin;
}
.al-text textarea::placeholder { color: var(--placeholder); }
.al-text .vl-under { padding: 12px 4px 0; align-items: center; }
.al-count { margin-left: auto; font-size: 12px; line-height: 16px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.al-count .is-over { color: var(--danger); }

.al-row {
  width: 100%; height: 56px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05);
  display: flex; align-items: center; gap: 8px; text-align: left;
}
.vl-side .chip-wrap > .al-row { display: flex; }
.al-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.al-row-label { font-size: 12px; line-height: 18px; font-weight: 500; color: var(--muted); }
.al-row-val { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--white); }
.al-row > .ico { width: 16px; height: 16px; color: rgba(255, 255, 255, 0.6); }

/* «Создать» 316×56: у донора 18/600, поля 16 20 20 — нижнее больше на кромку */
.vl--audio .vl-go { height: 56px; padding: 0 20px 3px; gap: 6px; font-size: 18px; line-height: 24px; font-weight: 600; color: #1b1b1b; }
.vl--audio .vl-go-price .ico { width: 18px; height: 18px; }

/* справа — без общей карточки: вкладки, даты и строки прямо на фоне */
.vl--audio .vl-main { padding: 0; }
.vl--audio .vl-top { height: 40px; padding: 0; margin-bottom: 18px; }
.vl--audio .vl-htabs { padding: 2px; gap: 4px; border-radius: 12px; background: #131517; border: 1px solid rgba(255, 255, 255, 0.05); }
.vl--audio .vl-htab { height: 32px; font-weight: 600; color: var(--muted); border: 1px solid transparent; }
.vl--audio .vl-htab.is-on {
  color: var(--white); border-color: rgba(255, 255, 255, 0.05);
  background: linear-gradient(149.85deg, rgba(255, 255, 255, 0.04) 22.6%, rgba(255, 255, 255, 0.06) 51.26%, rgba(255, 255, 255, 0.02) 79.9%), rgba(35, 38, 42, 0.75);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.12), inset 0 2px 3px rgba(255, 255, 255, 0.05);
}
.vl--audio .vl-group { display: none; }
.vl--audio #vFilterBtn {
  width: auto; height: 32px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px;
  border-radius: 10px; background: #131517; border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px; line-height: 18px; font-weight: 500; color: var(--muted);
}
.vl--audio #vFilterBtn .ico { width: 14px; height: 14px; }
.vl--audio #vFilterBtn.is-active { color: var(--primary); }
.vl--audio .vl-card { background: none; border: 0; border-radius: 0; padding: 0 0 80px; }
.vl--audio .vg-head { height: 44px; }
.vl--audio .vg-head h3 { font-weight: 500; color: var(--white); }
.vl--audio .vg-group + .vg-group { padding-top: 28px; }

/* строка 74: 372 (значок+текст) | волна | модель 176 | кнопки — промежутки 12 */
.ar-list { display: flex; flex-direction: column; gap: 8px; }
.ar {
  display: grid; grid-template-columns: 372px minmax(0, 1fr) 176px 176px; column-gap: 12px; align-items: center;
  height: 74px; padding: 16px; border-radius: 12px; background: #131517; border: 1px solid rgba(255, 255, 255, 0.05);
}
.ar.is-selected { border-color: var(--white); background: #1a1c1f; }
.ar-lead { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ar-ico { position: relative; width: 40px; height: 40px; flex: none; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); color: var(--muted); }
.ar-ico > .ico { width: 20px; height: 20px; }
.ar .au-play { left: 0; top: 0; width: 100%; height: 100%; margin: 0; border-radius: 0; background: rgba(0, 0, 0, 0.5); color: var(--white); opacity: 0; transition: opacity .15s; }
.ar .au-play .ico { width: 20px; height: 20px; }
.ar:hover .au-play, .ar.is-playing .au-play, .ar .au-play:focus-visible { opacity: 1; }
.ar-txt { min-width: 0; display: flex; flex-direction: column; }
.ar-name { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-sub { font-size: 12px; line-height: 18px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar.is-failed .ar-name { color: var(--danger); }
.ar.is-failed .ar-ico { color: var(--danger); }

/* волна у донора — столбики 2px через 1px, #828282 */
.ar .au-wave { height: 36px; min-height: 0; overflow: hidden; }
.ar .wave { gap: 1px; }
.ar .wave i { flex: none; width: 2px; min-width: 0; border-radius: 0; background: #828282; }
.ar .wave--on i { background: var(--white); }

.ar-model { justify-self: end; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 18px; font-weight: 500; color: var(--white); white-space: nowrap; }
.ar-model .ico { width: 16px; height: 16px; }
.ar-acts { justify-self: end; display: flex; gap: 4px; }
.ar-btn { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--white); }
.ar-btn .ico { width: 16px; height: 16px; }
.ar-btn.is-on { color: var(--primary); }

.ar-run { display: flex; align-items: center; gap: 12px; }
.ar-track { position: relative; flex: 1; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.08); }
.ar-track .run-bar { position: absolute; left: 0; top: 0; bottom: 0; height: auto; background: var(--primary); }
.ar .run-time { font-size: 12px; line-height: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }

@media (hover: hover) {
  .al-row:hover { background: rgba(255, 255, 255, 0.08); }
  .al-spk:hover { background: rgba(255, 255, 255, 0.08); }
  .ar-btn:hover { background: rgba(255, 255, 255, 0.08); }
  .vl--audio #vFilterBtn:hover { color: var(--white); }
}

@media (max-width: 899px) {
  body.mode-audio { overflow: auto; }
  .vl--audio .vl-side { width: auto; align-self: stretch; }
  .ar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lead acts" "wave wave"; height: auto; row-gap: 12px; }
  .ar-lead { grid-area: lead; }
  .ar-acts { grid-area: acts; }
  .ar .au-wave, .ar-run { grid-area: wave; }
  .ar-model { display: none; }
}
