:root {
  --bg-primary: #0f1117;
  --bg-surface: #1a1d27;
  --bg-card: #222634;
  --bg-input: #151821;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.25);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: #2e3446;
  --radius: 12px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  font-size: 24px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  padding: 6px 10px;
  border-radius: 10px;
}
.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-tag {
  font-size: 0.72rem;
  background: rgba(99,102,241,0.2);
  color: #818cf8;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.badge-voice {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 20px;
}
.badge-voice .pulse {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16,185,129,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.lang-selector {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.btn-icon {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-icon:hover { background: var(--border); }

/* Main Grid */
.studio-container {
  display: grid;
  grid-template-columns: 1.1fr 1.25fr 1.15fr;
  gap: 18px;
  padding: 18px 24px;
  flex: 1;
}

/* Card Styles */
.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panel-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-title {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  max-height: calc(100vh - 125px);
}

/* Drop Zone */
.dropzone {
  border: 2px dashed var(--border);
  background: var(--bg-card);
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
}
.drop-icon { font-size: 32px; }
.drop-text { font-size: 0.88rem; font-weight: 500; }
.drop-sub { font-size: 0.75rem; color: var(--text-muted); }

/* Video Player Canvas */
.video-wrapper {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9/16;
  max-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.video-wrapper.aspect-16-9 { aspect-ratio: 16/9; max-height: 260px; }
.video-wrapper.aspect-1-1 { aspect-ratio: 1/1; max-height: 320px; }
video { width: 100%; height: 100%; object-fit: contain; }

/* Control Grids */
.control-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.control-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-group {
  display: flex;
  gap: 6px;
}
.btn-toggle {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.btn-toggle.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* Inputs & Textareas */
input[type="text"], textarea, select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}
input[type="text"]:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}
textarea { resize: vertical; line-height: 1.5; }

/* Hook cards */
.hook-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hook-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hook-item:hover {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
}
.hook-item.selected {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.15);
  font-weight: 600;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}
.btn-secondary:hover { background: var(--border); }

/* Audio Player Bar */
.audio-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.audio-bar audio { flex: 1; height: 32px; }

/* Social Tabs */
.social-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.social-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.social-tab-btn.active {
  color: #fff;
  border-bottom-color: var(--accent);
}
.social-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  font-size: 0.85rem;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.social-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}
.modal[hidden] { display: none; }
.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 90%;
  max-width: 520px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* Viral Thumbnail Studio */
.thumb-studio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.thumb-preview-box {
  width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--border);
}
.thumb-preview-box.aspect-16-9 { aspect-ratio: 16 / 9; }
.thumb-preview-box.aspect-9-16 { aspect-ratio: 9 / 16; max-height: 460px; }
.thumb-preview-box.aspect-4-5  { aspect-ratio: 4 / 5; max-height: 380px; }
.thumb-preview-box.aspect-1-1  { aspect-ratio: 1 / 1; max-height: 340px; }

/* Content Format & Aspect Chips */
.btn-format-chip {
  background: #141622;
  border: 1px solid #282a3c;
  border-radius: 8px;
  padding: 8px 10px;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.18s ease;
  user-select: none;
}
.btn-format-chip:hover {
  background: #1c1f2e;
  border-color: #475569;
  color: #f1f5f9;
}
.btn-format-chip.active {
  background: linear-gradient(135deg, rgba(236,72,153,0.18), rgba(168,85,247,0.22));
  border: 1.5px solid #c084fc;
  color: #fff;
  box-shadow: 0 0 12px rgba(168,85,247,0.25);
}
.btn-format-chip .chip-icon {
  font-size: 1.15rem;
}
.btn-format-chip .chip-title {
  font-size: 0.78rem;
  font-weight: 700;
}
.btn-format-chip .chip-sub {
  font-size: 0.65rem;
  color: #94a3b8;
}
.btn-format-chip.active .chip-sub {
  color: #e9d5ff;
}

.thumb-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.thumb-chip:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #fbbf24;
}
.thumb-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.thumb-badge-tag:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* ----------------------------------------------------
   MOBILE-FIRST PWA & RESPONSIVE STUDIO STYLES
   ---------------------------------------------------- */
.mobile-step-nav {
  display: none;
}
.mobile-step-footer {
  display: none;
}

@media (max-width: 900px) {
  .topbar {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
  }
  .brand {
    gap: 8px;
  }
  .brand-title {
    font-size: 0.95rem;
  }
  .brand-icon {
    font-size: 20px;
    padding: 4px 8px;
  }
  .topbar-actions {
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    justify-content: flex-end;
  }
  .badge-voice {
    font-size: 0.72rem;
    padding: 3px 8px;
  }
  .lang-btn {
    padding: 4px 8px;
    font-size: 0.74rem;
  }
  .btn-icon {
    padding: 5px 8px;
    font-size: 0.76rem;
  }

  /* 3-Step Sticky Mobile Switcher */
  .mobile-step-nav {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 45;
    background: #0d1017;
    border-bottom: 1px solid var(--border);
    padding: 8px 12px;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  }
  .mobile-step-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .mobile-step-btn.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.35)) !important;
    border-color: #38bdf8 !important;
    color: #f8fafc !important;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
  }
  .mobile-step-btn .m-step-icon {
    font-size: 1.05rem;
  }

  /* Single Column Layout */
  .studio-container {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 14px;
    padding-bottom: 90px;
  }

  /* Hide non-active step panels on mobile */
  .panel.mobile-hidden {
    display: none !important;
  }
  .panel {
    border-radius: 12px;
    width: 100%;
  }
  .panel-body {
    max-height: none !important;
    overflow-y: visible;
    padding: 14px;
  }

  /* Step footer buttons */
  .mobile-step-footer {
    display: flex;
  }

  /* Better Touch targets */
  .btn, button, input, select, textarea {
    touch-action: manipulation;
  }
  .btn-group {
    flex-wrap: wrap;
  }
  .btn-toggle {
    flex: 1 1 45%;
    padding: 8px 6px;
    font-size: 0.78rem;
    text-align: center;
  }
  .video-wrapper.aspect-9-16 {
    max-height: 380px;
  }
}



/* ==========================================================================
   MOVAVI VIDEO EDITOR PRO - NLE WORKSPACE (EXACT PIXEL-PERFECT REPLICA)
   ========================================================================== */

/* Titlebar (Desktop Native Window Look) */
.movavi-window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  background: #141417;
  border-bottom: 1px solid #1f2026;
  padding: 0 12px;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  z-index: 999999;
}
.m-titlebar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.m-brand-badge {
  font-size: 14px;
  color: #a855f7;
  font-weight: 700;
}
.m-window-title {
  font-size: 12px;
  font-weight: 500;
  color: #e2e8f0;
  letter-spacing: 0.2px;
}
.m-titlebar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.m-lang-pills {
  display: flex;
  background: #1e1f25;
  border: 1px solid #2b2c36;
  border-radius: 14px;
  padding: 2px;
  gap: 2px;
}
.m-lang-btn {
  background: transparent;
  border: none;
  color: #8e92a0;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.m-lang-btn.active, .m-lang-btn:hover {
  background: #3b82f6;
  color: #fff;
}
.m-logo-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1e1f25;
  border: 1px solid #2b2c36;
  border-radius: 14px;
  padding: 2px 8px 2px 2px;
  cursor: pointer;
}
.m-logo-chip img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #f59e0b;
}
.m-logo-chip .logo-chip-label {
  font-size: 11px;
  font-weight: 600;
  color: #fbbf24;
}
.m-voice-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 2px 8px;
}
.m-voice-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}
.m-title-btn {
  background: #1e1f25;
  border: 1px solid #2b2c36;
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.m-title-btn:hover {
  background: #2a2b34;
  color: #fff;
}
.m-title-icon-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 4px;
}
.m-title-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.m-win-controls {
  display: flex;
  align-items: center;
  margin-left: 6px;
  gap: 2px;
}
.m-win-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 24px;
  font-size: 11px;
  color: #9496a1;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.15s;
}
.m-win-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.m-win-close:hover {
  background: #ef4444;
  color: #fff;
}

/* Movavi Desktop Top Menu Bar */
.movavi-menu-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 10px;
  height: 28px;
  background: #18181c;
  border-bottom: 1px solid #222228;
  color: #c4c7d0;
  font-size: 12px;
  user-select: none;
}
.movavi-menu-group {
  position: relative;
}
.movavi-menu-item {
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 3px;
  transition: all 0.15s ease;
  display: inline-block;
}
.movavi-menu-item:hover, .movavi-menu-group:hover .movavi-menu-item {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.movavi-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: #1e1f25;
  border: 1px solid #2c2e38;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  padding: 4px 0;
  z-index: 1000;
}
.movavi-menu-group:hover .movavi-dropdown {
  display: block;
}
.m-drop-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  font-size: 12px;
  color: #cbd5e1;
  cursor: pointer;
}
.m-drop-item:hover {
  background: #2a2c37;
  color: #fff;
}
.m-sc {
  font-size: 10px;
  color: #64748b;
  margin-left: 14px;
}
.m-drop-divider {
  height: 1px;
  background: #2b2d37;
  margin: 4px 0;
}

/* Workspace Layout */
.movavi-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 64px);
  min-height: 0;
  max-height: calc(100vh - 64px);
  background: #121215;
  color: #e2e8f0;
  overflow: hidden;
  flex: 1 1 auto;
}
.nle-top-split {
  display: flex;
  flex: 1 1 56%;
  min-height: 160px;
  max-height: 70%;
  overflow: hidden;
  border-bottom: 1px solid #202026;
}

/* Left Vertical Dock (Exact 8 Movavi Icons) */
.nle-dock {
  width: 62px;
  background: #141417;
  border-right: 1px solid #202026;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  gap: 4px;
  flex-shrink: 0;
}
.nle-dock-btn {
  position: relative;
  width: 52px;
  height: 50px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  color: #8c8f9b;
  transition: all 0.15s ease;
  user-select: none;
}
.nle-dock-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.nle-dock-btn.active {
  background: #23232b;
  color: #ffffff;
  border-color: #343542;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.nle-dock-btn .dock-icon {
  font-size: 16px;
  line-height: 1;
}
.nle-dock-btn .font-serif {
  font-family: "Georgia", serif;
  font-weight: 700;
  font-size: 18px;
}
.nle-dock-btn .dock-label {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.1;
}
.dock-dot.purple {
  position: absolute;
  top: 5px;
  right: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 4px #a855f7;
}

/* Left Inspector / Subpanel */
.nle-inspector {
  flex: 0 1 380px;
  min-width: 270px;
  max-width: 460px;
  width: 28vw;
  background: #16161a;
  border-right: 1px solid #202026;
  padding: 10px 12px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  scrollbar-width: thin;
}
.nle-tab-pane {
  display: none;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
.nle-tab-pane.active {
  display: flex;
}

/* Subtabs in Media Bin (Sticky at top so never scrolls out of view) */
.movavi-subtabs {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #22232a;
  padding: 4px 0 8px 0;
  overflow-x: auto;
  position: sticky;
  top: 0;
  background: #16161a;
  z-index: 20;
  flex-shrink: 0;
  scrollbar-width: thin;
}
.movavi-subtabs::-webkit-scrollbar {
  height: 3px;
}
.movavi-subtabs::-webkit-scrollbar-thumb {
  background: #333642;
  border-radius: 3px;
}
.movavi-subtab {
  font-size: 11.5px;
  font-weight: 500;
  color: #8b8e9b;
  cursor: pointer;
  white-space: nowrap;
  padding-bottom: 4px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.movavi-subtab.active {
  color: #ffffff;
  font-weight: 600;
  border-bottom: 2px solid #3b82f6;
}
.movavi-subtab:hover {
  color: #e2e8f0;
}

/* Compact Adaptive Dashed Dropzone & Blue Button */
.movavi-dropzone {
  border: 1.5px dashed #323440;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 10px 8px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.movavi-dropzone:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.03);
}
.movavi-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.movavi-drop-text {
  font-size: 11.5px;
  color: #9497a4;
  font-weight: 500;
}
.movavi-add-files-btn {
  background: #0066ff;
  color: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 5px 18px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.45);
  transition: all 0.15s ease;
}
.movavi-add-files-btn:hover {
  background: #0052cc;
  transform: translateY(-1px);
}

/* 4 Rounded Tool Cards (Adaptive Sizing & Word Wrapping) */
.movavi-tool-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}
.movavi-tool-card {
  background: #1c1d22;
  border: 1px solid #282932;
  border-radius: 8px;
  padding: 8px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  text-align: center;
  min-width: 0;
  min-height: 52px;
  box-sizing: border-box;
  transition: all 0.15s ease;
}
.movavi-tool-card:hover {
  background: #252630;
  border-color: #383a48;
  transform: translateY(-1px);
}
.movavi-tool-card .card-icon {
  font-size: 16px;
  line-height: 1;
}
.movavi-tool-card .card-label {
  font-size: clamp(8.5px, 0.8vw, 10px);
  color: #b5b8c4;
  font-weight: 500;
  line-height: 1.15;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: center;
  max-width: 100%;
  padding: 0 2px;
}
.movavi-clip-card {
  background: #1e1f25;
  border: 1px solid #2b2c36;
  border-radius: 8px;
  padding: 10px 12px;
}

/* Transitions Submenu (Image 2) */
.transitions-panel-layout {
  display: flex;
  height: 100%;
  gap: 10px;
  overflow: hidden;
}
.transitions-cat-list {
  width: 145px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid #22232a;
  padding-right: 6px;
  overflow-y: auto;
  flex-shrink: 0;
}
.t-cat-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  padding: 4px 8px;
  margin-bottom: 4px;
}
.t-cat-pill {
  font-size: 11px;
  color: #9497a4;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.t-cat-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.t-cat-pill.active {
  background: #23232b;
  color: #ffffff;
  font-weight: 600;
}
.transitions-grid-area {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  overflow-y: auto;
}
.t-card {
  background: #1c1d22;
  border: 1px solid #272832;
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}
.t-card:hover {
  border-color: #3b82f6;
  background: #24252f;
}
.t-card-preview {
  height: 48px;
  border-radius: 4px;
  background: #111215;
  margin-bottom: 4px;
  position: relative;
  overflow: hidden;
}
.prev-dissolve {
  background: linear-gradient(135deg, #1e293b, #475569);
}
.prev-fade-black {
  background: radial-gradient(circle, #334155 0%, #000 100%);
}
.prev-whip-pan {
  background: linear-gradient(90deg, #1e293b 0%, #38bdf8 50%, #1e293b 100%);
}
.prev-zoom-blur {
  background: radial-gradient(circle, #f43f5e 10%, #1e1b4b 90%);
}
.prev-flash {
  background: linear-gradient(135deg, #cbd5e1, #ffffff);
}
.prev-glitch {
  background: linear-gradient(45deg, #06b6d4, #ec4899);
}
.t-card-name {
  font-size: 10px;
  font-weight: 500;
  color: #cbd5e1;
}

/* Tools Submenu (Image 1) */
.movavi-tools-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 8px;
}
.movavi-tools-subtabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid #22232a;
  padding-bottom: 6px;
}
.m-tool-tab {
  background: transparent;
  border: none;
  color: #8c8f9b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 4px;
}
.m-tool-tab.active {
  color: #ffffff;
  border-bottom: 2px solid #a855f7;
}
.movavi-tools-container {
  display: flex;
  flex: 1;
  gap: 12px;
  overflow: hidden;
}
.movavi-tools-menu-list {
  width: 170px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
  border-right: 1px solid #22232a;
  padding-right: 6px;
  flex-shrink: 0;
}
.m-tool-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  font-size: 12px;
  color: #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.m-tool-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.m-tool-item.active {
  background: #23232b;
  color: #ffffff;
  font-weight: 600;
}
.m-ai-badge {
  font-size: 9px;
  font-weight: 700;
  color: #22c55e;
  margin-left: 4px;
}
.movavi-tool-params {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px;
}

/* Right Cinema Player */
.nle-cinema-stage {
  flex: 1 1 60%;
  background: #0d0d10;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.nle-cinema-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #09090b;
  position: relative;
  overflow: hidden;
}
.nle-cinema-screen .video-wrapper {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.movavi-watermark {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.14);
  user-select: none;
  pointer-events: none;
}
.watermark-mark {
  font-size: 38px;
  margin-bottom: 2px;
}
.watermark-brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
}
.watermark-sub {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Transport Toolbar */
.nle-player-controls {
  height: 42px;
  background: #151518;
  border-top: 1px solid #1f2026;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  user-select: none;
}
.nle-timecode-display {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 12px;
  color: #e2e8f0;
  width: 80px;
}
.nle-transport-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-transport {
  background: transparent;
  border: none;
  color: #9496a1;
  font-size: 15px;
  cursor: pointer;
  padding: 4px;
  transition: all 0.15s;
}
.btn-transport:hover {
  color: #fff;
}
.btn-play-pause {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: #0d0d10;
  border: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.btn-play-pause:hover {
  transform: scale(1.06);
}
.nle-aspect-select-group {
  position: relative;
}
.btn-aspect-dropdown {
  background: #202026;
  border: 1px solid #2b2c36;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.nle-aspect-menu {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  background: #1c1d22;
  border: 1px solid #2a2b34;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  padding: 4px 0;
  min-width: 140px;
  z-index: 500;
}
.nle-aspect-select-group:hover .nle-aspect-menu {
  display: block;
}
.aspect-menu-item {
  padding: 5px 12px;
  font-size: 11px;
  color: #cbd5e1;
  cursor: pointer;
}
.aspect-menu-item:hover, .aspect-menu-item.active {
  background: #272832;
  color: #38bdf8;
}
.nle-transport-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Timeline Workspace */
.nle-timeline-workspace {
  flex: 0 0 44%;
  min-height: 160px;
  max-height: 48%;
  background: #131316;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.nle-timeline-toolbar {
  height: 36px;
  min-height: 36px;
  background: #17171b;
  border-top: 1px solid #202026;
  border-bottom: 1px solid #202026;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  user-select: none;
  flex-shrink: 0;
}
.nle-timeline-left-tools, .nle-timeline-mid-tools, .nle-timeline-right-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tl-icon-btn {
  background: transparent;
  border: none;
  color: #9496a1;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tl-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.tl-icon-btn.active {
  color: #3b82f6;
}
.nle-zoom-ctrl {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  font-size: 13px;
  margin: 0 8px;
}
.zoom-slider {
  width: 90px;
  height: 3px;
  accent-color: #3b82f6;
  cursor: pointer;
}
.movavi-export-btn {
  background: #0066ff;
  color: #ffffff;
  border: none;
  border-radius: 18px;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 102, 255, 0.45);
  transition: all 0.15s ease;
}
.movavi-export-btn:hover {
  background: #0052cc;
}

/* Timeline Canvas Body with Track Headers & Right VU Meter */
.nle-timeline-body {
  display: flex;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  min-height: 0;
}
.nle-track-headers {
  width: 60px;
  background: #141417;
  border-right: 1px solid #202026;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.nle-ruler-header {
  height: 22px;
  border-bottom: 1px solid #202026;
  flex-shrink: 0;
}
.nle-track-header {
  height: 42px;
  border-bottom: 1px solid #1a1a20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
  flex-shrink: 0;
}
.track-hdr-icon {
  font-size: 12px;
  cursor: pointer;
}
.track-hdr-badge {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
}
.track-hdr-badge.purple {
  background: #8b5cf6;
}
.track-hdr-badge.teal {
  background: #0d9488;
}

/* Tracks Container */
.nle-tracks-container {
  flex: 1;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
}
.nle-time-ruler {
  height: 22px;
  background: #16161a;
  border-bottom: 1px solid #202026;
  position: relative;
  min-width: 100%;
  flex-shrink: 0;
}
.nle-ruler-ticks {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
}
.nle-ruler-sec {
  position: absolute;
  top: 2px;
  font-size: 10px;
  color: #64748b;
  font-family: monospace;
  padding-left: 2px;
  border-left: 1px solid #2d303b;
  height: 16px;
}
.nle-track-lanes {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 100%;
}
.nle-track-lane {
  height: 42px;
  border-bottom: 1px solid #181920;
  position: relative;
  background: rgba(18, 18, 22, 0.4);
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}
.timeline-empty-drop {
  border: 1px dashed #3a3b48;
  border-radius: 6px;
  padding: 6px 18px;
  font-size: 11px;
  color: #8c8f9b;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}
.timeline-empty-drop:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #3b82f6;
  color: #fff;
}
.nle-clip {
  position: absolute;
  height: 34px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: none;
}
.clip-subtitle {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9));
  border-color: #f59e0b;
}
.clip-video {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(29, 78, 216, 0.9));
  border-color: #3b82f6;
}
.clip-audio {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
  border-color: #10b981;
}
.clip-audio::after {
  content: " 〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️";
  opacity: 0.4;
  font-size: 11px;
  margin-left: 8px;
}
.nle-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: #ef4444;
  z-index: 50;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}
.nle-playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid #ef4444;
}

/* Dual-Channel Audio VU Meter (Exact Movavi VU Meter) */
.nle-vu-meter {
  width: 48px;
  background: #141417;
  border-left: 1px solid #202026;
  display: flex;
  align-items: center;
  padding: 6px 4px;
  gap: 4px;
  flex-shrink: 0;
  user-select: none;
}
.vu-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 120px;
  font-size: 8px;
  font-family: monospace;
  color: #475569;
  text-align: right;
  line-height: 1;
}
.vu-bars-container {
  display: flex;
  gap: 4px;
  height: 120px;
}
.vu-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
.vu-bar-track {
  width: 6px;
  flex: 1;
  background: #09090b;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.vu-bar-fill {
  width: 100%;
  background: linear-gradient(to top, #22c55e 0%, #eab308 70%, #ef4444 100%);
  transition: height 0.08s ease;
}
.vu-chan-label {
  font-size: 8px;
  font-family: monospace;
  color: #64748b;
  margin-top: 3px;
}

/* Status Bar */
.nle-status-bar {
  height: 24px;
  background: #111114;
  border-top: 1px solid #1a1a20;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 11px;
  color: #64748b;
}

/* Mode Visibility Control */
html, body {
  height: 100%;
}
body.movavi-mode, body.desktop-app-mode {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
body.movavi-mode .movavi-window-titlebar,
body.movavi-mode .movavi-menu-bar,
body.movavi-mode .movavi-container {
  display: flex !important;
}
body.movavi-mode .topbar,
body.movavi-mode .studio-container {
  display: none !important;
}

/* Dedicated App Modes (Desktop App vs Mobile Android App) */
body.desktop-app-mode .movavi-window-titlebar,
body.desktop-app-mode .movavi-menu-bar,
body.desktop-app-mode .movavi-container {
  display: flex !important;
}
body.desktop-app-mode .studio-container,
body.desktop-app-mode .topbar {
  display: none !important;
}

/* Responsive Adaptive Layout Adjustments */
@media (max-width: 1150px) {
  #mmenu-brand-sub {
    display: none !important;
  }
  .m-titlebar-right {
    gap: 6px;
  }
  .m-voice-chip #voice-badge-text {
    display: none;
  }
  .m-voice-chip {
    padding: 3px 6px;
  }
}

@media (max-width: 1120px) {
  .movavi-tool-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  .movavi-tool-card {
    padding: 6px 8px !important;
    flex-direction: row !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    text-align: left !important;
    min-height: 38px !important;
  }
  .movavi-tool-card .card-label {
    font-size: 10px !important;
    text-align: left !important;
  }
}

@media (max-width: 950px) {
  .m-logo-chip .logo-chip-label {
    display: none;
  }
  .m-logo-chip {
    padding: 2px;
  }
}

#nle-pane-voice input,
#nle-pane-voice textarea,
#nle-pane-voice button {
  max-width: 100%;
  box-sizing: border-box;
}
#nle-topic-search-input {
  min-width: 0;
  flex: 1;
}

body.mobile-app-mode .movavi-window-titlebar,
body.mobile-app-mode .movavi-menu-bar,
body.mobile-app-mode .movavi-container {
  display: none !important;
}
body.mobile-app-mode .studio-container,
body.mobile-app-mode .topbar {
  display: flex !important;
  flex-direction: column !important;
}

/* Mobile Screens: Always use mobile step navigation unless forced to desktop-app-mode */
@media (max-width: 900px) {
  body:not(.desktop-app-mode) .movavi-window-titlebar,
  body:not(.desktop-app-mode) .movavi-menu-bar,
  body:not(.desktop-app-mode) .movavi-container {
    display: none !important;
  }
  body:not(.desktop-app-mode) .studio-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 10px !important;
    box-sizing: border-box !important;
  }
}


.watermark-giri-logo {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 12px;
  opacity: 0.35;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.45));
  transition: opacity 0.2s ease;
}
#video-preview, #image-preview {
  transition: filter 0.05s linear;
  will-change: filter;
}

/* Two-Stage Media Workflow: Imported / Project Files Pool */
.nle-imported-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #15161c;
  border: 1px solid #242634;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 6px;
}
.nle-imported-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #20222e;
  padding-bottom: 6px;
}
.nle-imported-count-badge {
  background: #0284c7;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 12px;
  padding: 1px 7px;
  min-width: 18px;
  text-align: center;
}
.nle-imported-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 18px 10px;
  color: #64748b;
  font-size: 11px;
  text-align: center;
  border: 1px dashed #272a38;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.01);
}
.nle-imported-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
}
.imported-media-card {
  display: flex;
  gap: 10px;
  background: #1c1d25;
  border: 1px solid #2a2c3a;
  border-radius: 7px;
  padding: 7px;
  align-items: center;
  transition: all 0.15s ease;
}
.imported-media-card:hover {
  border-color: #38bdf8;
  background: #21232e;
}
.imported-media-card.is-active-on-timeline {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}
.imported-media-thumb {
  position: relative;
  width: 76px;
  height: 48px;
  border-radius: 5px;
  overflow: hidden;
  background: #0b0c10;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.imported-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.imported-media-thumb-placeholder {
  font-size: 18px;
  opacity: 0.6;
}
.imported-media-dur {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
}
.imported-active-pill {
  position: absolute;
  top: 2px;
  left: 2px;
  background: #10b981;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.4px;
}
.imported-media-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.imported-media-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.imported-media-meta {
  font-size: 9.5px;
  color: #94a3b8;
}
.imported-media-actions {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2px;
}
.btn-import-act {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.btn-add-timeline {
  background: #0066ff;
  color: #ffffff;
  border-color: #0066ff;
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.35);
}
.btn-add-timeline:hover {
  background: #0052cc;
  border-color: #0052cc;
}
.btn-timeline-active {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  border-color: #10b981;
  cursor: default;
}
.btn-preview-media {
  background: #252836;
  color: #cbd5e1;
  border-color: #33384a;
}
.btn-preview-media:hover {
  background: #2e3347;
  color: #fff;
}
.btn-insert-media {
  background: #252836;
  color: #a78bfa;
  border-color: #3b3659;
}
.btn-insert-media:hover {
  background: #2e3347;
  color: #c4b5fd;
}
.btn-remove-media {
  background: transparent;
  color: #ef4444;
  border: none;
  padding: 2px 6px;
  font-size: 12px;
}
.btn-remove-media:hover {
  background: rgba(239, 68, 68, 0.15);
  border-radius: 4px;
}

/* Sample Clips & Templates Grid */
.sample-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}
.sample-card {
  background: #1a1c24;
  border: 1px solid #282a38;
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.15s ease;
}
.sample-card:hover {
  border-color: #38bdf8;
  background: #20222e;
}
.sample-card-thumb {
  height: 64px;
  background: #0d0e13;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sample-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sample-card-dur {
  position: absolute;
  bottom: 3px;
  right: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
}
.sample-card-body {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sample-card-title {
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sample-card-meta {
  font-size: 9px;
  color: #94a3b8;
}
.sample-card-btn {
  background: #0066ff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.12s ease;
}
.sample-card-btn:hover {
  background: #0052cc;
}

/* Live Animated Hormozi Subtitles Overlay in Cinema Stage */
.cinema-subtitle-overlay {
  position: absolute;
  bottom: 14%;
  left: 6%;
  right: 6%;
  text-align: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(16px, 2.4vw, 30px);
  font-weight: 800;
  color: #fde047; /* Hormozi High-Contrast Yellow */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.25;
  text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 0 3px 8px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.08s ease;
}
.cinema-subtitle-overlay span.sub-box {
  background: rgba(0, 0, 0, 0.75);
  padding: 4px 14px;
  border-radius: 6px;
  border: 1.5px solid rgba(253, 224, 71, 0.4);
  display: inline-block;
  max-width: 90%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

/* Pulsing Update Available Badge */
.update-pulse-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-update 1.5s infinite;
}
@keyframes pulse-update {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Subtitle Button Groups */
#nle-sub-lang-group button.active,
#nle-sub-len-group button.active {
  background: #242938 !important;
  color: #fff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 1px 4px rgba(56, 189, 248, 0.25);
}

/* Custom Right-Click Context Menu */
.giri-context-menu {
  position: fixed;
  z-index: 1000000;
  background: #181922;
  border: 1px solid #33384a;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  padding: 5px 0;
  min-width: 175px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  color: #f1f5f9;
  user-select: none;
  animation: giriCtxFade 0.12s ease-out;
}

@keyframes giriCtxFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.giri-ctx-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}

.giri-ctx-item:hover {
  background: #252a3b;
  color: #38bdf8;
}

.giri-ctx-shortcut {
  margin-left: auto;
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
}

.giri-ctx-divider {
  height: 1px;
  background: #272a39;
  margin: 4px 0;
}

.giri-ctx-header {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 14px 4px 14px;
  border-bottom: 1px solid #232738;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Elastic Timeline Zoom & Multi-Clips Track */
#nle-track-lanes,
#nle-time-ruler {
  transition: width 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), min-width 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nle-multi-clip {
  position: relative;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  border: 1px solid #38bdf8;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  overflow: hidden;
  box-sizing: border-box;
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.nle-multi-clip:hover {
  border-color: #7dd3fc;
  box-shadow: 0 3px 10px rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.nle-multi-clip.active {
  border-color: #fde047 !important;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.5) !important;
}

.nle-add-clip-slot {
  height: 34px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.nle-add-clip-slot:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}


