body {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  background-color: #f4f4f9;
  margin: 0;
  padding: 40px 20px;
  color: #333;
}
.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.hidden {
  display: none !important;
}
.state-section {
  margin-top: 20px;
}

video {
  width: 100%;
  max-width: 600px;
  background: #000;
  border-radius: 8px;
}

.controls,
.review-controls {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
  align-items: center;
}

button,
.button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  background: #0066cc;
  color: white;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}
button:hover,
.button:hover {
  background: #0052a3;
}
#stop-record-btn {
  background: #cc0000;
}
#stop-record-btn:hover {
  background: #a30000;
}
#retake-btn {
  background: #666;
}
#retake-btn:hover {
  background: #444;
}

/* Split View specific styling */
.split-view {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
}
@media (max-width: 650px) {
  .split-view {
    flex-direction: column;
  }
}
.video-side {
  flex: 1.2;
}
.action-side {
  flex: 0.8;
  text-align: left;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eaeaea;
}

#timer {
  font-weight: bold;
  font-size: 1.2em;
  color: #cc0000;
}

/* Loader animation */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0066cc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px auto;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
