/* ============================================================
   LYRIK ENGINE — 666 SOUNDS DESIGN
   Panel styles: Editor, KI-Spinner, Bild-Upload, Section Tags
   Cyberpunk Neon / UV-Glow Design System
   ============================================================ */

/* ── Lyrik Tab Panel ─────────────────────────────────────── */
#lyric-panel {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Mode Selector (3 Modi) ──────────────────────────────── */
.lyric-mode-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(0,0,0,0.4);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(201,47,255,0.2);
}

.lyric-mode-btn {
  padding: 10px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: rgba(255,255,255,0.4);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.3;
}

.lyric-mode-btn:hover {
  border-color: rgba(201,47,255,0.5);
  color: rgba(255,255,255,0.7);
  background: rgba(201,47,255,0.08);
}

.lyric-mode-btn.active {
  background: linear-gradient(135deg, rgba(201,47,255,0.25), rgba(0,229,255,0.15));
  border-color: #c92fff;
  color: #fff;
  box-shadow: 0 0 12px rgba(201,47,255,0.4), inset 0 0 8px rgba(201,47,255,0.1);
}

.lyric-mode-btn .mode-icon {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.lyric-mode-btn .mode-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Lyrik-Lock Toggle ───────────────────────────────────── */
.lyric-lock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 45, 120, 0.06);
  border: 1px solid rgba(255,45,120,0.25);
  transition: all 0.3s ease;
}

.lyric-lock-bar.locked {
  background: rgba(255, 45, 120, 0.14);
  border-color: #ff2d78;
  box-shadow: 0 0 16px rgba(255,45,120,0.25);
}

.lyric-lock-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

.lyric-lock-bar.locked .lyric-lock-label {
  color: #ff2d78;
}

.lyric-lock-icon {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.lyric-lock-bar.locked .lyric-lock-icon {
  transform: scale(1.15);
}

.lock-status-text {
  font-size: 10px;
  opacity: 0.7;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  transition: all 0.3s ease;
}

input:checked + .toggle-slider {
  background: rgba(255,45,120,0.3);
  border-color: #ff2d78;
  box-shadow: 0 0 8px rgba(255,45,120,0.4);
}

input:checked + .toggle-slider::before {
  left: calc(100% - 19px);
  background: #ff2d78;
  box-shadow: 0 0 6px rgba(255,45,120,0.8);
}

/* ── Mode Panels ─────────────────────────────────────────── */
.lyric-mode-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: lyricFadeIn 0.25s ease;
}

.lyric-mode-panel.active {
  display: flex;
}

@keyframes lyricFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Manual Mode: Lyrik-Textarea ─────────────────────────── */
.lyric-textarea-wrap {
  position: relative;
}

.lyric-textarea {
  width: 100%;
  min-height: 180px;
  padding: 14px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 10px;
  color: #e0e0ff;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.lyric-textarea:focus {
  border-color: #00e5ff;
  box-shadow: 0 0 12px rgba(0,229,255,0.2);
}

.lyric-textarea.locked {
  border-color: rgba(255,45,120,0.5);
  background: rgba(255,45,120,0.04);
  cursor: default;
}

.lyric-textarea.locked:focus {
  border-color: #ff2d78;
  box-shadow: 0 0 12px rgba(255,45,120,0.2);
}

.lyric-char-counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  pointer-events: none;
}

.lyric-locked-badge {
  display: none;
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 3px 8px;
  background: rgba(255,45,120,0.2);
  border: 1px solid #ff2d78;
  border-radius: 4px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: #ff2d78;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lyric-textarea.locked ~ .lyric-locked-badge {
  display: block;
}

/* ── AI Mode: Keywords Input ─────────────────────────────── */
.lyric-section-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: rgba(0,229,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.lyric-keyword-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 10px;
  color: #e0e0ff;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.lyric-keyword-input:focus {
  border-color: #00e5ff;
  box-shadow: 0 0 10px rgba(0,229,255,0.2);
}

.lyric-keyword-input::placeholder {
  color: rgba(255,255,255,0.2);
}

/* Genre Pills for AI mode */
.lyric-genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lyric-genre-pill {
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid rgba(201,47,255,0.3);
  background: rgba(201,47,255,0.06);
  color: rgba(201,47,255,0.8);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.lyric-genre-pill:hover,
.lyric-genre-pill.active {
  background: rgba(201,47,255,0.2);
  border-color: #c92fff;
  color: #fff;
  box-shadow: 0 0 8px rgba(201,47,255,0.3);
}

/* ── Image Upload Mode ───────────────────────────────────── */
.lyric-image-dropzone {
  position: relative;
  width: 100%;
  min-height: 140px;
  border: 2px dashed rgba(255,122,0,0.35);
  border-radius: 12px;
  background: rgba(255,122,0,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.lyric-image-dropzone:hover,
.lyric-image-dropzone.drag-over {
  border-color: #ff7a00;
  background: rgba(255,122,0,0.09);
  box-shadow: 0 0 20px rgba(255,122,0,0.2);
}

.lyric-image-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dropzone-icon {
  font-size: 32px;
  opacity: 0.7;
}

.dropzone-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: rgba(255,122,0,0.8);
  text-align: center;
  line-height: 1.5;
}

.dropzone-subtext {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
}

.lyric-image-preview {
  display: none;
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,122,0,0.4);
}

.lyric-image-preview.has-image {
  display: block;
}

.image-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,45,120,0.6);
  background: rgba(0,0,0,0.7);
  color: #ff2d78;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  touch-action: manipulation;
}

.image-remove-btn:hover {
  background: rgba(255,45,120,0.2);
  box-shadow: 0 0 8px rgba(255,45,120,0.4);
}

/* ── KI Spinner / Loading State ──────────────────────────── */
.lyric-ai-spinner {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
}

.lyric-ai-spinner.active {
  display: flex;
}

.spinner-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(201,47,255,0.15);
  border-top-color: #c92fff;
  border-right-color: #00e5ff;
  animation: spinnerRotate 0.9s linear infinite;
}

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

.spinner-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: rgba(201,47,255,0.8);
  animation: spinnerPulse 1.5s ease-in-out infinite;
}

@keyframes spinnerPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

.spinner-subtext {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.25);
}

/* ── API Key Warning ─────────────────────────────────────── */
.lyric-api-warning {
  display: none;
  padding: 10px 14px;
  background: rgba(255,224,0,0.06);
  border: 1px solid rgba(255,224,0,0.3);
  border-radius: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: rgba(255,224,0,0.85);
  line-height: 1.5;
}

.lyric-api-warning.visible {
  display: block;
}

.api-key-input-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.api-key-input {
  flex: 1;
  padding: 8px 12px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,224,0,0.3);
  border-radius: 6px;
  color: #ffe000;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  outline: none;
}

.api-key-input:focus {
  border-color: #ffe000;
  box-shadow: 0 0 8px rgba(255,224,0,0.2);
}

.api-key-save-btn {
  padding: 8px 14px;
  background: rgba(255,224,0,0.15);
  border: 1px solid rgba(255,224,0,0.5);
  border-radius: 6px;
  color: #ffe000;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  touch-action: manipulation;
}

.api-key-save-btn:hover {
  background: rgba(255,224,0,0.25);
  box-shadow: 0 0 8px rgba(255,224,0,0.3);
}

/* ── Generate Button ─────────────────────────────────────── */
.lyric-generate-btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(201,47,255,0.5);
  background: linear-gradient(135deg, rgba(201,47,255,0.2), rgba(0,229,255,0.1));
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.25s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  text-transform: uppercase;
}

.lyric-generate-btn:hover {
  background: linear-gradient(135deg, rgba(201,47,255,0.35), rgba(0,229,255,0.2));
  border-color: #c92fff;
  box-shadow: 0 0 20px rgba(201,47,255,0.4), 0 4px 15px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

.lyric-generate-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(201,47,255,0.3);
}

.lyric-generate-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Generated Lyric Output ──────────────────────────────── */
.lyric-output-block {
  display: none;
  flex-direction: column;
  gap: 8px;
}

.lyric-output-block.visible {
  display: flex;
  animation: lyricFadeIn 0.3s ease;
}

.lyric-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lyric-output-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: rgba(0,229,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lyric-output-actions {
  display: flex;
  gap: 6px;
}

.lyric-action-btn {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0,229,255,0.3);
  background: transparent;
  color: rgba(0,229,255,0.7);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s;
  touch-action: manipulation;
}

.lyric-action-btn:hover {
  border-color: #00e5ff;
  color: #00e5ff;
  background: rgba(0,229,255,0.08);
}

.lyric-output-textarea {
  width: 100%;
  min-height: 160px;
  padding: 14px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 10px;
  color: #00ff9d;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.lyric-output-textarea:focus {
  border-color: #00e5ff;
  box-shadow: 0 0 10px rgba(0,229,255,0.15);
}

/* ── Section Tag Editor ──────────────────────────────────── */
.section-tag-editor {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,122,0,0.2);
  border-radius: 12px;
  overflow: hidden;
}

.section-tag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255,122,0,0.06);
  border-bottom: 1px solid rgba(255,122,0,0.15);
  cursor: pointer;
  touch-action: manipulation;
}

.section-tag-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: rgba(255,122,0,0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-tag-toggle-icon {
  color: rgba(255,122,0,0.6);
  font-size: 12px;
  transition: transform 0.25s ease;
}

.section-tag-editor.collapsed .section-tag-toggle-icon {
  transform: rotate(-90deg);
}

.section-tag-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-tag-editor.collapsed .section-tag-body {
  display: none;
}

.section-tag-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  align-items: center;
}

.section-tag-name {
  padding: 7px 10px;
  background: rgba(255,122,0,0.1);
  border: 1px solid rgba(255,122,0,0.25);
  border-radius: 6px;
  color: #ff7a00;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
}

.section-tag-directive {
  padding: 7px 10px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: rgba(255,255,255,0.6);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  outline: none;
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.section-tag-directive:focus {
  border-color: rgba(255,122,0,0.5);
  color: rgba(255,255,255,0.9);
  background: rgba(255,122,0,0.04);
}

.section-tag-add-btn {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px dashed rgba(255,122,0,0.3);
  background: transparent;
  color: rgba(255,122,0,0.6);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
  touch-action: manipulation;
}

.section-tag-add-btn:hover {
  border-color: rgba(255,122,0,0.6);
  color: #ff7a00;
  background: rgba(255,122,0,0.06);
}

/* ── Extended Prompt Output Block ────────────────────────── */
.extended-prompt-block {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(0,255,157,0.2);
  border-radius: 12px;
  overflow: hidden;
}

.extended-prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0,255,157,0.05);
  border-bottom: 1px solid rgba(0,255,157,0.12);
}

.extended-prompt-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: rgba(0,255,157,0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.extended-prompt-char-count {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: rgba(0,255,157,0.5);
}

.extended-prompt-char-count.over-limit {
  color: #ff2d78;
  animation: warningPulse 1s ease-in-out infinite;
}

@keyframes warningPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.extended-prompt-textarea {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: none;
  color: #00ff9d;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
  resize: none;
  outline: none;
  box-sizing: border-box;
  min-height: 80px;
}

.extended-prompt-footer {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(0,255,157,0.1);
}

.extended-copy-btn,
.extended-inject-btn {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}

.extended-copy-btn {
  border: 1px solid rgba(0,229,255,0.35);
  background: transparent;
  color: rgba(0,229,255,0.8);
}

.extended-copy-btn:hover {
  border-color: #00e5ff;
  background: rgba(0,229,255,0.08);
  color: #00e5ff;
}

.extended-inject-btn {
  border: 1px solid rgba(0,255,157,0.4);
  background: rgba(0,255,157,0.08);
  color: rgba(0,255,157,0.9);
}

.extended-inject-btn:hover {
  border-color: #00ff9d;
  background: rgba(0,255,157,0.15);
  color: #00ff9d;
  box-shadow: 0 0 12px rgba(0,255,157,0.2);
}

/* ── Multi-Genre Mixer ───────────────────────────────────── */
.genre-mixer-block {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(201,47,255,0.2);
  border-radius: 12px;
  overflow: hidden;
}

.genre-mixer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(201,47,255,0.05);
  border-bottom: 1px solid rgba(201,47,255,0.12);
}

.genre-mixer-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: rgba(201,47,255,0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.genre-mixer-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.genre-mix-row {
  display: grid;
  grid-template-columns: 1fr 60px 28px;
  gap: 6px;
  align-items: center;
}

.genre-mix-select {
  padding: 8px 10px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(201,47,255,0.2);
  border-radius: 8px;
  color: rgba(255,255,255,0.8);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  width: 100%;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.genre-mix-select:focus {
  border-color: #c92fff;
}

.genre-mix-weight {
  padding: 8px 6px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(201,47,255,0.2);
  border-radius: 8px;
  color: rgba(201,47,255,0.9);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.genre-mix-weight:focus {
  border-color: #c92fff;
}

.genre-mix-remove {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255,45,120,0.3);
  background: transparent;
  color: rgba(255,45,120,0.6);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  touch-action: manipulation;
  flex-shrink: 0;
}

.genre-mix-remove:hover {
  border-color: #ff2d78;
  color: #ff2d78;
  background: rgba(255,45,120,0.08);
}

.genre-mix-add-btn {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px dashed rgba(201,47,255,0.3);
  background: transparent;
  color: rgba(201,47,255,0.6);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  touch-action: manipulation;
  margin-top: 2px;
}

.genre-mix-add-btn:hover {
  border-color: rgba(201,47,255,0.6);
  color: #c92fff;
  background: rgba(201,47,255,0.06);
}

/* ── Build Lyrik Prompt Button ───────────────────────────── */
.lyric-build-prompt-btn {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(0,229,255,0.5);
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(201,47,255,0.1));
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.lyric-build-prompt-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.lyric-build-prompt-btn:hover::before {
  transform: translateX(100%);
}

.lyric-build-prompt-btn:hover {
  background: linear-gradient(135deg, rgba(0,229,255,0.25), rgba(201,47,255,0.15));
  border-color: #00e5ff;
  box-shadow: 0 0 24px rgba(0,229,255,0.35), 0 4px 20px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

.lyric-build-prompt-btn:active {
  transform: translateY(0);
}

/* ── Toast Notification (copy feedback) ──────────────────── */
.lyric-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0,255,157,0.15);
  border: 1px solid rgba(0,255,157,0.5);
  border-radius: 8px;
  padding: 10px 20px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: #00ff9d;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
  white-space: nowrap;
}

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

/* ── Responsive adjustments ──────────────────────────────── */
@media (max-width: 380px) {
  .lyric-mode-btn .mode-label {
    font-size: 9px;
  }

  .section-tag-row {
    grid-template-columns: 80px 1fr;
  }

  .genre-mix-row {
    grid-template-columns: 1fr 50px 28px;
  }
}
