/* 全能视频格式转换 — 页面样式。变量沿用 site.css。 */

.vc-page main { max-width: 1040px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover:not(:disabled) { filter: brightness(1.06); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }

.btn-alt {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn-alt:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); filter: none; }

.vc-app { display: grid; gap: 1.25rem; margin-top: 1.5rem; }

.vc-drop {
  padding: 2.2rem 1.25rem;
  text-align: center;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
}

.vc-drop.is-over { border-color: var(--accent); background: var(--accent-pale); }
.vc-drop p { margin: 0.35rem 0; }
.vc-drop-hint { font-size: 0.85rem; color: var(--text-dim); }

.vc-err {
  margin-top: 0.9rem !important;
  padding: 0.55rem 0.75rem;
  border: 1px solid #e8b4b4;
  border-radius: 8px;
  background: #fdf3f3;
  color: #a03030;
  font-size: 0.85rem;
}

.vc-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 1.25rem;
  align-items: start;
}

.vc-stage {
  position: sticky;
  top: 1rem;
  padding: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#vc-video {
  display: block;
  width: 100%;
  max-height: 62vh;
  border-radius: 8px;
  background: #0b0d10;
}

.vc-stage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.vc-time { font-size: 0.85rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.vc-time b { color: var(--text); }
.vc-spacer { flex: 1 1 auto; }

.vc-controls {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.vc-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; font-size: 0.82rem; color: var(--text-dim); }
.vc-meta b { color: var(--text); font-weight: 600; }

.vc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem 0.9rem; }

.vc-field { display: grid; gap: 0.3rem; font-size: 0.82rem; color: var(--text-dim); }
.vc-field > span { display: flex; justify-content: space-between; gap: 0.5rem; }
.vc-field b { color: var(--text); font-variant-numeric: tabular-nums; }

.vc-field select,
.vc-field input[type="number"] {
  min-height: 38px;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
}

.vc-field input[type="range"] { width: 100%; accent-color: var(--accent); }

.vc-range { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem 0.9rem; }

.vc-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.vc-progress { display: grid; gap: 0.35rem; }
.vc-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.vc-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s linear; }
.vc-progress-text { margin: 0; font-size: 0.82rem; color: var(--text-dim); }

.vc-result {
  display: grid;
  gap: 0.5rem;
  padding: 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.vc-result-name { margin: 0; font-size: 0.88rem; font-weight: 600; overflow-wrap: anywhere; }
.vc-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin: 0; }
.vc-result-size { font-size: 0.82rem; color: var(--text-dim); }

.vc-status { margin: 0; min-height: 1.1em; font-size: 0.82rem; color: var(--text-dim); }

@media (max-width: 900px) {
  .vc-editor { grid-template-columns: minmax(0, 1fr); }
  .vc-stage { position: static; }
}

@media (max-width: 560px) {
  .vc-grid { grid-template-columns: minmax(0, 1fr); }
  .vc-range { grid-template-columns: minmax(0, 1fr); }
}
