/* ==========================================================================
   🕷️ 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: var(--font-main, '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: 320px 1fr 310px;
  grid-template-rows: 1fr 190px;
  height: calc(100vh - 52px);
  overflow: hidden;
  background: var(--bg-base, #0c0e14);
}

/* ─── 1. LEFT TOOL RIBBON & DRAWER ─── */
.studio-left-panel {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  display: flex;
  background: var(--bg-console, #12151e);
  border-right: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  overflow: hidden;
}

.studio-nav-bar {
  width: 60px;
  background: #0d0f16;
  border-right: 1px solid var(--border, rgba(255, 255, 255, 0.06));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 6px;
  flex-shrink: 0;
}

.studio-nav-item {
  width: 46px;
  height: 48px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-3, #636366);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.18s ease;
  padding: 0;
}
.studio-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-1, #fff);
}
.studio-nav-item.active {
  background: rgba(175, 82, 222, 0.14);
  border-color: rgba(175, 82, 222, 0.4);
  color: var(--accent, #AF52DE);
}
.studio-nav-item .nav-text {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.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 */
.lyric-presets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.lyric-preset-btn {
  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: 600;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lyric-preset-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.lyric-preset-btn.active {
  background: rgba(175, 82, 222, 0.15);
  border-color: var(--accent, #AF52DE);
  color: #fff;
}

/* Lyric Lines Editor */
.lyric-lines-editor {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  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.06);
}
.lyric-line-row.active {
  border-color: var(--accent, #AF52DE);
  background: rgba(175, 82, 222, 0.1);
}
.lyric-line-time {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  color: var(--accent, #AF52DE);
  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;
}

/* 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;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: calc(100% - 46px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  cursor: crosshair;
}

#studio-video-canvas {
  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 8px rgba(175, 82, 222, 0.6);
}

.canvas-resize-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border: 1.5px solid var(--accent, #AF52DE);
  border-radius: 2px;
  pointer-events: auto;
  cursor: nwse-resize;
}

.canvas-rotate-handle {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--accent, #AF52DE);
  border: 1.5px solid #fff;
  border-radius: 50%;
  pointer-events: auto;
  cursor: grab;
}

/* Center Stage Transport Bar */
.stage-transport-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin-top: 10px;
  background: rgba(18, 21, 30, 0.85);
  backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.phone-play-btn {
  background: var(--accent-gradient, linear-gradient(135deg, #AF52DE, #5856D6));
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.phone-play-btn:hover {
  transform: scale(1.08);
}

.time-display {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  color: var(--text-2, #8e8e93);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════════════════
   4. RIGHT DYNAMIC CONTEXTUAL INSPECTOR
   ══════════════════════════════════════════════════════════════════════════ */
.studio-right-inspector {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  background: var(--bg-console, #12151e);
  border-left: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.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: 34px;
  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;
}

.timeline-tracks-area {
  flex: 1;
  overflow-x: auto;
  overflow-y: auto;
  position: relative;
  padding: 6px 16px 12px;
  background: #080a0f;
}

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

.timeline-track-header {
  width: 90px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-3, #636366);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.timeline-track-lane {
  flex: 1;
  height: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.timeline-clip-block {
  position: absolute;
  top: 1px;
  bottom: 1px;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  cursor: grab;
  user-select: none;
}
.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: #FF2D55;
  box-shadow: 0 0 8px rgba(255, 45, 85, 0.8);
  pointer-events: none;
  z-index: 50;
  left: 106px; /* offset by track header width */
}

/* ══════════════════════════════════════════════════════════════════════════
   6. PROFESSIONAL EXPORT MODAL & WATERMARK CONTROLS
   ══════════════════════════════════════════════════════════════════════════ */
.export-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(8, 10, 15, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.export-modal-overlay.visible {
  display: flex !important;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@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. RESPONSIVE BREAKPOINTS & MOBILE BOTTOM SHEETS
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .studio-main-grid {
    grid-template-columns: 280px 1fr 260px;
  }
}

@media (max-width: 768px) {
  .studio-main-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }
  .studio-left-panel, .studio-right-inspector {
    display: none; /* Collapsible on mobile into bottom drawer */
  }
  .studio-center-stage {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }
  .studio-bottom-timeline {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    height: 140px;
  }
  .studio-top-bar {
    padding: 0 10px;
  }
  .project-name-input {
    display: none;
  }
}
