/* AI 동영상 확대 — 분석 카드·진행·결과는 mov-to-mp4와 같은 틀 */

/* GPU 지원 안내 — 없으면 쓸 수 없으므로 눈에 띄게 */
.backend-note {
  margin: 0 0 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.6;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  color: var(--text);
  word-break: keep-all;
}
.backend-note[data-state="unsupported"] {
  background: color-mix(in srgb, var(--error) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--error) 32%, transparent);
}
.backend-note:empty { display: none; }

.dropzone.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* 분석 카드 */
.analysis {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.analysis[hidden] { display: none; }

.analysis-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.analysis-head .file-name {
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.specs > div {
  padding: 0.6rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.specs dt {
  font-size: 0.72rem;
  color: var(--text-sub);
  margin-bottom: 0.2rem;
}
.specs dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  word-break: break-all;
}

.options {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}
.options label.check {
  flex-direction: row;
  align-items: flex-start;
  color: var(--text);
  gap: 0.5rem;
  min-height: 44px;
  font-size: 0.875rem;
  cursor: pointer;
}
.options label.check input { width: 18px; height: 18px; margin-top: 0.15rem; accent-color: var(--primary); }
.options label.check small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-sub);
}
.options select {
  min-height: 44px;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
}

/* 예상 시간 — 시작 여부를 정하는 근거라 버튼 바로 위에 둔다 */
.estimate {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  background: var(--bg);
}
.estimate[data-state="ok"] {
  background: color-mix(in srgb, var(--primary) 6%, transparent);
  border-color: color-mix(in srgb, var(--primary) 25%, transparent);
}
.estimate[data-state="fail"] {
  background: color-mix(in srgb, var(--error) 10%, transparent);
  border-color: color-mix(in srgb, var(--error) 32%, transparent);
}
.estimate-main {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.estimate-sub {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-sub);
  word-break: keep-all;
}
.estimate-sub:empty { display: none; }
.btn-compare { margin-top: 0.6rem; min-height: 44px; }
.btn-compare[hidden] { display: none; }

.btn-convert {
  width: 100%;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 600;
}
.btn-convert:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.progress-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}
.progress-actions .btn {
  min-height: 44px;
  padding: 0.5rem 1.5rem;
}

.results .preview {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  border-radius: 8px;
}
.results .preview[hidden] { display: none; }

.license-note {
  font-size: 0.75rem;
  margin: 1rem 0;
  color: var(--text-sub);
}

@media (max-width: 480px) {
  .analysis { padding: 1rem; }
  .analysis-head { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .analysis-head .file-name { max-width: 100%; }
  .specs { grid-template-columns: 1fr 1fr; }
  .options select { width: 100%; }
}
