/* ==========================================================================
   SPIDIFY TIKTOK VIDEO STUDIO — ELITE DESIGN SYSTEM (CAPCUT PRO AESTHETIC)
   Hardware Console + VisionOS Dark Glass + Neon Kinetic Accents
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Space+Grotesk:wght@600;700;800&display=swap');
@import './tokens.css';

:root {
  /* Spidify Canonical Palette (Hardware Console + VisionOS Dark Glass + Neon kinetic) */
  --bg: #0A0A0C;
  --surface-0: #0A0A0C;
  --surface-1: #111116;
  --surface-2: #17171F;
  --surface-3: #22222E;
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 245, 255, 0.35);
  --accent: #00F5FF;
  --accent-cyan: #00F5FF;
  --accent-hover: #38F9FF;
  --accent-glow: rgba(0, 245, 255, 0.35);
  --accent-violet: #8B5CF6;
  --accent-lime: #D4FF00;
  --accent-crimson: #FF3366;
  --accent-emerald: #10B981;
  --playhead: #FFB020;
  --text: #F4F4F8;
  --text-muted: #A0A0B0;
  --mint: #10B981;

  /* Spacing Grid (8px based) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 40px;

  /* Radii Tokens */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* Depth & Soft Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 24px rgba(0, 245, 255, 0.35);

  /* Semantic Mappings & Aliases */
  --bg-base: var(--surface-0);
  --bg-surface: var(--surface-1);
  --bg-rack: var(--surface-1);
  --bg-rack-elevated: var(--surface-2);
  --bg-glass: rgba(20, 20, 28, 0.75);
  --bg-glass-heavy: rgba(14, 14, 20, 0.94);
  --bg-glass-pill: rgba(255, 255, 255, 0.07);

  --border-specular: 1px solid var(--border);
  --border-active: var(--accent);

  /* Typography */
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Text Colors */
  --text-main: #F4F4F8;
  --text-secondary: #A0A0B0;
  --text-dim: #6B6B7F;

  /* Timeline Tracks */
  --track-height: 36px;
  --track-video-color: #00F5FF;
  --track-lyrics-color: #8B5CF6;
  --track-audio-color: #10B981;
  --track-sfx-color: #FFB020;
  --track-fx-color: #00F5FF;
}

/* ─── Global Reset & Body ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-body);
}

body.studio-standalone-mode {
  height: 100dvh;
  width: 100vw;
  overflow: hidden !important;
  user-select: none;
}

input, button, select, textarea {
  font-family: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
  box-sizing: border-box;
}

:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px !important;
}

button {
  cursor: pointer;
  touch-action: manipulation;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

button:active:not(:disabled) {
  transform: translateY(0.5px) scale(0.98);
}

/* Custom Hardware Form Controls (Studio Grade) */
select, .studio-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--surface-2);
  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='%2300F5FF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 8px 32px 8px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

select:hover, .studio-select:hover {
  border-color: rgba(0, 245, 255, 0.45);
}

select:focus, .studio-select:focus {
  border-color: #00F5FF;
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.35), inset 0 1px 2px rgba(0, 0, 0, 0.5);
  outline: none !important;
}

select option {
  background-color: #111116;
  color: #F4F4F8;
  padding: 8px;
}

input[type="text"], input[type="url"], input[type="email"], input[type="password"] {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

input[type="text"]:focus, input[type="url"]:focus, input[type="email"]:focus, input[type="password"]:focus {
  border-color: #00F5FF;
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.35), inset 0 1px 2px rgba(0, 0, 0, 0.5);
  outline: none !important;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: all 180ms ease;
  flex-shrink: 0;
}

input[type="checkbox"]:checked {
  background: #00F5FF;
  border-color: #00F5FF;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.55);
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid #0A0A0C;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}


/* ─── App Shell Architecture (3-Row Fixed Viewport Grid) ─── */
.app-shell {
  display: grid;
  grid-template-rows: var(--header-h) minmax(0, 1fr) var(--timeline-h);
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(20, 20, 34, 0.8) 0%, var(--bg-base) 70%);
}

/* ─── Header Bar (3-Column Centerline Grid) ─── */
.header-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  min-height: var(--header-h);
  max-height: var(--header-h);
  padding: 0 16px;
  background: rgba(17, 17, 22, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 50;
  gap: 12px;
  box-sizing: border-box;
}

/* Left Cluster: Logo, Wordmark, Divider, Project Name, Buttons */
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  justify-content: flex-start;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
  flex-shrink: 0;
  transition: transform 160ms ease;
}

.brand-logo-link:hover .brand-logo-mark {
  transform: scale(1.05);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.brand-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00F5FF;
  background: rgba(0, 245, 255, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0, 245, 255, 0.35);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
  line-height: 1;
}

.header-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 2px;
}

.project-name-input {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 8px);
  padding: 0 10px;
  width: 130px;
  max-width: 160px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 1;
  min-width: 60px;
}

.project-name-input:focus {
  background: var(--bg-rack-elevated);
  color: #fff;
  outline: 1px solid var(--border-active);
}

.autosave-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 8px);
  padding: 0 10px;
  letter-spacing: 0.02em;
  transition: all 250ms ease;
  user-select: none;
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.autosave-badge.saved {
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

/* All Header Controls Share 32px Centerline Height, Radius & Typography */
.header-bar button,
.header-bar .btn-secondary,
.header-bar .btn-export,
.header-bar .icon-btn-ghost,
.header-bar .aspect-btn,
.header-bar .autosave-badge,
.header-bar .project-name-input,
.header-bar a.btn-secondary,
.header-bar a.btn-primary,
.header-bar .header-btn {
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  box-sizing: border-box !important;
  border-radius: var(--radius-md, 8px) !important;
  font-size: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

.header-bar .kbd-badge {
  font-size: 9px !important;
  padding: 1px 4px !important;
  margin-left: 4px !important;
}

/* Center Controls: Aspect Ratio */
.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Right Controls: History, Commands, Help, Import, Export */
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.aspect-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-rack);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.aspect-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 7px;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.aspect-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
}

.aspect-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.aspect-btn.active {
  color: #00F5FF;
  background: rgba(0, 245, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(0, 245, 255, 0.4);
}

@media (max-width: 1440px) {
  .aspect-desc {
    display: none;
  }
  .aspect-btn {
    padding: 0 8px !important;
  }
}

@media (max-width: 1366px) {
  .header-left, .header-right {
    gap: 8px;
  }
  .header-divider {
    margin: 0;
  }
  .project-name-input {
    width: 95px;
  }
  .header-bar .btn-secondary,
  .header-bar .btn-export {
    padding: 0 10px !important;
  }
}

.history-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-btn-ghost {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 150ms ease;
}

.icon-btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.icon-btn-ghost:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Header Right: Downloader & Export CTAs */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-secondary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: var(--bg-rack);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: var(--bg-rack-elevated);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn-export {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #00F5FF 0%, #00C8FF 40%, #7C5CFF 100%);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #05060A;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 18px rgba(0, 245, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-export svg {
  stroke: #05060A;
}

.btn-export:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 28px rgba(0, 245, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  filter: brightness(1.06);
}

.btn-export:active {
  transform: translateY(0.5px) scale(0.98);
}

/* ─── Main Studio Body ─── */
.studio-body {
  display: flex;
  flex: 1 1 0%;
  min-height: 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* ─── Left Primary Nav Bar (CapCut Sidebar) ─── */
.nav-rail {
  width: 68px;
  min-width: 68px;
  background: var(--bg-base);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 6px;
  z-index: 30;
}

.nav-tab-btn {
  width: 54px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.nav-tab-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
}

.nav-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab-btn.active {
  color: #fff;
  background: var(--bg-rack);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
}

.nav-tab-btn.active::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px var(--accent);
}

/* ─── Left Drawer (Asset / Tool Library) ─── */
.library-drawer {
  width: 320px;
  min-width: 320px;
  min-height: 0;
  height: 100%;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 20;
}

.drawer-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  color: var(--text-secondary);
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-content::-webkit-scrollbar {
  width: 5px;
}
.drawer-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

/* Drawer Sections */
.drawer-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Upload Dropzone */
.upload-dropzone {
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 180ms ease;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--accent);
  background: rgba(124, 92, 255, 0.05);
}

.dropzone-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-rack-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.dropzone-text {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.dropzone-hint {
  font-size: 10px;
  color: var(--text-muted);
}

/* URL Download Input Box inside Drawer */
.url-download-card {
  background: var(--bg-rack);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.url-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0 10px;
  height: 36px;
  gap: 8px;
}

.url-input-wrap svg {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.url-input-field {
  width: 100%;
  font-size: 11px;
  color: #fff;
}
.url-input-field::placeholder {
  color: var(--text-muted);
}

.btn-fetch {
  height: 32px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 160ms ease;
}

.btn-fetch:hover {
  box-shadow: 0 0 15px rgba(124, 92, 255, 0.45);
  transform: translateY(-1px);
}

/* Stock Clips Grid */
.stock-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stock-card {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  background: #111;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.stock-card video, .stock-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.stock-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.stock-card:hover video, .stock-card:hover img {
  transform: scale(1.06);
}

.stock-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
}

.stock-name {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-tag {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
}

/* ─── Lyrics Tab Specific UI ─── */
.lyrics-auto-detect-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 180ms ease;
}

.lyrics-auto-detect-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.5);
}

.lyrics-auto-detect-btn.recording {
  background: #e11d48;
  animation: pulse-recording 1.2s infinite ease-in-out;
}

@keyframes pulse-recording {
  0%, 100% { box-shadow: 0 0 10px rgba(225, 29, 72, 0.5); }
  50% { box-shadow: 0 0 25px rgba(225, 29, 72, 0.85); }
}

.lyric-styles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.lyric-style-card {
  padding: 10px;
  border-radius: 8px;
  background: var(--bg-rack);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 150ms ease;
}

.lyric-style-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-rack-elevated);
}

.lyric-style-card.active {
  border-color: var(--accent);
  background: rgba(124, 92, 255, 0.15);
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.3);
}

.style-preview-text {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 6px 0;
}

.style-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* Lyric Segment List */
.lyric-items-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.lyric-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-rack);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 10px;
  transition: all 150ms ease;
}

.lyric-item-row.active {
  border-color: var(--accent);
  background: rgba(124, 92, 255, 0.08);
}

.lyric-timecode {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  width: 50px;
  flex-shrink: 0;
}

.lyric-text-edit {
  font-size: 11px;
  color: #fff;
  flex: 1;
}

.lyric-delete-btn {
  color: var(--text-muted);
  padding: 4px;
}
.lyric-delete-btn:hover {
  color: var(--danger-crimson);
}

/* ─── Center Viewport Stage (Hardware Console Multi-Aspect Stage) ─── */
.center-stage {
  flex: 1 1 0%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #060608;
  position: relative;
  overflow: hidden;
}

.stage-viewport-area {
  flex: 1 1 0%;
  min-height: 0;
  min-width: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
  overflow: hidden;
  box-sizing: border-box;
  container-type: size;
  background: 
    radial-gradient(circle at 50% 50%, rgba(254, 44, 85, 0.04) 0%, transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(0, 242, 254, 0.04) 0%, transparent 60%);
}

/* Smartphone Device Mockup Shell - Responsive Container Query Sizing */
.phone-mockup-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  padding: 6px;
  background: linear-gradient(145deg, #1A1A24 0%, #111118 100%);
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: border-radius 180ms ease;
  height: min(100cqh, calc(100cqw * var(--stage-inv-ratio, 1.7777778))) !important;
  max-height: 100% !important;
  max-width: 100% !important;
  aspect-ratio: var(--stage-ratio, 9/16) !important;
  width: auto !important;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Dynamic Aspect Ratio Classes */
.phone-mockup-frame.ratio-9-16 {
  --stage-ratio: 9/16;
  --stage-inv-ratio: calc(16 / 9);
  border-radius: 28px;
}
.phone-mockup-frame.ratio-1-1 {
  --stage-ratio: 1/1;
  --stage-inv-ratio: 1;
  border-radius: 18px;
}
.phone-mockup-frame.ratio-16-9 {
  --stage-ratio: 16/9;
  --stage-inv-ratio: calc(9 / 16);
  border-radius: 18px;
}
.phone-mockup-frame.ratio-4-5 {
  --stage-ratio: 4/5;
  --stage-inv-ratio: calc(5 / 4);
  border-radius: 22px;
}

.canvas-viewport-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Real YouTube 1080p Stage Video Viewport */
.youtube-stage-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
  background: #000;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.youtube-stage-container iframe,
.youtube-stage-container #youtube-stage-player,
.youtube-stage-container #youtube-stage-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border: none;
  transform: translate(-50%, -50%) scale(1.0);
  transform-origin: center center;
}

.phone-mockup-frame.ratio-9-16 .youtube-stage-container iframe,
.phone-mockup-frame.ratio-9-16 .youtube-stage-container #youtube-stage-player,
.phone-mockup-frame.ratio-9-16 .youtube-stage-container #youtube-stage-iframe {
  width: 178%;
  height: 100%;
  transform: translate(-50%, -50%);
}

.phone-mockup-frame.ratio-16-9 .youtube-stage-container iframe,
.phone-mockup-frame.ratio-16-9 .youtube-stage-container #youtube-stage-player,
.phone-mockup-frame.ratio-16-9 .youtube-stage-container #youtube-stage-iframe {
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
}

.phone-mockup-frame.ratio-1-1 .youtube-stage-container iframe,
.phone-mockup-frame.ratio-1-1 .youtube-stage-container #youtube-stage-player,
.phone-mockup-frame.ratio-1-1 .youtube-stage-container #youtube-stage-iframe {
  width: 178%;
  height: 100%;
  transform: translate(-50%, -50%);
}

.phone-mockup-frame.ratio-4-5 .youtube-stage-container iframe,
.phone-mockup-frame.ratio-4-5 .youtube-stage-container #youtube-stage-player,
.phone-mockup-frame.ratio-4-5 .youtube-stage-container #youtube-stage-iframe {
  width: 142%;
  height: 100%;
  transform: translate(-50%, -50%);
}

#stageCanvas {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: auto;
}

/* Platform-Neutral Safe Zones Overlay */
.safe-zones-overlay-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  transition: opacity 180ms ease;
  overflow: hidden;
}

/* Canvas overlay rendered via CanvasEngine.renderSafeZonesOverlay() */

.tiktok-overlay-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 12px 14px 14px;
  z-index: 15;
  transition: opacity 180ms ease;
}

.tiktok-overlay-ui.hidden {
  display: none !important;
  opacity: 0;
}

.tiktok-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

.tiktok-right-rail {
  position: absolute;
  right: 10px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.tiktok-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.tiktok-action-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.tiktok-action-count {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.tiktok-disc-spin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #111;
  border: 4px solid #222;
  animation: spin 3s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.8);
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.tiktok-bottom-meta {
  width: calc(100% - 60px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.tiktok-creator-handle {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tiktok-caption-preview {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tiktok-sound-ticker {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Floating Stage Transport Bar */
.stage-floating-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  min-height: 42px;
  padding: 0 16px;
  background: rgba(17, 17, 24, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
  z-index: 25;
  flex-shrink: 0;
}

.transport-left, .transport-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.transport-center {
  display: flex;
  align-items: center;
  gap: 14px;
}

.play-pause-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 100%);
  color: #0A0A0C;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.play-pause-btn svg {
  fill: currentColor;
  stroke: currentColor;
}

.play-pause-btn:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, #D4FF00 0%, #A6E200 100%);
  color: #0A0A0C;
  border-color: #D4FF00;
  box-shadow: 0 0 22px rgba(212, 255, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.play-pause-btn:active {
  transform: scale(0.95);
}

.timecode-display {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #00F5FF;
  background: rgba(10, 10, 14, 0.9);
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.timecode-total {
  color: #8E8EA0;
  margin-left: 2px;
}

.toggle-pill-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--bg-rack);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 150ms ease;
}

.toggle-pill-btn.active {
  color: var(--accent);
  border-color: rgba(124, 92, 255, 0.4);
  background: rgba(124, 92, 255, 0.12);
}

/* ─── Right Inspector Panel (Context-Sensitive Properties) ─── */
.inspector-panel {
  width: 290px;
  min-width: 290px;
  min-height: 0;
  height: 100%;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 20;
}

.inspector-panel::-webkit-scrollbar {
  width: 4px;
}
.inspector-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.inspector-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inspector-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.inspector-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prop-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prop-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.prop-value-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
}

/* Custom Hardware Sliders */
.studio-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--bg-rack-elevated);
  outline: none;
  position: relative;
}

.studio-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: #00F5FF;
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.9);
}

/* Lumetri Grade Tracks */
#sliderTemperature {
  background: linear-gradient(90deg, #00B4D8 0%, rgba(255,255,255,0.12) 50%, #FF8C00 100%) !important;
}

#sliderTint {
  background: linear-gradient(90deg, #10B981 0%, rgba(255,255,255,0.12) 50%, #EC4899 100%) !important;
}

.timeline-beat-marker-dot {
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.timeline-beat-marker-dot:hover {
  transform: translateX(-50%) scale(1.8);
  box-shadow: 0 0 10px #FFB020, 0 0 20px #FFB020;
}

/* Quick Select Buttons (Speed, Filters) */
.btn-toggle-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  background: var(--bg-rack);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.btn-toggle-group button {
  padding: 6px 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: 6px;
  text-align: center;
  transition: all 150ms ease;
}

.btn-toggle-group button.active {
  color: #fff;
  background: var(--bg-rack-elevated);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ─── Bottom Multi-Track Timeline (CapCut Timeline Engine) ─── */
.timeline-panel {
  height: var(--timeline-h);
  min-height: var(--timeline-h);
  max-height: var(--timeline-h);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 40;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Timeline Action Toolbar */
.timeline-toolbar {
  height: 34px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.timeline-tools-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.timeline-action-btn:hover {
  color: #00F5FF;
  background: var(--surface-3);
  border-color: rgba(0, 245, 255, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 245, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.timeline-action-btn:active {
  transform: translateY(0.5px) scale(0.98);
}

.timeline-action-btn.btn-split:hover {
  color: #FF3366;
  border-color: rgba(255, 51, 102, 0.4);
  box-shadow: 0 4px 12px rgba(255, 51, 102, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.timeline-tools-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zoom-slider-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 140px;
}

/* Timeline Tracks Body */
.timeline-scroll-container {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  background: #09090d;
}

.timeline-scroll-container::-webkit-scrollbar {
  height: 6px;
}
.timeline-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.timeline-inner-canvas {
  position: relative;
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Timeline Time Ruler */
.timeline-ruler-wrap {
  height: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  background: var(--bg-rack);
}

#timelineRulerCanvas {
  width: 100%;
  height: 24px;
  display: block;
}

/* Tracks Container */
.tracks-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  gap: 5px;
  position: relative;
}

/* Individual Track Lane */
.track-lane {
  height: var(--track-height);
  position: relative;
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
}

.track-lane-label {
  position: sticky;
  left: 0;
  z-index: 10;
  width: 76px;
  height: 100%;
  background: rgba(14, 14, 19, 0.92);
  backdrop-filter: blur(8px);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.track-lane-content {
  flex: 1;
  height: 100%;
  position: relative;
}

/* Timeline Clip Blocks */
.timeline-clip {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  padding: 0 8px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.timeline-clip:active {
  cursor: grabbing;
}

.timeline-clip.selected {
  border-color: #00F5FF !important;
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  z-index: 5;
}

/* Track Clip Types */
.timeline-clip.clip-video {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.28) 0%, rgba(0, 180, 230, 0.42) 100%);
  border-color: rgba(0, 245, 255, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.timeline-clip.clip-lyrics {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.28) 0%, rgba(99, 45, 220, 0.45) 100%);
  border-color: rgba(139, 92, 246, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.timeline-clip.clip-audio {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 120, 85, 0.45) 100%);
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.timeline-clip.clip-sfx {
  background: linear-gradient(135deg, rgba(255, 176, 32, 0.25) 0%, rgba(190, 120, 15, 0.40) 100%);
  border-color: rgba(255, 176, 32, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.timeline-clip.clip-fx {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.22) 0%, rgba(139, 92, 246, 0.35) 100%);
  border-color: rgba(0, 245, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.clip-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* Trim Handles — Tactile Studio Console + Touch-Friendly Hit Target */
.clip-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  background: rgba(255, 255, 255, 0.16);
  cursor: ew-resize;
  opacity: 0;
  transition: opacity 140ms ease, background 140ms ease, box-shadow 140ms ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
}

/* Expanded invisible touch hit target (>= 28px desktop, >= 44px touch) */
.clip-handle::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -8px;
  right: -8px;
  min-width: 28px;
  z-index: 11;
  cursor: ew-resize;
}

@media (pointer: coarse) {
  .clip-handle {
    width: 24px;
    opacity: 0.9;
  }
  .clip-handle::before {
    left: -10px;
    right: -10px;
    min-width: 44px;
  }
}

.handle-grip-pill {
  width: 2.5px;
  height: 16px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1.5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.timeline-clip:hover .clip-handle,
.timeline-clip.selected .clip-handle,
.clip-handle:focus-visible {
  opacity: 1;
}

.clip-handle:hover,
.clip-handle.active {
  background: #00F5FF;
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.7);
}

.clip-handle:hover .handle-grip-pill,
.clip-handle.active .handle-grip-pill {
  background: #000000;
}

.clip-handle:focus-visible {
  outline: 2px solid #00F5FF;
  outline-offset: 1px;
}

.clip-handle.handle-start {
  left: 0;
  border-radius: 6px 0 0 6px;
}
.clip-handle.handle-end {
  right: 0;
  border-radius: 0 6px 6px 0;
}

/* Draggable Playhead Scrubber */
.timeline-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--playhead);
  box-shadow: 0 0 10px rgba(255, 176, 32, 0.6);
  z-index: 30;
  pointer-events: none;
}

.playhead-head {
  position: absolute;
  top: 0;
  left: -6px;
  width: 14px;
  height: 18px;
  background: var(--playhead);
  clip-path: polygon(0 0, 100% 0, 100% 65%, 50% 100%, 0 65%);
  cursor: ew-resize;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* ─── Modal Dialogs (Downloader & Export) ─── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 6, 0.85);
  backdrop-filter: blur(20px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 90%;
  max-width: 520px;
  background: rgba(17, 17, 24, 0.94);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 245, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(12px) scale(0.97);
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--bg-rack);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 150ms ease;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.5);
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  bottom: calc(var(--timeline-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 20px;
  border-radius: 10px;
  background: rgba(17, 17, 24, 0.94);
  border: 1px solid rgba(0, 245, 255, 0.35);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 245, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Voiceover Recording & Audio Meter Animations */
@keyframes pulse-recording {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.btn-recording-active {
  background: var(--danger-crimson) !important;
  color: #fff !important;
  animation: pulse-recording 1.4s infinite !important;
  border-color: #ff4d6d !important;
}

.voice-meter-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
}

.voice-meter-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--studio-emerald) 0%, var(--acid-lime) 70%, var(--danger-crimson) 100%);
  border-radius: 3px;
  transition: width 60ms ease;
}

/* Media Query Responsiveness */
@media (max-width: 1024px) {
  .library-drawer {
    width: 260px;
    min-width: 260px;
  }
  .inspector-panel {
    display: none; /* toggleable on smaller screens */
  }
}

/* ==========================================================================
   PHASE 2 VISUAL OVERHAUL EXTENSIONS
   Accordions, Search, Empty States, Command Palette, Shortcuts, Tooltips
   ========================================================================== */

/* ─── Drawer Search ─── */
.drawer-search-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
}

.drawer-search-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.drawer-search-input {
  width: 100%;
  height: 34px;
  padding: 0 10px 0 32px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 11px;
  transition: all 180ms ease;
}

.drawer-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.drawer-search-input::placeholder {
  color: var(--text-dim);
}

/* ─── Collapsible Accordions ─── */
.drawer-accordion {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
  margin-bottom: 10px;
  transition: all 180ms ease;
}

.drawer-accordion:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.drawer-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6px 2px;
  cursor: pointer;
  user-select: none;
}

.drawer-accordion-header:hover .drawer-section-title {
  color: var(--text);
}

.accordion-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.accordion-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  background: var(--surface-3);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
  transition: all 150ms ease;
}

.drawer-accordion:not(.collapsed) .accordion-badge {
  color: var(--accent);
  background: rgba(0, 245, 255, 0.08);
  border-color: rgba(0, 245, 255, 0.22);
}

.accordion-chevron {
  color: var(--text-muted);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-accordion.collapsed .accordion-chevron {
  transform: rotate(-90deg);
}

.drawer-accordion.collapsed .drawer-accordion-content {
  display: none !important;
}

.drawer-accordion-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

/* ─── Primary vs Secondary Button Hierarchy ─── */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 16px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  min-height: 40px;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(124, 92, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:active {
  transform: translateY(0.5px) scale(0.98);
}

.btn-secondary {
  min-height: 36px;
}

/* ─── Stage Empty State ─── */
.stage-empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2.5cqh, 24px);
  background: radial-gradient(circle at 50% 40%, rgba(124, 92, 255, 0.12) 0%, rgba(11, 11, 15, 0.96) 80%);
  border: 2px dashed rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  margin: 10px;
  text-align: center;
  z-index: 10;
  transition: all 220ms ease;
  cursor: pointer;
  overflow: hidden;
}

.stage-empty-state:hover {
  border-color: rgba(124, 92, 255, 0.45);
  background: radial-gradient(circle at 50% 40%, rgba(124, 92, 255, 0.18) 0%, rgba(15, 15, 22, 0.96) 80%);
}

.stage-empty-state.drag-over {
  border-color: var(--accent);
  background: radial-gradient(circle at 50% 40%, rgba(124, 92, 255, 0.25) 0%, rgba(20, 20, 30, 0.98) 80%);
  box-shadow: 0 0 35px var(--accent-glow);
  transform: scale(1.01);
}

.stage-empty-state.hidden {
  display: none !important;
}

.empty-graphic-wrap {
  width: clamp(64px, 14cqh, 120px);
  height: clamp(64px, 14cqh, 120px);
  margin-bottom: clamp(6px, 1.5cqh, 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.empty-graphic-wrap svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 24px rgba(124, 92, 255, 0.35));
}

.empty-title {
  font-size: clamp(14px, 2.2cqh, 18px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.empty-subtitle {
  font-size: clamp(10px, 1.6cqh, 12px);
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 250px;
  margin-bottom: clamp(8px, 2cqh, 16px);
}

#btnTrySampleProject {
  padding: clamp(8px, 1.5cqh, 11px) clamp(14px, 2.5cqw, 22px) !important;
  font-size: clamp(11px, 1.6cqh, 13px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #00F5FF 0%, #00C8FF 40%, #8B5CF6 100%) !important;
  color: #05060A !important;
  border-radius: var(--radius-md, 8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 12;
  cursor: pointer;
  flex-shrink: 0;
}

#btnTrySampleProject:hover {
  transform: translateY(-1.5px) scale(1.02) !important;
  box-shadow: 0 8px 28px rgba(0, 245, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  filter: brightness(1.06);
}

/* ─── Timeline Empty State & Ghost Tracks ─── */
.timeline-empty-hint {
  position: absolute;
  top: 36px;
  left: 76px;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 11, 15, 0.55);
  backdrop-filter: blur(4px);
  z-index: 5;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.timeline-empty-hint.hidden {
  display: none !important;
}

.timeline-empty-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--surface-2);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}

/* ─── Command Palette Modal ─── */
.command-palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  z-index: 1000;
  animation: fadeIn 150ms ease;
}

.command-palette-backdrop.open {
  display: flex;
}

.command-palette-card {
  width: 560px;
  max-width: 92vw;
  background: var(--surface-1);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.command-search-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.command-search-header svg {
  color: var(--accent);
  flex-shrink: 0;
}

.command-search-input {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border: none;
  outline: none;
}

.command-search-input::placeholder {
  color: var(--text-dim);
}

.command-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.command-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 120ms ease;
}

.command-item:hover, .command-item.selected {
  background: var(--surface-3);
  color: #fff;
}

.command-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.command-item-left svg {
  color: var(--text-muted);
}

.command-item:hover .command-item-left svg,
.command-item.selected .command-item-left svg {
  color: var(--accent);
}

.command-shortcut {
  display: flex;
  gap: 4px;
}

.kbd-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 2px 6px;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ─── Shortcut Cheat Sheet Modal ─── */
.shortcut-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 150ms ease;
}

.shortcut-modal-backdrop.open {
  display: flex;
}

.shortcut-modal-card {
  width: 640px;
  max-width: 95vw;
  max-height: 85vh;
  background: var(--surface-1);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.shortcut-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 12px 0 6px 0;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: var(--text);
}

/* ─── Skeleton Loader ─── */
@keyframes skeletonPulse {
  0% { opacity: 0.5; }
  50% { opacity: 0.85; }
  100% { opacity: 0.5; }
}

.skeleton-box {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  animation: skeletonPulse 1.5s infinite ease-in-out;
}

/* ─── Tooltips ─── */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--surface-3);
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 140ms ease;
  z-index: 1000;
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ─── Live Animated Preset Cards (Phase 4) ─── */
.preset-live-card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  user-select: none;
}

.preset-live-card:hover {
  border-color: rgba(124, 92, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55), 0 0 14px rgba(124, 92, 255, 0.2);
}

.preset-live-card.active {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--accent), 0 4px 18px var(--accent-glow);
}

.preset-card-canvas {
  width: 100%;
  height: 60px;
  display: block;
  background: #08080C;
}

.kinetic-cards-grid .preset-card-canvas {
  height: 52px;
}

.preset-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  background: rgba(12, 12, 17, 0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.preset-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preset-badge {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-3);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.preset-live-card.active .preset-badge {
  background: rgba(124, 92, 255, 0.2);
  color: #FFFFFF;
  border-color: rgba(124, 92, 255, 0.4);
}

/* ─── YouTube Search Results Component ─── */
.yt-search-results {
  max-height: 280px;
  overflow-y: auto;
  border-radius: 8px;
  background: rgba(10, 10, 14, 0.7);
  border: 1px solid var(--border);
  padding: 6px;
}

.yt-search-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yt-result-card {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  align-items: center;
  transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.yt-result-card:hover {
  background: var(--surface-3);
  border-color: rgba(124, 92, 255, 0.35);
  transform: translateY(-1px);
}

.yt-thumb-wrap {
  position: relative;
  width: 90px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.yt-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-duration-badge {
  position: absolute;
  bottom: 3px;
  right: 4px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 9px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.2;
}

.yt-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.yt-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.yt-channel {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-actions {
  display: flex;
  gap: 5px;
  margin-top: 3px;
}

.yt-add-video-btn,
.yt-add-audio-btn {
  padding: 3px 8px !important;
  font-size: 10px !important;
  height: 24px !important;
  border-radius: 5px !important;
  gap: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  font-weight: 600 !important;
}

.yt-add-video-btn {
  background: linear-gradient(135deg, #7C5CFF 0%, #6340f0 100%) !important;
  color: #fff !important;
}

.yt-add-audio-btn {
  background: rgba(45, 212, 191, 0.12) !important;
  border: 1px solid rgba(45, 212, 191, 0.35) !important;
  color: var(--mint, #2DD4BF) !important;
}

.yt-add-audio-btn:hover {
  background: rgba(45, 212, 191, 0.22) !important;
}

/* ══════════════════════════════════════════════════════════════
   PHASE 2: OPTIONAL ACCOUNTS, SYNC STATUS & ACCOUNT SETTINGS
   ══════════════════════════════════════════════════════════════ */

/* Auth Header Cluster */
.auth-header-cluster {
  display: flex;
  align-items: center;
  position: relative;
}

.btn-auth-sync {
  background: rgba(124, 92, 255, 0.1) !important;
  border: 1px solid rgba(124, 92, 255, 0.28) !important;
  color: #C4B5FD !important;
  font-weight: 600;
  gap: 6px;
  transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-auth-sync:hover {
  background: rgba(124, 92, 255, 0.2) !important;
  border-color: rgba(124, 92, 255, 0.5) !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.3);
}

/* User Profile Menu & Dropdown */
.user-profile-menu-wrap {
  position: relative;
}

.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-main);
  transition: all 160ms ease;
}

.user-avatar-btn:hover {
  border-color: rgba(124, 92, 255, 0.4);
  background: var(--surface-2);
}

.user-avatar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
  flex-shrink: 0;
}

.user-avatar-dot.syncing {
  background: #7C5CFF;
  box-shadow: 0 0 8px #7C5CFF;
  animation: pulse-sync 1.2s infinite ease-in-out;
}

.user-avatar-dot.offline {
  background: #FFB020;
  box-shadow: 0 0 6px #FFB020;
}

.user-avatar-dot.error {
  background: #FF3366;
  box-shadow: 0 0 6px #FF3366;
}

@keyframes pulse-sync {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.user-avatar-initials {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C5CFF, #4F2ED6);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.user-display-name {
  font-size: 11px;
  font-weight: 600;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dropdown Menu */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: rgba(20, 20, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  padding: 8px;
  display: none;
  flex-direction: column;
  z-index: 9999;
  animation: fadeInDown 140ms ease-out forwards;
}

.user-dropdown-menu.open {
  display: flex;
}

.user-dropdown-header {
  padding: 8px 10px;
}

.user-menu-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.user-menu-email {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.user-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

.user-menu-sync-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  font-size: 11px;
}

.sync-status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.sync-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}

.sync-status-dot.syncing { background: #7C5CFF; animation: pulse-sync 1s infinite; }
.sync-status-dot.offline { background: #FFB020; }
.sync-status-dot.error { background: #FF3366; }

.btn-ghost-sm {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  cursor: pointer;
  transition: all 120ms ease;
}

.btn-ghost-sm:hover {
  background: rgba(124, 92, 255, 0.2);
  border-color: rgba(124, 92, 255, 0.4);
  color: #fff;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 120ms ease;
}

.user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.user-dropdown-item.danger:hover {
  background: rgba(255, 51, 102, 0.15);
  color: #FF4D6D;
}

/* ─── Auth Modal Styles ─── */
.auth-modal-card {
  max-width: 440px !important;
  width: 100%;
}

.auth-modal-body {
  padding: 20px 24px 24px !important;
}

.auth-subtext {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 16px;
  text-align: center;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 3px;
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 7px 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 140ms ease;
}

.auth-tab.active {
  background: var(--surface-2);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.btn-oauth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  background: #FFFFFF;
  color: #1F2937;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-oauth-google:hover {
  background: #F3F4F6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-oauth-google:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  padding: 0 10px;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-field-group {
  margin-bottom: 14px;
}

.auth-field-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.auth-field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.btn-link-sm {
  background: none;
  border: none;
  color: var(--accent-light);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}

.btn-link-sm:hover {
  text-decoration: underline;
}

.auth-input {
  width: 100%;
  background: rgba(10, 10, 14, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  box-sizing: border-box;
  transition: all 140ms ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.25);
}

.auth-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}

.auth-status-alert {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 14px;
}

.auth-status-alert.error {
  background: rgba(255, 51, 102, 0.12);
  border: 1px solid rgba(255, 51, 102, 0.3);
  color: #FF4D6D;
}

.auth-status-alert.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10B981;
}

.auth-footer-notice {
  text-align: center;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 18px;
}

.auth-footer-notice a {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* ─── Account Modal Styles ─── */
.account-modal-card {
  max-width: 520px !important;
  width: 100%;
}

.account-modal-body {
  padding: 22px 26px 26px !important;
}

.account-profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.account-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C5CFF, #4F2ED6);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.35);
}

.account-info-details {
  flex: 1;
  min-width: 0;
}

.account-name-val {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.account-email-val {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.account-badge-pill {
  display: inline-block;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10B981;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 6px;
}

.account-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.account-stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.account-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.account-stat-lbl {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 3px;
}

.account-actions-group {
  margin-bottom: 20px;
}

.account-group-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.account-desc-text {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 10px;
}

.account-action-btn {
  width: 100%;
  justify-content: center;
  padding: 10px 16px;
  gap: 8px;
  font-weight: 600;
}

.account-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.account-legal-links a {
  color: var(--accent-light);
  text-decoration: none;
}

.account-legal-links a:hover {
  text-decoration: underline;
}

.account-danger-zone {
  border-top: 1px solid rgba(255, 51, 102, 0.2);
  padding-top: 16px;
}

.danger-title {
  font-size: 11px;
  font-weight: 700;
  color: #FF4D6D;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.danger-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

.btn-danger-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(255, 51, 102, 0.35);
  color: #FF4D6D;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 140ms ease;
}

.btn-danger-outline:hover {
  background: rgba(255, 51, 102, 0.15);
  border-color: #FF4D6D;
}

/* ─── Relink Media Banner ─── */
.relink-media-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(26, 20, 10, 0.95);
  border: 1px solid rgba(255, 176, 32, 0.4);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  z-index: 9500;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), opacity 240ms ease;
  opacity: 0;
  pointer-events: none;
}

.relink-media-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.relink-banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.relink-banner-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #FFE082;
}

.relink-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   PHASE 3: STUDIO LYRICS PIPELINE UI & UX COMPONENTS
   Aesthetic: Hardware Console + VisionOS Dark Glass + Neon Kinetic Accents
   ========================================================================== */

/* ─── 1. Multi-Stage Auto-Sync Pipeline ─── */
.sync-stages-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding: 6px 0;
}

.sync-stage-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.45;
}

.sync-stage-step.active {
  opacity: 1;
}

.sync-stage-step.done {
  opacity: 0.9;
}

.sync-stage-bullet {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-2, #1C1C24);
  border: 1.5px solid var(--border, rgba(255, 255, 255, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  flex-shrink: 0;
  position: relative;
  transition: all 250ms ease;
  z-index: 1;
}

.sync-stage-step.active .sync-stage-bullet {
  border-color: var(--cyan, #00F5FF);
  color: #00F5FF;
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.45);
  animation: pulse-ring 1.8s infinite;
}

.sync-stage-step.done .sync-stage-bullet {
  background: var(--mint, #2DD4BF);
  border-color: var(--mint, #2DD4BF);
  color: #0A0A0C;
}

.sync-stage-info {
  flex: 1;
  min-width: 0;
}

.sync-stage-name {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.sync-stage-status {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.sync-stage-step.active .sync-stage-name {
  color: var(--cyan, #00F5FF);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(0, 245, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 245, 255, 0); }
}

/* ─── 2. Source Badge & Low-Confidence Jump Bar ─── */
.lyrics-source-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(20, 20, 28, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin-bottom: 8px;
}

.lyrics-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lyrics-source-badge.badge-database {
  background: rgba(0, 245, 255, 0.12);
  border: 1px solid rgba(0, 245, 255, 0.35);
  color: var(--cyan, #00F5FF);
}

.lyrics-source-badge.badge-aligned {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: var(--accent-light, #A78BFA);
}

.lyrics-source-badge.badge-ai {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.18), rgba(139, 92, 246, 0.18));
  border: 1px solid rgba(0, 245, 255, 0.45);
  color: var(--cyan, #00F5FF);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.2);
}

.lyrics-source-badge.badge-transcribed {
  background: rgba(212, 255, 0, 0.12);
  border: 1px solid rgba(212, 255, 0, 0.35);
  color: var(--acid-lime, #D4FF00);
}

.lyrics-source-badge.badge-instrumental {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.lyrics-confidence-jump {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #FFB020;
}

.btn-jump-next {
  background: rgba(255, 176, 32, 0.15);
  border: 1px solid rgba(255, 176, 32, 0.35);
  color: #FFB020;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 120ms ease;
}

.btn-jump-next:hover {
  background: rgba(255, 176, 32, 0.3);
  transform: translateY(-1px);
}

/* ─── 3. Action Fallback Card (Never a Dead End) ─── */
.lyrics-action-card {
  padding: 14px;
  background: rgba(20, 20, 28, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.action-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}

.action-card-subtitle {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.action-card-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-action-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--surface-2, #1C1C24);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-action-tile:hover {
  background: var(--surface-3, #242430);
  border-color: var(--cyan, #00F5FF);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 16px rgba(0, 245, 255, 0.15);
}

.tile-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan, #00F5FF);
  flex-shrink: 0;
}

.tile-title {
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
}

.tile-desc {
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ─── 4. Enhanced Line Editor Controls ─── */
.lyric-item-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-1, #14141A);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 6px 8px;
  transition: all 140ms ease;
  position: relative;
}

.lyric-item-row:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--surface-2, #1C1C24);
}

.lyric-item-row.active {
  border-color: var(--accent, #7C5CFF);
  background: rgba(124, 92, 255, 0.1);
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.2);
}

.lyric-item-row.low-confidence {
  border-left: 3px solid #FFB020;
}

.lyric-timecode {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 120ms ease;
  user-select: none;
  min-width: 44px;
  text-align: center;
}

.lyric-timecode:hover {
  color: var(--playhead, #FFB020);
  background: rgba(255, 176, 32, 0.12);
}

.lyric-text-edit {
  font-size: 11px;
  color: #FFFFFF;
  background: transparent;
  border: none;
  flex: 1;
  min-width: 0;
  padding: 3px 6px;
  border-radius: 4px;
  font-family: inherit;
}

.lyric-text-edit:focus {
  background: var(--surface-0, #0B0B0F);
  outline: 1px solid var(--accent);
}

.lyric-row-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  opacity: 0.45;
  transition: opacity 140ms ease;
}

.lyric-item-row:hover .lyric-row-actions {
  opacity: 1;
}

.lyric-nudge-btn,
.lyric-split-btn,
.lyric-merge-btn,
.lyric-delete-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 9px;
  font-family: var(--font-mono);
  padding: 2px 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 120ms ease;
}

.lyric-nudge-btn:hover,
.lyric-split-btn:hover,
.lyric-merge-btn:hover {
  background: var(--surface-3);
  color: #FFFFFF;
  border-color: var(--border);
}

.lyric-delete-btn:hover {
  background: rgba(255, 51, 102, 0.15);
  color: var(--crimson, #FF3366);
  border-color: rgba(255, 51, 102, 0.3);
}

/* ─── 5. Tap-to-Sync HUD Overlay ─── */
.tap-to-sync-overlay {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 90%;
  max-width: 540px;
}

.tap-to-sync-card {
  background: rgba(14, 14, 20, 0.94);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1.5px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(124, 92, 255, 0.2);
  border-radius: 12px;
  padding: 16px;
}

.tap-sync-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tap-sync-preview-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  margin-bottom: 12px;
}

.tap-current-line {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.tap-next-line {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.btn-tap-space {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #7C5CFF 0%, #00F5FF 100%);
  border: none;
  border-radius: 8px;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 245, 255, 0.35);
  transition: all 120ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-tap-space:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 245, 255, 0.5);
}

.btn-tap-space:active {
  transform: translateY(1px) scale(0.98);
}

/* ==========================================================================
   PROBLEM 2: EASY TRIMMING & PRECISION AUDIO/VIDEO WORKSTATION STYLES
   ========================================================================== */

/* Floating Trim Duration Tooltip */
.trim-duration-tooltip {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  background: rgba(14, 14, 20, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 245, 255, 0.4);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #00F5FF;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 16px rgba(0, 245, 255, 0.25);
  display: none;
  transform: translate(-50%, -100%);
  margin-top: -10px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Magnetic Snapping Toolbar Button Active State */
.timeline-action-btn.btn-snapping.active {
  background: rgba(0, 245, 255, 0.16);
  border-color: rgba(0, 245, 255, 0.5);
  color: #00F5FF;
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Ripple Trim Toolbar Button Active State */
.timeline-action-btn.btn-ripple.active {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.5);
  color: #10B981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Sublane Lyrics Chips for Harmonies & Overlapping Lines */
.timeline-clip.clip-lyrics.sublane-chip {
  padding: 0 5px;
  border-radius: 4px;
}
.timeline-clip.clip-lyrics.sublane-chip .clip-title {
  font-size: 9.5px;
  line-height: 16px;
}
.timeline-clip.clip-lyrics.sublane-chip .clip-handle {
  width: 10px;
}

.timeline-action-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Trim Shortcuts Hint Pill in Timeline Toolbar */
.timeline-shortcuts-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  user-select: none;
}
.timeline-shortcuts-hint .kbd-mini {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 4px;
  border-radius: 3px;
  color: #FFF;
  font-weight: 700;
}

/* Ruler Range Selection Region & Floating Action Bar */
.timeline-range-highlight {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(0, 245, 255, 0.12);
  border-left: 2px solid #00F5FF;
  border-right: 2px solid #00F5FF;
  pointer-events: none;
  z-index: 25;
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.25);
}

.ruler-range-bar {
  position: absolute;
  top: 28px;
  left: 80px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: rgba(17, 17, 24, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0, 245, 255, 0.35);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 245, 255, 0.2);
}

.ruler-range-field {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.ruler-range-field label {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
}
.ruler-range-input {
  width: 68px;
  height: 24px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #00F5FF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.ruler-range-input:focus {
  outline: none;
  border-color: #00F5FF;
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.4);
}

.ruler-range-btn {
  height: 24px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #FFF;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 120ms ease;
}
.ruler-range-btn:hover {
  background: rgba(0, 245, 255, 0.2);
  border-color: #00F5FF;
  color: #00F5FF;
}
.ruler-range-btn.btn-primary-range {
  background: linear-gradient(135deg, #00F5FF 0%, #7C5CFF 100%);
  border: none;
  color: #000;
  font-weight: 700;
}
.ruler-range-btn.btn-primary-range:hover {
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.6);
  transform: translateY(-1px);
}

/* ─── Choose Your Clip Modal (VisionOS Dark Glass & Rack Console) ─── */
.choose-clip-card {
  max-width: 640px !important;
  width: 95% !important;
  background: rgba(14, 14, 20, 0.94) !important;
  backdrop-filter: blur(32px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 245, 255, 0.15) !important;
}

.clip-title-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  margin-left: 6px;
}

.choose-clip-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 20px !important;
}

.choose-clip-preview-wrap {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #08080A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.preview-media-container {
  width: 100%;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.motion-fallback-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.pulse-disc {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, #00F5FF 0%, #7C5CFF 70%, transparent 100%);
  box-shadow: 0 0 24px #00F5FF;
  animation: discPulse 2s infinite ease-in-out;
}
@keyframes discPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}
.fallback-track-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.preview-overlay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: rgba(18, 18, 24, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-play-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #00F5FF;
  border: none;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.preview-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.6);
}

.preview-time-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
}

.energy-peak-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #D4FF00;
  background: rgba(212, 255, 0, 0.1);
  border: 1px solid rgba(212, 255, 0, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Presets */
.choose-clip-presets {
  display: flex;
  align-items: center;
  gap: 10px;
}
.presets-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.preset-chips-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.clip-preset-chip {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 120ms ease;
}
.clip-preset-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
}
.clip-preset-chip.active {
  background: rgba(0, 245, 255, 0.15);
  border-color: #00F5FF;
  color: #00F5FF;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.25);
}

/* Waveform Range Slider Box */
.choose-clip-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.waveform-slider-canvas-box {
  position: relative;
  width: 100%;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #0B0B0E;
  border: 1px solid rgba(255, 255, 255, 0.1);
  touch-action: none;
  user-select: none;
}

#chooseClipWaveformCanvas {
  width: 100%;
  height: 80px;
  display: block;
}

.waveform-dim-region {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  pointer-events: none;
  z-index: 5;
}
.waveform-dim-region.dim-left { left: 0; }
.waveform-dim-region.dim-right { right: 0; }

.waveform-active-window {
  position: absolute;
  top: 0;
  bottom: 0;
  border-top: 2px solid #00F5FF;
  border-bottom: 2px solid #00F5FF;
  background: rgba(0, 245, 255, 0.06);
  z-index: 10;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.slider-handle {
  width: 16px;
  background: #00F5FF;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
  z-index: 12;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}
.slider-handle::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -10px;
  right: -10px;
  min-width: 36px;
  z-index: 13;
}
.slider-handle:focus-visible {
  outline: 2px solid #FFF;
  outline-offset: 1px;
}
.slider-handle .handle-bar {
  width: 2.5px;
  height: 20px;
  background: #000;
  border-radius: 1px;
}
.slider-handle.handle-left {
  border-radius: 6px 0 0 6px;
}
.slider-handle.handle-right {
  border-radius: 0 6px 6px 0;
}

.slider-middle-drag {
  flex: 1;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.slider-middle-drag:active {
  cursor: grabbing;
}

.waveform-playhead-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #FFB020;
  box-shadow: 0 0 8px rgba(255, 176, 32, 0.8);
  z-index: 15;
  pointer-events: none;
  transform: translateX(0);
}

/* Timecode Row */
.choose-clip-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.time-readout {
  display: flex;
  align-items: center;
  gap: 6px;
}
.time-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.time-input-field {
  width: 76px;
  height: 26px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #FFF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.time-input-field:focus {
  outline: none;
  border-color: #00F5FF;
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.35);
}

.time-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #00F5FF;
  background: rgba(0, 245, 255, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 255, 0.25);
}

/* Footer */
.choose-clip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px !important;
  background: rgba(14, 14, 18, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.clip-dont-ask-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.clip-dont-ask-label input[type="checkbox"] {
  accent-color: #00F5FF;
}
.footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   PHASE 2: QUICK CREATE WIZARD, TEMPLATES & ONBOARDING COACH MARKS
   ========================================================================== */

/* Quick Wizard Modal */
.quick-wizard-card {
  max-width: 660px;
  width: 92%;
  background: var(--bg-rack, #111116);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.wizard-step-label {
  cursor: default;
  transition: color 150ms ease;
  user-select: none;
}
.wizard-step-label.active {
  color: var(--accent, #7C5CFF);
}

.style-pack-card {
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}
.style-pack-card:hover {
  border-color: rgba(124, 92, 255, 0.4);
  transform: translateY(-1px);
}
.style-pack-card.active {
  border-color: var(--accent, #7C5CFF) !important;
  background: rgba(124, 92, 255, 0.08) !important;
}

/* Template Selection Cards */
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.template-card {
  background: var(--bg-rack, #111116);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms ease, box-shadow 160ms ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.template-card:hover {
  transform: translateY(-1.5px);
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.template-card.active {
  border-color: var(--accent, #7C5CFF);
  background: rgba(124, 92, 255, 0.06);
}

.template-preview-frame {
  height: 90px;
  background: #08080A;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.template-ratio-pill {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

/* Coach Tour Popups */
.coach-tour-bubble {
  position: fixed;
  z-index: 99999;
  width: 280px;
  background: #14141C;
  border: 1px solid var(--accent, #7C5CFF);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(124, 92, 255, 0.25);
  border-radius: 8px;
  padding: 14px;
  animation: fadeIn 180ms ease;
}
.coach-tour-bubble::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: #14141C;
  border: 1px solid var(--accent, #7C5CFF);
}

/* Recent Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.project-card {
  transition: transform 140ms ease, border-color 140ms ease;
}
.project-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}
.project-card.is-current {
  border-color: var(--accent, #7C5CFF);
}

/* ==========================================================================
   PHASE 3: STYLE PACKS & VISUAL PRESET PICKER
   ========================================================================== */

.pack-applied-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  background: #14141C;
  border: 1px solid var(--accent, #7C5CFF);
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 16px rgba(124, 92, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeIn 160ms ease;
}

.pack-thumb-card {
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}
.pack-thumb-card:hover {
  border-color: rgba(124, 92, 255, 0.45) !important;
  transform: translateY(-1.5px);
}
.pack-thumb-card.active {
  border-color: var(--accent, #7C5CFF) !important;
  background: rgba(124, 92, 255, 0.08) !important;
}

.category-chip {
  transition: all 140ms ease;
}
.category-chip:hover {
  border-color: rgba(124, 92, 255, 0.35) !important;
}

/* ==========================================================================
   PHASE 4: TIMELINE PRECISION, MINIMAP, GHOST DRAG & TRACK HEADERS
   ========================================================================== */

/* Timeline Minimap */
.timeline-minimap-wrap {
  height: 24px;
  background: #0B0B0F;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}
.timeline-minimap-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.timeline-minimap-viewport {
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 0;
  width: 80px;
  background: rgba(124, 92, 255, 0.2);
  border: 1px solid var(--accent, #7C5CFF);
  border-radius: 3px;
  cursor: grab;
  box-shadow: 0 0 8px rgba(124, 92, 255, 0.3);
}
.timeline-minimap-viewport:active {
  cursor: grabbing;
}

/* Track Header Actions */
.track-lane-label {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 6px !important;
}
.track-label-info {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
}
.track-header-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}
.track-ctrl-btn {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim, #888);
  cursor: pointer;
  transition: all 120ms ease;
  line-height: 1.2;
}
.track-ctrl-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.track-ctrl-btn.active.btn-track-mute {
  background: rgba(255, 51, 102, 0.25);
  border-color: #FF3366;
  color: #FF3366;
}
.track-ctrl-btn.active.btn-track-solo {
  background: rgba(255, 176, 32, 0.25);
  border-color: #FFB020;
  color: #FFB020;
}
.track-ctrl-btn.active.btn-track-lock {
  background: rgba(0, 245, 255, 0.2);
  border-color: #00F5FF;
  color: #00F5FF;
}

/* Locked Track Pattern */
.track-lane.is-locked .track-lane-content {
  pointer-events: none !important;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 8px,
    transparent 8px,
    transparent 16px
  );
  opacity: 0.55;
}

/* Drag Ghost Element */
.timeline-drag-ghost {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(124, 92, 255, 0.25);
  border: 1px dashed var(--accent, #7C5CFF);
  border-radius: 4px;
  pointer-events: none;
  z-index: 40;
  display: none;
}

/* ==========================================================================
   PHASE 5: EXPORT PRESETS, DYNAMIC ESTIMATES & BATCH QUEUE
   ========================================================================== */

.export-preset-card {
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}
.export-preset-card:hover {
  transform: translateY(-1.5px);
  border-color: rgba(124, 92, 255, 0.45);
}
.export-preset-card.active {
  border-color: var(--accent, #7C5CFF) !important;
  background: rgba(124, 92, 255, 0.08) !important;
}

.export-queue-drawer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 340px;
  max-height: 400px;
  background: #111116;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn 160ms ease;
}
.queue-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.queue-drawer-body {
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.queue-item-card {
  background: #17171F;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.queue-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.queue-item-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}
.queue-status-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}
.queue-status-badge.rendering {
  background: rgba(0, 245, 255, 0.15);
  color: #00F5FF;
  border: 1px solid rgba(0, 245, 255, 0.3);
}
.queue-status-badge.completed {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.queue-status-badge.failed {
  background: rgba(255, 51, 102, 0.15);
  color: #FF3366;
  border: 1px solid rgba(255, 51, 102, 0.3);
}
.queue-empty-state {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* ─── Timeline Context Menu ─── */
.timeline-context-menu {
  position: fixed;
  z-index: 99999;
  min-width: 190px;
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  animation: fadeIn 120ms ease;
}
.context-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 11.5px;
  font-weight: 500;
  color: #E5E7EB;
  border-radius: 5px;
  cursor: pointer;
  transition: all 120ms ease;
  user-select: none;
}
.context-menu-item:hover {
  background: rgba(0, 245, 255, 0.12);
  color: #00F5FF;
}
.context-menu-item svg {
  color: inherit;
  flex-shrink: 0;
}
.context-menu-kbd {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 3px;
}
.context-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 3px 0;
}

/* ─── Skeleton Shimmer Loader Upgrade ─── */
@keyframes skeletonShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton-box, .skeleton-card, .skeleton-thumb {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.03) 100%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.8s infinite linear;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-box, .skeleton-card, .skeleton-thumb {
    animation: none;
    background: rgba(255, 255, 255, 0.05);
  }
}





