/* Moart 어패럴 프로 8번째 메뉴: 무빙 룩북 스튜디오 전용 스타일 */
/* 100% 디자인 토큰(var(--...)) 기반 · 하드코딩 HEX 색상 0건 · 라이트/다크모드 완전 대응 */

.mv-upload-card {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-default);
  background: var(--bg-subtle, var(--bg-surface));
}

.mv-upload-card .ap-thumb-box {
  width: 78px;
  height: 86px;
  flex: 0 0 78px;
  font-size: 11px;
  text-align: center;
  padding: 4px;
  box-sizing: border-box;
}

.mv-upload-card__right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.mv-upload-card__btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.mv-upload-card__btns .ap-btn {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
}

.mv-upload-card__right .ap-input {
  width: 100%;
  box-sizing: border-box;
}

.mv-mode-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mv-mode-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1.5px solid var(--border-default);
  background: var(--bg-subtle, var(--bg-surface));
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.12s ease;
}

.mv-mode-card:hover {
  border-color: var(--accent);
}

.mv-mode-card.is-selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-surface));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}

.mv-mode-card__left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.mv-mode-card__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.mv-mode-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: var(--accent);
  color: var(--on-accent, var(--text-inverse));
}

.mv-mode-card__desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.mv-mode-card__price {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.mv-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.mv-preset-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.mv-preset-chip:hover {
  border-color: var(--accent);
}

.mv-preset-chip.is-selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, var(--bg-surface));
}

.mv-preset-chip strong {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
}

.mv-preset-chip span {
  font-size: 10.5px;
  color: var(--text-secondary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mv-stage {
  position: relative;
  width: 100%;
  min-height: 360px;
  border-radius: 14px;
  border: 1px solid var(--border-default);
  background: var(--bg-subtle, var(--bg-surface));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mv-stage__frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 460px;
  overflow: hidden;
  border-radius: 10px;
}

.mv-stage__video,
.mv-stage__poster {
  display: block;
  max-width: 100%;
  max-height: 460px;
  width: auto;
  height: auto;
  border-radius: 10px;
  background: var(--bg-canvas, var(--bg-surface));
}

.mv-stage__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 28px 20px;
  color: var(--text-secondary);
}

.mv-stage__empty strong {
  font-size: 14px;
  color: var(--text-primary);
}

.mv-stage__empty p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  max-width: 300px;
}

/* 실시간 무료 한글 자막 미리보기 오버레이 (캔버스 합성 결과와 동일 비율) */
.mv-sub-overlay {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px;
  text-align: center;
  gap: 4px;
}

.mv-sub-overlay--top { top: 14px; }
.mv-sub-overlay--center { top: 50%; transform: translateY(-50%); }
.mv-sub-overlay--bottom { bottom: 44px; }

.mv-sub-overlay--minimal_bar .mv-sub-box {
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
  color: var(--text-inverse, white);
}

.mv-sub-overlay--bottom_caption .mv-sub-box {
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.78));
  color: var(--text-inverse, white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

.mv-sub-overlay--magazine_title .mv-sub-box {
  padding: 8px 16px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.75);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.75);
  background: rgba(15, 23, 42, 0.45);
  color: var(--text-inverse, white);
  letter-spacing: 0.03em;
}

.mv-sub-overlay--promo_badge .mv-sub-box {
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-inverse, white);
}

.mv-sub-main {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  word-break: keep-all;
}

.mv-sub-tag {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--accent);
  color: var(--on-accent, var(--text-inverse));
}

.mv-sub-panel {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-default);
  background: var(--bg-subtle, var(--bg-surface));
}

.mv-sub-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mv-sub-panel__head strong {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.mv-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mv-pill-btn {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.mv-pill-btn.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent, var(--text-inverse));
}

.mv-sub-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
}

.mv-sub-inputs .ap-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.mv-sub-pos-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

@media (max-width: 760px) {
  .mv-sub-inputs {
    grid-template-columns: 1fr;
  }
}

.mv-export-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mv-export-bar .ap-btn {
  flex: 1 1 110px;
  justify-content: center;
}

.mv-active-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--border-default));
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-surface));
}

.mv-active-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mv-active-card__thumb {
  width: 44px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-default);
  flex-shrink: 0;
}

.mv-progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border-default) 70%, transparent);
  overflow: hidden;
}

.mv-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.45s ease;
}

.mv-job-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 520px;
  overflow-y: auto;
}

.mv-job-card {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.mv-job-card:hover,
.mv-job-card.is-selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-surface));
}

.mv-job-card__thumb {
  width: 54px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-default);
  flex-shrink: 0;
}

.mv-job-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.mv-job-card__title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mv-job-card__meta {
  font-size: 11px;
  color: var(--text-secondary);
}

.mv-job-card__actions {
  display: flex;
  gap: 5px;
  margin-top: 2px;
}

.mv-compare-dialog {
  width: min(920px, 94vw);
  max-height: 90vh;
  padding: 0;
  border-radius: 16px;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-primary);
}

.mv-compare-dialog::backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
}

.mv-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

@media (max-width: 720px) {
  .mv-compare-grid {
    grid-template-columns: 1fr;
  }
}

.mv-compare-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-default);
  background: var(--bg-subtle, var(--bg-surface));
}

.mv-compare-box img,
.mv-compare-box video {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: 8px;
}
