* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px 32px;
  width: 100%;
  max-width: 400px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

header {
  text-align: center;
  margin-bottom: 32px;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.version {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
}

.status {
  text-align: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 16px;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.05);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status.info {
  background: rgba(102, 126, 234, 0.15);
  color: #99b3ff;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.status.error {
  background: rgba(255, 77, 77, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255, 77, 77, 0.3);
}

.status.success {
  background: rgba(46, 213, 115, 0.15);
  color: #5cdb8d;
  border: 1px solid rgba(46, 213, 115, 0.3);
}

.timer {
  text-align: center;
  font-size: 48px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: 4px;
}

.timer.recording {
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border: none;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: #fff;
  font-family: inherit;
}

.btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
}

.btn:not(:disabled):hover {
  transform: translateY(-2px);
}

.btn:not(:disabled):active {
  transform: translateY(0);
}

.btn-record {
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.btn-record:not(:disabled):hover {
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.5);
}

.btn-record.active {
  animation: recordPulse 1.5s ease-in-out infinite;
}

@keyframes recordPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(255, 71, 87, 0.8); }
}

.btn-stop {
  background: linear-gradient(135deg, #636e72, #747d8c);
  box-shadow: 0 4px 15px rgba(99, 110, 114, 0.3);
}

.btn-stop:not(:disabled):hover {
  box-shadow: 0 6px 20px rgba(99, 110, 114, 0.4);
}

.btn-play {
  background: linear-gradient(135deg, #2ed573, #7bed9f);
  box-shadow: 0 4px 15px rgba(46, 213, 115, 0.4);
}

.btn-play:not(:disabled):hover {
  box-shadow: 0 6px 20px rgba(46, 213, 115, 0.5);
}

.btn-delete {
  background: transparent;
  border: 2px solid rgba(255, 77, 77, 0.5);
  color: #ff6b6b;
}

.btn-delete:not(:disabled):hover {
  background: rgba(255, 77, 77, 0.1);
  border-color: #ff6b6b;
}

.audio-player {
  width: 100%;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 400px) {
  .container {
    padding: 24px 16px;
  }

  h1 {
    font-size: 24px;
  }

  .timer {
    font-size: 36px;
  }

  .btn {
    padding: 12px 8px;
    font-size: 12px;
  }

  .btn svg {
    width: 24px;
    height: 24px;
  }
}
