/* ==========================================================================
   Lyrics Studio CSS - Pro Studio Dark Edition
   Aligned with W-Music Design System (app.css, mastering.css, help.css)
   ========================================================================== */

/* Main Container - Aligned with .tab-panel */
.lyrics-studio-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  font-family: 'Kantumruy Pro', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main, #f8fafc);
}

/* --------------------------------------------------------------------------
   1. Hero Banner
   -------------------------------------------------------------------------- */
.lyrics-hero-banner {
  background: linear-gradient(135deg, #090d16 0%, #111827 50%, #1e1b4b 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 32px 36px;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  position: relative;
  overflow: hidden;
}

.lyrics-hero-banner::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.lyrics-hero-content {
  position: relative;
  z-index: 1;
}

.lyrics-hero-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.lyrics-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #c7d2fe;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.lyrics-pill-tag .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.lyrics-hero-banner h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #ffffff;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lyrics-hero-banner p {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 820px;
}

.lyrics-btn-new {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lyrics-btn-new:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   2. Card Panels
   -------------------------------------------------------------------------- */
.lyrics-panel,
.lyrics-form-card,
.lyrics-artwork-card,
.lyrics-output-card,
.lyrics-history-card {
  background: var(--bg-card, #131c31);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--shadow-card, 0 6px 20px -4px rgba(0, 0, 0, 0.4));
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  color: var(--text-main, #f8fafc);
}

.lyrics-panel:hover,
.lyrics-form-card:hover,
.lyrics-artwork-card:hover,
.lyrics-output-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.14);
}

/* Section Head Component */
.lyrics-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
  margin-bottom: 16px;
  gap: 12px;
}

.lyrics-head-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lyrics-icon-bubble {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.icon-amber { background: rgba(245, 158, 11, 0.2); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.35); }
.icon-purple { background: rgba(147, 51, 234, 0.2); color: #c084fc; border: 1px solid rgba(147, 51, 234, 0.35); }
.icon-emerald { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.35); }
.icon-sky { background: rgba(14, 165, 233, 0.2); color: #7dd3fc; border: 1px solid rgba(14, 165, 233, 0.35); }

.lyrics-head-title h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.lyrics-muted-sub {
  margin: 3px 0 0;
  font-size: 12px;
  color: #8492a6;
  line-height: 1.5;
}

.lyrics-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.4px;
}

.badge-purple { background: rgba(147, 51, 234, 0.18); color: #d8b4fe; border: 1px solid rgba(147, 51, 234, 0.3); }
.badge-emerald { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-amber { background: rgba(245, 158, 11, 0.18); color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.3); }

.lyrics-form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.lyrics-model-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

/* AI Model Card in Lyrics Studio - Modern High-Tech Studio Deck */
.lyrics-ai-model-card {
  position: relative;
  background: linear-gradient(135deg, rgba(26, 27, 65, 0.75) 0%, rgba(13, 19, 38, 0.92) 100%);
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-sizing: border-box;
}

.lyrics-ai-model-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.lyrics-ai-model-header {
  position: relative;
  z-index: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.lyrics-ai-model-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.lyrics-ai-model-icon {
  font-size: 22px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(168, 85, 247, 0.3) 100%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(165, 180, 252, 0.45);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.3);
  flex-shrink: 0;
}

.lyrics-ai-model-title strong {
  font-size: 14.5px;
  color: #ffffff;
  display: block;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.lyrics-ai-model-title p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

.lyrics-ai-model-badge-wrap {
  flex-shrink: 0;
}

.lyrics-model-provider-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
}

.lyrics-model-provider-badge.badge-active {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}

.lyrics-model-provider-badge.badge-admin-assigned {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.6);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
}

.lyrics-model-provider-badge.badge-system-shared {
  background: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.3);
}

.lyrics-model-provider-badge.badge-user-custom {
  background: rgba(168, 85, 247, 0.22);
  color: #d8b4fe;
  border: 1px solid rgba(192, 132, 252, 0.6);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.3);
}

.lyrics-model-provider-badge.badge-inactive {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.5);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.25);
}

.lyrics-model-provider-badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.lyrics-model-provider-badge.badge-active .pulse-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: badgeDotPulse 2s infinite;
}

.lyrics-model-provider-badge.badge-inactive .pulse-dot {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

@keyframes badgeDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.lyrics-ai-model-selector-row {
  position: relative;
  z-index: 1;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.lyrics-model-select-wrapper {
  position: relative;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex;
  align-items: center;
}

.lyrics-model-select-wrapper .lyrics-select-chip-icon {
  position: absolute;
  left: 14px;
  font-size: 15px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.9;
}

/* Specificity override against app.css select:not(...) */
select.lyrics-model-select,
#lyricsModelSelect {
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  background-color: #090e1a !important;
  border: 1px solid rgba(129, 140, 248, 0.32) !important;
  color: #f8fafc !important;
  padding: 0 36px 0 38px !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 15px 15px !important;
}

select.lyrics-model-select:focus,
#lyricsModelSelect:focus {
  outline: none !important;
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28) !important;
  background-color: #0b1222 !important;
}

select.lyrics-model-select optgroup {
  background: #0b1222;
  color: #818cf8;
  font-weight: 700;
  padding: 6px 0;
}

select.lyrics-model-select option {
  background: #0f172a;
  color: #f1f5f9;
  font-weight: 500;
  padding: 8px 10px;
}

/* Config / Settings Button */
button.lyrics-model-config-btn,
#lyricsQuickOpenSettingsBtn {
  flex: 0 0 auto !important;
  height: 44px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22) 0%, rgba(147, 51, 234, 0.28) 100%) !important;
  border: 1px solid rgba(165, 180, 252, 0.35) !important;
  color: #e0e7ff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

button.lyrics-model-config-btn:hover,
#lyricsQuickOpenSettingsBtn:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.42) 0%, rgba(147, 51, 234, 0.48) 100%) !important;
  border-color: rgba(165, 180, 252, 0.65) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35) !important;
}

button.lyrics-model-config-btn:active,
#lyricsQuickOpenSettingsBtn:active {
  transform: translateY(0) !important;
}

/* Feature tags / Quick indicator pills */
.lyrics-ai-model-chips-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.lyrics-ai-chip {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lyrics-ai-chip-pill {
  font-size: 11px;
  font-weight: 700;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}




/* --------------------------------------------------------------------------
   3. Admin VIP Masterpiece Templates
   -------------------------------------------------------------------------- */
.lyrics-vip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.lyrics-vip-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.lyrics-vip-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #6366f1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.2);
}

.lyrics-vip-thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lyrics-vip-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lyrics-vip-info strong {
  font-size: 13.5px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lyrics-vip-info small {
  font-size: 11.5px;
  color: #8492a6;
}

.lyrics-vip-action {
  font-size: 11px;
  font-weight: 700;
  color: #a5b4fc;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   4. Pro Workstation Layout
   -------------------------------------------------------------------------- */
.lyrics-workspace-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  align-items: start;
}

.lyrics-col-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   5. Form Controls
   -------------------------------------------------------------------------- */
.lyrics-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.lyrics-field-group:last-child {
  margin-bottom: 0;
}

.lyrics-field-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
}

.lyrics-field-group input[type="text"],
.lyrics-field-group select,
.lyrics-field-group textarea {
  width: 100%;
  font-family: 'Kantumruy Pro', Inter, system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  background: var(--bg-input, #0a0f1c);
  border: 1px solid var(--border-medium, rgba(255, 255, 255, 0.14));
  border-radius: 8px;
  color: var(--text-main, #f8fafc);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.6;
  box-sizing: border-box;
}

.lyrics-field-group select {
  text-overflow: ellipsis;
  cursor: pointer;
}

.lyrics-field-group input[type="text"]:focus,
.lyrics-field-group select:focus,
.lyrics-field-group textarea:focus {
  border-color: #6366f1;
  background: #0d1424;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

.lyrics-field-title-highlight {
  font-size: 14px !important;
  font-weight: 700 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.lyrics-field-title-highlight:focus {
  border-color: #6366f1 !important;
}

.lyrics-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

@media (max-width: 640px) {
  .lyrics-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Preset Quick Bar */
.lyrics-preset-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin: -4px 0 14px 0;
}

.lyrics-preset-label {
  font-size: 11px;
  font-weight: 800;
  color: #fcd34d;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 2px;
}

/* Preset Chips */
.lyrics-preset-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.lyrics-preset-chip {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary, #cbd5e1);
  transition: all 0.15s ease;
  user-select: none;
}

.lyrics-preset-chip:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
}

/* Section Title Flex & Random Buttons */
.lyrics-form-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.lyrics-random-magic-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.35);
  transition: all 0.2s ease;
  user-select: none;
}

.lyrics-random-magic-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.5);
  filter: brightness(1.1);
}

.lyrics-random-magic-btn:active {
  transform: translateY(0) scale(0.98);
}

.lyrics-preset-random-chip {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(236, 72, 153, 0.3)) !important;
  border: 1px solid rgba(236, 72, 153, 0.5) !important;
  color: #f472b6 !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lyrics-preset-random-chip:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(236, 72, 153, 0.5)) !important;
  color: #ffffff !important;
  border-color: rgba(236, 72, 153, 0.8) !important;
  transform: scale(1.03);
}

.lyrics-mini-random-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lyrics-mini-random-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: #818cf8;
  color: #fff;
  transform: translateY(-0.5px);
}

.lyrics-dice-icon {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dice-spin {
  animation: diceSpinAnim 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes diceSpinAnim {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.35); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes lyricsFieldFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7);
    border-color: #a855f7;
  }
  50% {
    box-shadow: 0 0 16px 3px rgba(236, 72, 153, 0.6);
    border-color: #ec4899;
    background-color: rgba(168, 85, 247, 0.08);
  }
  100% {
    box-shadow: none;
  }
}

.lyrics-field-highlight-pulse {
  animation: lyricsFieldFlash 0.9s ease-out;
}

.lyrics-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.lyrics-input-badge-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #c7d2fe;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.lyrics-input-badge-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  color: #ffffff;
}

.lyrics-theme-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lyrics-theme-category-title {
  font-size: 11px;
  font-weight: 700;
  color: #8492a6;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lyrics-theme-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lyrics-theme-pill {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary, #cbd5e1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  user-select: none;
}

.lyrics-theme-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.lyrics-theme-pill.active {
  background: var(--primary-gradient, linear-gradient(135deg, #6366f1, #8b5cf6));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

/* --------------------------------------------------------------------------
   6. Cover Artwork Studio Card & 3D Typography
   -------------------------------------------------------------------------- */
.lyrics-studio-container label,
.lyrics-toggle-label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--text-secondary, #cbd5e1) !important;
  cursor: pointer !important;
  margin: 0 !important;
}

.lyrics-studio-container input[type="checkbox"],
.lyrics-toggle-label input[type="checkbox"] {
  width: 17px !important;
  min-width: 17px !important;
  max-width: 17px !important;
  height: 17px !important;
  min-height: 17px !important;
  accent-color: #6366f1 !important;
  cursor: pointer !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

.lyrics-artwork-card {
  padding: 0;
  overflow: hidden;
  background: var(--bg-card, #131c31);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  box-shadow: var(--shadow-card, 0 6px 20px -4px rgba(0, 0, 0, 0.4));
}

.lyrics-artwork-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s;
  user-select: none;
}

.lyrics-artwork-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.lyrics-artwork-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lyrics-artwork-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.download-art-btn {
  background: #6366f1 !important;
  color: #ffffff !important;
  border-color: #6366f1 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35);
  transition: all 0.2s ease;
}

.download-art-btn:hover {
  background: #4f46e5 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.45);
}

.lyrics-artwork-body {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
}

/* Dropzone & Preview */
.lyrics-dropzone {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: radial-gradient(circle at center, #151d31 0%, #080c14 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lyrics-dropzone:hover {
  border-color: #6366f1;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -6px rgba(99, 102, 241, 0.35), 0 0 0 1px rgba(99, 102, 241, 0.2) inset;
}

.lyrics-dropzone.has-image {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.15);
  background: #090d16;
}

.lyrics-dropzone-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  z-index: 1;
}

.lyrics-dropzone.has-image .lyrics-dropzone-placeholder {
  display: none !important;
}

.vinyl-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
  animation: vinylPulse 3s ease-in-out infinite;
}

@keyframes vinylPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* AI Cover Generator Controls */
.lyrics-ai-cover-bar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
}

.lyrics-style-select {
  height: 42px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  font-weight: 600 !important;
  background: #0a0f1c !important;
  color: #f8fafc !important;
}

.lyrics-btn-generate-cover {
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--primary-gradient, linear-gradient(135deg, #6366f1, #8b5cf6));
  color: #ffffff;
  font-weight: 700;
  font-size: 12.5px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.lyrics-btn-generate-cover:hover {
  box-shadow: var(--glow-primary, 0 0 24px rgba(99, 102, 241, 0.35));
  transform: translateY(-1px);
}

.lyrics-btn-generate-cover:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Subcards for Typography & Watermark */
.lyrics-subcard {
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.lyrics-subcard:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}

.lyrics-subcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.lyrics-badge-store {
  font-size: 10px;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lyrics-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 640px) {
  .lyrics-grid-3 {
    grid-template-columns: 1fr;
  }
}

.lyrics-guideline-box {
  padding: 12px 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 10px;
  font-size: 11px;
  color: #fde68a;
  line-height: 1.6;
}

.lyrics-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Live Typography Overlay */
.lyrics-canvas-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 14px;
  pointer-events: none;
  z-index: 10;
}

.lyrics-canvas-overlay.pos-top {
  justify-content: flex-start;
  background: linear-gradient(to bottom, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.45) 55%, transparent 100%);
}

.lyrics-canvas-overlay.pos-center {
  justify-content: center;
  background: rgba(0,0,0,0.6);
}

.lyrics-canvas-overlay.pos-bottom {
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 55%, transparent 100%);
}

.lyrics-overlay-title {
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
  word-break: break-word;
}

.lyrics-overlay-artist {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(4px);
  padding: 3px 9px;
  border-radius: 6px;
  margin-top: 5px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lyrics-overlay-watermark {
  position: absolute;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.65);
  padding: 2px 7px;
  border-radius: 5px;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10;
}

.lyrics-overlay-watermark.pos-bottom-right { bottom: 10px; right: 10px; }
.lyrics-overlay-watermark.pos-bottom-left { bottom: 10px; left: 10px; }
.lyrics-overlay-watermark.pos-bottom-center { bottom: 10px; left: 50%; transform: translateX(-50%); }
.lyrics-overlay-watermark.pos-top-right { top: 10px; right: 10px; }
.lyrics-overlay-watermark.pos-top-left { top: 10px; left: 10px; }
.lyrics-overlay-watermark.pos-top-center { top: 10px; left: 50%; transform: translateX(-50%); }

.lyrics-overlay-watermark .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
}

/* 3D Typography Themes */
.typo-royal-gold {
  background: linear-gradient(180deg, #fffbeb 0%, #fbbf24 60%, #b45309 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
}

.typo-cyber-neon {
  background: linear-gradient(180deg, #ffffff 0%, #38bdf8 50%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
}

.typo-crimson-fire {
  background: linear-gradient(180deg, #fff1f2 0%, #fb7185 50%, #e11d48 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
}

.typo-platinum-chrome {
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 50%, #64748b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
}

.typo-emerald-jade {
  background: linear-gradient(180deg, #ecfdf5 0%, #34d399 50%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
}

/* Vocal Cues & Natural Performance Options (Suno / Udio AI) */
.lyrics-vocal-cues-card {
  background: var(--bg-card, #131c31);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-card, 0 4px 16px rgba(0, 0, 0, 0.3));
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lyrics-vocal-cues-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.lyrics-vocal-cues-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.lyrics-vocal-cues-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
  cursor: pointer;
  user-select: none;
}

.lyrics-vocal-cues-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #6366f1;
  cursor: pointer;
}

.lyrics-badge-suno {
  font-size: 10px;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.lyrics-vocal-cues-desc {
  margin: 0;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.6;
}

.lyrics-vocal-cues-desc code {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c7d2fe;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Primary Compose Button */
.lyrics-compose-btn {
  width: 100%;
  padding: 13px 20px;
  background: var(--primary-gradient, linear-gradient(135deg, #6366f1, #8b5cf6));
  color: #ffffff;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lyrics-compose-btn:hover {
  box-shadow: var(--glow-primary, 0 0 24px rgba(99, 102, 241, 0.35));
  transform: translateY(-1px);
}

.lyrics-compose-btn:active {
  transform: translateY(0);
}

.lyrics-compose-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* --------------------------------------------------------------------------
   7. Lyrics Output Workspace (Right Column)
   -------------------------------------------------------------------------- */
.lyrics-output-card {
  position: sticky;
  top: 85px;
}

.lyrics-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.lyrics-output-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lyrics-action-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary, #cbd5e1);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.lyrics-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.lyrics-action-btn.catalog-btn {
  background: var(--primary-gradient, linear-gradient(135deg, #6366f1, #8b5cf6));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.lyrics-action-btn.catalog-btn:hover {
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.45);
}

/* Lyrics Text Output Area */
.lyrics-text-box {
  background: #090e18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px 22px;
  min-height: 400px;
  max-height: 520px;
  overflow-y: auto;
  font-family: 'Kantumruy Pro', 'Inter', monospace, sans-serif;
  font-size: 13.5px;
  line-height: 1.85;
  color: #f8fafc;
  white-space: pre-wrap;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) #090e18;
}

.lyrics-text-box::-webkit-scrollbar {
  width: 6px;
}

.lyrics-text-box::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* AI Quick Refinement Box */
.lyrics-refine-box {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lyrics-refine-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lyrics-refine-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary, #cbd5e1);
  transition: all 0.15s ease;
}

.lyrics-refine-chip:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
}

.lyrics-refine-form {
  display: flex;
  gap: 8px;
}

.lyrics-refine-input {
  flex: 1;
  padding: 9px 14px;
  font-size: 12.5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  outline: none;
  background: #090e18;
  color: #ffffff;
}

.lyrics-refine-input:focus {
  border-color: #6366f1;
}

.lyrics-refine-submit {
  padding: 9px 16px;
  background: var(--primary-gradient, linear-gradient(135deg, #6366f1, #8b5cf6));
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* Storyboard & Character Bible Controls (Right Column) */
.lyrics-story-controls {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease;
}

.lyrics-story-controls:hover {
  border-color: rgba(245, 158, 11, 0.35);
}

.lyrics-story-controls-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.lyrics-story-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lyrics-story-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lyrics-story-select {
  font-size: 11.5px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #090e18;
  color: #f8fafc;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  color-scheme: dark;
  transition: all 0.15s ease;
}

.lyrics-story-select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.lyrics-story-select option {
  background: #0d1424;
  color: #f8fafc;
}

.lyrics-story-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #0f172a !important;
  border: 1px solid #f59e0b !important;
  font-weight: 800 !important;
  font-size: 11.5px !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lyrics-story-btn:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

.lyrics-story-notes-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lyrics-story-input {
  flex: 1;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #090e18;
  color: #ffffff;
  outline: none;
  transition: all 0.15s ease;
}

.lyrics-story-input::placeholder {
  color: #64748b;
}

.lyrics-story-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.lyrics-detect-btn {
  font-size: 11.5px !important;
  padding: 7px 12px !important;
  background: rgba(14, 165, 233, 0.15) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(14, 165, 233, 0.35) !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lyrics-detect-btn:hover {
  background: rgba(14, 165, 233, 0.28) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.3);
}

/* MV Storyboard & Character Bible Box */
.lyrics-story-box {
  margin-top: 14px;
  padding: 16px 18px;
  background: rgba(245, 158, 11, 0.08);
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.lyrics-story-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.lyrics-story-box-title {
  font-size: 12.5px;
  color: #fcd34d;
  font-weight: 700;
}

.lyrics-story-box-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lyrics-flow-send-btn {
  font-size: 10.5px !important;
  padding: 4px 10px !important;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(234, 88, 12, 0.25)) !important;
  color: #fef08a !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  transition: all 0.2s ease;
  cursor: pointer;
}

.lyrics-flow-send-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.45), rgba(234, 88, 12, 0.45)) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.lyrics-flow-link-btn {
  font-size: 10.5px !important;
  padding: 4px 10px !important;
  background: rgba(14, 165, 233, 0.2) !important;
  color: #7dd3fc !important;
  border: 1px solid rgba(14, 165, 233, 0.4) !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  transition: all 0.2s ease;
}

.lyrics-flow-link-btn:hover {
  background: rgba(14, 165, 233, 0.35) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.lyrics-prompts-btn {
  font-size: 10.5px !important;
  padding: 4px 10px !important;
  background: rgba(139, 92, 246, 0.2) !important;
  color: #c4b5fd !important;
  border: 1px solid rgba(139, 92, 246, 0.35) !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  transition: all 0.2s ease;
}

.lyrics-prompts-btn:hover {
  background: rgba(139, 92, 246, 0.35) !important;
  color: #ffffff !important;
}

.lyrics-btn-suno {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  font-weight: 700 !important;
}

.lyrics-btn-suno:hover {
  background: rgba(245, 158, 11, 0.28) !important;
  border-color: #fbbf24 !important;
}

.lyrics-story-text {
  font-size: 13px;
  line-height: 1.8;
  color: #fef3c7;
  white-space: pre-wrap;
  max-height: 420px;
  overflow-y: auto;
  padding: 14px 16px;
  background: #090e18;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  font-family: 'Kantumruy Pro', system-ui, -apple-system, sans-serif;
}

/* --------------------------------------------------------------------------
   8. Lyrics History List
   -------------------------------------------------------------------------- */
.lyrics-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
  gap: 12px;
}

.lyrics-history-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lyrics-history-icon {
  font-size: 20px;
}

.lyrics-history-heading {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.lyrics-history-subheading {
  display: block;
  font-size: 11.5px;
  color: #8492a6;
  margin-top: 2px;
}

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

.lyrics-history-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lyrics-history-clear-btn:hover {
  background: rgba(244, 63, 94, 0.25);
  transform: translateY(-1px);
}

.lyrics-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.lyrics-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.lyrics-history-item:hover {
  border-color: #6366f1;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

.lyrics-history-item.active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.15);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.lyrics-history-thumb-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  background: #090e18;
}

.lyrics-history-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lyrics-history-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lyrics-history-item:hover .lyrics-history-thumb-overlay {
  opacity: 1;
}

.lyrics-history-details {
  flex: 1;
  min-width: 0;
  padding-right: 18px;
}

.lyrics-history-item-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lyrics-history-item-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lyrics-history-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.lyrics-history-singer {
  font-size: 11.5px;
  color: #8492a6;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 105px;
}

.lyrics-history-badge {
  font-size: 10.5px;
  padding: 1.5px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-weight: 500;
}

.lyrics-history-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 2;
  padding: 0;
}

.lyrics-history-item:hover .lyrics-history-delete {
  opacity: 1;
}

.lyrics-history-delete:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.4);
  color: #ef4444;
  transform: scale(1.1);
}

@media (hover: none), (max-width: 768px) {
  .lyrics-history-delete {
    opacity: 0.8;
  }
}

.lyrics-history-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 16px;
  color: #8492a6;
}

.lyrics-history-empty-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.lyrics-history-empty p {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #cbd5e1;
}

.lyrics-history-empty small {
  display: block;
  font-size: 11.5px;
  color: #8492a6;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Gemini API Key Banner & Interactive Modal in Lyrics Studio
   -------------------------------------------------------------------------- */
.lyrics-api-notice-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 15px rgba(245, 158, 11, 0.1);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  animation: bannerSlideDown 0.3s ease;
}

@keyframes bannerSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.lyrics-api-notice-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 280px;
}

.lyrics-api-notice-icon {
  width: 40px;
  height: 40px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.lyrics-api-notice-text strong {
  color: #fbbf24;
  font-size: 14px;
  font-weight: 700;
}

.lyrics-api-notice-text span {
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 1.5;
}

.lyrics-api-notice-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lyrics-api-notice-link-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.lyrics-api-notice-link-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
}

.lyrics-api-notice-setup-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lyrics-api-notice-setup-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* API Key Required Modal Dialog */
.lyrics-api-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lyrics-api-modal-card {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  font-family: 'Kantumruy Pro', Inter, sans-serif;
  animation: modalScaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.lyrics-api-modal-header {
  padding: 18px 24px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lyrics-api-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lyrics-api-modal-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lyrics-api-modal-title h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  color: #ffffff;
}

.lyrics-api-modal-title p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

.lyrics-api-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: all 0.15s ease;
}

.lyrics-api-modal-close:hover {
  background: rgba(239, 68, 68, 0.85);
  color: #ffffff;
  border-color: rgba(239, 68, 68, 0.9);
}

.lyrics-api-modal-body {
  padding: 22px 24px;
  color: #334155;
}

.lyrics-api-guide-box {
  margin-bottom: 18px;
}

.lyrics-api-link-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lyrics-api-external-link-btn {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.lyrics-api-external-link-btn:hover {
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.lyrics-api-input-section {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px 16px;
}

.lyrics-api-input-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lyrics-api-quick-input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: monospace;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease;
}

.lyrics-api-quick-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.lyrics-api-toggle-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 14px;
}

.lyrics-api-modal-footer {
  padding: 14px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.lyrics-api-btn-ghost {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.lyrics-api-btn-ghost:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.lyrics-api-btn-secondary {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lyrics-api-btn-secondary:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.lyrics-api-btn-primary {
  background: #2563eb;
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}

.lyrics-api-btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}

/* ==========================================================================
   Lyrics Studio Mobile Viewer GUI Optimization
   ========================================================================== */
@media (max-width: 900px) {
  .lyrics-studio-container {
    padding: 0;
    gap: 14px;
  }
  .lyrics-hero-banner {
    padding: 18px 16px;
    border-radius: 12px;
  }
  .lyrics-hero-banner h2 {
    font-size: 19px;
  }
  .lyrics-hero-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .lyrics-btn-new {
    width: 100%;
    justify-content: center;
    padding: 9px 14px;
    font-size: 12px;
  }
  .lyrics-vip-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .lyrics-vip-card {
    padding: 10px 12px;
  }
  .lyrics-workspace-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .lyrics-panel,
  .lyrics-form-card,
  .lyrics-artwork-card,
  .lyrics-output-card,
  .lyrics-history-card {
    padding: 16px 14px;
    border-radius: 12px;
  }
  .lyrics-grid-2,
  .lyrics-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .lyrics-preset-bar {
    overflow-x: auto;
    white-space: nowrap;
    padding: 8px 10px;
    -webkit-overflow-scrolling: touch;
  }
  .lyrics-preset-bar::-webkit-scrollbar {
    display: none;
  }
  .lyrics-output-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .lyrics-output-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .lyrics-output-actions button {
    flex: 1;
    min-width: 130px;
    justify-content: center;
  }
  .lyrics-canvas-frame {
    max-width: 100%;
  }
  .lyrics-api-modal-card {
    width: 95vw;
    max-width: 460px;
    padding: 18px 16px;
    border-radius: 14px;
  }
}

@media (max-width: 600px) {
  .lyrics-ai-model-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }
  .lyrics-ai-model-badge-wrap {
    align-self: flex-start;
  }
  .lyrics-ai-model-selector-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .lyrics-model-select-wrapper {
    width: 100% !important;
  }
  button.lyrics-model-config-btn,
  #lyricsQuickOpenSettingsBtn {
    width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   Suno Khmer Optimizer Button & Modal
   -------------------------------------------------------------------------- */
.lyrics-action-btn.lyrics-btn-khmer-suno {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  border-color: #34d399;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
  animation: pulse-suno-khmer 3s infinite;
}

.lyrics-action-btn.lyrics-btn-khmer-suno:hover {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
}

@keyframes pulse-suno-khmer {
  0%, 100% { box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35); }
  50% { box-shadow: 0 4px 18px rgba(16, 185, 129, 0.65); }
}

.lyrics-action-btn.lyrics-btn-suno {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: #ffffff;
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.35);
}

.lyrics-action-btn.lyrics-btn-suno:hover {
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.55);
  transform: translateY(-1px);
}

/* Modal styles for Suno Khmer Optimizer */
.lyrics-khmer-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 26, 0.82);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: lyricsFadeIn 0.2s ease-out;
}

.lyrics-khmer-modal-card {
  background: #0d1424;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 16px;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(16, 185, 129, 0.2);
}

.lyrics-khmer-modal-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #064e3b 0%, #0d1424 100%);
  border-bottom: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lyrics-khmer-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lyrics-khmer-modal-icon {
  font-size: 26px;
}

.lyrics-khmer-modal-title h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #34d399;
}

.lyrics-khmer-modal-title p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #a7f3d0;
}

.lyrics-khmer-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  color: #cbd5e1;
  font-size: 18px;
  cursor: pointer;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.lyrics-khmer-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.lyrics-khmer-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lyrics-khmer-guide-tip {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  color: #d1fae5;
  line-height: 1.6;
}

.lyrics-khmer-output-box {
  width: 100%;
  min-height: 320px;
  max-height: 440px;
  background: #090e18;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: 'Kantumruy Pro', monospace, sans-serif;
  font-size: 13px;
  line-height: 1.8;
  color: #f8fafc;
  outline: none;
  resize: vertical;
  color-scheme: dark;
}

.lyrics-khmer-modal-footer {
  padding: 14px 20px;
  background: rgba(9, 14, 24, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.lyrics-btn-apply-editor {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lyrics-btn-apply-editor:hover {
  background: rgba(255, 255, 255, 0.14);
}

.lyrics-btn-copy-suno-main {
  background: linear-gradient(135deg, #059669, #10b981);
  border: 0;
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lyrics-btn-copy-suno-main:hover {
  background: linear-gradient(135deg, #10b981, #34d399);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
}



