* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #0f1115; color: #e8eaed; line-height: 1.6; padding: 20px;
}
.wrap { max-width: 640px; margin: 0 auto; }
.header { text-align: center; padding: 24px 0 8px; }
.header h1 { font-size: 24px; font-weight: 600; color: #fff; }
.header p { color: #9aa0a6; font-size: 14px; margin-top: 6px; }
.card {
  background: #1a1d23; border: 1px solid #2a2e37; border-radius: 14px;
  padding: 22px; margin-top: 18px;
}
.step { margin-bottom: 24px; }
.step:last-child { margin-bottom: 0; }
.step-title { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.upload-zone {
  border: 2px dashed #3a3f4a; border-radius: 12px; padding: 36px 20px;
  text-align: center; cursor: pointer; transition: .2s; background: #14171c;
}
.upload-zone:hover { border-color: #5b8cff; background: #171b22; }
.upload-icon { font-size: 40px; color: #5b8cff; line-height: 1; }
.upload-text { margin-top: 10px; font-size: 15px; color: #e8eaed; }
.upload-hint { margin-top: 6px; font-size: 12px; color: #7a808a; }
.file-list { margin-top: 12px; }
.file-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: #14171c; border-radius: 8px; margin-bottom: 6px; font-size: 13px;
}
.file-idx { background: #5b8cff; color: #fff; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: #7a808a; }
.duration-box { display: flex; gap: 12px; }
.duration-opt { flex: 1; cursor: pointer; }
.duration-opt input { display: none; }
.duration-opt span {
  display: block; text-align: center; padding: 14px; border: 1px solid #3a3f4a;
  border-radius: 10px; font-size: 15px; color: #9aa0a6; transition: .2s;
}
.duration-opt input:checked + span { border-color: #5b8cff; background: #1c2740; color: #fff; font-weight: 600; }
.gen-btn {
  width: 100%; padding: 16px; border: none; border-radius: 10px;
  background: #5b8cff; color: #fff; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: .2s;
}
.gen-btn:hover { background: #4a7aef; }
.gen-btn:disabled { background: #3a3f4a; color: #7a808a; cursor: not-allowed; }
.progress-bar { height: 6px; background: #2a2e37; border-radius: 3px; overflow: hidden; margin-bottom: 14px; }
.progress-fill { height: 100%; background: #5b8cff; width: 10%; transition: width .4s; }
.log-box { max-height: 180px; overflow-y: auto; font-size: 13px; color: #9aa0a6; }
.log-line { padding: 5px 0; border-left: 2px solid #2a2e37; padding-left: 10px; }
.log-line.active { color: #5b8cff; border-left-color: #5b8cff; }
.result-info { margin-bottom: 14px; }
.info-row { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid #2a2e37; font-size: 13px; }
.info-label { color: #7a808a; flex-shrink: 0; width: 72px; }
.info-val { color: #e8eaed; }
#resultVideo { width: 100%; border-radius: 10px; background: #000; max-height: 500px; }
.download-btn {
  display: block; text-align: center; padding: 14px; margin-top: 14px;
  background: #2ea043; color: #fff; text-decoration: none; border-radius: 10px;
  font-size: 15px; font-weight: 600;
}
.download-btn:hover { background: #2a8f3c; }
