/* vocal.css — memditor.com/vocal 목소리·반주 나누기. 프롬프트 생성기와 같은 모양: 밝은 사이트 위 어두운 편집기 상자 한 개,
   패널 사이 3px 밝은 선(11/28 프롬프트 시안 C), 위 = 음원 넣기, 아래 = 오디오 트랙 두 줄(A1 목소리·A2 반주) + 렌더 막대(빨강 → 초록) */
.vx {
  --dw: 3px; --dc: #8b919d;
  --panel: #18191d; --head: #26282e; --rule: #2e3139;
  --ink: #d6d9df; --dim: #959ba6; --strong: #f4f5f7; --sel: #4f8dff;
  --th: 150px;            /* 트랙 이름 칸 */
  --sv: 104px;            /* 받기 칸 */
  position: relative; display: flex; flex-direction: column; gap: var(--dw);
  padding: var(--dw); border-radius: 12px; overflow: clip; background: var(--dc);
  color: var(--ink); font-size: 14px; line-height: 1.5; word-break: keep-all;
}
.vx button { font: inherit; color: inherit; cursor: pointer; }
.vx .t-a1 { --lab: #d77a6f; } .vx .t-a2 { --lab: #9a8fe6; }
.vx-panel { background: var(--panel); overflow: hidden; }
.vx-tab { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; background: var(--head); border-bottom: 1px solid #3a3d45; font-size: 12.5px; color: var(--dim); }
.vx-tab h2 { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: var(--strong); }
.vx-tab h2 i { display: inline-grid; place-items: center; min-width: 24px; height: 20px; padding: 0 5px; border-radius: 4px; background: #3d4049; font-style: normal; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vx-tab > :last-child:not(:first-child) { margin-left: auto; }

/* 01 음원 넣기 */
.vx-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; padding: 18px; align-items: stretch; }
.vx-drop { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 132px; padding: 18px 20px; border: 1.5px dashed #4a4e58; border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.vx-drop:hover, .vx-drop.over { border-color: var(--sel); background: rgba(79, 141, 255, .07); }
.vx-drop.off { pointer-events: none; opacity: .55; }
.vx-drop b { font-size: 15.5px; color: var(--strong); }
.vx-meta, .vx-note, .vx-state { font-size: 13px; color: var(--dim); }
.vx-meta.is-warn, .vx-note.is-warn, .vx-state.is-warn { color: #f0b35a; }
.vx-state.is-ok { color: #7fd49a; }
.vx-act { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.vx-btns { display: flex; gap: 8px; }
.vx-go { height: 46px; padding: 0 28px; border: 0; border-radius: 8px; background: var(--sel); color: #fff !important; font-size: 15px !important; font-weight: 700; }
.vx-go:disabled { background: #343741; color: #7d838e !important; cursor: not-allowed; }
.vx-mini { height: 46px; padding: 0 16px; border: 1px solid #4a4e58; border-radius: 8px; background: transparent; }
.vx-mini:hover { border-color: var(--ink); }
.vx-state { min-height: 40px; font-variant-numeric: tabular-nums; }
.vx-note:empty { display: none; }
.vx-note { grid-column: 1 / -1; margin-top: -4px; }

/* 02 타임라인 */
.vx-render { height: 6px; background: #3a1c1c; position: relative; }
.vx-render::after { content: ''; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: #d9534f; transition: transform .25s linear; }
.vx-render.ok::after { background: #4caf50; }
.vx-lanes { position: relative; }
.vx-track { display: grid; grid-template-columns: var(--th) minmax(0, 1fr) var(--sv); grid-template-rows: 104px; border-bottom: 1px solid var(--rule); }   /* 줄 높이를 정해야 파형 칸(canvas)이 기본 비율로 커지지 않음 */
.vx-th { display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #1f2025; border-right: 1px solid var(--rule); box-shadow: inset 4px 0 0 var(--lab); }
.vx-th b { font-size: 12px; color: var(--dim); font-weight: 600; }
.vx-th span { flex: 1; font-weight: 700; color: var(--strong); white-space: nowrap; }
.vx-m { width: 26px; height: 24px; border: 1px solid #4a4e58; border-radius: 4px; background: #2a2c32; font-size: 12px !important; font-weight: 700; }
.vx-m[aria-pressed='true'] { background: #2f7d4f; border-color: #2f7d4f; color: #fff !important; }
.vx-track canvas { display: block; width: 100%; height: 100%; cursor: pointer; }
.vx-track.muted canvas { opacity: .3; }
.vx-save { margin: auto 10px; height: 36px; border: 1px solid #4a4e58; border-radius: 6px; background: #2a2c32; font-size: 13px !important; font-weight: 600; }
.vx-save:hover { border-color: var(--sel); }
.vx:not(.has-result) .vx-track canvas, .vx:not(.has-result) .vx-save, .vx:not(.has-result) .vx-head, .vx:not(.has-result) .vx-play { opacity: .35; pointer-events: none; }
.vx-empty { position: absolute; left: var(--th); right: var(--sv); top: 0; bottom: 0; display: grid; place-items: center; font-size: 13px; color: var(--dim); pointer-events: none; }
.vx.has-result .vx-empty { display: none; }
.vx-head { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #5b9bff; pointer-events: none; left: calc(var(--th) + (100% - var(--th) - var(--sv)) * var(--x, 0)); }
.vx-foot { display: flex; align-items: center; gap: 14px; padding: 10px 14px; }
.vx-play { display: grid; place-items: center; width: 44px; height: 36px; border: 1px solid #4a4e58; border-radius: 6px; background: #2a2c32; }
.vx-play svg { width: 16px; height: 16px; fill: currentColor; }
.vx-play .i-pause, .vx-play[aria-pressed='true'] .i-play { display: none; }
.vx-play[aria-pressed='true'] .i-pause { display: block; }
.vx-time { font-variant-numeric: tabular-nums; }
.vx-foot p { font-size: 12.5px; color: var(--dim); }

/* 가편 문 (효과음 만들기와 같은 모양) */
.vx.locked > :not(.vx-lock) { filter: blur(3px); opacity: .55; pointer-events: none; }
.vx-lock { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 20px; }
.vx-lock[hidden] { display: none; }
.vx-lock-card { max-width: 460px; padding: 24px 26px; border-radius: 16px; text-align: center; background: rgba(15, 19, 32, .92); border: 1px solid #3a3d45; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.vx-lock-card b { display: block; font-size: 17px; color: var(--strong); }
.vx-lock-card p { margin: 10px 0 18px; font-size: 14px; line-height: 1.6; color: var(--dim); }
.vx-lock-do .btn { display: inline-block; }

.sfx-credits { margin-top: 14px; font-size: 13px; color: var(--sub); }   /* 효과음 만들기와 같은 고지 접기 (sfx.css에만 있어서) */

@media (max-width: 760px) {
  .vx { --th: 112px; --sv: 84px; }
  .vx-body { grid-template-columns: 1fr; }
  .vx-th b { display: none; }
}
