* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0f172a;
  color: #f8fafc;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

.app {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 18px 60px;
}

.hero {
  text-align: center;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 34px;
  margin: 0 0 12px;
}

.hero p {
  color: #cbd5e1;
  font-size: 18px;
  margin: 0;
  line-height: 1.6;
}

.card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}

label {
  display: block;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
}

textarea {
  width: 100%;
  min-height: 150px;
  border: none;
  outline: none;
  resize: vertical;
  border-radius: 16px;
  padding: 18px;
  font-size: 22px;
  line-height: 1.7;
  background: #f8fafc;
  color: #0f172a;
}

.buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

button {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 999px;
  background: #22c55e;
  color: white;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

button:disabled {
  background: #64748b;
  cursor: not-allowed;
}

button.secondary {
  background: #475569;
}

button.record {
  background: #2563eb;
}

button.record.recording {
  background: #dc2626;
}

.status {
  color: #cbd5e1;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
}

.result-card h2 {
  margin-top: 0;
}

.result {
  white-space: pre-wrap;
  font-size: 20px;
  line-height: 1.85;
  color: #f8fafc;
}

.empty {
  color: #94a3b8;
}

@media (max-width: 600px) {
  .app {
    padding: 24px 14px 50px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .hero p {
    font-size: 16px;
  }

  textarea {
    font-size: 19px;
    min-height: 130px;
  }

  .buttons {
    flex-direction: column;
  }

  button {
    font-size: 18px;
  }

  .result {
    font-size: 18px;
  }
}