:root {
  color-scheme: dark;
  --bg: #0b1220;
  --card: #121a2b;
  --muted: #93a1b8;
  --text: #eef4ff;
  --accent: #4f8cff;
  --accent-2: #6ca3ff;
  --danger: #ff5d73;
  --border: rgba(255,255,255,0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #14203a, var(--bg));
  color: var(--text);
}
.app {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.card {
  width: min(100%, 720px);
  background: rgba(18, 26, 43, 0.92);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
  display: grid;
  gap: 18px;
  justify-items: center;
}
.record-btn {
  width: 116px;
  height: 116px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: white;
  font-size: 42px;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(79, 140, 255, 0.35);
}
.record-btn.is-recording {
  background: linear-gradient(180deg, #ff7b8d, var(--danger));
  animation: pulse 1.2s infinite;
}
.status {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.result-wrap { width: 100%; }
.result {
  width: 100%;
  min-height: 180px;
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
  font-size: 16px;
}
.copy-btn {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  background: #23314f;
  cursor: pointer;
  width: 100%;
}
.copy-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,93,115,0.48); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 18px rgba(255,93,115,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,93,115,0); }
}
@media (max-width: 640px) {
  .card { padding: 18px; border-radius: 20px; }
  .record-btn { width: 104px; height: 104px; }
  .result { min-height: 220px; font-size: 17px; }
}
