.settings-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 300;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 22px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.settings-toggle:hover {
  background: rgba(0, 0, 0, 0.8);
}

.settings-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 299;
  width: 320px;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  color: white;
  padding: 70px 20px 20px;
  overflow-y: auto;
  overflow-y: auto;
  font-family: system-ui, sans-serif;
  font-size: 14px;
}

.settings-panel h3 {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 600;
}

.settings-panel label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #ccc;
}

.settings-panel select,
.settings-panel input[type='range'] {
  flex: 1;
  min-width: 0;
}

.settings-panel select {
  background: #222;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 14px;
}

.settings-panel select option {
  background: #222;
  color: white;
}

.fps-display {
  margin-bottom: 16px;
  font-size: 14px;
  color: #ccc;
}

.settings-panel .value {
  width: 36px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #0ff;
}

.settings-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 20px 0;
}

.fullscreen-btn {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 14px;
  cursor: pointer;
  font-family: system-ui, sans-serif;
}

.fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.record-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 14px;
  cursor: pointer;
  font-family: system-ui, sans-serif;
}

.record-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.record-btn .record-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e44;
  flex-shrink: 0;
}

.record-btn.recording .record-dot {
  border-radius: 2px;
  animation: pulse 1s infinite;
}

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

.file-input-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  color: #ccc;
  cursor: pointer;
}

.file-input-label input[type='file'] {
  font-size: 13px;
  color: #aaa;
}

.file-input-label input[type='file']::file-selector-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: white;
  padding: 6px 12px;
  margin-right: 8px;
  cursor: pointer;
  font-size: 13px;
}

.file-input-label input[type='file']::file-selector-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.file-status {
  color: #4f4;
  font-size: 13px;
  margin-bottom: 16px;
}
