/* ── Layout ──────────────────────────────────── */
.convert-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 52px;
  gap: 18px;
}

.convert-main .upload-area {
  width: 100%;
  max-width: 600px;
}

/* ── Converter card ──────────────────────────── */
.converter-card {
  width: 100%;
  max-width: 600px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}

/* ── File info ───────────────────────────────── */
.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.file-icon { color: var(--accent); flex-shrink: 0; opacity: 0.9; }

.file-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.file-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size { font-size: 11px; color: var(--text-muted); }

.change-file-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s;
  flex-shrink: 0;
}

.change-file-btn:hover { border-color: var(--border-hi); color: var(--text-2); background: var(--surface3); }

/* ── Arrow ───────────────────────────────────── */
.convert-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.convert-arrow svg { color: var(--accent); opacity: 0.7; }

/* ── Options ─────────────────────────────────── */
.convert-options { display: flex; flex-direction: column; gap: 14px; }

.option-group > label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 8px;
  font-weight: 600;
}

.quality-btns { display: flex; gap: 6px; }

.quality-btn, .audio-btn {
  flex: 1;
  padding: 8px 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface2);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.14s;
  text-align: center;
}

.quality-btn:hover, .audio-btn:hover {
  border-color: var(--border-hi);
  color: var(--text-2);
  background: var(--surface3);
}

.quality-btn.active, .audio-btn.active {
  background: var(--accent-dim);
  border-color: rgba(99,102,241,.4);
  color: var(--accent-h);
  font-weight: 600;
}

/* ── Filename (reuse from style.css, just override width) ── */
.convert-options .filename-input-wrap { border-radius: var(--radius-sm); }

/* ── Convert button ──────────────────────────── */
.convert-btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  letter-spacing: 0.1px;
}

/* ── Done box ────────────────────────────────── */
.done-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(52,211,153,.07);
  border: 1px solid rgba(52,211,153,.25);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.done-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.done-title { font-size: 13px; font-weight: 600; color: var(--success); }
.done-sub   { font-size: 12px; color: var(--text-muted); }

/* ── Engine notice ───────────────────────────── */
.engine-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--text-muted);
}

.engine-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }
