/* Инструмент «Создание видео» (/instrumenty/lirik-video/)
 * Чистая мастерская в духе UpSound AI на токенах дизайн-системы upsound.org. */

.lv-page {
  --lv-surface: rgba(255, 255, 255, .04);
  --lv-surface-h: rgba(255, 255, 255, .078);
  --lv-hair: rgba(255, 255, 255, .085);
  --lv-hair-h: rgba(255, 255, 255, .2);
  --lv-ok: #68C88A;
  color: var(--ivory);
}
.lv-page [hidden] { display: none !important; }
.lv-crumb { padding-top: clamp(12px, 1.5vw, 18px); }
.lv-crumb .j-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.lv-crumb .j-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  row-gap: 6px;
  font: var(--t-eyebrow);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
}
.lv-crumb .j-crumbs li + li::before { content: "/"; padding-inline: 12px; }
.lv-crumb .j-crumbs a { color: inherit; text-decoration: none; transition: color .18s var(--ease); }
.lv-crumb .j-crumbs a:hover { color: var(--ivory); }
.lv-crumb .j-crumbs [aria-current] { color: var(--ivory); }
.lv-crumb .j-bar__aside { margin: 0; }
@media (max-width: 640px) { .lv-crumb .j-bar__aside { display: none; } }

.lv-wrap {
  padding-top: clamp(18px, 2.1vw, 28px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

/* Заголовок + невесомая строка файлов строго в сетке .wrap (1440px) */
.lv-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: clamp(22px, 2.4vw, 32px);
}
.lv-title {
  margin: 0;
  font: 300 clamp(28px, 3.4vw, 48px)/1.02 var(--f-display);
  letter-spacing: -.045em;
  color: var(--ivory);
}
.lv-title .it {
  font: italic 300 1.14em/1 var(--f-serif);
  letter-spacing: -.01em;
  margin-left: .04em;
}
.lv-dock {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.lv-pill {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--lv-surface);
  border: 1px solid var(--lv-hair);
  color: var(--ivory-2);
  font: 400 13px/1 var(--f-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.lv-pill:hover {
  background: var(--lv-surface-h);
  border-color: var(--lv-hair-h);
  color: var(--ivory);
}
.lv-pill--pri {
  background: linear-gradient(135deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .06) 100%);
  border-color: rgba(255, 255, 255, .20);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .20);
  color: var(--ivory);
}
.lv-pill--pri:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, .10) 100%);
  border-color: rgba(255, 255, 255, .32);
}
.lv-pill--ok {
  border-color: rgba(104, 200, 138, .38);
  color: var(--ivory);
}
.lv-pill__thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.lv-pill__muted {
  color: var(--mute);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.lv-pill__name {
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Живые минималистичные иконки без кружков и рамок */
.lv-glyph {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  color: rgba(239, 232, 220, .78);
  background: transparent;
  border: 0;
}
.lv-glyph svg { width: 100%; height: 100%; overflow: visible; }
.lv-glyph-halo {
  position: absolute;
  inset: -24%;
  border-radius: 9999px;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(239, 232, 220, .18) 0%, rgba(239, 232, 220, .04) 48%, transparent 74%);
  opacity: .9;
}
.lv-comet { stroke-dasharray: 24 76; animation: lv-comet 3.4s linear infinite; }
@keyframes lv-comet { from { stroke-dashoffset: 24; } to { stroke-dashoffset: -76; } }
.lv-breathe { transform-box: view-box; animation: lv-breathe 3.6s ease-in-out infinite; }
@keyframes lv-breathe { 0%, 100% { transform: scale(.95); opacity: .8; } 50% { transform: scale(1.06); opacity: 1; } }
.lv-twinkle { animation: lv-twinkle 3.2s ease-in-out infinite; }
@keyframes lv-twinkle { 0%, 100% { opacity: .2; } 50% { opacity: .92; } }

/* Двухколоночная сетка мастерской с воздухом */
.lv-grid {
  display: grid;
  grid-template-columns: minmax(280px, 318px) minmax(0, 1fr);
  gap: clamp(36px, 4.8vw, 72px);
  align-items: start;
}

/* Левая колонка: чистая сцена + стеклянная кнопка UpSound AI */
.lv-left {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lv-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #070708;
  box-shadow: 0 24px 56px -16px rgba(0, 0, 0, .78);
  transition: aspect-ratio .35s var(--slow);
}
.lv-stage.is-wide { aspect-ratio: 16 / 9; }
.lv-stage.is-drag { box-shadow: 0 0 0 2px var(--ivory), 0 24px 56px -16px rgba(0, 0, 0, .78); }
.lv-stage canvas { width: 100%; height: 100%; display: block; }

.lv-empty {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: radial-gradient(circle at 50% 34%, #1B1918 0%, #090808 74%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 24px;
  gap: 16px;
}
.lv-empty__t {
  margin: 0;
  font: 400 17px/1.3 var(--f-display);
  letter-spacing: -.03em;
  color: var(--ivory);
}
.lv-empty__d {
  margin: -6px 0 2px;
  font: 400 13px/1.45 var(--f-text);
  color: var(--mute);
  max-width: 24ch;
}
.lv-empty__acts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 230px;
}
.lv-empty__btn {
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  color: var(--ivory);
  font: 500 13px/1 var(--f-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lv-empty__btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); }
.lv-empty__btn--pri { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.lv-empty__btn--pri:hover { background: #FFFFFF; }
.lv-empty__link {
  background: none;
  border: 0;
  padding: 6px;
  color: var(--mute);
  font: 400 12.5px/1.2 var(--f-text);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lv-empty__link:hover { color: var(--ivory); }

.lv-cap {
  position: absolute;
  top: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(11, 10, 9, .54);
  backdrop-filter: blur(12px);
}
.lv-cap--left { left: 12px; }
.lv-cap--right { right: 12px; }
.lv-ic-btn {
  width: 30px;
  height: 26px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.lv-ic-btn:hover { color: #FFFFFF; background: rgba(255, 255, 255, .12); }
.lv-ic-btn[aria-pressed="true"] { color: #FFFFFF; background: rgba(255, 255, 255, .2); }

.lv-player {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lv-play {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: rgba(11, 10, 9, .54);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
.lv-play:hover { background: rgba(11, 10, 9, .8); }
.lv-seek {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .24);
  cursor: pointer;
  overflow: hidden;
}
.lv-seek__fill { height: 100%; width: 0%; background: #FFFFFF; border-radius: 999px; }
.lv-time {
  font: 400 11.5px/1 var(--f-text);
  color: rgba(255, 255, 255, .8);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

/* Прямые действия загрузки прямо поверх демо-видео (без рамки в рамке — один стеклянный слой) */
.lv-stage-guide {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 14px 52px;
  background: linear-gradient(180deg, rgba(8, 8, 9, 0) 0%, rgba(8, 8, 9, .58) 45%, rgba(8, 8, 9, .86) 100%);
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.lv-stage.is-wide .lv-stage-guide {
  padding: 16px 14px 44px;
  gap: 6px;
}
.lv-stage.is-wide .lv-stage-guide__k { display: none; }
.lv-stage-guide__k {
  font: 400 11px/1.2 var(--f-text);
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .72);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .75);
}
.lv-stage-guide__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  pointer-events: auto;
}
.lv-stage-btn {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, .09) 55%, rgba(255, 255, 255, .16) 100%);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  color: #FFFFFF;
  font: 500 12px/1 var(--f-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .30),
    0 4px 14px rgba(0, 0, 0, .38);
  transition: background .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.lv-stage-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, .10) 48%, rgba(255, 255, 255, .24) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.lv-stage-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, .16) 55%, rgba(255, 255, 255, .24) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .42),
    0 6px 20px rgba(0, 0, 0, .45);
  transform: translateY(-1px);
}
.lv-stage-btn.is-done {
  background: rgba(104, 200, 138, .18);
  color: #C3F6D3;
}
.lv-stage-btn.is-done::before {
  background: linear-gradient(135deg, rgba(104, 200, 138, .52) 0%, rgba(104, 200, 138, .22) 100%);
}

/* Одна стеклянная кнопка под видео — канонический Liquid Glass .generate-button из UpSound AI */
.lv-cta {
  position: relative;
  width: 100%;
  height: 50px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, .20) 0%,
    rgba(255, 255, 255, .11) 50%,
    rgba(255, 255, 255, .17) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    inset 0 1px 1px 0 rgba(255, 255, 255, .32),
    inset 0 -1px 1px 0 rgba(0, 0, 0, .14),
    0 4px 18px rgba(0, 0, 0, .34);
  color: #FFFFFF;
  font: 500 14.5px/1 var(--f-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: background .24s var(--ease), box-shadow .24s var(--ease), transform .24s var(--ease);
}
.lv-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, .42) 0%,
    rgba(255, 255, 255, .12) 42%,
    rgba(255, 255, 255, .26) 76%,
    rgba(255, 255, 255, .16) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: .76;
  transition: opacity .24s var(--ease);
}
.lv-cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100%;
  width: 60%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .24), transparent);
  transform: skewX(-20deg);
  transition: left .55s var(--ease);
}
.lv-cta:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, .28) 0%,
    rgba(255, 255, 255, .17) 50%,
    rgba(255, 255, 255, .24) 100%);
  box-shadow:
    inset 0 1px 1px 0 rgba(255, 255, 255, .44),
    inset 0 -1px 1px 0 rgba(0, 0, 0, .10),
    0 8px 26px rgba(0, 0, 0, .42),
    0 0 24px rgba(255, 255, 255, .09);
  transform: translateY(-1px);
}
.lv-cta:hover::before { opacity: 1; }
.lv-cta:hover::after { left: 140%; }
.lv-cta:active { transform: translateY(0); }
.lv-cta__in {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.lv-cta--ai {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, .15) 0%,
    rgba(255, 255, 255, .08) 50%,
    rgba(255, 255, 255, .13) 100%);
  color: #FFFFFF;
}
.lv-cta--ai:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, .22) 0%,
    rgba(255, 255, 255, .14) 50%,
    rgba(255, 255, 255, .20) 100%);
}
.lv-cta:disabled { opacity: .44; cursor: default; transform: none; }
.lv-cta-hint {
  margin: -4px 0 0;
  text-align: center;
  font: 400 12px/1.35 var(--f-text);
  color: var(--mute);
}
.lv-cta-hint button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ivory-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.lv-cta-hint button:hover { color: #FFFFFF; }

.lv-ai-wm {
  height: 15px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}
.lv-ai-wm--lg { height: 18px; }

/* Правая колонка: 01 Стиль и 02 Кадр — больше воздуха */
.lv-right {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 4.2vw, 54px);
  min-width: 0;
}
.lv-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 18px;
}
.lv-sec-left { display: inline-flex; align-items: baseline; gap: 14px; }
.lv-sec-num {
  font: 200 32px/1 var(--f-display);
  color: rgba(239, 232, 220, .24);
  font-variant-numeric: tabular-nums;
}
.lv-sec-h {
  margin: 0;
  font: 400 16px/1.2 var(--f-display);
  letter-spacing: -.02em;
  color: var(--ivory);
}
.lv-sec-sub { font: 400 13px/1.2 var(--f-text); color: var(--mute); }

.lv-styles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.lv-st {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, .07);
  background: #0d0c0d;
  cursor: pointer;
  transition: border-color .2s var(--ease);
}
.lv-st:hover { border-color: rgba(255, 255, 255, .32); }
.lv-st[aria-checked="true"] {
  border-color: rgba(255, 255, 255, .92);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35);
}
.lv-st canvas { width: 100%; height: 100%; display: block; }
.lv-st__ai {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(11, 10, 9, .7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .14);
  font: 500 9px/1 var(--f-mono);
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .74);
  pointer-events: none;
}
.lv-st[aria-checked="true"] .lv-st__ai {
  background: var(--red);
  border-color: var(--red);
  color: #FFFFFF;
}
.lv-st__tip {
  position: absolute;
  left: 6px;
  bottom: 5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(11, 10, 9, .78);
  font: 400 10.5px/1.2 var(--f-text);
  color: #FFFFFF;
  opacity: 0;
  transition: opacity .16s ease;
  pointer-events: none;
}
.lv-st:hover .lv-st__tip { opacity: 1; }

.lv-more-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lv-frames {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

/* 03 Атмосфера: 16:9 живые оптические пресеты фона */
.lv-atmos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.lv-atmo {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: center;
}
.lv-atmo__box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, .07);
  background: #101012;
  transition: border-color .2s var(--ease);
}
.lv-atmo:hover .lv-atmo__box { border-color: rgba(255, 255, 255, .32); }
.lv-atmo[aria-checked="true"] .lv-atmo__box {
  border-color: rgba(255, 255, 255, .92);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .32);
}
.lv-atmo__box canvas { width: 100%; height: 100%; display: block; }
.lv-atmo__name { font: 400 12px/1.2 var(--f-text); color: var(--mute); }
.lv-atmo[aria-checked="true"] .lv-atmo__name { color: var(--ivory); }

/* 04 Текст и настройки — чистая консоль без рамки в рамке */
.lv-console {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lv-console__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 32px;
}
.lv-console__opts {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px 30px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.lv-console__field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.lv-console__lbl {
  font: 400 12px/1.2 var(--f-text);
  color: var(--mute);
}
.lv-chips {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.lv-chip {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .035);
  color: var(--ivory-2);
  font: 400 13px/1 var(--f-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.lv-chip:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .24);
  color: #FFFFFF;
}
.lv-chip[aria-pressed="true"] {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .52);
  color: #FFFFFF;
}
.lv-chip--static {
  cursor: default;
  color: var(--mute);
  background: rgba(255, 255, 255, .02);
}
.lv-swatches {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
}
.lv-swatch {
  width: 24px;
  height: 24px;
  padding: 3px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .16);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.lv-swatch:hover { border-color: rgba(255, 255, 255, .52); }
.lv-swatch[aria-checked="true"] { border-color: #FFFFFF; }
.lv-swatch__dot {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  display: block;
}
.lv-swatch--auto .lv-swatch__dot {
  background: conic-gradient(from 0deg, #ffd23f, #b6f23a, #4fd1ff, #9b8cff, #ff4fa3, #ffd23f);
}

@media (max-width: 1120px) {
  .lv-atmos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lv-atmos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
.lv-fr {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: center;
}
.lv-fr__box {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 14;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, .07);
  background: #121010;
  transition: border-color .2s var(--ease);
}
.lv-fr:hover .lv-fr__box { border-color: rgba(255, 255, 255, .3); }
.lv-fr[aria-checked="true"] .lv-fr__box { border-color: rgba(255, 255, 255, .92); }
.lv-fr__box canvas { width: 100%; height: 100%; display: block; }
.lv-fr__live-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(11, 10, 9, .76);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .16);
  font: 400 10.5px/1 var(--f-text);
  color: #FFFFFF;
  white-space: nowrap;
}
.lv-fr__name { font: 400 12px/1.2 var(--f-text); color: var(--mute); }
.lv-fr[aria-checked="true"] .lv-fr__name { color: var(--ivory); }

.lv-frame-foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Модальные окна (Текст / Синхронизация / Telegram / UpSound AI) */
.lv-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 5, 6, .8);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lv-dialog {
  width: min(620px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  background: #131212;
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 24px 26px;
  display: grid;
  gap: 16px;
  position: relative;
}
.lv-dialog__x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--mute);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.lv-dialog__x:hover { background: rgba(255, 255, 255, .08); color: #FFFFFF; }
.lv-dialog__h {
  margin: 0;
  padding-right: 34px;
  font: 400 20px/1.2 var(--f-display);
  letter-spacing: -.03em;
  color: var(--ivory);
}
.lv-dialog__p { margin: 0; font: 400 14px/1.5 var(--f-text); color: var(--ivory-2); }

.lv-sync-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.lv-status {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  font: 400 13px/1.45 var(--f-text);
  color: var(--ivory-2);
}
.lv-status--ok { border-color: rgba(104, 200, 138, .35); color: var(--lv-ok); }
.lv-status--err { border-color: rgba(227, 6, 19, .45); color: var(--red-ink); }

.lv-lyrics-area {
  width: 100%;
  min-height: 220px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--ivory);
  font: 400 14px/1.65 var(--f-text);
  resize: vertical;
  outline: none;
}
.lv-lyrics-area:focus { border-color: rgba(255, 255, 255, .32); }

/* Режим «Отбить ритм пробелом» */
.lv-tap-box {
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 18px;
  display: grid;
  gap: 12px;
  text-align: center;
}
.lv-tap-cur {
  font: 400 18px/1.3 var(--f-display);
  color: #FFFFFF;
}
.lv-tap-next { font: 400 13.5px/1.3 var(--f-text); color: var(--mute); }

/* Прогресс сборки MP4 и Telegram-выдача */
.lv-prog {
  display: grid;
  gap: 10px;
}
.lv-prog__bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.lv-prog__fill {
  height: 100%;
  width: 0%;
  background: var(--ivory);
  border-radius: 999px;
  transition: width .15s linear;
}
.lv-prog__meta {
  display: flex;
  justify-content: space-between;
  font: 400 12.5px/1.2 var(--f-mono);
  color: var(--ivory-2);
}

.lv-tg-box {
  border-radius: 14px;
  background: #0F141A;
  border: 1px solid rgba(114, 178, 240, .24);
  padding: 18px;
  display: grid;
  gap: 14px;
}
.lv-tg-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 16px;
  align-items: center;
}
.lv-qr {
  width: 128px;
  height: 128px;
  padding: 8px;
  border-radius: 10px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lv-qr svg { width: 100%; height: 100%; display: block; }

.lv-ai-card {
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .09);
  padding: 18px;
  display: grid;
  gap: 10px;
}
.lv-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 13.5px;
  color: var(--ivory-2);
}
.lv-list li::before { content: "— "; color: var(--red-ink); }

/* Нижний FAQ под мастерской (не мешает работе выше сгиба) */
.lv-faq {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 24px;
}
.lv-faq__h {
  margin: 0;
  font: 300 clamp(24px, 2.8vw, 38px)/1.05 var(--f-display);
  letter-spacing: -.04em;
}
.lv-faq__h .it { font: italic 300 1.14em/1 var(--f-serif); }
.lv-faq__list {
  display: grid;
  gap: 0;
  max-width: 78ch;
}
.lv-faq__item {
  border-bottom: 1px solid var(--rule);
}
.lv-faq__item summary {
  padding: 16px 0;
  font: 500 16px/1.35 var(--f-text);
  color: var(--ivory);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.lv-faq__item summary::-webkit-details-marker { display: none; }
.lv-faq__item summary::after { content: "+"; color: var(--mute); font-weight: 300; }
.lv-faq__item[open] summary::after { content: "−"; color: var(--ivory); }
.lv-faq__item p {
  margin: 0 0 18px;
  font: 400 15px/1.6 var(--f-text);
  color: var(--ivory-2);
}

.lv-toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--ivory);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  font: 500 13.5px/1.3 var(--f-text);
  z-index: 260;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s var(--ease);
}
.lv-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1120px) {
  .lv-styles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lv-frames { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .lv-grid { grid-template-columns: 1fr; }
  .lv-left { position: static; max-width: 344px; margin-inline: auto; width: 100%; }
  .lv-tg-row { grid-template-columns: 1fr; }
  .lv-qr { display: none; }
}
@media (max-width: 520px) {
  .lv-styles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .lv-comet, .lv-breathe, .lv-twinkle { animation: none !important; }
}
