* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e98ff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 16px;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

h1 {
  margin: 0 0 4px;
  font-size: 22px;
  color: #1a1a1a;
}

.subtitle {
  margin: 0 0 28px;
  font-size: 14px;
  color: #6b7280;
}

.mic-btn {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: none;
  background: #1e98ff;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.mic-btn:hover {
  background: #1580dd;
}

.mic-btn:active {
  transform: scale(0.96);
}

.mic-btn.recording {
  background: #e53935;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.5);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(229, 57, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0);
  }
}

.status {
  margin-top: 20px;
  font-size: 14px;
  color: #374151;
  min-height: 20px;
}

.status.error {
  color: #e53935;
}

.player-wrapper {
  margin-top: 20px;
}

.player-wrapper.hidden {
  display: none;
}

#player {
  width: 100%;
}
