:root {
  --bg-top: #fff6e8;
  --bg-bottom: #fde3c8;
  --panel: rgba(255, 252, 247, 0.78);
  --panel-border: rgba(148, 79, 28, 0.16);
  --text-main: #2e1d11;
  --text-soft: #76543b;
  --accent: #bf5a2a;
  --accent-dark: #8c3e18;
  --shadow: 0 24px 60px rgba(107, 58, 22, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 205, 149, 0.4), transparent 24%),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.card {
  width: min(880px, 100%);
  padding: 32px;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  animation: rise 420ms ease-out;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
}

.intro {
  margin: 14px 0 28px;
  max-width: 48rem;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.label {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 600;
}

textarea {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  padding: 20px 22px;
  border: 1px solid rgba(131, 75, 39, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text-main);
  font: inherit;
  font-size: 1.02rem;
  line-height: 1.8;
  outline: none;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

textarea:focus {
  border-color: rgba(191, 90, 42, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(191, 90, 42, 0.12);
}

.toolbar {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent), #dc7a46);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  box-shadow: 0 16px 32px rgba(191, 90, 42, 0.24);
}

button:hover {
  transform: translateY(-2px);
}

button:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.meta {
  color: var(--text-soft);
  font-size: 0.96rem;
}

.status {
  min-height: 1.6em;
  margin: 14px 0 18px;
  color: var(--accent-dark);
  font-weight: 500;
}

.player {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(131, 75, 39, 0.12);
}

audio {
  width: 100%;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .card {
    padding: 24px 18px;
    border-radius: 24px;
  }

  textarea {
    min-height: 220px;
  }

  .toolbar {
    align-items: stretch;
  }

  button {
    width: 100%;
  }
}
