:root {
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #ef4444;
  --primary-hover: #dc2626;
  --secondary: #64748b;
  --success: #10b981;
  --success-hover: #059669;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.recorder-container {
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  padding: 32px;
  width: 100%;
  max-width: 640px;
  text-align: center;
}

h1 {
  font-size: 1.75rem;
  margin-bottom: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.video-preview {
  position: relative;
  background-color: #020617;
  border-radius: 8px;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid #334155;
}

video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  gap: 12px;
}

.placeholder .icon {
  font-size: 3rem;
}

.status-bar {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 500;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-start {
  background-color: var(--primary);
  color: white;
}

.btn-start:hover {
  background-color: var(--primary-hover);
}

.btn-stop {
  background-color: var(--secondary);
  color: white;
}

.btn-stop:hover {
  background-color: #475569;
}

.btn-download {
  background-color: var(--success);
  color: white;
}

.btn-download:hover {
  background-color: var(--success-hover);
}

.recording-active {
  animation: pulse 1.5s infinite;
}

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