/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f0f1a;
  --bg-soft: #151525;
  --bg-card: #1a1a30;
  --bg-card-hover: #22223a;
  --bg-input: #12122a;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #eaeaf0;
  --text-dim: #7a7a95;
  --accent: #10b99e;
  --accent-hover: #14d4b4;
  --accent-glow: rgba(16,185,158,0.15);
  --danger: #ef4455;
  --danger-hover: #ff6675;
  --success: #22c562;
  --purple: #7c3aed;
  --purple-hover: #8b5cf6;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Subtle noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(16,185,158,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── Views ── */
.view { display: none; padding: 1.5rem; max-width: 920px; margin: 0 auto; position: relative; z-index: 1; }
.view.active { display: block; animation: fadeIn 0.25s ease-out; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Header ── */
header { text-align: center; margin-bottom: 2.5rem; padding-top: 0.5rem; }
.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
}
header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent) 0%, #5eead4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lang-selector {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7a95' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  padding-right: 1.6rem;
}
.lang-selector:hover { border-color: var(--accent); }
.lang-selector:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }
.lang-selector option { background: var(--bg-card); color: var(--text); }
.subtitle { color: var(--text-dim); margin-top: 0.3rem; font-size: 0.95rem; font-weight: 400; }

/* ── Buttons ── */
.btn {
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}
.btn:disabled { opacity: 0.35; cursor: default; }
.btn:active:not(:disabled) { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #0d9080 100%);
  box-shadow: 0 2px 12px var(--accent-glow);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  box-shadow: 0 4px 20px rgba(16,185,158,0.25);
}

.btn-secondary {
  background: var(--bg-input);
  border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, #c0303e 100%);
  box-shadow: 0 2px 12px rgba(239,68,85,0.2);
}
.btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--danger-hover) 0%, var(--danger) 100%);
  box-shadow: 0 4px 20px rgba(239,68,85,0.3);
}

.btn-small { padding: 0.35rem 0.75rem; font-size: 0.78rem; }

.btn-large {
  padding: 1.4rem 1.8rem;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  min-width: 170px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.btn-large:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-icon-large { font-size: 2rem; filter: saturate(0.85); }

.btn-icon {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.35rem;
  border-radius: 6px;
  transition: all var(--transition);
  line-height: 1;
}
.btn-icon:hover { color: var(--text); background: rgba(255,255,255,0.08); }
.btn-delete:hover { color: var(--danger); background: rgba(239,68,85,0.1); }

/* ── Record Section ── */
.record-section { text-align: center; margin-bottom: 2.5rem; }
.record-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.record-options { color: var(--text-dim); font-size: 0.85rem; }
.record-options label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.record-options label:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.record-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent);
}

/* ── Library ── */
.library-section { }
.library-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.library-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.library-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

/* ── Project Bar ── */
.project-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.project-tabs {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  flex: 1;
}
.project-tab {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.project-tab:hover { color: var(--text); background: var(--bg-card-hover); border-color: var(--border-hover); }
.project-tab.active {
  background: linear-gradient(135deg, var(--accent) 0%, #0d9080 100%);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px var(--accent-glow);
}
.project-tab .tab-count {
  font-size: 0.68rem;
  opacity: 0.65;
  margin-left: 0.25rem;
  font-weight: 400;
}
.project-tab .tab-delete {
  margin-left: 0.35rem;
  opacity: 0.4;
  font-size: 0.72rem;
  cursor: pointer;
  transition: opacity var(--transition);
}
.project-tab .tab-delete:hover { opacity: 1; color: var(--danger); }
.project-tab .tab-zip {
  margin-left: 0.25rem;
  opacity: 0.4;
  font-size: 0.72rem;
  cursor: pointer;
  transition: opacity var(--transition);
}
.project-tab .tab-zip:hover { opacity: 1; }

/* ── Clip project assign ── */
.clip-project-select {
  background: var(--bg-input);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.4rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: border-color var(--transition);
}
.clip-project-select:hover { border-color: var(--border-hover); }

.clip-library { display: flex; flex-direction: column; gap: 0.4rem; }

.clip-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.clip-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.clip-autosave { border-color: rgba(255,180,0,0.2); }
.clip-autosave:hover { border-color: rgba(255,180,0,0.35); }

.autosave-badge {
  color: #e0a020;
  font-weight: 600;
  font-size: 0.75rem;
}

.clip-icon { font-size: 1.4rem; flex-shrink: 0; opacity: 0.85; }
.clip-info { flex: 1; min-width: 0; }
.clip-name {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color var(--transition);
}
.clip-name:hover { color: var(--accent); }
.clip-meta { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.15rem; }

.clip-actions { display: flex; gap: 0.2rem; align-items: center; flex-shrink: 0; }
.clip-select-label { display: flex; align-items: center; }
.clip-select { width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent); }

.empty {
  color: var(--text-dim);
  text-align: center;
  padding: 3rem 2rem;
  font-size: 0.9rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.select-small {
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 500;
  transition: border-color var(--transition);
}
.select-small:hover { border-color: var(--border-hover); }

/* ── Recording View ── */
.recording-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  gap: 1.5rem;
}

.rec-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-dim);
}

.rec-dot {
  width: 12px;
  height: 12px;
  background: var(--danger);
  border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(239,68,85,0.4);
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(239,68,85,0.4); }
  50% { opacity: 0.35; box-shadow: 0 0 4px rgba(239,68,85,0.15); }
}

.rec-timer {
  font-size: 4.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--text);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.rec-audio-info {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.audio-badge {
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}
.audio-badge.on {
  background: rgba(34,197,98,0.1);
  color: var(--success);
  border-color: rgba(34,197,98,0.2);
}
.audio-badge.off {
  background: rgba(239,68,85,0.08);
  color: #b86060;
  border-color: rgba(239,68,85,0.15);
}

.btn-call {
  background: linear-gradient(135deg, var(--purple) 0%, #6526d4 100%);
  box-shadow: 0 2px 12px rgba(124,58,237,0.2);
}
.btn-call:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--purple-hover) 0%, var(--purple) 100%);
  box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}

.btn-voiceover {
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
  box-shadow: 0 2px 12px rgba(230,126,34,0.2);
}
.btn-voiceover:hover:not(:disabled) {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  box-shadow: 0 4px 20px rgba(230,126,34,0.3);
}

.rec-preview {
  max-width: 480px;
  max-height: 360px;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.rec-controls { display: flex; gap: 0.75rem; }

/* ── Editor View ── */
.editor-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.editor-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.editor-clip-name { font-weight: 700; font-size: 1.05rem; }
.editor-duration { color: var(--text-dim); font-size: 0.85rem; }

.editor-video {
  width: 100%;
  max-height: 50vh;
  background: #000;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.trim-controls {
  background: var(--bg-card);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.trim-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.trim-row:last-child { margin-bottom: 0; }
.trim-row label { width: 50px; font-size: 0.85rem; color: var(--text-dim); font-weight: 500; }
.trim-row span { width: 55px; font-size: 0.82rem; font-variant-numeric: tabular-nums; color: var(--text-dim); }

/* Custom range slider */
.trim-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-input);
  outline: none;
  cursor: pointer;
}
.trim-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 1px 6px var(--accent-glow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.trim-row input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 12px rgba(16,185,158,0.35);
}
.trim-row input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 1px 6px var(--accent-glow);
  cursor: pointer;
}

.editor-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Notification ── */
.notification {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 1000;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  max-width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}
.notification.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.notification.error {
  background: rgba(50,15,18,0.95);
  border-color: rgba(239,68,85,0.25);
  color: var(--danger);
}
.notification.success {
  background: rgba(10,35,18,0.95);
  border-color: rgba(34,197,98,0.25);
  color: var(--success);
}

/* ── Progress Bar ── */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.05);
  z-index: 999;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #5eead4 100%);
  width: 0%;
  transition: width 0.3s;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ── Selection ── */
::selection { background: rgba(16,185,158,0.25); }

/* ── Footer ── */
.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-footer p {
  color: var(--text-dim);
  font-size: 0.82rem;
}
.site-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}
.site-footer a:hover { color: var(--accent-hover); }
.footer-link {
  color: var(--text-dim) !important;
  font-size: 0.82rem;
  font-weight: 400 !important;
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
}
.footer-link:hover { color: var(--text) !important; }
.footer-disclaimer {
  flex-basis: 100%;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.55;
  opacity: 0.6;
  text-align: center;
}

/* ── FAQ View ── */
.faq-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.faq-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.faq-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-item[open] { border-color: rgba(16,185,158,0.15); }
.faq-item summary {
  padding: 0.85rem 1.2rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: color var(--transition);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--transition);
}
.faq-item[open] summary::before {
  content: '-';
  background: var(--accent);
  color: #fff;
}
.faq-item summary:hover { color: var(--accent); }
.faq-item p,
.faq-item ul,
.faq-item ol {
  padding: 0 1.2rem 0.85rem 1.2rem;
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-left: 2rem;
}
.faq-item ul,
.faq-item ol {
  padding-bottom: 0.85rem;
  padding-left: 2.5rem;
}
.faq-item li {
  margin-bottom: 0.3rem;
}
.faq-item p + ul,
.faq-item p + ol {
  padding-top: 0.3rem;
}
.faq-item strong { color: var(--text); font-weight: 600; }
.faq-item a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.faq-item a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ── Mobile hint ── */
.mobile-hint {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,180,0,0.15);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

/* When SharedArrayBuffer is not available (Safari iOS, some mobile) */
.no-sab .btn-export-quick,
.no-sab .btn-export-audio,
.no-sab #btn-export-trimmed,
.no-sab #btn-save-trim,
.no-sab #btn-concat {
  display: none;
}

/* ── PiP Preview ── */
.pip-preview-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 1rem auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.pip-preview-canvas {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
}
.pip-bubble-handle {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: rgba(0, 255, 136, 0.15);
  cursor: grab;
  transform: translate(-50%, -50%);
  transition: box-shadow 0.2s;
  z-index: 10;
}
.pip-bubble-handle:hover,
.pip-bubble-handle:active {
  box-shadow: 0 0 16px var(--accent-glow);
  cursor: grabbing;
}

/* ── PWA Install Banner ── */
.pwa-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 480px;
  width: calc(100% - 2rem);
  padding: 0.85rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px var(--accent-glow);
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text);
  animation: slideUp 0.3s ease-out;
  backdrop-filter: blur(12px);
}
.pwa-banner span { flex: 1; line-height: 1.4; }
.pwa-banner-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .view { padding: 1rem; }
  .record-buttons { flex-direction: column; align-items: center; gap: 0.75rem; }
  .btn-large { width: 100%; min-width: 0; flex-direction: row; padding: 1rem 1.4rem; }
  .btn-large .btn-icon-large { font-size: 1.5rem; }
  .library-header { flex-direction: column; align-items: flex-start; }
  .library-actions { width: 100%; }
  .editor-actions { flex-direction: column; }
  .editor-actions .btn,
  .editor-actions .select-small { width: 100%; }
  .clip-actions { gap: 0.1rem; }
  .clip-card { padding: 0.6rem 0.75rem; gap: 0.6rem; }
  .rec-timer { font-size: 3rem; }
  header h1 { font-size: 1.8rem; }
}
