/* ============================================================
   lipsync.css — «Lipsync» (/lipsync)
   ЛЕВО (лента) — интро/результат, ПРАВО (панель) — модель,
   аудио (текст→озвучка / своё), загрузка, бегунок, кнопка.
   ============================================================ */

/* прячем лишние части студийного шаблона; панель настроек оставляем */
body[data-page="lipsync"] .studio-empty,
body[data-page="lipsync"] .composer-wrap { display: none !important; }
body[data-page="lipsync"] .settings-panel > .set-select,
body[data-page="lipsync"] .settings-panel > .set-block,
body[data-page="lipsync"] .settings-panel > .set-row,
body[data-page="lipsync"] .settings-panel > .set-sep,
body[data-page="lipsync"] .settings-panel > .set-collapse,
body[data-page="lipsync"] .settings-panel > .ideas-panel,
body[data-page="lipsync"] .settings-panel > .reset-btn { display: none !important; }

/* ---------- ЛЕВО: интро / результат ---------- */
.ls-preview { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; position: relative; padding: 10px 0; }
.ls-stage { position: relative; width: 100%; max-width: 640px; border-radius: 20px; overflow: hidden; background: #000; border: 1px solid var(--line, rgba(255,255,255,.08)); }
.ls-rvideo { width: 100%; max-height: 72vh; display: block; }
.ls-ractions { display: flex; gap: 10px; }
.ls-rbtn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--accent, #d1fe17); color: var(--accent-ink, #111); border: 0; border-radius: 12px; padding: 11px 18px; font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.ls-rbtn.ghost { background: rgba(255,255,255,.05); color: var(--text, #fff); border: 1px solid var(--line, rgba(255,255,255,.12)); }
.ls-rbtn:hover { filter: brightness(1.05); }
.ls-rbtn svg { width: 17px; height: 17px; }

.ls-intro { max-width: 580px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px; }
.ls-intro-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--text-2, #c7c7cf); font-size: 13px; font-weight: 600; }
.ls-intro-badge svg { width: 15px; height: 15px; color: var(--accent, #d1fe17); }
.ls-intro-title { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; line-height: 1.08; margin: 0; color: var(--text, #fff); }
.ls-intro-title span { color: var(--accent, #d1fe17); }
.ls-intro-sub { font-size: 14.5px; line-height: 1.5; color: var(--text-2, #9a9aa2); margin: 0 0 6px; max-width: 460px; }
.ls-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; margin-top: 4px; }
.ls-step { display: flex; align-items: flex-start; gap: 11px; text-align: left; padding: 15px; border-radius: 16px; background: var(--surface-2, rgba(255,255,255,.03)); border: 1px solid var(--line, rgba(255,255,255,.08)); }
.ls-step-n { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; background: var(--accent, #d1fe17); color: var(--accent-ink, #111); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.ls-step-tx { display: flex; flex-direction: column; gap: 3px; }
.ls-step b { font-size: 13.5px; color: var(--text, #fff); }
.ls-step span { font-size: 12px; color: var(--text-2, #9a9aa2); line-height: 1.35; }

.ls-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(10,10,14,.7); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); border-radius: 20px; color: #fff; font-size: 14px; z-index: 3; }
.ls-spin { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--accent, #d1fe17); border-radius: 50%; animation: ls-spin .8s linear infinite; }
@keyframes ls-spin { to { transform: rotate(360deg); } }

/* ---------- ПРАВО: панель ---------- */
.ls-controls { display: flex; flex-direction: column; gap: 16px; }
.ls-field { display: flex; flex-direction: column; gap: 9px; }
.ls-lbl { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--text-2, #9a9aa2); text-transform: uppercase; }

/* styled select */
.ls-select { position: relative; }
.ls-select select { width: 100%; -webkit-appearance: none; appearance: none; background: var(--surface-2, rgba(255,255,255,.04)); color: var(--text, #fff); border: 1px solid var(--line, rgba(255,255,255,.14)); border-radius: 12px; padding: 12px 38px 12px 14px; font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.ls-select select:focus { outline: none; border-color: var(--accent-ring, rgba(209,254,23,.4)); }
.ls-select-chev { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-2, #9a9aa2); display: flex; }
.ls-select-chev svg { width: 18px; height: 18px; }
.ls-voice { margin-top: 2px; }

/* audio mode segment */
.ls-seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: rgba(255,255,255,.06); border-radius: 12px; padding: 4px; }
.ls-sg { border: 0; background: transparent; color: var(--text-2, #9a9aa2); padding: 9px 8px; border-radius: 9px; font-family: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.ls-sg.on { background: var(--accent, #d1fe17); color: var(--accent-ink, #111); }

.ls-ta { width: 100%; resize: vertical; min-height: 76px; background: var(--surface-2, rgba(255,255,255,.04)); color: var(--text, #fff); border: 1px solid var(--line, rgba(255,255,255,.14)); border-radius: 12px; padding: 11px 13px; font-family: inherit; font-weight: 400; font-size: 14px; line-height: 1.45; margin-top: 2px; box-sizing: border-box; }
.ls-ta:focus { outline: none; border-color: var(--accent-ring, rgba(209,254,23,.4)); }
.ls-ta::placeholder { color: var(--text-3, #71717a); }

/* upload zones */
.ls-zone { position: relative; min-height: 120px; border: 1.5px dashed var(--line, rgba(255,255,255,.16)); border-radius: 16px; background: rgba(255,255,255,.03); cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s; display: flex; align-items: center; justify-content: center; }
.ls-zone:hover, .ls-zone.drag { border-color: var(--accent-ring, rgba(209,254,23,.4)); background: var(--accent-soft, rgba(209,254,23,.08)); }
.ls-zone.has { border-style: solid; background: #0d0d13; }
.ls-zone-media { min-height: 152px; }
.ls-zone-audio { min-height: 64px; }
.ls-zone-audio.has { background: rgba(255,255,255,.04); }
.ls-thumb { width: 100%; height: 100%; object-fit: contain; background: #0d0d13; }
.ls-ph { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; color: var(--text-2, #c7c7cf); text-align: left; }
.ls-ph-ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center; color: var(--accent, #d1fe17); }
.ls-ph-ic svg { width: 20px; height: 20px; }
.ls-ph-tx { display: flex; flex-direction: column; gap: 2px; }
.ls-ph-tx b { font-size: 13.5px; color: var(--text, #fff); font-weight: 600; }
.ls-ph-tx span { font-size: 12px; line-height: 1.35; }
.ls-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(10,10,14,.72); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; z-index: 2; }
.ls-x:hover { background: rgba(10,10,14,.92); }
.ls-audio-has { display: flex; align-items: center; gap: 10px; padding: 12px 14px; width: 100%; }
.ls-audio-name { font-size: 13px; color: var(--text, #fff); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* photo/video toggle */
.ls-typerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ls-typelbl { font-size: 14px; font-weight: 600; color: var(--text, #fff); }
.ls-toggle { display: inline-flex; gap: 3px; background: rgba(255,255,255,.06); border-radius: 999px; padding: 4px; }
.ls-tg { border: 0; background: transparent; color: var(--text-2, #9a9aa2); width: 42px; height: 32px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.ls-tg svg { width: 19px; height: 19px; }
.ls-tg.on { background: var(--accent, #d1fe17); color: var(--accent-ink, #111); }

.ls-err { color: #ff8da3; font-size: 13.5px; }
.ls-go { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: var(--accent, #d1fe17); color: var(--accent-ink, #111); border: 0; border-radius: 14px; padding: 15px 20px; font-family: inherit; font-weight: 800; font-size: 15.5px; cursor: pointer; transition: filter .15s, transform .06s; }
.ls-go:hover { filter: brightness(1.04); } .ls-go:active { transform: scale(.99); }
.ls-go:disabled { opacity: .55; cursor: default; }
.ls-go svg { width: 19px; height: 19px; }
.ls-cost { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 800; }
.ls-coin { width: 14px; height: 14px; border-radius: 50%; display: inline-block; background: linear-gradient(160deg, #f0d97a, #c79a2e); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }

/* ---------- планшет/мобилка ---------- */
@media (max-width: 1100px) {
  body[data-page="lipsync"] .studio-main { flex-direction: column; height: auto; min-height: 100vh; }
  body[data-page="lipsync"] .studio-chat { height: auto; }
  body[data-page="lipsync"] .studio-feed { height: auto; }
  body[data-page="lipsync"] .settings-panel { display: flex !important; width: auto; flex: none; height: auto; border-left: 0; border-top: 1px solid var(--line, rgba(255,255,255,.1)); }
  .ls-steps { grid-template-columns: 1fr; }
  .ls-stage { max-width: 520px; }
}

/* ============ новая структура: аудио-блок + модалка озвучки ============ */
.ls-media-tag { position: absolute; bottom: 8px; left: 8px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(10,10,14,.7); color: #fff; z-index: 1; }

.ls-audio-ready { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line, rgba(255,255,255,.14)); border-radius: 12px; background: var(--surface-2, rgba(255,255,255,.04)); position: relative; }
.ls-audio-ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft, rgba(209,254,23,.14)); color: var(--accent, #d1fe17); display: flex; align-items: center; justify-content: center; }
.ls-audio-ic svg { width: 18px; height: 18px; }
.ls-audio-el { flex: 1 1 auto; height: 34px; min-width: 0; }
/* Крестик в строке озвучки делаем обычным элементом строки, а не наложением:
   .ls-x по умолчанию position:absolute (это верно для миниатюры фото, где он
   лежит поверх картинки), но здесь плеер занимает всю ширину, и крестик
   накрывал его правые кнопки — громкость и меню. Теперь он встаёт СЛЕДОМ
   за плеером, а плеер сжимается под оставшееся место. */
.ls-audio-ready .ls-x { position: static; flex: 0 0 auto; margin-left: 2px; }
.ls-audio-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ls-abtn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line, rgba(255,255,255,.14)); background: var(--surface-2, rgba(255,255,255,.04)); color: var(--text, #fff); border-radius: 11px; padding: 11px 10px; font-family: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.ls-abtn:hover { border-color: var(--accent-ring, rgba(209,254,23,.4)); }
.ls-abtn.primary { background: var(--accent-soft, rgba(209,254,23,.12)); border-color: var(--accent-ring, rgba(209,254,23,.35)); color: var(--accent-2, #e4ff6b); }
.ls-abtn svg { width: 16px; height: 16px; }

.ls-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ls-modal-bd { position: absolute; inset: 0; background: rgba(6,6,10,.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.ls-modal-card { position: relative; width: 100%; max-width: 460px; max-height: 88vh; display: flex; flex-direction: column; background: var(--bg-rail, #16161c); border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.ls-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
.ls-modal-head b { font-size: 16px; color: var(--text, #fff); }
.ls-modal-x { width: 32px; height: 32px; border: 0; background: rgba(255,255,255,.06); border-radius: 9px; color: var(--text-2, #c7c7cf); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ls-modal-x svg { width: 18px; height: 18px; }
.ls-modal-body { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.ls-modal-foot { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line, rgba(255,255,255,.08)); }
.ls-mbtn { flex: 1 1 auto; border: 0; border-radius: 12px; padding: 13px; font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; background: rgba(255,255,255,.06); color: var(--text, #fff); }
.ls-mbtn.ghost { background: rgba(255,255,255,.05); color: var(--text-2, #c7c7cf); flex: 0 0 auto; padding: 13px 18px; }
.ls-mbtn.primary { background: var(--accent, #d1fe17); color: var(--accent-ink, #111); }
.ls-mbtn:hover { filter: brightness(1.05); }
.ls-modal-ov { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(10,10,14,.72); color: #fff; font-size: 14px; z-index: 5; }

.ls-scenes { display: flex; flex-wrap: wrap; gap: 7px; }
.ls-scene { border: 1px solid var(--line, rgba(255,255,255,.14)); background: var(--surface-2, rgba(255,255,255,.04)); color: var(--text-2, #c7c7cf); border-radius: 999px; padding: 7px 13px; font-family: inherit; font-weight: 600; font-size: 12.5px; cursor: pointer; }
.ls-scene:hover { border-color: var(--accent-ring, rgba(209,254,23,.4)); }
.ls-scene.on { background: var(--accent, #d1fe17); border-color: var(--accent, #d1fe17); color: var(--accent-ink, #111); }

.ls-counter { font-size: 12px; color: var(--text-2, #9a9aa2); text-align: right; }

.ls-vs { border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 12px; padding: 0 14px; }
.ls-vs summary { cursor: pointer; padding: 12px 0; font-size: 13px; font-weight: 700; color: var(--text, #fff); list-style: none; }
.ls-vs summary::-webkit-details-marker { display: none; }
.ls-vs[open] summary { border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); margin-bottom: 12px; }
.ls-slider { padding: 6px 0 12px; }
.ls-slider-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2, #c7c7cf); margin-bottom: 7px; }
.ls-slider-val { color: var(--text, #fff); font-weight: 700; }
.ls-slider input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 5px; border-radius: 99px; background: rgba(255,255,255,.14); outline: none; }
.ls-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent, #d1fe17); cursor: pointer; border: 0; }
.ls-slider input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--accent, #d1fe17); cursor: pointer; border: 0; }

.ls-m-preview { border: 1px solid var(--accent-ring, rgba(209,254,23,.3)); border-radius: 12px; padding: 10px; background: var(--accent-soft, rgba(209,254,23,.06)); }
.ls-m-preview audio { width: 100%; height: 36px; }

/* ============ шейп-аудио + промпт + вкладки модалки ============ */
.ls-opt { font-weight: 500; color: var(--text-3, #71717a); text-transform: none; letter-spacing: 0; }
.ls-ta-sm { min-height: 56px; }
.ls-audio-edit { margin-top: 8px; display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 0; color: var(--text-2, #c7c7cf); font-family: inherit; font-weight: 600; font-size: 12.5px; cursor: pointer; padding: 4px 2px; }
.ls-audio-edit:hover { color: var(--text, #fff); }
.ls-audio-edit svg { width: 15px; height: 15px; }
.ls-zone-audio { min-height: 288px; }
.ls-ta-prompt { height: 288px; resize: none; }
.ls-zone-up { min-height: 132px; }
.ls-tabs { display: inline-flex; gap: 4px; background: rgba(255,255,255,.06); border-radius: 10px; padding: 4px; }
.ls-tab { border: 0; background: transparent; color: var(--text-2, #9a9aa2); padding: 7px 14px; border-radius: 7px; font-family: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.ls-tab.on { background: var(--accent, #d1fe17); color: var(--accent-ink, #111); }

/* ============ правки по референсу: карточки, высоты, hero ============ */
/* высоты шейпов и промпта */
.ls-zone-media { min-height: 180px; }
.ls-zone-audio { min-height: 180px; }
.ls-ta-prompt { height: 200px; resize: none; }

/* центрированный плейсхолдер (иконка сверху, надпись под ней) */
.ls-ph-center { flex-direction: column; justify-content: center; text-align: center; gap: 10px; height: 100%; padding: 14px; }
.ls-ph-center .ls-ph-ic { width: 46px; height: 46px; }
.ls-ph-center .ls-ph-ic svg { width: 22px; height: 22px; }
.ls-ph-center b { font-size: 14px; }

/* интро: поднимаем к верху, заголовок в одну строку */
.ls-preview:has(.ls-intro) { justify-content: flex-start; padding-top: 36px; }
.ls-intro-title { white-space: nowrap; font-size: clamp(24px, 3.2vw, 38px); }

/* 3 карточки-шейпа (350×271 картинка + заголовок + текст, всего ≈1175×355) */
.ls-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; width: 100%; max-width: 1175px; margin-top: 26px; }
/* Десктоп: шире карточки-шаги (~+100px каждая → +300px к сетке) */
@media (min-width: 900px) {
  /* ВНИМАНИЕ: этот блок не работает — базовое правило .ls-card-img
     объявлено НИЖЕ по файлу и перебивает его при равной специфичности.
     Так было и раньше: заявленные 320px на десктопе никогда не применялись,
     высота оставалась базовой 271px. Не чиню молча, чтобы не менять вид
     без спроса — крупные карточки заданы отдельным блоком в конце файла. */
  .ls-cards { max-width: 1475px; gap: 26px; }
  .ls-card-img { height: 320px; }
}
.ls-card { display: flex; flex-direction: column; gap: 9px; }
.ls-card-img { position: relative; height: 271px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line, rgba(255,255,255,.1)); display: flex; align-items: center; justify-content: center; }
.ls-card-photo { background: linear-gradient(140deg, #37324e 0%, #191920 75%); }
.ls-card-audio { background: linear-gradient(140deg, #4b333f 0%, #191920 75%); }
.ls-card-result { background: linear-gradient(140deg, #2f4a37 0%, #191920 75%); }
.ls-card-n { position: absolute; top: 12px; left: 12px; width: 26px; height: 26px; border-radius: 8px; background: var(--accent, #d1fe17); color: var(--accent-ink, #111); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.ls-card-ic { color: rgba(255,255,255,.45); }
.ls-card-ic svg { width: 56px; height: 56px; }

/* ── Демо внутри карточек-шагов ──────────────────────────────────── */
/* Фото и видео кладём поверх градиента. Иконка под ними — запасной вид,
   если файл не загрузился: onerror удаляет элемент и иконка проступает. */
.ls-demo-img, .ls-demo-vid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 22%; z-index: 1;
}
.ls-card-ic-fb { z-index: 0; }

/* Дорожка звука */
.ls-wave {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 3px;
  padding: 0 22px;
}
.ls-wave i {
  flex: 1 1 0; min-width: 2px; max-width: 7px; border-radius: 999px;
  background: rgba(255,255,255,.24); transform-origin: center;
}
.ls-wave.on i { animation: lsWave .9s ease-in-out infinite alternate; background: var(--accent, #d1fe17); }
.ls-wave.on i:nth-child(3n)   { animation-delay: .1s; }
.ls-wave.on i:nth-child(3n+1) { animation-delay: .25s; }
.ls-wave.on i:nth-child(4n)   { animation-delay: .4s; }
@keyframes lsWave { from { transform: scaleY(.45); } to { transform: scaleY(1.15); } }
@media (prefers-reduced-motion: reduce) { .ls-wave.on i { animation: none; } }

/* Кнопка прослушивания */
.ls-demo-play {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 62px; height: 62px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.22); background: rgba(12,12,16,.72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; display: flex; align-items: center; justify-content: center;
  transition: transform .14s, border-color .14s;
}
.ls-demo-play svg { width: 26px; height: 26px; }
.ls-demo-play:hover { transform: translate(-50%,-50%) scale(1.06); border-color: var(--accent, #d1fe17); }
.ls-demo-play.on { border-color: var(--accent, #d1fe17); color: var(--accent, #d1fe17); }

/* Кнопка звука на результате */
.ls-demo-sound {
  position: absolute; z-index: 2; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(12,12,16,.66);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #e8e8ee; font: inherit; font-size: 12.5px; font-weight: 600;
}
.ls-demo-sound svg { width: 15px; height: 15px; }
.ls-demo-sound:hover { border-color: rgba(255,255,255,.4); }
.ls-demo-sound.on { background: var(--accent, #d1fe17); color: var(--accent-ink, #1a1f05); border-color: transparent; }
.ls-card > b { font-size: 15px; color: var(--text, #fff); font-weight: 700; }
.ls-card > span { font-size: 13px; color: var(--text-2, #9a9aa2); line-height: 1.4; }

/* ── hero-модалка озвучки на всю страницу ── */
.ls-modal { padding: 0; }
.ls-modal-card { max-width: none; width: 100%; height: 100vh; max-height: 100vh; border-radius: 0; }
.ls-modal-body { align-items: center; }
.ls-modal-body > * { width: 100%; max-width: 720px; }
.ls-modal-head, .ls-modal-foot { padding-left: clamp(20px, calc((100vw - 720px) / 2), 50vw); padding-right: clamp(20px, calc((100vw - 720px) / 2), 50vw); }
.ls-modal-foot { justify-content: flex-end; }
.ls-modal-foot .ls-mbtn.primary { flex: 0 0 auto; min-width: 260px; }

@media (max-width: 1100px) {
  .ls-cards { grid-template-columns: 1fr; max-width: 460px; }
  .ls-card-img { height: 220px; }
}
@media (max-width: 560px) {
  .ls-intro-title { white-space: normal; }
  .ls-modal-head, .ls-modal-foot { padding-left: 16px; padding-right: 16px; }
  .ls-modal-foot .ls-mbtn.primary { min-width: 0; flex: 1 1 auto; }
}

/* ============ hero озвучки: двухколоночная студия (стиль /marketing + higgsfield) ============ */
.ls-hero { display: flex; flex-direction: column; }
.ls-hero-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); flex: 0 0 auto; }
.ls-hero-grid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); }
.ls-hero-left { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-right: 1px solid var(--line, rgba(255,255,255,.08)); overflow-y: auto; }
.ls-hero-right { padding: 24px; overflow-y: auto; }

.ls-hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ls-vcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line, rgba(255,255,255,.14)); background: var(--surface-2, rgba(255,255,255,.04)); cursor: pointer; text-align: left; transition: border-color .15s; }
.ls-vcard.active { border-color: var(--accent, #d1fe17); }
.ls-vava { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: #fff; overflow: hidden; }
.ls-vava svg { width: 20px; height: 20px; }
.ls-sava { background: rgba(255,255,255,.08) !important; color: var(--text-2, #c7c7cf); }
.ls-plus { font-size: 24px; line-height: 1; }
.ls-vtx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ls-vtx b { font-size: 14px; color: var(--text, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-vtx span { font-size: 12px; color: var(--text-2, #9a9aa2); }

.ls-hero-script { flex: 1 1 auto; min-height: 200px; display: flex; flex-direction: column; }
.ls-hero-ta { flex: 1 1 auto; width: 100%; resize: none; background: var(--surface-2, rgba(255,255,255,.04)); border: 1px solid var(--line, rgba(255,255,255,.14)); border-radius: 14px; padding: 14px; font-family: inherit; font-weight: 400; font-size: 15px; line-height: 1.5; color: var(--text, #fff); box-sizing: border-box; }
.ls-hero-ta:focus { outline: none; border-color: var(--accent-ring, rgba(209,254,23,.4)); }
.ls-hero-script .ls-counter { margin-top: 8px; }

.ls-vs-panel { border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 12px; padding: 14px 14px 4px; }
.ls-hero-actions { display: flex; gap: 10px; align-items: center; }
.ls-hero-actions .ls-mbtn { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ls-hero-actions .ls-mbtn svg { width: 18px; height: 18px; }
.ls-vs-toggle { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line, rgba(255,255,255,.14)); background: var(--surface-2, rgba(255,255,255,.04)); color: var(--text-2, #c7c7cf); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ls-vs-toggle.on { border-color: var(--accent, #d1fe17); color: var(--accent, #d1fe17); }
.ls-vs-toggle svg { width: 20px; height: 20px; }

.ls-hero-rtitle { font-size: 20px; font-weight: 800; color: var(--text, #fff); margin-bottom: 16px; }
.ls-vlist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ls-vitem { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line, rgba(255,255,255,.12)); background: var(--surface-2, rgba(255,255,255,.03)); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.ls-vitem:hover { border-color: rgba(255,255,255,.28); }
.ls-vitem.on { border-color: var(--accent, #d1fe17); background: var(--accent-soft, rgba(209,254,23,.1)); }
.ls-slist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ls-sitem { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line, rgba(255,255,255,.12)); background: var(--surface-2, rgba(255,255,255,.03)); cursor: pointer; color: var(--text, #fff); font-family: inherit; }
.ls-sitem:hover { border-color: rgba(255,255,255,.28); }
.ls-sitem.on { border-color: var(--accent, #d1fe17); background: var(--accent-soft, rgba(209,254,23,.1)); }
.ls-sico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; color: var(--accent, #d1fe17); }
.ls-sico svg { width: 17px; height: 17px; }
.ls-sitem b { font-size: 13.5px; font-weight: 600; }
.ls-hero-empty { color: var(--text-2, #9a9aa2); padding: 20px 4px; }

.ls-hero-upload { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px 24px; }
.ls-hero-upload .ls-zone { width: 100%; max-width: 520px; min-height: 220px; }
.ls-hero-upload .ls-m-preview, .ls-hero-upload .ls-hero-actions { width: 100%; max-width: 520px; }
.ls-up-sub { font-size: 12px; color: var(--text-2, #9a9aa2); font-weight: 400; }

@media (max-width: 900px) {
  .ls-hero-grid { grid-template-columns: 1fr; }
  .ls-hero-left { border-right: 0; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
  .ls-vlist, .ls-slist { grid-template-columns: 1fr; }
  .ls-hero-script { min-height: 140px; }
}

/* ============ hero как всплывающее окно ~1600×800 + прослушивание ============ */
.ls-modal { padding: 20px; }
.ls-modal-card.ls-hero { width: min(1600px, 95vw); height: min(800px, 92vh); max-height: 92vh; border-radius: 22px; }

/* имена голосов — менее жирные */
.ls-vtx b { font-weight: 500; }
.ls-vlist .ls-vtx { flex: 1 1 auto; }

/* кнопка прослушивания голоса */
.ls-vplay { flex: 0 0 auto; margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line, rgba(255,255,255,.16)); background: rgba(255,255,255,.05); color: var(--text, #fff); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s, color .15s; }
.ls-vplay:hover, .ls-vplay.playing { background: var(--accent, #d1fe17); border-color: var(--accent, #d1fe17); color: var(--accent-ink, #111); }
.ls-vplay svg { width: 16px; height: 16px; margin-left: 1px; }
.ls-vplay.loading { opacity: .5; pointer-events: none; }

/* ---------- Бейджи моделей в пикере (.vmodal) — разрешение / Audio / длительность ---------- */
.ls-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.ls-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 7px; background: var(--surface-3, rgba(255,255,255,.06)); color: var(--text-2, #b8b8c0); font-size: 11.5px; font-weight: 600; line-height: 1; }
.ls-badge svg { width: 13px; height: 13px; opacity: .85; }
.ls-badge-cost { background: rgba(209,254,23,.12); color: var(--accent, #d1fe17); }
.ls-badge-cost .ls-coin { width: 11px; height: 11px; }
.ls-newtag { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 6px; background: var(--accent, #d1fe17); color: var(--accent-ink, #111); font-size: 10px; font-weight: 800; letter-spacing: .3px; vertical-align: middle; }

/* ── Крупные карточки-шаги на десктопе ────────────────────────────────
   Порог 1101px выбран намеренно: ниже него работает блок max-width:1100px,
   где карточки одноколоночные и 220px высотой — мобилка и планшет
   остаются без изменений.
   Блок стоит в конце файла осознанно: базовые .ls-card-img / .ls-cards
   объявлены выше и при равной специфичности перебили бы его.
   Высота 340px: 640 оказалось слишком много, срезали ~300. */
@media (min-width: 1101px) {
  .ls-intro { max-width: 100%; width: 100%; padding: 20px 24px; }
  .ls-cards { max-width: min(1900px, 100%); gap: 26px; }
  .ls-card-img { height: 340px; }
  .ls-card > b { font-size: 18px; }
  .ls-card > span { font-size: 14.5px; }
  .ls-card-n { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; top: 16px; left: 16px; }
  .ls-card-ic svg { width: 76px; height: 76px; }
}
