/* vd-studio v4 — L5: Viewer · Finished videos · Trash · Compare 화면 스타일
   앱 틀(L4 app.css)의 토큰(--pri --ink --line …)을 쓰되 없으면 같은 값으로 대체. 이 파일 안 클래스는 모두 .vw- 접두(L4 클래스와 안 겹침).
   글꼴은 틀이 자체 호스팅 Pretendard / StudioA2Z 를 불러 놓는다고 가정(시스템 글꼴 대체 없음). 숫자 tabular-nums. */
.vw, .vw-modal, .vw-pop {
  --vbg: var(--bg, #F4F6FA); --vpanel: var(--panel, #fff); --vsub: var(--sub, #F7F8FB); --vline: var(--line, #E6EAF2); --vline2: var(--line2, #D5DCE8);
  --vink: var(--ink, #1E2A3B); --vink2: var(--ink2, #3B4759); --vmuted: var(--muted, #5E6A80); --vfaint: var(--faint, #A7B0C0);
  --vpri: var(--pri, #2A63F0); --vpri2: var(--pri2, #2459E0); --vprisoft: var(--pri-soft, #EEF3FF);
  --vok: var(--ok, #15803D); --vwarn: var(--warn, #B45309); --vwarnsoft: var(--warn-soft, #FFF4E0); --vwarnline: var(--warn-line, #F5D9A8);
  --vbad: var(--bad, #C62828); --vbadsoft: var(--bad-soft, #FDECEC); --vdark: var(--dark, #1E2A3B);
  --vfloat: var(--float, 0 8px 24px rgba(16,24,40,.10), 0 1px 3px rgba(16,24,40,.06));
  font-family: Pretendard, sans-serif; font-variant-numeric: tabular-nums; color: var(--vink); font-size: 14px; line-height: 1.5;
}
:where(.vw, .vw-modal, .vw-pop) *, :where(.vw, .vw-modal, .vw-pop) { box-sizing: border-box; }
:where(.vw, .vw-modal, .vw-pop) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.vw img { display: block; }
.vw [hidden], .vw-modal [hidden], .vw-pop [hidden] { display: none !important; }
.vw :focus-visible, .vw-modal :focus-visible, .vw-pop :focus-visible { outline: 2px solid var(--vpri); outline-offset: 2px; border-radius: 6px; }
.vw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── 버튼·배지·칩 ── */
.vw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 10px; font-weight: 600; font-size: 13px; white-space: nowrap; border: 1px solid transparent; transition: background .12s, border-color .12s, box-shadow .12s; }
.vw-btn.sm { height: 32px; padding: 0 11px; font-size: 12.5px; }
.vw-btn.line { background: var(--vpanel); border-color: var(--vline2); color: var(--vink); }
.vw-btn.line:hover:not(:disabled) { border-color: var(--vpri); color: var(--vpri); }
.vw-btn.ghost { color: var(--vmuted); }
.vw-btn.ghost:hover:not(:disabled) { background: var(--vsub); color: var(--vink); }
.vw-btn.pri { background: var(--vpri); border-color: var(--vpri); color: #fff; }
.vw-btn.pri:hover:not(:disabled) { background: var(--vpri2); }
.vw-btn.danger { background: var(--vbad); border-color: var(--vbad); color: #fff; }
.vw-btn:disabled, .vw-btn[aria-disabled=true] { opacity: .55; cursor: not-allowed; }
.vw-btn.pri:disabled { background: #AFC2F5; border-color: #AFC2F5; opacity: 1; color: #fff; }
.vw-ib { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: 15px; color: var(--vink2); }
.vw-ib:hover { background: var(--vsub); }
.vw-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 10px; background: var(--vsub); border: 1px solid var(--vline); font-size: 11px; font-weight: 700; color: var(--vmuted); white-space: nowrap; }
.vw-badge.ok { background: #E8F7EE; border-color: #BFE5CD; color: var(--vok); }
.vw-badge.warn { background: var(--vwarnsoft); border-color: var(--vwarnline); color: var(--vwarn); }
.vw-badge.bad { background: var(--vbadsoft); border-color: #F3C2C2; color: var(--vbad); }
.vw-chip { height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--vline2); background: var(--vpanel); font-size: 12.5px; font-weight: 600; color: var(--vink2); }
.vw-chip.on { background: var(--vdark); border-color: var(--vdark); color: #fff; }
.vw-ring { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: vwSpin .8s linear infinite; display: inline-block; }
.vw-ring.dark { border-color: var(--vline2); border-top-color: var(--vpri); }
@keyframes vwSpin { to { transform: rotate(360deg); } }
/* 지금 눌러야 할 주 버튼 하나만 은은히 반짝(2초) — L4의 공용 .glow 와 별개로 이 화면 안에서도 동작 */
@keyframes vwGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(42,99,240,0), 0 0 0 0 rgba(42,99,240,0); } 50% { box-shadow: 0 0 0 4px rgba(42,99,240,.22), 0 0 18px 2px rgba(42,99,240,.35); } }
.vw-btn.pri.glow:not(:disabled) { animation: vwGlow 2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .vw-btn.pri.glow:not(:disabled) { animation: none; box-shadow: 0 0 0 3px rgba(42,99,240,.25); } }

/* ── Viewer 틀 ── */
.vw { --resW: 168px; }
.vw-viewer { height: 100%; min-height: 0; display: flex; flex-direction: column; background: var(--vbg); }
.vw-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 18px 8px; min-width: 0; }
.vw-head .ttl { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; min-width: 0; }
.vw-head .sub { font-size: 12.5px; color: var(--vmuted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vw-head .sp { flex: 1; }
.vw-acts { display: flex; align-items: center; gap: 8px; flex: none; }
.vw-dl { height: 38px; padding: 0 18px; font-size: 14px; font-weight: 700; }
.vw-why { flex: none; margin: 0 18px 6px; padding: 8px 12px; border-radius: 10px; background: var(--vwarnsoft); border: 1px solid var(--vwarnline); color: #7A3F06; font-size: 13px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vw-why.bad { background: var(--vbadsoft); border-color: #F3C2C2; color: #8E1B1B; }
.vw-why .sp { flex: 1; }
/* [ui-fb 11-12] 고정 높이 틀: 가운데 영상 칸(영상 + 눈금 + 장면 도구줄)은 늘 보이고, Results 는 혼자 스크롤 */
.vw-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 10px var(--resW); gap: 8px; padding: 0 14px 10px 18px; }
.vw.vw-rfold .vw-body { grid-template-columns: minmax(0, 1fr) 0 44px; }
.vw.vw-rfold .vw-split { visibility: hidden; }
.vw-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 2px 2px 8px 0; }
.vw-playcol { flex: 1 0 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.vw-playcol > * { max-width: 100%; }
.vw-stagewrap { flex: 1 1 0; min-height: 240px; width: 100%; display: flex; justify-content: center; }

/* 재생기 */
.vw-stagebox { position: relative; height: 100%; max-height: 760px; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #E9E4DA; box-shadow: var(--vfloat); container-type: inline-size; }
.vw-vid, .vw-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.vw-still { background: #E9E4DA; }
@keyframes vwKb { from { transform: scale(1); } to { transform: scale(1.09); } }
.vw-still.kb { animation: vwKb 6s ease-in-out infinite alternate; }
.vw-boxes { position: absolute; inset: 0; pointer-events: none; }
.vw-box { position: absolute; font-family: StudioA2Z, Pretendard, sans-serif; font-weight: 800; color: #fff; line-height: 1.22; white-space: pre-line; text-align: center; animation: vwRise .5s var(--ease, cubic-bezier(.2, .8, .2, 1)) both; }
.vw-box.headline, .vw-box.hero { background: rgba(43, 58, 74, .92); border-radius: 1.6cqw; padding: .9cqw 2.4cqw; }
.vw-box.hero { font-size: 12cqw; } .vw-box.headline { font-size: 8.6cqw; } .vw-box.desc, .vw-box.items, .vw-box.subject { font-size: 5.6cqw; text-shadow: 0 .3cqw 1.4cqw rgba(0,0,0,.55); } .vw-box.kicker, .vw-box.caption, .vw-box.source { font-size: 4.2cqw; text-shadow: 0 .3cqw 1.2cqw rgba(0,0,0,.55); }
@keyframes vwRise { from { opacity: 0; transform: translateY(2cqw); } to { opacity: 1; transform: none; } }
.vw-stagemsg { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 12%; text-align: center; background: rgba(246, 248, 251, .94); color: var(--vink); }
.vw-stagemsg b { font-size: 15px; }
.vw-stagemsg small { font-size: 12.5px; color: var(--vmuted); line-height: 1.5; }
.vw-stagemsg.dark { background: rgba(20, 28, 40, .62); color: #fff; } .vw-stagemsg.dark small { color: #E6EAF2; }
.vw-stagemsg .vw-ring { width: 26px; height: 26px; border-width: 3px; border-color: var(--vline2); border-top-color: var(--vpri); }
.vw-stagemsg.dark .vw-ring { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.vw-bigplay { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(20, 28, 40, .18); }
.vw-bigplay span { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.94); display: grid; place-items: center; font-size: 24px; color: var(--vdark); box-shadow: var(--vfloat); padding-left: 4px; }
.vw-snd { position: absolute; left: 10px; top: 10px; z-index: 5; height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(20, 28, 40, .78); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.vw-tag { position: absolute; left: 8px; bottom: 8px; z-index: 4; max-width: calc(100% - 16px); padding: 3px 9px; border-radius: 6px; background: rgba(20, 28, 40, .78); color: #fff; font-size: 11.5px; font-weight: 700; }
.vw-ctrl { display: flex; align-items: center; gap: 8px; margin-top: 10px; width: 100%; max-width: 560px; }
.vw-ctrl .tm { font-size: 12.5px; color: var(--vink2); min-width: 78px; }
.vw-ticks { flex: 1; display: flex; gap: 3px; min-height: 28px; align-items: stretch; min-width: 0; }
.vw-ticks button { flex: 1; border-radius: 5px; background: #DCE2EC; font-size: 10.5px; font-weight: 700; color: var(--vmuted); position: relative; overflow: hidden; min-width: 14px; }
.vw-ticks button.cur { box-shadow: inset 0 0 0 2px var(--vpri); }
.vw-ticks button u { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(42, 99, 240, .28); }
.vw-ticks button span { position: relative; }
.vw-ticks .loopnote { align-self: center; font-size: 12px; color: var(--vmuted); }

/* 장면 도구줄·패널 */
.vw-toolbar { margin-top: 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: var(--vpanel); border: 1px solid var(--vline); border-radius: 14px; padding: 6px; box-shadow: var(--vfloat); max-width: 100%; }
.vw-toolbar .lab { font-size: 12.5px; font-weight: 700; padding: 0 8px; white-space: nowrap; }
.vw-toolbar .lab small { font-weight: 500; color: var(--vmuted); }
.vw-toolbar .div { width: 1px; align-self: stretch; background: var(--vline); margin: 4px 2px; }
.vw-panel { width: 100%; max-width: 560px; margin-top: 10px; background: var(--vpanel); border: 1px solid var(--vline); border-radius: 14px; padding: 14px 16px; box-shadow: var(--vfloat); }
.vw-panel h4 { font-size: 13.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.vw-panel h4 .x { margin-left: auto; }
.vw-panel .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.vw-panel input[type=text] { width: 100%; height: 40px; border: 1px solid var(--vline2); border-radius: 9px; padding: 0 10px; margin-bottom: 10px; font: inherit; background: #fff; color: var(--vink); }
.vw-panel .acts { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.vw-panel .pic { display: flex; gap: 12px; align-items: flex-start; }
.vw-panel .pic img { width: 60px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; flex: none; }
.vw-panel .pic p { font-size: 12.5px; color: var(--vmuted); margin-bottom: 8px; }
.vw-msg { width: 100%; max-width: 560px; margin-top: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--vwarnline); background: var(--vwarnsoft); color: #7A3F06; font-size: 13px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vw-msg.ok { background: #E8F7EE; border-color: #BFE5CD; color: #0F5A2B; }
.vw-msg.bad { background: var(--vbadsoft); border-color: #F3C2C2; color: #8E1B1B; }
.vw-msg .sp { flex: 1; }
.vw-band { width: 100%; max-width: 560px; margin-bottom: 10px; padding: 8px 12px; border-radius: 10px; background: var(--vwarnsoft); border: 1px solid var(--vwarnline); color: #7A3F06; font-size: 13px; }

.vw-lnk { color: var(--vpri); font-weight: 700; font-size: 13px; white-space: nowrap; padding: 2px 4px; min-height: 28px; }

/* 결과 목록 — 머리줄(Text 켜기·접기) + 혼자 스크롤하는 목록 */
.vw-split { cursor: col-resize; position: relative; border-radius: 5px; touch-action: none; }
.vw-split::after { content: ""; position: absolute; left: 4px; top: 30%; bottom: 30%; width: 2px; border-radius: 1px; background: var(--vline2); }
.vw-split:hover::after, .vw-split:focus-visible::after, .vw-split.drag::after { background: var(--vpri); width: 3px; }
.vw-res { min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.vw-reshead { flex: none; display: flex; align-items: center; gap: 6px; padding: 0 2px; min-height: 36px; }
.vw-reshead .sp { flex: 1; }
.vw-res h5 { font-size: 11px; letter-spacing: .06em; color: var(--vmuted); font-weight: 800; }
.vw-tog { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px 0 6px; border-radius: 15px; border: 1px solid var(--vline2); background: var(--vpanel); font-size: 12.5px; font-weight: 700; color: var(--vink2); }
.vw-tog i { width: 26px; height: 16px; border-radius: 8px; background: var(--vline2); position: relative; transition: background .15s; }
.vw-tog i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.vw-tog[aria-pressed=true] i { background: var(--vpri); }
.vw-tog[aria-pressed=true] i::after { transform: translateX(10px); }
.vw-ib.sm { width: 30px; height: 30px; font-size: 14px; }
.vw-reslist { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 2px 2px 16px; }
.vw-unfold { width: 44px; height: 100%; min-height: 160px; border-radius: 12px; border: 1px solid var(--vline); background: var(--vpanel); display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 12px; color: var(--vink2); font-weight: 800; position: relative; }
.vw-unfold:hover { border-color: var(--vpri); color: var(--vpri); }
.vw-unfold .v { writing-mode: vertical-rl; font-size: 11.5px; letter-spacing: .06em; }
.vw-unfold .vw-mk { position: absolute; top: 6px; right: 6px; }
/* 미리의 말 표시(작은 점)·줄 안 말 */
.vw-mk { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #F2A516; box-shadow: 0 0 0 2px #fff; }
.vw-ri .vw-mk.dot { position: absolute; right: 5px; bottom: 6px; z-index: 3; width: 11px; height: 11px; }
.vw-rem { width: 100%; margin-top: 6px; padding: 7px 9px; border-radius: 10px; background: var(--vwarnsoft); border: 1px solid var(--vwarnline); font-size: 13px; cursor: default; }
.vw-remt { display: flex; align-items: center; gap: 6px; font-weight: 600; color: #7A3F06; }
.vw-rem .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.vw-rem .vw-btn.sm { white-space: normal; height: auto; min-height: 32px; padding-top: 4px; padding-bottom: 4px; text-align: left; }
.vw-dec { width: 100%; margin-top: 6px; border-top: 1px solid var(--vline); padding-top: 6px; cursor: default; }
.vw-dech { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 30px; font-size: 13px; font-weight: 700; color: var(--vink2); text-align: left; }
.vw-dech .car { margin-left: auto; color: var(--vmuted); }
.vw-dec ul { list-style: none; margin: 2px 0 0; padding: 0; }
.vw-dec li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 13px; border-bottom: 1px solid var(--vline); }
.vw-dec li:last-child { border-bottom: 0; }
/* 글 켬(PC): 줄 = 썸네일 칸(120~160px) + 글 칸 */
.vw.vw-rtext .vw-reslist { align-items: stretch; }
.vw-row { display: grid; grid-template-columns: clamp(120px, 40%, 160px) minmax(0, 1fr); gap: 10px; align-items: start; padding: 6px; border-radius: 12px; background: var(--vpanel); border: 1px solid var(--vline); cursor: pointer; flex: none; }
.vw-row:hover { border-color: var(--vline2); }
.vw-row.on { border-color: var(--vdark); box-shadow: inset 0 0 0 1px var(--vdark); }
.vw-row.whole { border-color: #BFD0FA; }
.vw-row.whole.on { border-color: var(--vdark); }
.vw-row .vw-ri { max-width: none; }
.vw-row .vw-ri.on { border-color: transparent; }
/* fix-ui-1126(8): 이미 보고 있는 결과(고른 줄·썸네일)는 눌러도 할 일이 없음 — 누를 수 있는 것처럼 보이지 않게(안의 버전·말 단추는 그대로) */
.vw-row.on, .vw-ri.on, .vw-row.on .vw-ri { cursor: default; }
.vw-rt { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.vw-rtt { width: 100%; display: flex; align-items: center; gap: 6px; min-height: 28px; font-size: 13.5px; }
.vw-rtt .sp { flex: 1; }
.vw-words { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: var(--vink); overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 2px; }
.vw-words.none { color: var(--vfaint); font-size: 13px; }
.vw-row .vw-vers { margin-top: 6px; }
.vw-ri { position: relative; display: block; width: 100%; max-width: 360px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #fff; box-shadow: 0 0 0 1px var(--vline); flex: none; }
.vw-ri img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #E9E4DA; }
.vw-ri .vw-noimg { display: block; width: 100%; aspect-ratio: 9 / 16; background: #E9E4DA; }     /* stage0-1126(0-2): 그림 주소가 없을 때 깨진 그림 대신 빈 판 */
.vw-ri.on { border-color: var(--vdark); box-shadow: none; }
.vw-ri.whole { border: 2px solid var(--vpri); box-shadow: 0 4px 14px rgba(42, 99, 240, .22); }
.vw-ri.whole.on { border-color: var(--vdark); }
.vw-ri .rl { position: absolute; left: 4px; bottom: 4px; right: 4px; display: flex; justify-content: space-between; align-items: center; }
.vw-ri .rl span { background: rgba(30, 42, 59, .88); color: #fff; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 4px; }
.vw-ri.whole .rl span { font-size: 12.5px; padding: 1px 8px; background: var(--vpri); }
.vw-ri .vb { position: absolute; right: 4px; top: 4px; background: var(--vpri); color: #fff; font-size: 10px; font-weight: 800; padding: 0 5px; border-radius: 4px; }
.vw-ri .kind { position: absolute; left: 4px; top: 4px; background: rgba(255,255,255,.92); font-size: 10px; font-weight: 800; padding: 0 4px; border-radius: 4px; color: var(--vink2); }
.vw-ri.busy::after { content: ""; position: absolute; inset: 0; background: rgba(30, 42, 59, .45); }
.vw-ri .busyl { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; text-align: center; }
.vw-ri.failed { box-shadow: 0 0 0 2px #F3C2C2; } .vw-ri.failed img { filter: grayscale(.6); }
.vw-vers { width: 100%; max-width: 360px; display: flex; flex-wrap: wrap; gap: 4px; background: var(--vsub); border-radius: 10px; padding: 4px; flex: none; }
.vw-vers button { font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; color: var(--vink2); min-height: 28px; }
.vw-vers button.on { background: #fff; box-shadow: 0 0 0 1px var(--vline); }
.vw-vers button.cmp { color: var(--vpri); }

/* 비교 — 가운데 큰 모달 */
.vw-modal { position: fixed; inset: 0; z-index: 160; background: rgba(16, 24, 40, .55); display: grid; place-items: center; animation: vwFade .15s; }
@keyframes vwFade { from { opacity: 0; } to { opacity: 1; } }
.vw-cmpbox { background: #fff; border-radius: 18px; padding: 18px 22px 22px; width: min(980px, 94vw); max-height: 96vh; overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.vw-cmphead { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.vw-cmphead b { font-size: 17px; }
.vw-cmpwrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vw-cmpcol { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.vw-cmpcol .vw-stagebox { height: min(66vh, 620px); min-height: 0; max-width: 100%; }
.vw-cmpcol .info { font-size: 12.5px; color: var(--vink2); text-align: center; }
.vw-cmpcol .info b { display: block; font-size: 13.5px; color: var(--vink); }
.vw-cmpcol .pick { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.vw-cmpcol .pick button { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 10px; border: 1px solid var(--vline2); color: var(--vink2); min-height: 26px; }
.vw-cmpcol .pick button.on { background: var(--vdark); color: #fff; border-color: var(--vdark); }

/* 메뉴·Made from 말풍선 */
.vw-pop { position: fixed; z-index: 170; min-width: 220px; max-width: min(340px, 94vw); background: #fff; border: 1px solid var(--vline); border-radius: 12px; box-shadow: var(--vfloat); padding: 6px; }
.vw-pop button.item { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; text-align: left; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; min-height: 40px; }
.vw-pop button.item:hover { background: var(--vsub); }
.vw-pop button.item:disabled { color: var(--vfaint); cursor: not-allowed; }
.vw-pop button.item small { font-size: 11.5px; font-weight: 700; color: var(--vmuted); background: var(--vsub); border-radius: 6px; padding: 1px 7px; }
.vw-pop hr { border: 0; border-top: 1px solid var(--vline); margin: 4px 0; }
.vw-pop .mf { padding: 8px 10px 10px; font-size: 13px; }
.vw-pop .mf h4 { font-size: 13.5px; margin-bottom: 8px; }
.vw-pop .mf .refs { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.vw-pop .mf .refs img { width: 38px; height: 56px; object-fit: cover; border-radius: 6px; background: #E9E4DA; }
.vw-pop .mf .refs img.shot { box-shadow: 0 0 0 2px var(--vpri); }
.vw-pop .mf p.m { color: var(--vmuted); font-size: 12.5px; margin-top: 6px; }
.vw-pop .mf details p { background: var(--vsub); border-radius: 8px; padding: 8px; margin-top: 6px; user-select: all; font-size: 12.5px; }

/* 빈 화면·잠깐 알림 */
.vw-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 180; background: #1E2A3B; color: #fff; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; display: flex; align-items: center; gap: 12px; box-shadow: var(--vfloat); max-width: min(520px, 94vw); font-family: Pretendard, sans-serif; }
.vw-toast button { color: #9DB8FF; font-weight: 700; }

/* ── Finished videos · Trash 목록 ── */
.vw-page { height: 100%; overflow-y: auto; padding: 22px 24px 40px; background: var(--vbg); }
.vw-page h2 { font-size: 20px; font-weight: 800; }
.vw-page .lead { color: var(--vmuted); font-size: 13.5px; margin: 4px 0 16px; }
.vw-fins { display: flex; gap: 14px; flex-wrap: wrap; max-width: 960px; }
.vw-fin { display: flex; gap: 12px; background: #fff; border: 1px solid var(--vline); border-radius: 14px; padding: 10px; width: min(440px, 100%); }
.vw-fin .pic { position: relative; flex: none; width: 84px; aspect-ratio: 9 / 16; border-radius: 9px; overflow: hidden; background: #E9E4DA; }
.vw-fin .pic img { width: 100%; height: 100%; object-fit: cover; }
.vw-fin .pic .vb { position: absolute; right: 4px; top: 4px; background: var(--vpri); color: #fff; font-size: 10px; font-weight: 800; padding: 0 5px; border-radius: 4px; }
.vw-fin .inf { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.vw-fin .inf b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vw-fin .inf small { font-size: 12.5px; color: var(--vmuted); }
.vw-fin .acts { display: flex; gap: 6px; margin-top: auto; flex-wrap: wrap; }
.vw-empty { border: 1px dashed var(--vline2); border-radius: 14px; padding: 30px 18px; text-align: center; color: var(--vmuted); max-width: 520px; background: #fff; }
.vw-trl { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.vw-tri { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--vline); border-radius: 14px; padding: 10px 12px; }
.vw-tri .pic { flex: none; width: 48px; aspect-ratio: 9 / 16; border-radius: 7px; overflow: hidden; background: #E9E4DA; }
.vw-tri .pic img { width: 100%; height: 100%; object-fit: cover; }
.vw-tri .inf { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vw-tri .inf b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-tri .inf small { color: var(--vmuted); font-size: 12.5px; }
.vw-tri .acts { display: flex; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.vw-confirm { position: fixed; inset: 0; z-index: 165; background: rgba(16, 24, 40, .55); display: grid; place-items: center; }
.vw-confirm .box { background: #fff; width: min(460px, 94vw); border-radius: 16px; padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.3); font-family: Pretendard, sans-serif; color: var(--vink, #1E2A3B); }
.vw-confirm h3 { font-size: 17px; margin-bottom: 6px; }
.vw-confirm p { font-size: 13.5px; color: var(--vmuted, #5E6A80); margin-bottom: 12px; }
.vw-confirm input { width: 100%; height: 42px; border: 1px solid var(--vline2, #D5DCE8); border-radius: 9px; padding: 0 10px; font: inherit; margin-bottom: 14px; }
.vw-confirm .acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ── 폰(760px 이하) ── */
@media (max-width: 760px) {
  /* 폰: 판이 고정 높이 틀(app.css .fixedboard) — 영상은 위에 붙어 있고, 띠(가로)·아래 시트만 움직임 */
  .vw-viewer { height: 100%; min-height: 0; overflow: hidden; }
  .vw-head { flex: none; z-index: 20; flex-wrap: wrap; row-gap: 6px; padding: 6px 12px; background: var(--vbg); border-bottom: 1px solid var(--vline); }
  .vw-head .ttl { font-size: 15px; flex: 1; }
  .vw-head .sub { display: none; }
  .vw-head .sp { display: none; }
  .vw-acts { width: 100%; }
  .vw-acts .vw-dl { flex: 1; min-height: 44px; height: 44px; }
  .vw-acts .vw-btn { min-height: 44px; height: 44px; }
  .vw-acts .vw-ib { width: 44px; height: 44px; }
  .vw-why { margin: 6px 12px 0; }
  /* 자리 순서: 영상 칸(영상 최소 120px + 눈금 + 장면 도구줄)은 줄지 않음 → 띠 → 남는 자리에 한 줄 글·미리의 말(혼자 스크롤) */
  .vw-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 6px 12px 4px; gap: 6px; overflow-x: hidden; overflow-y: auto; }
  .vw-main { flex: 1 0 auto; min-height: auto; padding: 0; overflow: visible; }
  .vw-playcol { flex: 1 0 auto; }
  .vw-stagewrap { min-height: 120px; flex: none; height: max(160px, min(55svh, calc((100vw - 24px) * 16 / 9), calc(100svh - 440px))); }     /* 엘 지적: 폰 영상이 작음 → 높이는 화면의 55% 이내로 키우되, 결과 띠·Miri 줄이 가려지지 않게 남는 높이(머리줄·눈금·도구줄·띠·Miri ≈ 440px)를 넘지 않음 */
  .vw-split { display: none; }
  .vw-res { flex: 0 1 auto; min-height: 0; gap: 4px; }
  .vw-reshead { flex: none; min-height: 30px; }
  .vw-tog { height: 36px; min-width: 44px; }
  .vw-reslist { flex: none; flex-direction: row; overflow-x: auto; overflow-y: hidden; align-items: flex-start; gap: 8px; padding: 2px 2px 4px; overscroll-behavior-x: contain; }
  .vw-ri { width: 46px; max-width: none; flex: none; }
  .vw-ri.whole { width: 54px; }
  .vw-ri.whole .rl span { font-size: 10px; padding: 0 4px; }
  .vw-resline { flex: 0 1 auto; min-height: 44px; display: flex; flex-direction: column; gap: 4px; max-height: 30svh; overflow-y: auto; overscroll-behavior: contain; }
  .vw-resline:empty { display: none; }
  .vw-line { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 4px 10px; border-radius: 10px; background: var(--vpanel); border: 1px solid var(--vline); text-align: left; font-size: 13.5px; }
  .vw-line b { flex: none; font-size: 12.5px; }
  .vw-line span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vw-line i { flex: none; font-style: normal; color: var(--vpri); }
  .vw-resline .vw-rem { margin-top: 0; }
  .vw-resline .vw-dec { margin-top: 0; border-top: 0; padding-top: 0; background: var(--vpanel); border: 1px solid var(--vline); border-radius: 10px; padding: 0 10px; }
  .vw-dech { min-height: 44px; }
  .vw-resline .vw-vers { width: 100%; max-width: none; }
  .vw-stagebox { max-height: none; }
  .vw-ctrl { max-width: none; }
  .vw-toolbar { flex-wrap: nowrap; overflow-x: auto; margin-top: 8px; }
  .vw-toolbar .vw-btn { flex: none !important; white-space: nowrap !important; }
  .vw-ticks button, .vw-ib { min-height: 44px; }
  .vw-ticks { min-height: 44px; }
  .vw-ctrl .tm { min-width: 70px; }
  .vw-toolbar { width: 100%; }
  .vw-toolbar .vw-btn { min-height: 44px; height: auto; padding-top: 6px; padding-bottom: 6px; white-space: normal; text-align: center; flex: 1 1 auto; }
  .vw-panel, .vw-msg, .vw-band { max-width: none; }
  .vw-chip { min-height: 44px; }
  .vw-panel input[type=text] { height: 44px; }
  .vw-lnk { min-height: 44px; display: inline-flex; align-items: center; }
  .vw-vers button, .vw-cmpcol .pick button { min-height: 44px; }
  .vw-pop button.item { min-height: 48px; }
  .vw-cmpbox { width: 100vw; height: 100svh; max-height: 100svh; border-radius: 0; padding: 12px; }
  .vw-cmpwrap { gap: 8px; }
  .vw-cmpcol .vw-stagebox { height: auto; width: 100%; }
  .vw-page { padding: 14px 12px 40px; }
  .vw-fin { width: 100%; }
  .vw-tri { flex-wrap: wrap; }
  .vw-tri .acts { width: 100%; justify-content: stretch; }
  .vw-tri .acts .vw-btn { flex: 1; min-height: 44px; }
  .vw-fin .acts .vw-btn { min-height: 44px; }
}

/* ── [phone-fixes 11-12 엘] 폰 삼성 인터넷: 영상 위 동그란 ⤢·▣ 단추는 우리 코드가 아니라 브라우저의 "동영상 도우미"(Video Assistant)예요.
      사이트에서 끌 방법이 없고, 재생 중인 <video> 위쪽 모서리 바깥(약 20~65px 위)에 떠요. 영상 칸이 주 버튼 줄(Finish·Download····) 바로 밑에 붙어 있어서
      그 단추가 Download 위에 겹쳤음 → 폰에서는 주 버튼 줄을 머리 맨 위로, 제목 줄("Whole video v3")을 그 아래로 두고,
      영상 칸 위에 빈 자리를 둬서 주 버튼 줄 아래끝 ~ 영상 위끝이 72px 이상 떨어지게 해요(그 사이에는 누르는 것이 없음). ── */
@media (max-width: 760px) {
  .vw-head .vw-acts { order: -1; }
  .vw-head .ttl { min-height: 28px; }
  .vw-stagewrap { margin-top: 26px; height: max(160px, min(55svh, calc((100vw - 24px) * 16 / 9), calc(100svh - 466px))); }
}

/* ── [viewer-big 11-13] 크게 보기: 영상 오른쪽 아래 안쪽 ⤢(누르는 자리 44px) → 페이지 안 덮개(native fullscreen·PiP 안 씀).
      삼성 동영상 도우미 단추는 영상 위끝 바깥에 떠서 이 자리와 겹치지 않아요. 덮개 안에서는 같은 영상 칸(.vw-stagebox)을 옮겨 씀. ── */
.vw-bigbtn { position: absolute; right: 4px; bottom: 4px; z-index: 6; width: 44px; height: 44px; display: grid; place-items: center; }
.vw-bigbtn span { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(20, 28, 40, .62); color: #fff; font-size: 17px; line-height: 1; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: background .12s; }
.vw-bigbtn:hover span, .vw-bigbtn:focus-visible span { background: rgba(20, 28, 40, .86); }
.vw-bigph { visibility: hidden; }
html.vw-bigon, html.vw-bigon body { overflow: hidden; }
.vw-bigov { position: fixed; inset: 0; z-index: 175; display: flex; flex-direction: column; background: #0B0E14; color: #fff;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); animation: vwFade .15s; }
.vw-bigov .vw-bigbtn { display: none; }
.vw-bigtop { flex: none; display: flex; justify-content: flex-end; padding: 6px 8px 0; }
.vw-bigx { width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; font-size: 20px; color: #fff; background: rgba(255,255,255,.10); }
.vw-bigx:hover { background: rgba(255,255,255,.2); }
.vw-bigstage { flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0; }
.vw-bigov .vw-stagebox { flex: none; border-radius: 0; box-shadow: none; background: #000; }
.vw-bigov .vw-vid { object-fit: contain; }
.vw-bigctrl { flex: none; display: flex; align-items: center; gap: 8px; width: 100%; max-width: 720px; margin: 0 auto; padding: 8px 12px 12px; }
.vw-bigctrl .tm { font-size: 12.5px; color: #E6EAF2; min-width: 74px; }
.vw-bigib { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 16px; color: #fff; background: rgba(255,255,255,.10); }
.vw-bigib:hover { background: rgba(255,255,255,.2); }
.vw-bigticks { min-height: 44px; }
.vw-bigticks button { background: rgba(255,255,255,.16); color: #E6EAF2; }
.vw-bigticks button.cur { box-shadow: inset 0 0 0 2px #8FB0FF; }
.vw-bigticks button u { background: rgba(143, 176, 255, .45); }
.vw-bigseek { flex: 1; min-width: 0; height: 44px; accent-color: #8FB0FF; }
.vw-bigov :focus-visible { outline: 2px solid #8FB0FF; outline-offset: 2px; }
@media (min-width: 761px) { .vw-bigstage { padding: 8px 24px; } .vw-bigov .vw-stagebox { border-radius: 10px; } .vw-bigtop { padding: 10px 14px 0; } }
