/* /freetts 「음성 하나로, 여기까지 됩니다.」 기능 구역 (2026-10-02 개편)
   마크업 = views/include/freetts_features_section.ejs · 움직임·소리 = freetts-features.js

   구성: 왼쪽 = 스튜디오 왼쪽 메뉴와 같은 도구 목록(아이콘·이름 + "무엇 → 무엇"), 오른쪽 = 고른 도구의 작업 화면(실제 화면을 줄여 그림),
         아래 = 그 도구의 설명 한 벌(제목·두 줄·핵심 세 가지·버튼). 도구 여섯 개가 모두 같은 틀이다.
   원칙: 아이콘 네모 카드·그라데이션·배경에서 혼자 도는 장식 없음. 움직임은 탭을 고르거나 재생을 누를 때만.
         작업 화면의 색은 실제 스튜디오와 같다 — 믹서 트랙 음성 하늘색·배경음악 초록, 재생선 빨강, 확장자 딱지 MP4 보라·PDF 장미·SRT 회색.
   주의: v2.css 가 구역 안 h3 를 24px 로, article h3 를 18px 로 덮는다 — 작업 화면 안에는 h3·article 을 쓰지 않는다. */

.ff {
  --ff-ink: #181a1f;
  --ff-sub: #50535a;
  --ff-cap: #6b6e76;
  --ff-faint: #8a8d94;
  --ff-line: rgba(112, 115, 124, 0.2);
  --ff-soft: #f6f6f8;
  --ff-brand: #4f37ff;
  --ff-brand-ink: #3a26d9;
  --ff-band: #eeebff;
  --ff-band-ink: #180e66;
  --ff-voice: #0ea5e9;
  --ff-bgm: #10b981;
  --ff-side: 256px;
  --ff-h: 452px;
}

/* ── 머리: 제목 왼쪽 · 설명 오른쪽(구역마다 같은 "배지 + 가운데 제목" 반복을 피한다) ── */
.ff-head {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: end; gap: 16px 56px;
  margin-bottom: 40px;
}
body.wmv-v2 .v2-main .ff-head h2 { margin: 0; }
body.wmv-v2 .v2-main .ff-lead { margin: 0; font: 500 17px/1.65 var(--font-sans); color: var(--ff-sub); max-width: 34em; justify-self: end; }

/* ── 작업대: 목록 + 작업 화면이 한 틀(테두리·그림자 하나), 설명은 그 아래 ── */
.ff-bench { position: relative; display: grid; grid-template-columns: var(--ff-side) minmax(0, 1fr); scroll-margin-top: 88px; }
.ff-bench::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--ff-h); border-radius: 20px; pointer-events: none;
  box-shadow: 0 1px 2px rgba(17, 18, 20, 0.05), 0 28px 56px -36px rgba(17, 18, 20, 0.32);
}
.ff-side {
  grid-area: 1 / 1; position: relative; z-index: 1; box-sizing: border-box; height: var(--ff-h);
  display: flex; flex-direction: column; gap: 8px; padding: 18px 12px;
  background: var(--ff-soft); border: 1px solid var(--ff-line); border-right: 0; border-radius: 20px 0 0 20px;
}
body.wmv-v2 .v2-main .ff-side-title { margin: 0 10px 4px; font: 700 12.5px/1.4 var(--font-sans); color: var(--ff-cap); }
.ff-tabs { display: flex; flex-direction: column; gap: 2px; }
.ff-tab {
  appearance: none; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  width: 100%; margin: 0; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent;
  text-align: left; font: inherit; color: var(--ff-ink); cursor: pointer; transition: background-color 0.15s ease;
}
.ff-tab:hover { background: rgba(24, 26, 31, 0.045); }
.ff-tab-ico { display: grid; place-items: center; color: var(--ff-cap); }
.ff-tab-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ff-tab-txt b { font: 650 15px/1.35 var(--font-sans); letter-spacing: -0.012em; }
/* "무엇 → 무엇"은 자르지 않는다 — 긴 언어(베트남어·스페인어)는 두 줄까지 */
.ff-tab-txt small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font: 500 12.5px/1.4 var(--font-sans); color: var(--ff-cap); word-break: keep-all; }
.ff-tab[aria-selected="true"] { background: #fff; box-shadow: 0 1px 2px rgba(17, 18, 20, 0.06), inset 0 0 0 1px rgba(79, 55, 255, 0.22); }
.ff-tab[aria-selected="true"] .ff-tab-ico,
.ff-tab[aria-selected="true"] .ff-tab-txt b { color: var(--ff-brand-ink); }
.ff-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--ff-band); color: var(--ff-brand-ink); font: 700 11px/1 var(--font-sans); white-space: nowrap; }

.ff-panel { grid-area: 1 / 1 / 2 / 3; display: grid; grid-template-columns: var(--ff-side) minmax(0, 1fr); align-content: start; min-width: 0; }
/* 주소의 #ppt-video·#dubbing 등으로 들어오면 브라우저가 그 패널로 옮긴다 — 위쪽 고정 메뉴에 가리지 않게(좁은 화면은 위 도구 줄까지) */
.ff-panel, .ff-uses-sec { scroll-margin-top: 88px; }
.ff-panel[hidden] { display: none; }

/* ── 작업 화면 공통 ── */
.ff-screen {
  grid-column: 2; box-sizing: border-box; height: var(--ff-h); min-width: 0; overflow: hidden;
  display: flex; flex-direction: column; background: #fff; color: var(--ff-ink);
  border: 1px solid var(--ff-line); border-radius: 0 20px 20px 0;
}
.ff-bar { flex: none; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 20px; border-bottom: 1px solid var(--ff-line); min-width: 0; }
.ff-bar-name { margin-right: auto; font: 700 15px/1.2 var(--font-sans); letter-spacing: -0.01em; white-space: nowrap; }
.ff-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--ff-line);
  background: #fff; font: 600 12.5px/1 var(--font-sans); color: #3b3e45; white-space: nowrap;
}
.ff-chip-strong { background: var(--ff-ink); border-color: var(--ff-ink); color: #fff; }
.ff-chip-soft { background: #f1f1f4; border-color: transparent; }
.ff-avatar { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: #c9c1ff; box-shadow: inset 0 0 0 4px #ece8ff; }
.ff-avatar.is-rose { background: #fda4af; box-shadow: inset 0 0 0 4px #ffe4e8; }
.ff-avatar.is-sky { background: #7dd3fc; box-shadow: inset 0 0 0 4px #e0f2fe; }
.ff-body { flex: 1; min-height: 0; padding: 18px 20px; }
body.wmv-v2 .v2-main .ff-label { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font: 700 12px/1.3 var(--font-sans); color: var(--ff-cap); }
.ff-label-note { padding: 2px 7px; border-radius: 6px; background: #f1f1f4; font-weight: 600; color: var(--ff-sub); }
.ff-transport { flex: none; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 20px; border-top: 1px solid var(--ff-line); background: #fbfbfc; min-width: 0; }
.ff-time { font: 600 13px/1 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ff-sub); white-space: nowrap; }
.ff-files { display: inline-flex; gap: 6px; margin-left: auto; }
.ff-ext { display: inline-grid; place-items: center; height: 22px; padding: 0 7px; border-radius: 6px; background: var(--ff-brand); color: #fff; font: 800 10.5px/1 var(--font-sans); letter-spacing: 0.02em; }
.ff-ext.is-wav { background: var(--ff-voice); }
.ff-ext.is-srt { background: #6b6e76; }
.ff-ext.is-mp4 { background: #7c3aed; }
.ff-ext.is-pdf { background: #e11d48; height: 18px; padding: 0 5px; font-size: 9.5px; }

/* 재생 단추 · 파형(진행 = --p) */
.ff-play {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: var(--ff-brand); color: #fff; cursor: pointer; box-shadow: 0 6px 14px -6px rgba(79, 55, 255, 0.6);
}
.ff-play svg { width: 20px; height: 20px; }
.ff-play .is-pause, .ff-play[aria-pressed="true"] .is-play { display: none; }
.ff-play[aria-pressed="true"] .is-pause { display: block; }
.ff-wave { position: relative; display: block; flex: 1; min-width: 0; height: 32px; }
.ff-wave svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ff-wave-base { fill: #d9dae0; }
.ff-wave-on { fill: var(--ff-brand); clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); }

/* ① 음성 스튜디오 — 대본 | 자막 파일(SRT) */
.ff-studio { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 16px; }
.ff-script { display: flex; flex-direction: column; border: 1px solid var(--ff-line); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.ff-style { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ff-line); }
.ff-chips-sm li { padding: 5px 9px; font-size: 12px; }
.ff-chips li.is-on { background: var(--ff-band); color: var(--ff-band-ink); box-shadow: inset 0 0 0 1px rgba(79, 55, 255, 0.35); }
body.wmv-v2 .v2-main .ff-script-text { margin: 0; font: 500 17px/1.8 var(--font-sans); color: #2a2c31; word-break: keep-all; }
.ff-line { border-radius: 4px; transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease; }
.ff-line.is-now { background: var(--ff-band); color: var(--ff-band-ink); box-shadow: 0 0 0 3px var(--ff-band); }
.ff-line.is-past { color: var(--ff-faint); }
.ff-srt { min-width: 0; border-radius: 14px; background: var(--ff-soft); padding: 16px; }
.ff-srt .ff-ext { height: 18px; font-size: 9.5px; background: #6b6e76; }
.ff-srt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ff-srt-row {
  display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 8px; padding: 8px 10px; border-radius: 10px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--ff-line); cursor: pointer; transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.ff-srt-n { grid-row: span 2; font: 700 12px/1.5 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ff-faint); }
.ff-srt-time { font: 600 11.5px/1.5 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ff-cap); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ff-srt-text { font: 600 13px/1.45 var(--font-sans); color: var(--ff-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ff-srt-row.is-now { background: #fbfaff; box-shadow: inset 0 0 0 1.5px var(--ff-brand); }
.ff-srt-row.is-past .ff-srt-text { color: var(--ff-cap); }

/* ② 보이스 클로닝 — 녹음 | 배우기 + 내 음성 */
.ff-steps-bar { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.ff-steps-bar li { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 6px; border-radius: 999px; font: 600 12.5px/1 var(--font-sans); color: var(--ff-cap); white-space: nowrap; }
.ff-steps-bar li i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #e6e6eb; color: var(--ff-sub); font: 800 10.5px/1 var(--font-sans); font-style: normal; }
.ff-steps-bar li i svg { width: 11px; height: 11px; }
.ff-steps-bar li.is-done i { background: var(--ff-brand); color: #fff; }
.ff-steps-bar li.is-now { background: var(--ff-band); color: var(--ff-band-ink); }
.ff-steps-bar li.is-now i { background: var(--ff-brand); color: #fff; }
.ff-clone { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.ff-rec { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--ff-line); border-radius: 14px; padding: 16px 18px; }
body.wmv-v2 .v2-main .ff-guide { position: relative; margin: 0; font: 500 19px/1.75 var(--font-sans); letter-spacing: -0.01em; word-break: keep-all; }
.ff-guide-base { display: block; color: #b9bbc2; }
.ff-guide-on { position: absolute; inset: 0; color: var(--ff-ink); }
.ff-meter { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: #fff4f4; }
.ff-rec-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.16); }
.ff-rec-label { font: 700 13px/1 var(--font-sans); color: #c7353a; white-space: nowrap; }
.ff-rec-bars { flex: 1; min-width: 0; height: 26px; display: flex; align-items: center; gap: 3px; }
.ff-rec-bars i { flex: 1; min-width: 2px; height: var(--h); border-radius: 2px; background: #f19a9d; transform-origin: center; }
.ff-rec-time { font: 700 13px/1 var(--font-sans); font-variant-numeric: tabular-nums; color: #8f2a2e; white-space: nowrap; }
body.wmv-v2 .v2-main .ff-rec-hint { margin: 10px 2px 0; font: 500 12.5px/1.5 var(--font-sans); color: var(--ff-cap); word-break: keep-all; }
.ff-learn { min-width: 0; display: flex; flex-direction: column; }
.ff-checks { list-style: none; margin: 2px 0 18px; padding: 0; display: grid; gap: 9px; }
.ff-checks li { display: flex; align-items: center; gap: 9px; font: 600 14px/1.3 var(--font-sans); color: var(--ff-ink); }
.ff-checks svg { flex: none; width: 18px; height: 18px; padding: 3px; box-sizing: border-box; border-radius: 50%; background: #e3f8ef; color: #059669; }
.ff-voices { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ff-voice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--ff-line); }
.ff-voice .ff-avatar { flex: none; width: 28px; height: 28px; box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.55); }
.ff-voice > span:not(.ff-tag) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ff-voice b { font: 700 14px/1.3 var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ff-voice small { font: 500 12px/1.4 var(--font-sans); color: var(--ff-cap); }
.ff-voice.is-new { background: #fbfaff; box-shadow: inset 0 0 0 1.5px var(--ff-brand); }
.ff-voice.is-new small { color: var(--ff-brand-ink); font-weight: 650; }
.ff-tag { flex: none; padding: 3px 7px; border-radius: 6px; background: #ffe4e8; color: #be123c; font: 700 11px/1.2 var(--font-sans); }
.ff-voice-add { box-shadow: none; border: 1px dashed rgba(112, 115, 124, 0.45); color: var(--ff-cap); }
.ff-voice-add b { color: var(--ff-cap); font-weight: 650; }
.ff-plus { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f1f1f4; font: 600 18px/1 var(--font-sans); font-style: normal; color: var(--ff-cap); }

/* 처음 열 때 한 번: 읽은 줄이 진해지고(녹음) → 배우기 세 줄 → 새 목소리. 기본(스크립트·동작 줄이기)은 다 된 장면 */
.ff-s-clone.is-run .ff-guide-on { animation: ff-read 2.4s linear both; }
.ff-s-clone.is-run .ff-rec-bars i { animation: ff-bar 0.5s ease-in-out var(--d) 5 alternate both; }
.ff-s-clone.is-run .ff-checks li { animation: ff-in 0.35s ease both; }
.ff-s-clone.is-run .ff-checks li:nth-child(1) { animation-delay: 2.5s; }
.ff-s-clone.is-run .ff-checks li:nth-child(2) { animation-delay: 2.85s; }
.ff-s-clone.is-run .ff-checks li:nth-child(3) { animation-delay: 3.2s; }
.ff-s-clone.is-run .ff-voice.is-new { animation: ff-in 0.45s cubic-bezier(.2, .8, .2, 1) 3.6s both; }
@keyframes ff-read { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ff-bar { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
@keyframes ff-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ③ 오디오 믹서 — 트랙 머리 | 타임라인, 빨간 선 = 지금 재생 위치 */
.ff-mixer { padding: 14px 20px 16px; }
.ff-tl { position: relative; height: 100%; display: grid; grid-template-rows: 22px 1fr 1fr; row-gap: 10px; padding-left: 108px; }
.ff-tl-ruler { position: relative; border-bottom: 1px solid var(--ff-line); }
.ff-tl-ruler span { position: absolute; top: 2px; font: 600 11px/1 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ff-faint); }
.ff-tl-ruler span::before { content: ""; position: absolute; left: 0; top: 14px; width: 1px; height: 6px; background: var(--ff-line); }
.ff-track { position: relative; min-height: 0; }
.ff-track-head { position: absolute; left: -108px; top: 0; bottom: 0; width: 96px; display: flex; align-items: center; gap: 8px; font: 700 13px/1.2 var(--font-sans); color: var(--ff-ink); }
.ff-track-head i { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.is-voice .ff-track-head i { background: var(--ff-voice); }
.is-bgm .ff-track-head i { background: var(--ff-bgm); }
.ff-track-lane { position: absolute; inset: 0; border-radius: 10px; background: var(--ff-soft); }
.ff-clip { position: absolute; top: 8px; bottom: 8px; box-sizing: border-box; display: flex; align-items: center; padding: 0 6px; overflow: hidden; border: 1px solid; border-radius: 8px; }
.is-voice .ff-clip { background: rgba(14, 165, 233, 0.14); border-color: rgba(14, 165, 233, 0.55); }
.is-voice .ff-clip .ff-wave { height: 60%; }
.is-voice .ff-wave-base { fill: rgba(2, 132, 199, 0.42); }
.is-voice .ff-wave-on { fill: #0369a1; }
.ff-clip-bgm { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.5); padding: 0; }
.ff-duck { position: absolute; left: 0; top: 10%; width: 100%; height: 80%; fill: none; stroke: #059669; stroke-width: 2; stroke-linejoin: round; }
.ff-duck path { vector-effect: non-scaling-stroke; } /* vector-effect 는 상속되지 않는다 — svg 에 주면 늘어난 비율만큼 선이 굵어진다 */
.ff-head-line { position: absolute; top: 18px; bottom: 0; left: calc(108px + (100% - 108px) * var(--p, 0)); width: 2px; margin-left: -1px; border-radius: 1px; background: #ef4444; pointer-events: none; }
.ff-head-line::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.ff-chip-switch { gap: 8px; }
.ff-switch { position: relative; width: 26px; height: 16px; border-radius: 999px; background: #22c55e; }
.ff-switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }

/* ④ 영상 더빙 — 영상(자막이 언어마다 바뀜) | 소리 트랙 세 줄 */
.ff-langs { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: #f1f1f4; }
.ff-lang { appearance: none; height: 28px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; font: 650 12.5px/1 var(--font-sans); color: var(--ff-sub); cursor: pointer; white-space: nowrap; }
.ff-lang[aria-pressed="true"] { background: #fff; color: var(--ff-ink); box-shadow: 0 1px 2px rgba(17, 18, 20, 0.12); }
.ff-dub { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
.ff-video { position: relative; min-height: 0; border-radius: 12px; overflow: hidden; background: #1b1c20; }
.ff-video img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
body.wmv-v2 .v2-main .ff-sub {
  position: absolute; left: 50%; bottom: 14px; width: max-content; max-width: 86%; margin: 0; transform: translateX(-50%);
  padding: 6px 12px; border-radius: 8px; background: rgba(12, 13, 16, 0.8); color: #fff; text-align: center;
  font: 600 14px/1.45 var(--font-sans); word-break: keep-all; opacity: 0; transition: opacity 0.3s ease;
}
.ff-s-dub[data-lang="ko"] .ff-sub[data-lang="ko"],
.ff-s-dub[data-lang="en"] .ff-sub[data-lang="en"],
.ff-s-dub[data-lang="ja"] .ff-sub[data-lang="ja"],
.ff-s-dub[data-lang="es"] .ff-sub[data-lang="es"] { opacity: 1; }
.ff-lanes { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.ff-lane { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 28px; gap: 7px 10px; }
.ff-lane-name { grid-area: 1 / 1; font: 700 13px/1.3 var(--font-sans); color: var(--ff-ink); }
.ff-lane-note { grid-area: 1 / 2; font: 700 12px/1.3 var(--font-sans); color: var(--ff-cap); }
.ff-lane-note b { display: none; color: var(--ff-brand-ink); }
.ff-s-dub[data-lang="ko"] .ff-lane-note b[data-lang="ko"],
.ff-s-dub[data-lang="en"] .ff-lane-note b[data-lang="en"],
.ff-s-dub[data-lang="ja"] .ff-lane-note b[data-lang="ja"],
.ff-s-dub[data-lang="es"] .ff-lane-note b[data-lang="es"] { display: inline; }
.ff-lane-track { grid-area: 2 / 1 / 3 / 3; position: relative; border-radius: 8px; background: var(--ff-soft); }
.ff-lane-track i { position: absolute; top: 5px; bottom: 5px; box-sizing: border-box; border-radius: 6px; }
.ff-lane.is-off i { border: 1px dashed #c4c6cc; background: repeating-linear-gradient(135deg, #e3e4e8 0 4px, transparent 4px 8px); }
.ff-lane.is-off .ff-lane-name { color: var(--ff-cap); text-decoration: line-through; text-decoration-color: rgba(107, 110, 118, 0.6); }
.ff-lane.is-new i { background: var(--ff-brand); }
.ff-lane.is-keep i { border: 1px solid rgba(16, 185, 129, 0.5); background: rgba(16, 185, 129, 0.14); }
.ff-lane.is-keep .ff-lane-note { color: #047857; }
/* 언어가 바뀔 때 새 목소리 클립이 다시 놓인다 */
.ff-s-dub.is-swap .ff-lane.is-new i { animation: ff-place 0.4s cubic-bezier(.2, .8, .2, 1) both; }
.ff-s-dub.is-swap .ff-lane.is-new i:nth-child(2) { animation-delay: 0.06s; }
.ff-s-dub.is-swap .ff-lane.is-new i:nth-child(3) { animation-delay: 0.12s; }
@keyframes ff-place { from { opacity: 0; transform: scaleX(0.6); transform-origin: left center; } to { opacity: 1; transform: none; } }

/* ⑤ PPT 영상 — 장 목록 | 슬라이드(자막) + 그 장의 대본 */
.ff-ppt { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
.ff-thumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ff-thumbs li { box-sizing: border-box; aspect-ratio: 16 / 9; display: flex; flex-direction: column; gap: 4px; padding: 7px 6px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--ff-line); }
.ff-thumbs li i { display: block; height: 3px; border-radius: 2px; background: #dcdde2; }
.ff-thumbs li i:first-child { width: 70%; background: #a9abb3; }
.ff-thumbs li i:last-child { width: 48%; }
.ff-thumbs li.is-on { box-shadow: inset 0 0 0 2px var(--ff-brand); }
.ff-deck { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ff-slide {
  position: relative; box-sizing: border-box; aspect-ratio: 16 / 9; overflow: hidden; padding: 18px 20px; border-radius: 10px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--ff-line), 0 10px 24px -18px rgba(17, 18, 20, 0.4);
}
.ff-slide::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--ff-brand); }
.ff-slide-title { display: block; font: 800 17px/1.3 var(--font-sans); letter-spacing: -0.02em; color: var(--ff-ink); word-break: keep-all; }
.ff-slide-lines { display: block; margin-top: 10px; width: 52%; }
.ff-slide-lines i { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: #e3e4e8; }
.ff-slide-lines i:nth-child(2) { width: 82%; }
.ff-slide-lines i:nth-child(3) { width: 64%; }
.ff-slide-art { position: absolute; right: 7%; top: 24%; display: grid; place-items: center; width: 27%; aspect-ratio: 1; border-radius: 50%; background: #fff4d6; color: #b45309; }
.ff-slide-art svg { width: 58%; height: 58%; }
.ff-slide-no { position: absolute; right: 14px; top: 12px; font: 600 11px/1 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ff-faint); }
body.wmv-v2 .v2-main .ff-slide-sub {
  position: absolute; left: 50%; bottom: 10px; width: max-content; max-width: 90%; margin: 0; transform: translateX(-50%);
  padding: 5px 10px; border-radius: 6px; background: rgba(12, 13, 16, 0.82); color: #fff; text-align: center;
  font: 600 12px/1.4 var(--font-sans); word-break: keep-all;
}
.ff-slide-scripts { list-style: none; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ff-slide-scripts li { display: flex; flex-direction: column; padding: 11px 13px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--ff-line); }
body.wmv-v2 .v2-main .ff-slide-scripts .ff-label { margin-bottom: 4px; }
body.wmv-v2 .v2-main .ff-slide-text { margin: 0; font: 500 13.5px/1.55 var(--font-sans); color: var(--ff-cap); word-break: keep-all; }
.ff-slide-scripts li.is-on { box-shadow: inset 0 0 0 1.5px var(--ff-brand); background: #fbfaff; }
body.wmv-v2 .v2-main .ff-slide-scripts li.is-on .ff-slide-text { color: var(--ff-ink); font-size: 14.5px; font-weight: 600; }
.ff-slide-scripts .ff-chip { align-self: flex-start; max-width: 100%; margin-top: 8px; height: 26px; overflow: hidden; text-overflow: ellipsis; }
.ff-render { gap: 16px; }
.ff-progress { position: relative; flex: 1; height: 6px; border-radius: 3px; background: #e6e6eb; overflow: hidden; }
.ff-progress i { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: inherit; background: var(--ff-brand); }
.ff-s-ppt.is-run .ff-progress i { animation: ff-grow 1.2s cubic-bezier(.4, 0, .2, 1) both; }
.ff-s-ppt.is-run .ff-render .ff-files { animation: ff-in 0.3s ease 1.2s both; }
.ff-s-ppt.is-run .ff-slide-sub { animation: ff-fade 0.4s ease 0.5s both; }
@keyframes ff-grow { from { width: 0; } to { width: 100%; } }
@keyframes ff-fade { from { opacity: 0; } to { opacity: 1; } }

/* ⑥ AI 음악 — 위: 만들 곡(이름·선택) / 아래: 가사지 | 후보 두 곡 */
.ff-music { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto minmax(0, 1fr); gap: 16px 18px; }
.ff-music-set { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-bottom: 16px; border-bottom: 1px solid var(--ff-line); }
body.wmv-v2 .v2-main .ff-music-title { margin: 0; font: 700 15px/1.3 var(--font-sans); color: var(--ff-ink); }
.ff-tag-ink { font: 700 12px/1 var(--font-sans); color: var(--ff-faint); letter-spacing: 0.02em; }
body.wmv-v2 .v2-main .ff-lyric-text { margin: 8px 0 0; font: 650 22px/1.5 var(--font-sans); letter-spacing: -0.02em; color: var(--ff-ink); word-break: keep-all; }
.ff-lyric-text b { color: var(--ff-brand-ink); }
.ff-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ff-lyric-sheet { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 18px 20px; border-radius: 14px; background: var(--ff-soft); }
.ff-chips li { padding: 6px 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--ff-line); font: 600 12.5px/1.2 var(--font-sans); color: #3b3e45; }
.ff-cands { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.ff-cand { display: grid; grid-template-columns: 40px auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--ff-line); transition: box-shadow 0.2s ease, background-color 0.2s ease; }
.ff-cand.is-playing { background: #fbfaff; box-shadow: inset 0 0 0 1.5px var(--ff-brand); }
.ff-cand-name { font: 700 14px/1 var(--font-sans); white-space: nowrap; }
.ff-cand .ff-wave { height: 28px; }
body.wmv-v2 .v2-main .ff-note { margin: 4px 2px 0; font: 500 12.5px/1.55 var(--font-sans); color: var(--ff-cap); }

/* ── 설명 한 벌: 제목·두 줄 | 핵심 세 가지·버튼 ── */
.ff-copy { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 56px; padding: 36px 0 0; }
body.wmv-v2 .v2-main .ff-copy h3 { margin: 0; }
body.wmv-v2 .v2-main .ff-copy-main p { margin: 12px 0 0; font: 500 16px/1.7 var(--font-sans); color: var(--ff-sub); max-width: 38em; }
.ff-facts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.ff-facts li { display: flex; align-items: flex-start; gap: 10px; font: 600 15px/1.5 var(--font-sans); color: var(--ff-ink); }
.ff-facts svg { flex: none; margin-top: 3px; color: var(--ff-brand); }
.ff-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.ff-steps li { display: flex; align-items: center; gap: 10px; font: 600 15px/1.5 var(--font-sans); color: var(--ff-ink); }
.ff-steps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ff-band); color: var(--ff-brand-ink); font: 800 12px/1 var(--font-sans); }
.ff-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.ff-more, .ff-inline { display: inline-flex; align-items: center; gap: 5px; font: 650 15px/1.4 var(--font-sans); color: var(--ff-brand-ink); text-decoration: none; }
.ff-more:hover, .ff-inline:hover { text-decoration: underline; text-underline-offset: 3px; }
.ff-inline { font-size: inherit; white-space: nowrap; }
body.wmv-v2 .v2-main .ff-fine { margin: 14px 0 0; font: 500 12.5px/1.55 var(--font-sans); color: var(--ff-cap); }

/* ── 어디에 쓸 목소리인가요? — 용도별 견본 독립 구역(2026-10-04 Mark: 3단계 다음으로, 재생 버튼 크게, 배경음 넣기 기본) ──
   줄 = 왼쪽 큰 재생 버튼(동그라미 + 남은 시간) | 제목·설명·듣는 방식·만든 방법. 재생 중인 줄은 제목이 인디고, 아래 선이 진행만큼 찬다.
   처음 한 번 첫 줄 버튼이 세 번 퍼진다(JS — 화면에 다 보일 때, 어떤 소리든 틀면 멈춤, 동작 줄이기면 없음) */
.ff-uses-sec .ff-head { margin-bottom: 32px; }
/* 왼쪽·오른쪽 두 단이 따로 늘어난다 — 한 줄의 원고를 펼쳐도 옆 단 줄이 같이 길어지지 않게(한 격자면 같은 행 높이를 나눠 가진다) */
.ff-use-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; align-items: start; }
body.wmv-v2 .v2-main .ff-use-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ff-line); }
.ff-use { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; align-items: start; padding: 22px 0 24px; border-bottom: 1px solid var(--ff-line); }
.ff-use > * { grid-column: 2; min-width: 0; }
.ff-use > .ff-use-play { grid-column: 1; grid-row: 1 / span 4; }
.ff-use > .ff-listen { justify-self: start; } /* 격자 칸이라 늘어나지 않게(휴대폰은 줄 폭 전체) */
.ff-use-title { display: block; font: 700 17px/1.4 var(--font-sans); letter-spacing: -0.012em; color: var(--ff-ink); }
body.wmv-v2 .v2-main .ff-use-desc { margin: 5px 0 0; font: 500 14.5px/1.65 var(--font-sans); color: #5a5d65; }
.ff-use-play { display: flex; flex-direction: column; align-items: center; gap: 7px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; font: 700 12.5px/1 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ff-sub); }
.ff-use-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--ff-brand); color: #fff; box-shadow: 0 8px 18px -10px rgba(79, 55, 255, 0.7); transition: transform 0.15s ease, background-color 0.15s ease; }
.ff-use-ico svg { width: 26px; height: 26px; }
.ff-use-play:hover .ff-use-ico { transform: scale(1.06); }
.ff-use-play:active .ff-use-ico { transform: scale(0.97); }
.ff-use-play .is-pause, .ff-use-play[aria-pressed="true"] .is-play { display: none; }
.ff-use-play[aria-pressed="true"] .is-pause { display: block; }
.ff-use-play[aria-pressed="true"] { color: var(--ff-brand-ink); }
.ff-use-play[aria-pressed="true"] .ff-use-ico { background: var(--ff-brand-ink); }
.ff-use.is-playing .ff-use-title { color: var(--ff-brand-ink); }
@keyframes ff-hint { 0% { box-shadow: 0 0 0 0 rgba(79, 55, 255, 0.45); } 100% { box-shadow: 0 0 0 18px rgba(79, 55, 255, 0); } }
.ff-use-play.is-hint .ff-use-ico { animation: ff-hint 1.5s ease-out 3; }
.ff-use::after { content: ""; position: absolute; left: 0; bottom: -1px; width: calc(var(--ff-prog, 0) * 100%); height: 2px; background: var(--ff-brand); pointer-events: none; }
/* 이 소리를 만든 방법(목소리·말투 → 펼치면 원고·스튜디오에서 고르는 곳) — 고객이 같은 설정으로 따라 만들 수 있게(2026-10-02 Mark) */
.ff-recipe { margin-top: 10px; }
.ff-recipe > summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; cursor: pointer; width: fit-content; max-width: 100%; border-radius: 8px; }
.ff-recipe > summary::-webkit-details-marker { display: none; }
.ff-recipe-item { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border-radius: 14px; background: #f2f2f5; font: 650 12.5px/1.35 var(--font-sans); color: var(--ff-ink); word-break: keep-all; }
.ff-recipe-item small { flex: none; font: 600 11.5px/1.35 var(--font-sans); color: var(--ff-cap); white-space: nowrap; }
.ff-recipe-item b { font: inherit; color: inherit; }
.ff-recipe-more { display: inline-flex; align-items: center; gap: 3px; padding: 4px 2px; font: 650 12.5px/1.35 var(--font-sans); color: var(--ff-brand-ink); }
.ff-recipe-more svg { transition: transform 0.2s ease; }
.ff-recipe[open] .ff-recipe-more svg { transform: rotate(180deg); }
.ff-recipe > summary:hover .ff-recipe-more { text-decoration: underline; text-underline-offset: 3px; }
.ff-recipe > summary:focus-visible { outline: 3px solid var(--ff-brand); outline-offset: 2px; }
/* 펼친 칸 = A안 "만드는 순서"(2026-10-03 Mark 선택 — 예전엔 회색 글 한 덩어리라 뭐가 뭔지 안 보였다):
   회색 판 위 흰 카드 — 원고 한 장 + 만든 단계 카드(음성 스튜디오 → AI 음악 만들기 → 오디오 믹서). 단계가 둘 이상이면 인디고 번호 + 잇는 선.
   값 = 칸 이름 + 칩(말투 마지막 칸 인디고, AI 음악 설정 초록 = 믹서 배경음악 트랙 색) */
.ff-recipe-body { margin-top: 10px; padding: 14px; border-radius: 14px; background: #f4f4f7; display: flex; flex-direction: column; gap: 12px; }
.ff-rc-script { padding: 12px 14px 14px; border-radius: 10px; background: #fff; }
.ff-rc-cap { display: flex; align-items: center; gap: 6px; font: 700 12px/1.3 var(--font-sans); color: var(--ff-cap); }
.ff-rc-cap svg { flex: none; color: var(--ff-faint); }
body.wmv-v2 .v2-main .ff-recipe-script { margin: 6px 0 0; font: 500 14.5px/1.7 var(--font-sans); color: var(--ff-ink); word-break: keep-all; overflow-wrap: anywhere; }
body.wmv-v2 .v2-main .ff-rc-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
body.wmv-v2 .v2-main .ff-rc-steps > li { margin: 0; padding: 0; }
.ff-rc-num { display: none; }
.ff-rc-steps.is-seq .ff-rc-step { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; }
.ff-rc-steps.is-seq .ff-rc-num { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 10px; border-radius: 50%; background: var(--ff-brand); color: #fff; font: 700 11.5px/1 var(--font-sans); }
.ff-rc-steps.is-seq .ff-rc-step:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 36px; bottom: -10px; width: 2px; border-radius: 1px; background: #d9d3ff; }
.ff-rc-card { min-width: 0; padding: 11px 12px 12px; border-radius: 10px; background: #fff; }
.ff-rc-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; font: 700 14px/1.35 var(--font-sans); color: var(--ff-ink); }
.ff-rc-h svg { flex: none; }
.ff-rc-h b { font: inherit; }
.ff-rc-h span { font: 600 12px/1.35 var(--font-sans); color: var(--ff-faint); }
.ff-rc-step.is-studio .ff-rc-h svg { color: var(--ff-brand); }
.ff-rc-step.is-music .ff-rc-h svg { color: #059669; }
body.wmv-v2 .v2-main .ff-rc-kv { display: grid; grid-template-columns: fit-content(7.5em) minmax(0, 1fr); gap: 8px 12px; align-items: center; margin: 10px 0 0; }
body.wmv-v2 .v2-main .ff-rc-kv dt { margin: 0; font: 600 12px/1.35 var(--font-sans); color: var(--ff-cap); word-break: keep-all; }
body.wmv-v2 .v2-main .ff-rc-kv dt.is-top { align-self: start; padding-top: 7px; }
body.wmv-v2 .v2-main .ff-rc-kv dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; }
.ff-rc-kv dd > svg { flex: none; color: #a3a6ad; }
.ff-rc-val { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid #e3e4e7; border-radius: 7px; background: #fafafb; font: 650 12.5px/1.4 var(--font-sans); color: var(--ff-ink); word-break: keep-all; }
.ff-rc-val.is-pick { border-color: #d5ceff; background: var(--ff-band); color: #2a1db5; }
.ff-rc-val.is-set { border-color: #b9e6d2; background: #ecf8f2; color: #046c4e; }
.ff-rc-note { display: block; width: 100%; padding: 7px 10px; border-radius: 8px; background: #f4f4f7; font: 500 12.5px/1.6 var(--font-sans); color: var(--ff-sub); word-break: keep-all; }
.ff-rc-switch { position: relative; flex: none; width: 22px; height: 13px; border-radius: 999px; background: #22c55e; }
.ff-rc-switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
/* 음성만 / 배경음 넣기(광고 줄) — 영상 더빙 화면의 언어 고르기와 같은 모양. 음표 = 믹서 배경음악 트랙 색 */
.ff-listen { display: inline-flex; gap: 3px; margin-top: 12px; padding: 3px; border-radius: 10px; background: #f1f1f4; }
.ff-listen-opt {
  appearance: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 7px;
  background: transparent; font: 650 13px/1 var(--font-sans); color: var(--ff-sub); cursor: pointer; white-space: nowrap;
}
.ff-listen-opt:hover { color: var(--ff-ink); }
.ff-listen-opt[aria-pressed="true"] { background: #fff; color: var(--ff-ink); box-shadow: 0 1px 2px rgba(17, 18, 20, 0.12); }
.ff-listen-opt svg { flex: none; color: var(--ff-faint); }
.ff-listen-opt[aria-pressed="true"] svg { color: #059669; }
.ff-listen-opt:focus-visible { outline: 3px solid var(--ff-brand); outline-offset: 2px; }
/* 배경음을 넣고 들을 때 만든 방법의 배경음 칩도 믹서 초록으로 */
.ff-use-duo.is-bgm .ff-recipe-bgm { background: #e7f6ef; }

.ff-use-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 22px 0 0; }
.ff-use-links a { font: 650 14.5px/1.5 var(--font-sans); color: var(--ff-brand-ink); text-decoration: none; }
.ff-use-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 키보드 초점 */
.ff-tab:focus-visible, .ff-play:focus-visible, .ff-lang:focus-visible, .ff-use-play:focus-visible, .ff-srt-row:focus-visible,
.ff-more:focus-visible, .ff-inline:focus-visible, .ff-use-links a:focus-visible { outline: 3px solid var(--ff-brand); outline-offset: 2px; }

/* ── 반응형 ── */
@media (max-width: 1120px) {
  .ff { --ff-side: 228px; }
  .ff-tab { gap: 10px; padding: 10px; }
  .ff-tab-txt small { font-size: 12px; }
  .ff-chip-voice { display: none; }
  .ff-mixer .ff-tl { padding-left: 92px; }
  .ff-track-head { left: -92px; width: 84px; }
  .ff-head-line { left: calc(92px + (100% - 92px) * var(--p, 0)); }
}
@media (max-width: 900px) {
  /* 목록은 위쪽 가로 줄(밀어서 넘김), 작업 화면은 높이 자유, 설명은 한 단 */
  .ff { --ff-h: auto; }
  .ff-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 28px; }
  body.wmv-v2 .v2-main .ff-lead { justify-self: start; font-size: 16px; }
  .ff-bench { grid-template-columns: minmax(0, 1fr); }
  .ff-bench::before { display: none; }
  .ff-side { grid-area: 1 / 1; height: auto; padding: 0; background: none; border: 0; border-radius: 0; margin: 0 -24px 12px; }
  body.wmv-v2 .v2-main .ff-side-title { display: none; }
  .ff-tabs { flex-direction: row; gap: 8px; overflow-x: auto; padding: 2px 24px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .ff-tabs::-webkit-scrollbar { display: none; }
  .ff-tab { flex: none; width: auto; grid-template-columns: 20px auto auto; gap: 8px; padding: 9px 14px 9px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--ff-line); scroll-snap-align: start; }
  .ff-tab-txt small { display: none; }
  .ff-tab-txt b { font-size: 14px; white-space: nowrap; }
  .ff-tab-ico svg { width: 18px; height: 18px; }
  .ff-tab[aria-selected="true"] { background: var(--ff-ink); box-shadow: none; }
  .ff-tab[aria-selected="true"] .ff-tab-ico, .ff-tab[aria-selected="true"] .ff-tab-txt b { color: #fff; }
  .ff-tab[aria-selected="true"] .ff-badge { background: rgba(255, 255, 255, 0.18); color: #fff; }
  .ff-panel { grid-area: 2 / 1; grid-template-columns: minmax(0, 1fr); scroll-margin-top: 150px; }
  .ff-screen { grid-column: 1; height: auto; border-radius: 16px; box-shadow: 0 20px 40px -32px rgba(17, 18, 20, 0.4); }
  .ff-copy { grid-column: 1; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 24px; }
  /* 한 단 — 두 목록을 풀어(display: contents) 줄마다 붙인 order 로 원래 순서(광고→유튜브→교육…)를 되찾는다 */
  .ff-use-cols { display: flex; flex-direction: column; border-top: 1px solid var(--ff-line); }
  .ff-use-cols > .ff-use-list { display: contents; }
}
@media (max-width: 640px) {
  .ff-bar { height: auto; min-height: 52px; flex-wrap: wrap; row-gap: 6px; padding: 10px 14px; }
  .ff-body { padding: 14px; }
  .ff-transport { height: 58px; padding: 0 14px; gap: 10px; }
  .ff-studio, .ff-clone, .ff-dub, .ff-music { grid-template-columns: minmax(0, 1fr); }
  .ff-music { grid-template-rows: none; }
  body.wmv-v2 .v2-main .ff-script-text, body.wmv-v2 .v2-main .ff-guide { font-size: 15.5px; }
  .ff-srt-row:nth-child(n+3) { display: none; }
  .ff-files { display: none; }
  .ff-mixer { padding: 12px 14px 14px; }
  .ff-mixer .ff-tl { grid-template-rows: 20px 76px 76px; padding-left: 0; }
  .ff-track-head { position: absolute; left: 8px; top: 6px; bottom: auto; width: auto; z-index: 1; font-size: 11.5px; }
  .ff-clip { top: 24px; bottom: 6px; }
  .ff-head-line { left: calc(100% * var(--p, 0)); }
  .ff-chip-soft { display: none; }
  .ff-video { aspect-ratio: 16 / 10; }
  .ff-lanes { gap: 12px; }
  .ff-ppt { grid-template-columns: minmax(0, 1fr); }
  .ff-thumbs { display: none; }
  .ff-deck { grid-template-columns: minmax(0, 1fr); }
  .ff-slide-scripts li:not(.is-on) { display: none; }
  .ff-langs { order: 3; width: 100%; justify-content: space-between; }
  .ff-lang { flex: 1; padding: 0 6px; }
  body.wmv-v2 .v2-main .ff-lyric-text { font-size: 18px; }
  .ff-cand { grid-template-columns: 40px auto minmax(0, 1fr); }
  .ff-cand .ff-time { display: none; }
  .ff-steps-bar li:not(.is-now) { display: none; }
  .ff-rec-bars i:nth-child(n+13) { display: none; }
  .ff-rec-label { display: none; }
  /* 재생 버튼은 제목·설명 옆(왼쪽), 음성만/배경음 넣기·만든 방법 칸은 줄 폭을 다 쓴다(좁은 단에 칩이 끼지 않게) */
  .ff-use { grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; padding: 20px 0 22px; }
  .ff-use > .ff-use-play { grid-row: 1 / span 2; }
  .ff-use > .ff-listen, .ff-use > .ff-recipe { grid-column: 1 / -1; }
  .ff-use > .ff-listen { justify-self: stretch; }
  .ff-use-ico { width: 52px; height: 52px; }
  .ff-use-ico svg { width: 22px; height: 22px; }
  .ff-recipe-body { padding: 10px; }
  /* 칸 이름 폭을 줄이고, 긴 글(추가 설명)은 칸 이름 아래 한 줄 전체로 — 긴 언어(스페인어 "Indicaciones adicionales")에서 설명이 좁은 기둥이 됐다 */
  body.wmv-v2 .v2-main .ff-rc-kv { grid-template-columns: fit-content(6em) minmax(0, 1fr); column-gap: 10px; }
  body.wmv-v2 .v2-main .ff-rc-kv dt.is-top { grid-column: 1 / -1; padding-top: 2px; }
  body.wmv-v2 .v2-main .ff-rc-kv dt.is-top + dd { grid-column: 1 / -1; margin-top: -4px; }
  /* 좁은 휴대폰(360px)·긴 언어 — 두 칸이 글자만큼 나눠 가지고, 그래도 모자라면 두 줄로(넘치지 않게) */
  .ff-listen { display: flex; max-width: 100%; }
  .ff-listen-opt { flex: 1 1 auto; min-width: 0; justify-content: center; height: auto; min-height: 30px; padding: 5px 8px; white-space: normal; text-align: center; line-height: 1.2; }
}

@media (prefers-reduced-motion: reduce) {
  .ff *, .ff *::before, .ff *::after { animation: none !important; transition: none !important; }
}
