/* ==========================================================================
   🕷️ SPIDIFY STUDIO PRO — PROFESSIONAL NLE VIDEO WORKSTATION STYLESHEET
   Apple Pro / Ableton Matte Dark Obsidian + Tactile Hardware Panels
   ========================================================================== */

.studio-body {
  background-color: var(--bg-base, #0c0e14);
  color: var(--text-1, #f5f6fa);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Pro", "Helvetica Neue", "Inter", sans-serif;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
}

.studio-app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════════════════
   1. TOP GLOBAL TOOLBAR (PRO NLE HUD)
   ══════════════════════════════════════════════════════════════════════════ */
.studio-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--bg-console, #12151e);
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  height: 52px;
  z-index: 100;
  flex-shrink: 0;
  gap: 12px;
}

.top-bar-left, .top-bar-center, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-back-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  color: var(--text-2, #8e8e93);
  padding: 6px 12px;
  border-radius: var(--radius-full, 999px);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.studio-back-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: var(--accent, #AF52DE);
}

.studio-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.studio-brand .brand-name {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Project Name Inline Input */
.project-name-input {
  background: transparent;
  border: 1px solid transparent;
  color: #fff;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  max-width: 140px;
  transition: all 0.2s ease;
}
.project-name-input:hover, .project-name-input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border, rgba(255, 255, 255, 0.15));
  outline: none;
}

/* Top Toolbar Action Buttons */
.top-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  color: var(--text-2, #8e8e93);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}
.top-action-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.top-action-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.top-action-btn.active {
  background: rgba(175, 82, 222, 0.15);
  color: var(--accent, #AF52DE);
  border-color: var(--accent, #AF52DE);
}

.tiktok-ready-pill {
  background: linear-gradient(135deg, #FF0050 0%, #00F2FE 100%);
  border: none;
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 12px rgba(255, 0, 80, 0.35);
  transition: all 0.2s ease;
}
.tiktok-ready-pill:hover {
  transform: scale(1.03);
  box-shadow: 0 0 18px rgba(255, 0, 80, 0.55);
}

/* ══════════════════════════════════════════════════════════════════════════
   2. 4-QUADRANT PRO NLE GRID LAYOUT
   ══════════════════════════════════════════════════════════════════════════ */
.studio-main-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  grid-template-rows: 1fr 240px;
  height: calc(100vh - 52px);
  overflow: hidden;
  background: var(--bg-base, #0c0e14);
}

/* ─── 1. LEFT TOOL RIBBON & DRAWER (iOS Segmented Container) ─── */
.studio-left-panel {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  display: flex;
  flex-direction: column;
  background: rgba(18, 20, 28, 0.88);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-right: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  overflow: hidden;
  width: 380px;
}

.studio-nav-bar {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  padding: 10px 12px;
  flex-shrink: 0;
}

.nav-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
}

.studio-nav-item {
  width: 100%;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  color: var(--text-2, #8e8e93);
  cursor: pointer;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.studio-nav-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.studio-nav-item.active {
  background: linear-gradient(135deg, rgba(175, 82, 222, 0.35) 0%, rgba(94, 92, 230, 0.35) 100%);
  border-color: rgba(175, 82, 222, 0.6);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.studio-nav-item .nav-text {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.studio-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.studio-panel-body::-webkit-scrollbar {
  width: 4px;
}
.studio-panel-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.studio-panel-section {
  display: none;
}
.studio-panel-section.active {
  display: block;
  animation: fadeInPanel 0.2s ease;
}
@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-section-title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-2, #8e8e93);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

/* Layer Cards inside Left Tool Drawer */
.text-layer-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.18s ease;
}
.text-layer-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}
.text-layer-item.active {
  background: rgba(175, 82, 222, 0.14);
  border-color: var(--accent, #AF52DE);
}
.text-layer-item .layer-info {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.text-layer-item .layer-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.text-layer-item .layer-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.layer-btn {
  background: none;
  border: none;
  color: var(--text-3, #636366);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s ease;
}
.layer-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Lyric Mode Chips */
.lyric-mode-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.mode-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  color: var(--text-2, #8e8e93);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 8px 4px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
}
.mode-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.mode-chip.active {
  background: rgba(175, 82, 222, 0.15);
  color: var(--accent, #AF52DE);
  border-color: var(--accent, #AF52DE);
}

/* Lyric Presets Grid — Premium iOS Glassmorphic Cards (No Text Clipping) */
.lyric-presets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.lyric-preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.09));
  color: var(--text-2, #a1a1a6);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: normal; /* Never truncate text with awkward ellipsis */
  word-break: break-word;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.lyric-preset-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.lyric-preset-btn.active {
  background: rgba(175, 82, 222, 0.18);
  border-color: var(--accent, #AF52DE);
  color: #fff;
  box-shadow: 0 0 14px rgba(175, 82, 222, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Lyric Lines Editor */
.lyric-lines-editor {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}
.lyric-line-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.06));
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.lyric-line-row:hover {
  background: rgba(255, 255, 255, 0.07);
}
.lyric-line-row.in-cut-slice {
  border-color: rgba(0, 242, 254, 0.35);
  background: rgba(0, 242, 254, 0.06);
}
.lyric-line-row.active-playing-lyric {
  border-color: var(--capcut-cyan, #00F2FE) !important;
  background: rgba(0, 242, 254, 0.18) !important;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
}
.lyric-line-time {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  color: var(--capcut-cyan, #00F2FE);
  font-weight: 700;
  flex-shrink: 0;
}
.lyric-line-text {
  font-size: 0.78rem;
  color: #fff;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lyric-slice-badge {
  background: var(--capcut-gradient, linear-gradient(135deg, #00F2FE 0%, #4FACFE 100%));
  color: #000;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.lyric-sync-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 0.70rem;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.lyric-sync-btn:hover {
  background: rgba(0, 242, 254, 0.25);
  border-color: var(--capcut-cyan, #00F2FE);
  transform: scale(1.1);
}

/* Word Timing Strip */
.word-timing-strip {
  background: #090b10;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  padding: 10px;
}
.word-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.word-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}
.word-pill:hover, .word-pill.active {
  background: var(--accent, #AF52DE);
  color: #fff;
}

/* Style & Visualizer Presets */
.style-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.preset-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  color: var(--text-2, #8e8e93);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}
.preset-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.preset-pill.active {
  background: rgba(175, 82, 222, 0.15);
  border-color: var(--accent, #AF52DE);
  color: #fff;
}

/* Dropzone */
.custom-bg-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.02);
}
.custom-bg-dropzone:hover {
  border-color: var(--accent, #AF52DE);
  background: rgba(175, 82, 222, 0.05);
}
.custom-bg-dropzone .drop-icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
  display: block;
}
.custom-bg-dropzone .drop-text {
  font-size: 0.78rem;
  color: var(--text-2, #8e8e93);
}

/* ══════════════════════════════════════════════════════════════════════════
   3. CENTER CANVAS & VIDEO PREVIEW STAGE
   ══════════════════════════════════════════════════════════════════════════ */
.studio-center-stage {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #090a0f;
  position: relative;
  overflow: hidden;
  padding: 12px;
}

.preview-canvas-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: calc(100% - 54px);
  /* iPhone 16 Pro Natural Titanium Perimeter Frame */
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 0 3.5px #181920,
    0 0 0 4.5px rgba(255, 255, 255, 0.08),
    0 25px 80px rgba(0, 0, 0, 0.95),
    0 0 50px rgba(175, 82, 222, 0.22);
  border-radius: 46px;
  overflow: hidden;
  background: #000;
  cursor: crosshair;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-canvas-wrapper[data-ratio="16:9"],
.preview-canvas-wrapper[data-ratio="1:1"] {
  border-radius: 18px;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 3px #181920,
    0 25px 70px rgba(0, 0, 0, 0.95);
}

/* iPhone 16 Pro Dynamic Island */
.iphone-dynamic-island-bar {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 30;
  transition: opacity 0.2s ease;
}

.preview-canvas-wrapper[data-ratio="16:9"] .iphone-dynamic-island-bar,
.preview-canvas-wrapper[data-ratio="1:1"] .iphone-dynamic-island-bar {
  display: none !important;
}

.iphone-dynamic-island {
  width: 96px;
  height: 26px;
  background: #000000;
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 3px 10px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  gap: 8px;
}

.island-camera {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #243348 0%, #0c121a 65%, #000 100%);
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.35);
}

.island-sensor {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0a0e14;
  opacity: 0.85;
}

/* iPhone 16 Pro Home Indicator Bar */
.iphone-home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  pointer-events: none;
  z-index: 30;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.2s ease;
}

.preview-canvas-wrapper[data-ratio="16:9"] .iphone-home-bar,
.preview-canvas-wrapper[data-ratio="1:1"] .iphone-home-bar {
  display: none !important;
}

/* YouTube 1080p Stage Video Viewport */
.youtube-stage-container {
  position: absolute;
  top: 0;
  left: 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 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.42);
  width: 100%;
  height: 100%;
  pointer-events: none;
  border: none;
}

#studio-video-canvas {
  position: relative;
  z-index: 5;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* On-Canvas Direct Manipulation Handles & Reticle */
.canvas-selection-box {
  position: absolute;
  border: 1.5px solid var(--accent, #AF52DE);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(175, 82, 222, 0.7);
  border-radius: 4px;
}

.canvas-resize-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border: 1.5px solid var(--accent, #AF52DE);
  border-radius: 50%;
  pointer-events: auto;
  cursor: nwse-resize;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.canvas-rotate-handle {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: var(--accent, #AF52DE);
  border: 2px solid #fff;
  border-radius: 50%;
  pointer-events: auto;
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Authentic iOS / Apple Music Floating Transport Bar */
.stage-transport-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 540px;
  margin-top: 12px;
  background: rgba(28, 28, 30, 0.75);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.phone-play-btn {
  background: linear-gradient(135deg, #BF5AF2 0%, #AF52DE 50%, #5E5CE6 100%);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(175, 82, 222, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.phone-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 18px rgba(175, 82, 222, 0.7);
}

.time-display {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════════════════
   4. RIGHT DYNAMIC CONTEXTUAL INSPECTOR
   ══════════════════════════════════════════════════════════════════════════ */
.studio-right-inspector {
  display: none;
}

.inspector-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inspector-title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-1, #fff);
  display: flex;
  align-items: center;
  gap: 6px;
}

.inspector-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.inspector-scroll-body::-webkit-scrollbar {
  width: 4px;
}
.inspector-scroll-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.inspector-field {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-2, #8e8e93);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.text-input-field {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: var(--font-main, sans-serif);
  box-sizing: border-box;
}
.text-input-field:focus {
  border-color: var(--accent, #AF52DE);
  outline: none;
  background: rgba(255, 255, 255, 0.09);
}

.slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 0.78rem;
  color: var(--text-2, #8e8e93);
}

.slider-input {
  width: 100%;
  accent-color: var(--accent, #AF52DE);
  cursor: pointer;
}

/* Inspector Empty State */
.inspector-empty-state {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-3, #636366);
}
.inspector-empty-state .empty-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

/* ══════════════════════════════════════════════════════════════════════════
   5. BOTTOM MULTI-TRACK TIMELINE
   ══════════════════════════════════════════════════════════════════════════ */
.studio-bottom-timeline {
  grid-column: 1 / 4;
  grid-row: 2 / 3;
  background: #0d0f16;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.timeline-toolbar {
  height: 36px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.06));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  gap: 12px;
}

/* iOS 18 Segmented Controls in Timeline Toolbar */
.ios-segmented-control {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.ios-segment-btn {
  background: transparent;
  border: none;
  color: #8e8e93;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  user-select: none;
}
.ios-segment-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
}
.ios-segment-btn:active {
  transform: translateY(0);
}
.ios-segment-btn.primary {
  color: #0A84FF;
}
.ios-segment-btn.primary:hover {
  background: rgba(10, 132, 255, 0.22);
  color: #fff;
}
.ios-segment-btn.danger {
  color: #FF453A;
}
.ios-segment-btn.danger:hover {
  background: rgba(255, 69, 58, 0.22);
  color: #fff;
}

.timeline-tool-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-2, #8e8e93);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  user-select: none;
}
.timeline-tool-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.timeline-tool-btn:active {
  transform: translateY(0);
}
.timeline-tool-btn.active {
  background: rgba(10, 132, 255, 0.2);
  color: #0A84FF;
  border-color: rgba(10, 132, 255, 0.5);
}

/* Timeline Ruler */
.timeline-ruler-bar {
  display: flex;
  height: 24px;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 16px;
  user-select: none;
  position: relative;
}
.timeline-ruler-header {
  width: 110px;
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-3, #8e8e93);
  display: flex;
  align-items: center;
  letter-spacing: 0.08em;
  padding-left: 8px;
}
.timeline-ruler-track {
  flex: 1;
  position: relative;
  height: 100%;
  cursor: pointer;
  min-width: 100%;
}
.timeline-ruler-playhead-notch {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  margin-left: -7px;
  background: #FF2D55;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 8px rgba(255, 45, 85, 0.9);
  cursor: ew-resize;
  z-index: 60;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  left: 0%;
}
.timeline-ruler-playhead-notch::after {
  content: '';
  width: 2px;
  height: 10px;
  background: #fff;
  border-radius: 1px;
}
.timeline-ruler-mark {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--text-2, #8e8e93);
  padding-left: 4px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 2px;
  pointer-events: none;
  white-space: nowrap;
}
.timeline-ruler-mark.minor-tick {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  height: 7px;
  top: auto;
  bottom: 0;
}
.timeline-ruler-mark.major-tick {
  color: var(--capcut-cyan, #00F2FE);
  border-left: 1.5px solid rgba(0, 242, 254, 0.45);
  text-shadow: 0 0 6px rgba(0, 242, 254, 0.35);
}

.timeline-tracks-area {
  flex: 1;
  overflow-x: auto;
  overflow-y: auto;
  position: relative;
  padding: 6px 16px 14px;
  background: #080a0f;
}
.timeline-tracks-area::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.timeline-tracks-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}
#timeline-tracks-container {
  min-width: 100%;
  position: relative;
}

.timeline-track-row {
  display: flex;
  align-items: center;
  height: 38px;
  margin-bottom: 5px;
  position: relative;
}

.timeline-track-header {
  width: 110px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-2, #a1a1a6);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 10px;
  flex-shrink: 0;
  user-select: none;
}
.track-header-title {
  display: flex;
  align-items: center;
  gap: 5px;
}

.timeline-track-lane {
  flex: 1;
  height: 34px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.15s;
}
.timeline-track-lane:hover {
  background: rgba(255, 255, 255, 0.045);
}

.timeline-clip-block {
  position: absolute;
  top: 2px;
  bottom: 2px;
  border-radius: 5px;
  font-size: 0.70rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  align-items: center;
  cursor: grab;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.timeline-clip-block:active {
  cursor: grabbing;
}
.timeline-clip-block.selected {
  border-color: #FFFFFF !important;
  box-shadow: 0 0 14px rgba(10, 132, 255, 0.85), 0 0 0 1px #fff !important;
  z-index: 10;
}

/* Individual Lyric Segments on Timeline */
.timeline-clip-block.lyric-segment {
  background: linear-gradient(90deg, rgba(175, 82, 222, 0.65), rgba(255, 45, 85, 0.65));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.timeline-clip-block.lyric-segment:hover {
  transform: scaleY(1.08);
  border-color: #fff;
  box-shadow: 0 0 10px rgba(175, 82, 222, 0.85);
  z-index: 15;
}
.timeline-clip-block.lyric-segment.active-lyric-segment {
  background: linear-gradient(90deg, #AF52DE, #FF2D55) !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 16px rgba(255, 45, 85, 0.9), 0 0 0 1.5px #fff !important;
  z-index: 20;
}
.lyric-seg-text {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 6px;
}

.timeline-clip-content {
  padding: 0 10px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.clip-time-badge {
  font-size: 0.62rem;
  opacity: 0.85;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.45);
  padding: 1px 5px;
  border-radius: 3px;
}

.timeline-waveform-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

.timeline-trim-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10px;
  background: rgba(255, 255, 255, 0.35);
  cursor: ew-resize;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.timeline-trim-handle:hover,
.timeline-trim-handle.active {
  background: rgba(255, 255, 255, 0.95);
}
.timeline-trim-handle.handle-left {
  left: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  border-right: 1px solid rgba(0,0,0,0.4);
}
.timeline-trim-handle.handle-right {
  right: 0;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  border-left: 1px solid rgba(0,0,0,0.4);
}
.timeline-trim-handle::after {
  content: '';
  width: 2px;
  height: 14px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 1px;
}

.timeline-clip-block.clip-audio {
  background: linear-gradient(90deg, #0A84FF, #5E5CE6);
}
.timeline-clip-block.clip-lyrics {
  background: linear-gradient(90deg, #AF52DE, #FF2D55);
}
.timeline-clip-block.clip-text {
  background: linear-gradient(90deg, #FF9F0A, #FF375F);
}
.timeline-clip-block.clip-visualizer {
  background: linear-gradient(90deg, #30D158, #0A84FF);
}
.timeline-clip-block.clip-bg {
  background: linear-gradient(90deg, #5856D6, #BF5AF2);
}

.timeline-playhead-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #FF2D55 0%, #FF375F 100%);
  box-shadow: 0 0 10px rgba(255, 45, 85, 0.9);
  pointer-events: none;
  z-index: 50;
  left: 126px; /* offset by track header width + padding */
}
.timeline-playhead-handle {
  position: absolute;
  top: -9px;
  left: -6px;
  width: 14px;
  height: 14px;
  background: #FF2D55;
  border: 1.5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 45, 85, 1);
  cursor: ew-resize;
  pointer-events: auto;
  transition: transform 0.15s;
}
.timeline-playhead-handle:hover,
.timeline-playhead-handle:active {
  transform: scale(1.3);
}

/* ══════════════════════════════════════════════════════════════════════════
   6. PROFESSIONAL EXPORT MODAL & WATERMARK CONTROLS
   ══════════════════════════════════════════════════════════════════════════ */
#export-modal-overlay,
.export-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(8, 10, 15, 0.88) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  z-index: 999999 !important;
  display: none;
  pointer-events: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

#export-modal-overlay.visible,
.export-modal-overlay.visible {
  display: flex !important;
  pointer-events: auto !important;
  animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.export-btn * {
  pointer-events: none;
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.export-modal-box {
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(175, 82, 222, 0.2);
  position: relative;
  color: #fff;
}

.export-section-card {
  background: #0b0d14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.watermark-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}
.watermark-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #fff;
}
.watermark-badge.unlocked {
  background: rgba(48, 209, 88, 0.15);
  border-color: #30D158;
  color: #30D158;
}

/* Universal Tool & Action Buttons */
.tool-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.tool-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent, #AF52DE);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(175, 82, 222, 0.25);
}

.tool-btn-sm {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.18s ease;
}
.tool-btn-sm:hover {
  background: rgba(175, 82, 222, 0.2);
  border-color: var(--accent, #AF52DE);
}

.export-btn {
  background: var(--accent-gradient, linear-gradient(135deg, #AF52DE 0%, #5856D6 100%));
  border: none;
  color: #ffffff;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 16px rgba(175, 82, 222, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.export-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 24px rgba(175, 82, 222, 0.65);
}

.spidify-ad-continue-btn {
  background: var(--accent-gradient, linear-gradient(135deg, #AF52DE 0%, #5856D6 100%));
  border: none;
  color: #ffffff;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 20px rgba(175, 82, 222, 0.4);
  transition: all 0.2s ease;
}
.spidify-ad-continue-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(175, 82, 222, 0.65);
}

.spidify-ad-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}
.spidify-ad-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ══════════════════════════════════════════════════════════════════════════
   7. CAPCUT PRO DESIGN SUITE & RIGHT-CLICK CONTEXT MENU
   ══════════════════════════════════════════════════════════════════════════ */

/* CapCut Color Tokens & Glassmorphism */
:root {
  --capcut-cyan: #00F2FE;
  --capcut-blue: #4FACFE;
  --capcut-gradient: linear-gradient(135deg, #00F2FE 0%, #4FACFE 100%);
  --capcut-glow: 0 0 16px rgba(0, 242, 254, 0.45);
}

/* CapCut Stage Transport Bar */
.capcut-transport {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 20, 26, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 8px 16px;
  width: 92%;
  max-width: 680px;
  margin: 10px auto 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

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

.transport-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.transport-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--capcut-cyan);
  color: var(--capcut-cyan);
  transform: translateY(-1px);
}
.transport-btn.active {
  background: var(--capcut-gradient);
  color: #000;
  font-weight: 800;
}

/* Digital Timecode Display */
.timecode-display {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: -0.02em;
}
.timecode-current {
  color: var(--capcut-cyan);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}
.timecode-sep {
  color: var(--text-3, #6e6e73);
}
.timecode-total {
  color: var(--text-2, #8e8e93);
}

.transport-seeker-container {
  flex: 1;
  display: flex;
  align-items: center;
}

.capcut-scrubber {
  accent-color: var(--capcut-cyan);
  height: 6px;
  cursor: pointer;
}

/* CapCut Timeline Branding & Quick Toolbar */
.timeline-brand-badge {
  background: var(--capcut-gradient);
  color: #0c0e14;
  font-size: 0.70rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.35);
}

.capcut-tool-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f5f6fa;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.capcut-tool-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--capcut-cyan);
  color: var(--capcut-cyan);
  transform: translateY(-1px);
}
.capcut-tool-btn.danger:hover {
  background: rgba(255, 55, 95, 0.2);
  border-color: #FF375F;
  color: #FF375F;
}

.toolbar-v-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
}

/* CapCut Timeline Clip Enhancements */
.timeline-clip-block {
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.timeline-clip-block.clip-audio {
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.22) 0%, rgba(79, 172, 254, 0.32) 100%) !important;
  border: 1px solid rgba(0, 242, 254, 0.5) !important;
  color: #fff !important;
}
.timeline-clip-block.clip-lyrics {
  background: linear-gradient(90deg, rgba(191, 90, 242, 0.22) 0%, rgba(175, 82, 222, 0.32) 100%) !important;
  border: 1px solid rgba(191, 90, 242, 0.5) !important;
}
.timeline-clip-block.clip-text {
  background: linear-gradient(90deg, rgba(255, 214, 10, 0.22) 0%, rgba(255, 159, 10, 0.32) 100%) !important;
  border: 1px solid rgba(255, 214, 10, 0.5) !important;
}
.timeline-clip-block.clip-visualizer {
  background: linear-gradient(90deg, rgba(48, 209, 88, 0.22) 0%, rgba(52, 199, 89, 0.32) 100%) !important;
  border: 1px solid rgba(48, 209, 88, 0.5) !important;
}
.timeline-clip-block.clip-bg {
  background: linear-gradient(90deg, rgba(255, 45, 85, 0.22) 0%, rgba(255, 55, 95, 0.32) 100%) !important;
  border: 1px solid rgba(255, 45, 85, 0.5) !important;
}

/* Glowing Selected State */
.timeline-clip-block.selected {
  border-color: var(--capcut-cyan) !important;
  box-shadow: 0 0 0 2px var(--capcut-cyan), 0 0 16px rgba(0, 242, 254, 0.5) !important;
  z-index: 10;
}

/* CapCut Trim Handles with 3-Dot Grip */
.timeline-trim-handle {
  width: 14px !important;
  background: var(--capcut-cyan) !important;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.6) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.15s ease, width 0.15s ease;
}
.timeline-trim-handle:hover {
  opacity: 1 !important;
  width: 16px !important;
}
.timeline-trim-handle::after {
  content: '⋮';
  color: #000;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   CAPCUT-STYLE ACRYLIC RIGHT-CLICK CONTEXT MENU
   ══════════════════════════════════════════════════════════════════════════ */
.studio-context-menu {
  position: fixed;
  z-index: 999999;
  background: rgba(20, 22, 28, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 6px;
  min-width: 220px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 242, 254, 0.25);
  animation: contextMenuPop 0.12s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

@keyframes contextMenuPop {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.context-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #f5f6fa;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.12s ease;
  gap: 12px;
}
.context-menu-item:hover {
  background: rgba(0, 242, 254, 0.16);
  color: var(--capcut-cyan);
}
.context-menu-item.danger:hover {
  background: rgba(255, 55, 95, 0.22);
  color: #FF375F;
}
.context-menu-item.disabled {
  opacity: 0.32;
  pointer-events: none;
}

.context-icon {
  font-size: 0.90rem;
  display: inline-flex;
  align-items: center;
  width: 18px;
}
.context-label {
  flex: 1;
  text-align: left;
}
.context-shortcut {
  font-size: 0.68rem;
  color: var(--text-3, #6e6e73);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.context-menu-item:hover .context-shortcut {
  color: #fff;
  border-color: rgba(0, 242, 254, 0.3);
}

.context-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 5px 2px;
}

/* Track Header Badges */
.track-header-title {
  font-weight: 700;
  font-size: 0.74rem;
  color: #fff;
}
.track-badge-cyan {
  background: rgba(0, 242, 254, 0.16);
  color: var(--capcut-cyan);
  font-size: 0.60rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.track-badge-purple {
  background: rgba(191, 90, 242, 0.16);
  color: #BF5AF2;
  font-size: 0.60rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.track-badge-gold {
  background: rgba(255, 214, 10, 0.16);
  color: #FFD60A;
  font-size: 0.60rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.track-badge-green {
  background: rgba(48, 209, 88, 0.16);
  color: #30D158;
  font-size: 0.60rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.track-badge-pink {
  background: rgba(255, 45, 85, 0.16);
  color: #FF2D55;
  font-size: 0.60rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.studio-mobile-nav {
  display: none;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .studio-main-grid {
    grid-template-columns: 280px 1fr 260px;
  }
}

@media (max-width: 768px) {
  .studio-mobile-nav {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(13, 15, 20, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 50px;
    z-index: 90;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .mobile-nav-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-2, #8e8e93);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 38px;
  }

  .mobile-nav-btn:hover,
  .mobile-nav-btn:active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
  }

  .mobile-nav-btn.active {
    background: var(--accent-gradient, linear-gradient(135deg, #AF52DE, #5E5CE6));
    color: #fff;
    border-color: rgba(175, 82, 222, 0.5);
    box-shadow: 0 2px 12px rgba(175, 82, 222, 0.35);
  }

  .studio-main-grid {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    position: relative;
  }

  .studio-right-inspector {
    display: none !important;
  }

  /* Default / Stage View */
  body:not(.mobile-view-tools):not(.mobile-view-timeline) .studio-left-panel,
  body.mobile-view-stage .studio-left-panel {
    display: none !important;
  }
  body:not(.mobile-view-tools):not(.mobile-view-timeline) .studio-bottom-timeline,
  body.mobile-view-stage .studio-bottom-timeline {
    height: 120px;
    flex-shrink: 0;
  }
  body:not(.mobile-view-tools):not(.mobile-view-timeline) .studio-center-stage,
  body.mobile-view-stage .studio-center-stage {
    display: flex;
    flex: 1;
    min-height: 0;
  }

  /* Tools & Lyrics View */
  body.mobile-view-tools .studio-left-panel {
    display: flex !important;
    width: 100% !important;
    height: calc(100vh - 105px) !important;
    overflow-y: auto !important;
    z-index: 40;
    background: #0d0f14;
    position: relative;
  }
  body.mobile-view-tools .studio-center-stage,
  body.mobile-view-tools .studio-bottom-timeline {
    display: none !important;
  }

  /* Timeline View */
  body.mobile-view-timeline .studio-bottom-timeline {
    display: flex !important;
    width: 100% !important;
    height: calc(100vh - 105px) !important;
    overflow-y: auto !important;
    z-index: 40;
    background: #0d0f14;
  }
  body.mobile-view-timeline .studio-center-stage,
  body.mobile-view-timeline .studio-left-panel {
    display: none !important;
  }

  .studio-top-bar {
    padding: 0 10px;
    gap: 6px;
  }
  .top-bar-center {
    display: none;
  }
  .project-name-input {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   iOS 18 AUDIO & MEDIA CONTROL SUITE
   ══════════════════════════════════════════════════════════════════════════ */
.ios-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  margin-bottom: 8px;
}

.ios-section-title {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2, #8e8e93);
}

.ios-status-indicator {
  font-size: 0.68rem;
  font-weight: 700;
}
.ios-status-indicator.online {
  color: #34C759;
}

.ios-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.2s ease;
}
.ios-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.audio-source-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audio-source-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-icon-disc {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(175, 82, 222, 0.25) 0%, rgba(10, 132, 255, 0.25) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.audio-track-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.audio-track-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-3, #636366);
  margin-top: 1px;
}

.ios-pill-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s ease;
}
.ios-pill-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.ios-badge-blue {
  background: rgba(10, 132, 255, 0.16);
  color: #0A84FF;
  border: 1px solid rgba(10, 132, 255, 0.35);
  font-size: 0.70rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono, monospace);
}

.ios-badge-gain {
  background: rgba(52, 199, 89, 0.16);
  color: #34C759;
  border: 1px solid rgba(52, 199, 89, 0.35);
  font-size: 0.70rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono, monospace);
}

.ios-time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.ios-time-cell {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 10px;
}

.ios-label {
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--text-3, #8e8e93);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ios-input-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.ios-num-input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono, monospace);
  font-size: 0.92rem;
  font-weight: 700;
  width: 100%;
  outline: none;
  padding: 0;
}

.ios-unit {
  font-size: 0.72rem;
  color: var(--text-3, #636366);
  font-weight: 700;
}

.ios-mono-val {
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  font-weight: 700;
  color: #0A84FF;
}

.ios-slider-group {
  margin-bottom: 10px;
}

.ios-preset-segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
  margin-bottom: 10px;
}

.ios-preset-seg-btn {
  background: transparent;
  border: none;
  color: #8e8e93;
  font-size: 0.70rem;
  font-weight: 700;
  padding: 5px 2px;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  user-select: none;
}
.ios-preset-seg-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.ios-preset-seg-btn:active {
  background: rgba(10, 132, 255, 0.25);
  color: #0A84FF;
}

.ios-action-row {
  display: flex;
  gap: 6px;
}

.ios-action-pill {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 6px 6px;
  font-size: 0.71rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.ios-action-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
}
.ios-action-pill.danger {
  background: rgba(255, 59, 48, 0.14);
  border-color: rgba(255, 59, 48, 0.3);
  color: #FF3B30;
}
.ios-action-pill.danger:hover {
  background: rgba(255, 59, 48, 0.25);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════
   STUDIO DIRECT YOUTUBE SEARCH & STREAM INGESTION SUITE
   ══════════════════════════════════════════════════════════════════════ */
.studio-yt-search-card {
  padding: 12px;
  background: rgba(18, 20, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.studio-yt-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.studio-yt-input-inner {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-yt-input-inner:focus-within {
  background: rgba(255, 255, 255, 0.08);
  border-color: #00F2FE;
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.2), 0 0 16px rgba(0, 242, 254, 0.15);
}

.studio-yt-input-icon {
  position: absolute;
  left: 12px;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.studio-yt-input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 9px 62px 9px 34px;
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
}

.studio-yt-kbd-hint {
  position: absolute;
  right: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 1px 6px;
  pointer-events: none;
  letter-spacing: 0.2px;
}

.studio-yt-search-submit {
  background: linear-gradient(135deg, #FF0055, #FF2D55);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0 14px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 14px rgba(255, 0, 85, 0.35);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.studio-yt-search-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 0, 85, 0.5);
}

.studio-yt-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: studioYtSpin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes studioYtSpin {
  to { transform: rotate(360deg); }
}

.studio-yt-trending-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.trending-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trend-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00F2FE;
  box-shadow: 0 0 6px #00F2FE;
  margin-right: 5px;
  animation: trendDotPulse 2s infinite ease-in-out;
}

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

.yt-trend-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.70rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.yt-trend-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

/* Ingestion Progress */
.studio-yt-progress-wrap {
  margin: 10px 0;
  padding: 10px;
  background: rgba(10, 132, 255, 0.08);
  border: 1px solid rgba(10, 132, 255, 0.25);
  border-radius: 12px;
}

.progress-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  margin-bottom: 6px;
}

.progress-status-text {
  color: #0A84FF;
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════════════════
   YOUTUBE PRO DUAL INGESTION & SEARCH STYLES
   ══════════════════════════════════════════════════════════════════════════ */

.progress-pct-text {
  color: #00F2FE;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.8rem;
}

.progress-track-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}

.progress-fill-bar {
  height: 100%;
  background: linear-gradient(90deg, #AF52DE 0%, #00F2FE 50%, #30D158 100%);
  border-radius: 999px;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

/* Dual Ingestion Mode Selector (Segmented Luxury Pill) */
.studio-yt-mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.yt-mode-pill {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.yt-mode-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.yt-mode-pill.active {
  background: linear-gradient(135deg, rgba(175, 82, 222, 0.28), rgba(0, 242, 254, 0.2));
  border-color: rgba(0, 242, 254, 0.45);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mode-badge-rec {
  font-size: 0.58rem;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: linear-gradient(135deg, #FF0050, #AF52DE);
  color: #fff;
  font-weight: 800;
}

/* Results List */
.studio-yt-results-container {
  max-height: 330px;
  overflow-y: auto;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 2px;
}

.studio-yt-results-container::-webkit-scrollbar {
  width: 5px;
}
.studio-yt-results-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}

.yt-result-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.yt-result-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 242, 254, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 242, 254, 0.12);
}

.yt-card-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yt-thumb-wrap {
  position: relative;
  width: 80px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.yt-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.yt-result-card:hover .yt-thumb-img {
  transform: scale(1.05);
}

.yt-duration-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  font-size: 0.60rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.yt-hd-pill {
  position: absolute;
  top: 2px;
  left: 2px;
  background: linear-gradient(135deg, #0A84FF, #00F2FE);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.yt-meta-wrap {
  flex: 1;
  min-width: 0;
}

.yt-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
}

.yt-channel {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Dual Ingestion Action Buttons */
.yt-card-actions {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 6px;
  margin-top: 2px;
}

.yt-import-video-btn {
  background: linear-gradient(135deg, #AF52DE 0%, #00F2FE 100%);
  border: none;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.35);
  transition: all 0.18s ease;
}

.yt-import-video-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.55);
}

.yt-import-audio-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.18s ease;
}

.yt-import-audio-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Stage Ambient Glow Halo behind Phone */
.stage-ambient-halo {
  position: absolute;
  width: 440px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(175, 82, 222, 0.22) 0%, rgba(0, 242, 254, 0.12) 40%, rgba(0, 0, 0, 0) 70%);
  filter: blur(48px);
  pointer-events: none;
  z-index: 1;
  animation: ambientHaloBreath 6s ease-in-out infinite alternate;
}

@keyframes ambientHaloBreath {
  0% { transform: scale(0.92); opacity: 0.65; }
  50% { transform: scale(1.08); opacity: 0.95; }
  100% { transform: scale(0.98); opacity: 0.75; }
}

/* Timeline Video Track Styling */
.timeline-track-row[data-track-type="video"] {
  border-left: 3px solid #00F2FE;
}

.track-badge-video {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.22);
  color: #00F2FE;
  border: 1px solid rgba(0, 242, 254, 0.4);
  letter-spacing: 0.5px;
}

.clip-video {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.35) 0%, rgba(10, 132, 255, 0.3) 100%);
  border: 1px solid rgba(0, 242, 254, 0.55);
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.25);
}

.clip-video.selected {
  border-color: #00F2FE;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.5);
}

/* Premium Export Button Glow Animation */
.export-btn {
  background: linear-gradient(135deg, #AF52DE 0%, #00F2FE 100%) !important;
  box-shadow: 0 0 18px rgba(175, 82, 222, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.export-btn:hover {
  transform: translateY(-1px) scale(1.03) !important;
  box-shadow: 0 0 26px rgba(0, 242, 254, 0.7) !important;
}

/* Navigation Ribbon Vector Icon Polish */
.nav-item-icon {
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s ease;
}

.studio-nav-item:hover .nav-item-icon {
  stroke: #00F2FE;
  transform: translateY(-1px);
}

.studio-nav-item.active .nav-item-icon {
  stroke: #00F2FE;
  filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.5));
}

/* Canvas Drag & Drop Overlay */
.canvas-dropzone-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.92);
  border: 2px dashed #00F2FE;
  border-radius: 20px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  z-index: 50;
  pointer-events: none;
  backdrop-filter: blur(8px);
  animation: pulseDropzone 1.5s infinite alternate;
}

.preview-canvas-wrapper.drag-over .canvas-dropzone-overlay {
  display: flex;
}

@keyframes pulseDropzone {
  from {
    border-color: #00F2FE;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
  }
  to {
    border-color: #BF5AF2;
    box-shadow: 0 0 30px rgba(191, 90, 242, 0.45);
  }
}
