* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1d1d1f;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

h1 { font-size: 22px; margin: 0 0 8px; }

.hint { font-size: 13px; color: #666; margin: 0 0 20px; line-height: 1.5; }

input[type="file"] { width: 100%; margin-bottom: 12px; }

.file-info { font-size: 13px; color: #444; margin-bottom: 12px; text-align: left; }

button {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  background: #0071e3;
  color: #fff;
  cursor: pointer;
}

button:disabled { background: #b0c9e0; cursor: not-allowed; }

.progress-wrap { margin-top: 16px; text-align: left; }

.progress-label { font-size: 13px; color: #444; margin-bottom: 6px; }

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e5e5e7;
  overflow: hidden;
}

.progress-fill { height: 100%; width: 0%; background: #0071e3; transition: width 0.2s; }

.result { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }

.result[hidden] {
  display: none;
}

.result audio { width: 100%; }

.download-btn {
  display: block;
  padding: 10px;
  background: #34a853;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
}

.error {
  margin-top: 16px;
  padding: 10px;
  border-radius: 8px;
  background: #fdecea;
  color: #b3261e;
  font-size: 13px;
  text-align: left;
}
