@font-face {
  font-family: 'Vipnagorgialla';
  src: url('../assets/fonts/Vipnagorgialla-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

   :root{
      --page-bg:#0b1220;
      --panel:#0f1b2d;
      --panel2:#0d1728;
      --border: rgba(255,255,255,.22);
      --border2: rgba(255,255,255,.32);
      --text: rgba(255,255,255,.92);
      --dim: rgba(255,255,255,.72);
      --dimmer: rgba(255,255,255,.58);
      --accent:#7c3aed;
      --bg-hue: 0deg;
      --bg-sat: 1;
      --bg-bright: 1;
      --bg-contrast: 1;
    }

/* Custom utilities (Tailwind replacement) */
.app-container { max-width: 1280px; margin: 0 auto; padding: 10px; }
@media (min-width: 768px) { .app-container { padding: 10px; } }
.flex-column { display: flex; flex-direction: column; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }
.w-full { width: 100%; }
.sm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.5rem 1.5rem; border-radius: 8px; font-weight: 500; font-size: 0.95rem; border: 1px solid var(--border); cursor: pointer; transition: all 0.15s ease; background: var(--panel); color: var(--text); }
.sm-btn:hover { background: var(--panel2); border-color: var(--border2); }
.sm-btn-primary { background: var(--accent); color: white; border-color: var(--accent); box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25); }
.sm-btn-primary:hover { background: #6d28d9; box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35); }
.sm-btn-outline { background: transparent; border-color: var(--border2); }
.sm-btn-ghost { background: transparent; border-color: transparent; }
.sm-btn-sm { min-height: 36px; padding: 0.375rem 1rem; font-size: 0.875rem; }
.sm-btn-xs { min-height: 28px; padding: 0.25rem 0.75rem; font-size: 0.8rem; }
.sm-badge { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: 6px; font-size: 0.8rem; font-weight: 500; background: var(--accent); color: white; }
.sm-badge-outline { background: transparent; border: 1px solid var(--border2); color: var(--text); }
/* Vipnagorgialla on all purple buttons */
.sm-btn-primary,
.sm-badge,
.menu-pill,
#btnSubmitMock,
.celebrate-card .btn-primary,
.preview-actions-row .btn,
.preview-actions-row .btn-outline,
.preview-actions-row .btn-ghost,
.songs-downloads .btn,
.songs-pagination .btn:not(:disabled),
.songs-table-head .songs-sort-btn,
.songs-table-head .songs-head-btn,
.songs-create-persona,
.persona-detail-actions .persona-detail-btn,
.persona-edit-btn,
.global-player .gp-btn.primary,
.lyric-book-new-btn,
.lyric-book-action-btn.save-btn,
.lyric-book-action-btn {
  font-family: 'Vipnagorgialla', Arial, sans-serif;
}
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
/* Prevent iOS double-tap zoom on tappable controls */
.sm-btn, .btn, .menu-tile, .global-player .gp-btn, .global-player .gp-actions, .global-player .gp-lyrics {
  touch-action: manipulation;
}

    html{
      height: -webkit-fill-available;
      overscroll-behavior: auto;
      overflow-x: hidden;
    }
    body{
      min-height: 100vh;
      min-height: -webkit-fill-available;
      background-color: var(--page-bg) !important;
      color: var(--text) !important;
      font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
      position: relative;
      isolation: isolate;
      overscroll-behavior: auto;
      overflow-x: hidden;
      box-sizing: border-box;
    }
    body::before{
      content:"";
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      height: 100dvh;
      z-index: var(--z-bg);
      background: url("../assets/bg01.jpg") center center / cover fixed no-repeat;
      filter: hue-rotate(var(--bg-hue, 0deg)) saturate(var(--bg-sat, 1)) brightness(var(--bg-bright, 1)) contrast(var(--bg-contrast, 1));
      transform: translateZ(0);
      pointer-events: none;
    }
    h1,h2,h3{ color:#ffffff !important; }
    .card{
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      border-radius: 14px;
    }
    .panel-soft{
      border: none;
      background:linear-gradient(180deg, rgba(140,140,140,.5), rgba(80,80,80,.5));
      border-radius:12px;
      padding:12px;
    }
    .text-dim{ color: rgba(255,255,255,.88); }
    .text-dimmer{ color: rgba(255,255,255,.70); }
    .mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace; }
.hidden{ display:none !important; }
.invisible{ visibility:hidden !important; }
.mode-fade-field{
  opacity: 1;
  max-height: 220px;
  overflow: hidden;
  transform: translateY(0);
  transition:
    opacity .18s ease,
    max-height .18s ease,
    margin .18s ease,
    transform .18s ease;
}
.mode-fade-field.mode-collapsed{
  opacity: 0;
  max-height: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  transform: translateY(-2px);
  pointer-events: none;
  visibility: hidden;
}
    .btn{ min-height:44px; }
.auth-status-card{
  border: 1px solid rgba(255,255,255,.12);
  font-family: "Gloria Hallelujah", "Outfit", system-ui, sans-serif;
  background:
    linear-gradient(135deg, rgba(19,24,38,1), rgba(13,18,30,1)),
    radial-gradient(220px 160px at 0% 0%, rgba(124,58,237,.22), transparent 55%),
    radial-gradient(180px 140px at 100% 100%, rgba(99,102,241,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.12));
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  position: relative;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, filter .16s ease;
}
.auth-status-card::before{
  content:"";
  position:absolute;
  top:-60%;
  left:-80%;
  width: 160%;
  height: 220%;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.10), transparent 60%);
  transform: translateX(-60%) rotate(8deg);
  transition: transform .5s ease, opacity .5s ease;
  opacity: 0;
  pointer-events:none;
}
.auth-status-card:hover{
  transform: translateY(-2px);
  border-color: rgba(124,58,237,.45);
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
  filter: brightness(1.03);
}
.auth-status-card:hover::before{
  opacity: .9;
  transform: translateX(25%) rotate(8deg);
}
.auth-status-text{
  font-size: 1.6em;
  line-height: 1.35;
}
.vinyl-loader-wrap{
  display:flex;
  flex-direction: column; /* Stack vinyl and buttons vertically */
  justify-content:center;
  align-items:center;
  padding: 24px 0 8px;
  min-height: 45vh;
  width: 100%;
  overflow-x: hidden;
}
body.logged-out-loader{
  overflow: hidden;
  padding-bottom: 0 !important;
  height: 100dvh;
  max-height: 100dvh;
}
html.logged-out-loader{
  overflow-y: hidden !important;
  height: 100%;
  max-height: 100%;
}
body.logged-out-loader .app-container{
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}
body.logged-out-loader #loggedOutLoader{
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 8px;
  padding-bottom: 0;
  justify-content: flex-start;
  overflow: hidden;
}
.vinyl-loader{
  position: relative;
  border-radius: 50%;
  width: min(70vw, 440px);
  height: min(70vw, 440px);
  transform: rotate(var(--drag-rotate, 0deg));
  touch-action: none;
  aspect-ratio: 1 / 1;
  /* Prevent image selection during drag */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.vinyl-rotor{
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  /* Prevent selection on rotating element */
  user-select: none;
  -webkit-user-select: none;
  background:
    repeating-radial-gradient(
      circle,
      rgba(255,255,255,.06) 0 1px,
      rgba(0,0,0,0) 2px 6px
    ),
    radial-gradient(circle at center, #0b0b0b 0 100%);
  animation: vinyl-spin 2s linear infinite;
  box-shadow:
    0 8px 16px rgba(124,58,237,.45),
    inset 0 0 0 2px rgba(255,255,255,.06);
}
.vinyl-center{
  position:absolute;
  top:50%;
  left:50%;
  transform: translate(-50%, -50%);
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background-color: #7c3aed;
  background-image: var(--vinyl-logo, url("../assets/slickmitzlogo.png"));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 65%;
  border: 2px solid rgba(255,255,255,.22);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.2);
  /* Prevent logo image selection */
  user-select: none;
  -webkit-user-select: none;
}
/* iPhone Fix: Removed :hover to ensure animation resumes on touch devices */
.vinyl-loader.dragging .vinyl-rotor{
  animation-play-state: paused;
}
@keyframes vinyl-spin{
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Reverse vinyl rotation for REV button */
.vinyl-loader[data-reverse="true"] .vinyl-rotor {
  animation-direction: reverse;
}

/* === Jog Wheel: Scrub Time Indicator (optional, controlled by config.SHOW_TIME_INDICATOR) === */
.scrub-time-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10000;
  font-variant-numeric: tabular-nums;
}

/* Jog mode active indicator - REMOVED per user request (was rotating with vinyl) */

/* === Jog Wheel Control Panel (Beat Pad Style Buttons) === */
.jog-control-panel {
  display: none; /* Hidden by default */
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
  padding: 0 12px;
  width: 100%;
  max-width: 100vw; /* Full width of screen */
}

/* Show panel ONLY when in vinyl view mode (Mode 3) AND DJ Mode is enabled */
body.lyrics-view-vinyl[data-dj-mode="true"] .jog-control-panel {
  display: grid !important; /* Show when DJ Mode ON */
}

/* Explicitly hide when DJ Mode is OFF (even in vinyl view) */
body.lyrics-view-vinyl[data-dj-mode="false"] .jog-control-panel {
  display: none !important; /* Hide when DJ Mode OFF */
}

.jog-btn {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1; /* Wide rectangular buttons */
  border: none;
  cursor: pointer;
  border-radius: 12px;
  background: transparent;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  z-index: 0;
}

/* Outer bezel of each button (dark hardware frame) */
.jog-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(to bottom, #060607, #101015);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 12px rgba(0, 0, 0, 0.9);
  z-index: 0;
}

/* Button "rubber" surface - purple gradient with glow */
.jog-btn::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.9), transparent 45%),
    radial-gradient(circle at 50% 60%, #b89bff 0, #7a57e6 62%);
  box-shadow:
    0 0 18px rgba(0, 0, 0, 0.7) inset,
    0 0 12px rgba(0, 0, 0, 0.6),
    0 0 26px rgba(184, 155, 255, 0.6);
  transition:
    transform 0.07s ease-out,
    box-shadow 0.07s ease-out,
    filter 0.07s ease-out;
  z-index: 1;
}

/* Pressed state (mouse / touch) */
.jog-btn.is-pressed::before,
.jog-btn:active::before {
  transform: translateY(1px);
  filter: brightness(1.4);
  box-shadow:
    0 0 22px rgba(0, 0, 0, 0.7) inset,
    0 0 30px rgba(0, 0, 0, 0.7),
    0 0 34px rgba(184, 155, 255, 1);
}

/* Speed control visual states (Button 4) */
.jog-btn.speed-faster::before {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.9), transparent 40%),
    radial-gradient(circle at 50% 60%, #10b981 0, #059669 62%);
  box-shadow:
    0 0 14px rgba(0, 0, 0, 0.7) inset,
    0 0 18px rgba(0, 0, 0, 0.7),
    0 0 28px rgba(16, 185, 129, 0.9);
}

.jog-btn.speed-slower::before {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.9), transparent 40%),
    radial-gradient(circle at 50% 60%, #ef4444 0, #dc2626 62%);
  box-shadow:
    0 0 14px rgba(0, 0, 0, 0.7) inset,
    0 0 18px rgba(0, 0, 0, 0.7),
    0 0 28px rgba(239, 68, 68, 0.9);
}

.jog-btn.speed-normal::before {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.9), transparent 40%),
    radial-gradient(circle at 50% 60%, #8b5cf6 0, #7c3aed 62%);
  box-shadow:
    0 0 14px rgba(0, 0, 0, 0.7) inset,
    0 0 18px rgba(0, 0, 0, 0.7),
    0 0 28px rgba(139, 92, 246, 0.9);
}

/* Button label text */
.jog-btn-label {
  position: absolute;
  right: 7px;
  bottom: 6px;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(5, 5, 10, 0.55);
  font-weight: 600;
  font-family: 'Vipnagorgialla', Arial, sans-serif;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
}

/* Airhorn emoji overlay */
.airhorn-emoji-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 48px;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.airhorn-emoji-overlay.active {
  transform: translate(-50%, -50%) scale(1.2);
  opacity: 1;
  animation: airhornPulse 0.3s ease-out;
}

@keyframes airhornPulse {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}

/* Wrapper for button 3 (LOOP) and its editor panel */
.loop-btn-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Ensure button inside wrapper maintains proper sizing */
.loop-btn-wrapper > .jog-btn {
  width: 100%;
  flex-shrink: 0;
}

/* === Loop Editor Panel === */
.loop-editor-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  width: auto;
  min-width: 320px;
  max-width: 90vw;
  z-index: 10;
  pointer-events: all;
  
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 10px 9px 10px;
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.95), rgba(15, 15, 25, 0.95));
  border-radius: 12px;
  border: 1px solid rgba(110, 231, 183, 0.3);
  box-shadow: 
    0 0 20px rgba(110, 231, 183, 0.2),
    inset 0 1px 0 rgba(110, 231, 183, 0.1);
  backdrop-filter: blur(10px);
  opacity: 1;
  transition: opacity 0.2s ease-out;
}

.loop-editor-panel.hidden {
  display: none;
}

/* Each row: LABEL < TIME > layout */
.loop-control-row {
  display: grid;
  grid-template-columns: 50px 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}

.loop-control-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(110, 231, 183, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
}

.loop-control-value {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 10px;
  border-radius: 6px;
  min-width: 60px;
  text-align: center;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.02em;
  border: 1px solid rgba(110, 231, 183, 0.2);
}

.loop-control-buttons {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

/* LOOP length display (bottom row, read-only) */
.loop-length-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 2px 4px;
  margin-top: 4px;
  border-top: 1px solid rgba(110, 231, 183, 0.2);
}

.loop-length-label {
  font-size: 9px;
  font-weight: 700;
  color: rgba(168, 85, 247, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.loop-length-value {
  font-size: 13px;
  font-weight: 700;
  color: #a855f7;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.02em;
}

.loop-nudge-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  background: transparent;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  z-index: 0;
  flex-shrink: 0;
}

/* Outer bezel of nudge buttons */
.loop-nudge-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(to bottom, #060607, #101015);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 3px 6px rgba(0, 0, 0, 0.8);
  z-index: 0;
}

/* Button surface - smaller, teal/cyan gradient for differentiation */
.loop-nudge-btn::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.7), transparent 40%),
    radial-gradient(circle at 50% 60%, #6ee7b7 0, #14b8a6 62%);
  box-shadow:
    0 0 10px rgba(0, 0, 0, 0.7) inset,
    0 0 6px rgba(0, 0, 0, 0.6),
    0 0 12px rgba(110, 231, 183, 0.5);
  transition:
    transform 0.07s ease-out,
    box-shadow 0.07s ease-out,
    filter 0.07s ease-out;
  z-index: 1;
}

/* Pressed state */
.loop-nudge-btn.is-pressed::before,
.loop-nudge-btn:active::before {
  transform: translateY(1px);
  filter: brightness(1.3);
  box-shadow:
    0 0 14px rgba(0, 0, 0, 0.7) inset,
    0 0 16px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(110, 231, 183, 0.9);
}

/* SVG icon styling */
.loop-nudge-btn svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.3);
  z-index: 2;
  width: 18px;
  height: 18px;
  color: rgba(5, 5, 10, 0.8);
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.4));
  pointer-events: none;
}

/* LOOP scale buttons (/2 and x2) */
.loop-scale-row {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.loop-size-label {
  color: rgba(168, 85, 247, 0.8);
}

.loop-scale-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  background: transparent;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  z-index: 0;
  flex-shrink: 0;
}

/* Button background */
.loop-scale-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(to bottom, #060607, #101015);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 3px 6px rgba(0, 0, 0, 0.8);
  z-index: 0;
}

/* Button surface - purple/magenta gradient */
.loop-scale-btn::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.7), transparent 40%),
    radial-gradient(circle at 50% 60%, #c084fc 0, #a855f7 62%);
  box-shadow:
    0 0 10px rgba(0, 0, 0, 0.7) inset,
    0 0 6px rgba(0, 0, 0, 0.6),
    0 0 12px rgba(168, 85, 247, 0.5);
  transition:
    transform 0.07s ease-out,
    box-shadow 0.07s ease-out,
    filter 0.07s ease-out;
  z-index: 1;
}

/* Active/pressed state */
.loop-scale-btn.is-pressed::before,
.loop-scale-btn:active::before {
  transform: translateY(1px);
  filter: brightness(1.3);
  box-shadow:
    0 0 14px rgba(0, 0, 0, 0.7) inset,
    0 0 16px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(168, 85, 247, 0.9);
}

/* Label text */
.loop-scale-label {
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  color: rgba(5, 5, 10, 0.7);
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.3));
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === DJ Debug Panel === */
/* Mobile responsive */
@media (max-width: 600px) {
  .jog-control-panel {
    gap: 8px;
    padding: 0 8px;
    margin-top: 16px;
    position: relative; /* Create positioning context for loop panel */
  }
  
  .jog-btn {
    border-radius: 10px;
  }
  
  .jog-btn::before {
    inset: 2px;
    border-radius: 8px;
  }
  
  .jog-btn-label {
    font-size: 9px;
    right: 5px;
    bottom: 4px;
  }
  
  /* Mobile: Keep wrapper in normal grid position */
  .loop-btn-wrapper {
    /* Keep button in its grid position normally */
    position: static;
  }
  
  .loop-btn-wrapper > .jog-btn {
    /* Ensure button stays normal size */
    width: 100%;
  }
  
  /* Mobile: Make loop editor panel wider with better touch targets */
  .loop-editor-panel {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 100%;
    transform: none;
    margin-top: 8px;
    width: auto;
    max-width: none;
    min-width: unset;
    padding: 9px 8px 7px 8px;
    gap: 6px;
  }
  
  .loop-control-row {
    grid-template-columns: 48px 44px 1fr 44px;
    gap: 7px;
    padding: 2px 0;
  }
  
  .loop-control-label {
    font-size: 8px;
    min-width: 28px;
  }
  
  .loop-control-value {
    font-size: 11px;
    padding: 2px 6px;
    min-width: 45px;
  }
  
  .loop-control-buttons {
    gap: 3px;
  }
  
  .loop-nudge-btn {
    width: 28px;
    height: 28px;
  }
  
  .loop-nudge-btn svg {
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%) scale(1.25);
  }
  
  .loop-length-row {
    padding: 4px 2px 2px 2px;
    margin-top: 2px;
  }
  
  .loop-length-label {
    font-size: 8px;
  }
  
  .loop-length-value {
    font-size: 11px;
  }
  
  .loop-scale-btn {
    width: 36px;
    height: 28px;
  }
  
  .loop-scale-label {
    font-size: 10px;
  }
  
  /* Mobile: Smaller airhorn emoji */
  .airhorn-emoji-overlay {
    font-size: 36px;
  }
}

/* === Persistent Vinyl Menu Button === */
.vinyl-menu{
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: var(--z-vinyl-menu);
}
.vinyl-menu-btn{
  width: 66px;
  height: 66px;
  cursor: pointer;
  border-radius: 50%;
  transition: box-shadow 0.3s ease;
}
body.offline-mode .vinyl-menu-btn{
  box-shadow:
    0 0 8px rgba(239,68,68,.55),
    0 0 16px rgba(220,38,38,.35),
    0 0 28px rgba(185,28,28,.20);
}
/* Neon purple pulse when logged out */
.vinyl-menu-btn.pulse{
  box-shadow:
    0 0 8px rgba(124,58,237,.6),
    0 0 20px rgba(124,58,237,.35),
    0 0 40px rgba(124,58,237,.15);
  animation: vinyl-neon-pulse 2s ease-in-out infinite;
}
@keyframes vinyl-neon-pulse{
  0%, 100% {
    box-shadow:
      0 0 8px rgba(124,58,237,.6),
      0 0 20px rgba(124,58,237,.35),
      0 0 40px rgba(124,58,237,.15);
  }
  50% {
    box-shadow:
      0 0 12px rgba(124,58,237,.8),
      0 0 30px rgba(124,58,237,.5),
      0 0 60px rgba(124,58,237,.25);
  }
}
.vinyl-menu-rotor{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle,
      rgba(255,255,255,.06) 0 1px,
      rgba(0,0,0,0) 2px 4px
    ),
    radial-gradient(circle at center, #0b0b0b 0 100%);
  animation: vinyl-spin 2s linear infinite;
  box-shadow: 0 4px 12px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.08);
}
.vinyl-menu-center{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background-color: #7c3aed;
  background-image: var(--vinyl-logo, url("../assets/slickmitzlogo.png"));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 65%;
  border: 1px solid rgba(255,255,255,.2);
}
.vinyl-menu-btn:hover .vinyl-menu-rotor{
  animation-play-state: paused;
}

/* Dropdown menu */
.vinyl-menu-dropdown{
  position: absolute;
  top: 74px;
  right: 0;
  min-width: 160px;
  background: rgba(15,23,42,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
  padding: 6px 0;
  overflow: hidden;
}
.vinyl-menu-dropdown.hidden{
  display: none;
}
.vinyl-menu-dropdown-item{
  padding: 10px 16px;
  font-size: 14px;
  color: #e2e8f0;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.vinyl-menu-dropdown-item:hover{
  background: rgba(124,58,237,.2);
}
.vinyl-menu-dropdown-prefs{
  cursor: default;
}
.vinyl-menu-dropdown-prefs:hover{
  background: rgba(124,58,237,.1);
}
.vinyl-menu-dropdown-signout{
  color: rgba(248,113,113,.9);
}
.vinyl-menu-dropdown-signout:hover{
  background: rgba(239,68,68,.15);
}
.vinyl-menu-dropdown-item.disabled,
.vinyl-menu-dropdown-item[aria-disabled="true"]{
  opacity: .55;
  cursor: default;
  pointer-events: none;
}
.vinyl-menu-dropdown-sep{
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 2px 0;
}

/* Auth status inside login overlays */
.auth-overlay-status{
  font-size: 13px;
  min-height: 20px;
  padding: 8px 0;
  text-align: center;
  line-height: 1.4;
}

    /* Wizard accordion */
    .accordion-shell{
      border: none;
      border-radius:14px;
      overflow:hidden;
      background: rgba(12,16,26,.28);
      backdrop-filter: blur(6px);
    }
    .acc-item{ border-top: none; }
    .acc-item:first-child{ border-top:0; }
    .acc-toggle{
      width:100%;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:16px;
      padding:14px;
      text-align:left;
      background:rgba(12,16,26,.45);
      border: none;
      cursor:pointer;
      user-select:none;
    }
    .acc-toggle:hover{ background:rgba(12,16,26,.55); }
    /* Make section headers prominent (fix #2) */
    .acc-title{
      display:flex;
      align-items:center;
      gap:10px;
      font-weight:800;
      color:#6ee7b7;
      font-family: 'Vipnagorgialla', Arial, sans-serif;
      font-size: 1.3em;
    }
    .acc-title span{ color:#6ee7b7; }
    .acc-badge{
      width:28px; height:28px;
      border-radius:999px;
      display:inline-flex; align-items:center; justify-content:center;
      border:1px solid rgba(255,255,255,.30);
      background: rgba(124,58,237,.35);
      font-weight:900;
      font-size:12px;
      flex:0 0 auto;
      color: var(--text);
    }
    .acc-chevron{ width:20px; height:20px; transition: transform .2s ease; opacity:.95; }
    .acc-item[data-open="true"] .acc-chevron{ transform:rotate(180deg); }
    .acc-content{
      display:none;
      padding:12px 14px 16px 14px;
      border-top: none;
      background: rgba(12,16,26,.22);
    }
    .acc-item[data-open="true"] .acc-content{ display:block; }
    /* Field spacing */
    .field-stack{ display:flex; flex-direction:column; gap:14px; }
    /* Inputs */
    .input, .select, .textarea{
      background: rgba(255,255,255,.04) !important;
      border:1px solid var(--border) !important;
      color: var(--text) !important;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }
    .input, .select{
      padding: 8px 12px;
      font-size: 15px;
    }
    #styleNotes{
      min-height: 78px;
      resize: vertical;
    }
    .label-text{ color: rgba(255,255,255,.78) !important; }
    /* Placeholder text visibility (fix #1) */
    .input::placeholder, .textarea::placeholder{
      color: rgba(255,255,255,.55) !important;
      opacity: 1 !important;
    }
    .input:focus, .select:focus, .textarea:focus{
      outline: none !important;
      border-color: rgba(124,58,237,.75) !important;
      box-shadow: 0 0 0 3px rgba(124,58,237,.18) !important;
    }
    /* Lyrics Lab */
    .lyrics-lab-grid{
      display:grid;
      grid-template-columns: 280px 1fr;
      gap:14px;
    }
    @media (min-width: 901px){
      .lyrics-lab-grid{
        grid-template-columns: 364px 1fr;
      }
    }
    @media (max-width: 900px){
      .lyrics-lab-grid{ grid-template-columns: 1fr; }
    }
    .lyrics-lab-list{
      border:1px solid var(--border);
      border-radius:12px;
      padding:10px;
      background: rgba(255,255,255,.03);
      display:flex;
      flex-direction:column;
      gap:10px;
      min-height: 180px;
    }
    .lyrics-lab-list-items{
      display:flex;
      flex-direction:column;
      gap:8px;
      max-height: 460px;
      overflow:auto;
    }
    .lyrics-lab-item{
      border:1px solid transparent;
      border-radius:10px;
      padding:10px;
      background: rgba(255,255,255,.04);
      cursor:pointer;
      transition: border-color .16s ease, background .16s ease, transform .16s ease;
      position: relative;
    }
    .lyrics-lab-item:hover{ border-color: rgba(124,58,237,.45); transform: translateY(-1px); }
    .lyrics-lab-item.active{
      border-color: rgba(124,58,237,.8);
      background: rgba(124,58,237,.12);
    }
    .lyrics-lab-header-title{
      color: rgba(37, 37, 43, 0.9);
    }
    .lyrics-lab-item-title{
      margin-top: 1px;
      font-size: 17px;
      font-weight: 700;
      color: rgba(37, 37, 43, 0.92);
      font-family: "Gloria Hallelujah", "Outfit", system-ui, sans-serif;
      line-height: 1.25;
    }
    .lyrics-lab-item-preview{
      margin-top:4px;
      font-size: 14px;
      line-height: 1.35;
      font-family: "Gloria Hallelujah", "Outfit", system-ui, sans-serif;
    }
    .lyrics-lab-item .lyrics-trash{
      position:absolute;
      right:8px;
      bottom:8px;
      background: transparent;
      color: rgba(5, 5, 10, 0.6);
      border: none;
      padding:6px;
      border-radius:8px;
      width:32px;
      height:32px;
      cursor:pointer;
      display:flex;
      align-items:center;
      justify-content:center;
      flex-shrink:0;
      outline: none;
      -webkit-tap-highlight-color: transparent;
      -webkit-user-select: none;
    }
    .lyrics-lab-item .lyrics-trash::after{
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 8px;
      background: linear-gradient(to bottom, #060607, #101015);
      box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 5px rgba(0, 0, 0, 0.45);
      z-index: -2;
      pointer-events: none;
    }
    .lyrics-lab-item .lyrics-trash::before{
      content: "";
      position: absolute;
      inset: 2px;
      border-radius: 6px;
      background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.62), transparent 40%),
        radial-gradient(circle at 50% 60%, #93c5fd 0, #3b82f6 62%);
      box-shadow:
        0 0 10px rgba(0, 0, 0, 0.6) inset,
        0 0 8px rgba(0, 0, 0, 0.4),
        0 0 14px rgba(59, 130, 246, 0.45);
      transition:
        transform 0.07s ease-out,
        box-shadow 0.07s ease-out;
      z-index: -1;
      pointer-events: none;
    }
    .lyrics-lab-item .lyrics-trash:hover{
      filter: brightness(1.03);
    }
    .lyrics-lab-item .lyrics-trash:active{
      transform: translateY(1px) scale(0.98);
    }
    .lyrics-lab-item .lyrics-trash:active::before{
      filter: brightness(1.3);
      box-shadow:
        0 0 14px rgba(0, 0, 0, 0.7) inset,
        0 0 16px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(147, 197, 253, 0.9);
    }
    .lyrics-lab-item .lyrics-trash svg{
      width:16px;
      height:16px;
      display:block;
      position: relative;
      z-index: 1;
    }
    .notepad-shell{
      position:relative;
      border:1px solid var(--border);
      border-radius:10px;
      overflow:hidden;
      background: #0f172a;
    }
    .notepad-header{
      display: grid;
      grid-template-columns: 1fr auto;
      grid-template-rows: auto auto;
      gap: 8px;
      align-items: start;
    }
    .notepad-title{
      grid-column: 1;
      grid-row: 1;
    }
    .notepad-actions{
      grid-column: 2;
      grid-row: 1;
      display: flex;
      gap: 6px;
      padding: 12px 12px 0 0;
      z-index: 10;
    }
    .notepad-saved-status{
      grid-column: 2;
      grid-row: 2;
      text-align: right;
      padding-right: 12px;
      padding-bottom: 4px;
    }
    .notepad-shell::before{
      content:"";
      position:absolute;
      left:44px;
      top:0;
      bottom:0;
      width:2px;
      background: rgba(239,68,68,.45);
      pointer-events:none;
    }
    .notepad-editor{
      min-height: 320px;
      padding:0 16px 16px 60px;
      line-height: 1.7;
      white-space: pre-wrap;
      word-break: break-word;
      background:
        repeating-linear-gradient(
          to bottom,
          transparent 0,
          transparent 26px,
          rgba(255,255,255,.10) 27px
        );
      color: var(--text);
      font-family: "Gloria Hallelujah", "Outfit", system-ui, sans-serif;
      outline: none;
    }
    .notepad-title{
      width:100%;
      border:0;
      background:
        repeating-linear-gradient(
          to bottom,
          transparent 0,
          transparent 26px,
          rgba(255,255,255,.10) 27px
        );
      color: var(--text);
      padding:16px 16px 34px 60px;
      font-weight:600;
      font-size: 1.3em;
      font-family: "Gloria Hallelujah", "Outfit", system-ui, sans-serif;
      outline:none;
    }
    .notepad-title::placeholder{
      color: rgba(255,255,255,.55);
      opacity: 1;
    }
    .notepad-editor:empty::before{
      content: attr(data-placeholder);
      color: rgba(255,255,255,.55);
    }

    /* === Mobile Lyric Book === */
    .lyric-book{ display:none; }
    .lyric-book-footer{ display:none; }
    /* Force footer hidden on widescreen or landscape even if JS set inline display:flex */
    @media (min-width: 769px), (orientation: landscape){
      .lyric-book-footer{ display:none !important; }
    }
    @media (max-width: 768px) and (orientation: portrait){
      .lyrics-lab-desktop{ display:none !important; }
      .panel-soft#lyricsLabPanel{
        border: none;
        background: transparent;
        border-radius: 0;
        padding: 0;
      }
      .lyric-book{
        display:flex;
        flex-direction:column;
        /* Full height minus: top nav + fixed footer + player + safe area */
        height: calc(100vh - var(--header-height) - var(--toolbar-height) - var(--player-height, 96px));
        height: calc(100dvh - var(--header-height) - var(--toolbar-height) - var(--player-height, 96px));
        overflow: hidden;
        /* Edge-to-edge: fill parent width without scrollbar-triggered overflow */
        width: 100%;
        position: relative;
        border-radius: 0;
      }
      /* Horizontal scroll-snap scroller */
      .lyric-book-scroller{
        flex:1;
        display:flex;
        overflow-x:auto;
        overflow-y:hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
      }
      .lyric-book-scroller::-webkit-scrollbar{ display:none; }

      /* Each page */
      .lyric-book-page{
        flex: 0 0 100%;
        width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        padding: 0 0 24px 0; /* bottom padding for fixed footer */
        box-sizing: border-box;
      }

      /* --- Cover page --- */
      .lyric-book-cover{
        flex:1;
        display:flex;
        flex-direction:column;
        align-items:center;
        padding: 32px 16px 24px;
        background: rgba(15, 23, 42, 0.4);
      }
      /* Make notepad pages same height as cover */
      .lyric-book-page .notepad-shell{
        flex: 1;
        display: flex;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.15) !important;
      }
      .lyric-book-page .notepad-header{
        flex-shrink: 0;
        background: rgba(15, 23, 42, 0.15);
      }
      .lyric-book-page .notepad-title{
        background:
          repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 26px,
            rgba(255,255,255,.10) 27px
          ),
          rgba(15, 23, 42, 0.15);
      }
      .lyric-book-page .notepad-editor{
        flex: 1;
        min-height: 0;
        background:
          repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 26px,
            rgba(255,255,255,.10) 27px
          ),
          rgba(15, 23, 42, 0.15);
      }
      .lyric-book-cover-icon{
        font-size: 3.2em;
        margin-bottom: 0;
        filter: drop-shadow(0 4px 12px rgba(124,58,237,.35));
      }
      .lyric-book-cover-title{
        font-family: "Gloria Hallelujah", "Outfit", system-ui, sans-serif;
        font-size: 1.8em;
        color: var(--text);
        margin-bottom: 4px;
        text-align: center;
      }
      .lyric-book-cover-count{
        font-size: .85em;
        color: rgba(255,255,255,.5);
        margin-bottom: 20px;
      }
      .lyric-book-toc{
        width: 100%;
        max-height: 48vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 16px;
      }
      
      /* Custom scrollbar for TOC */
      .lyric-book-toc::-webkit-scrollbar {
        width: 8px;
      }
      .lyric-book-toc::-webkit-scrollbar-thumb {
        background: rgba(139, 92, 246, 0.4);
        border-radius: 999px;
        border: 1px solid rgba(139, 92, 246, 0.2);
      }
      .lyric-book-toc::-webkit-scrollbar-thumb:hover {
        background: rgba(139, 92, 246, 0.6);
      }
      .lyric-book-toc::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 999px;
      }
      .lyric-book-toc {
        scrollbar-width: thin;
        scrollbar-color: rgba(139, 92, 246, 0.4) rgba(255, 255, 255, 0.05);
      }
      
      /* Custom scrollbar for lyric pages */
      .lyric-book-page::-webkit-scrollbar {
        width: 8px;
      }
      .lyric-book-page::-webkit-scrollbar-thumb {
        background: rgba(139, 92, 246, 0.4);
        border-radius: 999px;
        border: 1px solid rgba(139, 92, 246, 0.2);
      }
      .lyric-book-page::-webkit-scrollbar-thumb:hover {
        background: rgba(139, 92, 246, 0.6);
      }
      .lyric-book-page::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 999px;
      }
      .lyric-book-page {
        scrollbar-width: thin;
        scrollbar-color: rgba(139, 92, 246, 0.4) rgba(255, 255, 255, 0.05);
      }
      .lyric-book-toc-item{
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        border-radius: 10px;
        background: rgba(255,255,255,.04);
        border: 1px solid rgba(255,255,255,.08);
        cursor: pointer;
        transition: border-color .16s, background .16s, transform .12s;
      }
      .lyric-book-toc-item:active{
        transform: scale(.98);
        background: rgba(124,58,237,.15);
        border-color: rgba(124,58,237,.5);
      }
      .lyric-book-toc-title{
        font-family: "Gloria Hallelujah", "Outfit", system-ui, sans-serif;
        font-size: .95em;
        color: var(--text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 70%;
      }
      .lyric-book-toc-date{
        font-size: .7em;
        color: rgba(255,255,255,.35);
      }
      .lyric-book-toc-empty{
        text-align: center;
        color: rgba(255,255,255,.35);
        font-size: .85em;
        padding: 32px 0;
      }
      .lyric-book-new-btn{
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.72), transparent 45%),
    radial-gradient(circle at 50% 60%, #b89bff 0, #8b5cf6 65%);
  color: rgba(5, 5, 10, 0.55);
  border: 1px solid rgba(0,0,0,.35);
        border-radius: 12px;
        padding: 14px 28px;
        font-size: 1em;
        font-weight: 600;
        font-family: 'Vipnagorgialla', Arial, sans-serif;
        letter-spacing: 0.04em;
        cursor: pointer;
  box-shadow:
    0 0 12px rgba(0, 0, 0, 0.45) inset,
    0 0 8px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(139, 92, 246, 0.45);
  transition: transform .12s, filter .16s;
        margin-top: 8px;
      }
      .lyric-book-new-btn:active{
        transform: scale(.96);
      }

      /* --- Lyric page (notepad) --- */
      .lyric-book-notepad{
        flex: 1;
        position: relative;
        border: none;
        border-radius: 0;
        overflow: hidden;
        background: rgba(15, 23, 42, 0.5);
        display: flex;
        flex-direction: column;
        min-height: 0;
      }
      .lyric-book-notepad::before{
        content:"";
        position:absolute;
        left:36px;
        top:0;
        bottom:0;
        width:2px;
        background: rgba(239,68,68,.40);
        pointer-events:none;
        z-index: 1;
      }
      .lyric-book-notepad-title{
        width:100%;
        border:0;
        background: transparent;
        color: var(--text);
        padding: 14px 12px 10px 48px;
        font-weight:600;
        font-size: 1.15em;
        font-family: "Gloria Hallelujah", "Outfit", system-ui, sans-serif;
        outline:none;
      }
      .lyric-book-notepad-title::placeholder{
        color: rgba(255,255,255,.45);
      }
      .lyric-book-notepad-body{
        flex: 1;
        min-height: 200px;
        padding: 0 12px 16px 48px;
        line-height: 1.72;
        white-space: pre-wrap;
        word-break: break-word;
        background: transparent;
        color: var(--text);
        font-family: "Gloria Hallelujah", "Outfit", system-ui, sans-serif;
        font-size: 16px;
        outline: none;
        overflow-y: auto;
      }
      .lyric-book-notepad-body:empty::before{
        content: attr(data-placeholder);
        color: rgba(255,255,255,.40);
      }

      /* Per-page action bar — hidden, merged into footer */
      .lyric-book-page-bar{
        display: none !important;
      }
      .lyric-book-action-btn{
        background:
          radial-gradient(circle at 30% 25%, rgba(255,255,255,0.72), transparent 45%),
          radial-gradient(circle at 50% 60%, #b89bff 0, #8b5cf6 65%);
        border: 1px solid rgba(0,0,0,.35);
        color: rgba(5, 5, 10, 0.55);
        border-radius: 8px;
        padding: 6px 12px;
        font-size: .72em;
        font-weight: 600;
        font-family: 'Vipnagorgialla', Arial, sans-serif;
        letter-spacing: 0.04em;
        cursor: pointer;
        transition: filter .12s;
        white-space: nowrap;
        flex-shrink: 0;
        box-shadow:
          0 0 12px rgba(0, 0, 0, 0.45) inset,
          0 0 8px rgba(0, 0, 0, 0.45),
          0 0 16px rgba(139, 92, 246, 0.45);
        text-shadow: none;
      }
      .lyric-book-action-btn:hover{
        filter: brightness(1.06);
      }
      .lyric-book-action-btn:active{
        filter: brightness(1.1);
      }
      .lyric-book-action-btn.delete-btn{
        color: rgba(239,68,68,.9);
      }

      /* --- Footer navigation (fixed above audio player) --- */
      .lyric-book-footer{
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0; /* JS sets exact position via offsetHeight */
        z-index: var(--z-book-footer);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 6px 10px;
        padding-left: calc(10px + env(safe-area-inset-left, 0px));
        padding-right: calc(10px + env(safe-area-inset-right, 0px));
        border-top: 1px solid rgba(255,255,255,.12);
        background: rgba(15,23,42,.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
      }
      .lyric-book-footer-actions{
        display: flex;
        gap: 6px;
        align-items: center;
        margin-left: auto;
      }
      .lyric-book-nav-btn{
        position: relative;
        width: 44px;
        height: 44px;
        border: none;
        cursor: pointer;
        border-radius: 50%;
        background: transparent;
        outline: none;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
        z-index: 0;
        isolation: isolate;
        flex-shrink: 0;
        color: rgba(5, 5, 10, 0.8);
        font-size: 1.1em;
        display: flex;
        align-items: center;
        justify-content: center;
        text-shadow: 0 1px 2px rgba(255,255,255,.4);
      }
      .lyric-book-nav-btn::after{
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: linear-gradient(to bottom, #060607, #101015);
        box-shadow:
          inset 0 0 0 1px rgba(0, 0, 0, 0.9),
          inset 0 1px 0 rgba(255, 255, 255, 0.08),
          0 3px 6px rgba(0, 0, 0, 0.8);
        z-index: -2;
        pointer-events: none;
      }
      .lyric-book-nav-btn::before{
        content: "";
        position: absolute;
        inset: 2px;
        border-radius: 50%;
        background:
          radial-gradient(circle at 30% 25%, rgba(255,255,255,0.7), transparent 40%),
          radial-gradient(circle at 50% 60%, #6ee7b7 0, #14b8a6 62%);
        box-shadow:
          0 0 10px rgba(0, 0, 0, 0.7) inset,
          0 0 6px rgba(0, 0, 0, 0.6),
          0 0 12px rgba(110, 231, 183, 0.5);
        transition:
          transform 0.07s ease-out,
          box-shadow 0.07s ease-out,
          filter 0.07s ease-out;
        z-index: -1;
        pointer-events: none;
      }
      .lyric-book-nav-btn:active::before{
        transform: translateY(1px);
        filter: brightness(1.3);
        box-shadow:
          0 0 14px rgba(0, 0, 0, 0.7) inset,
          0 0 16px rgba(0, 0, 0, 0.7),
          0 0 20px rgba(110, 231, 183, 0.9);
      }
      .lyric-book-nav-btn svg{
        width: 20px;
        height: 20px;
        display: block;
        position: relative;
        z-index: 1;
        filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.4));
      }
      .lyric-book-nav-btn:disabled{
        opacity: .25;
        pointer-events: none;
      }
      .lyric-book-skip-btn{
        width: 44px;
        height: 44px;
        font-size: 1em;
      }
      .lyric-book-page-num{
        font-size: .75em;
        color: rgba(255,255,255,.45);
        min-width: 60px;
        text-align: center;
        font-variant-numeric: tabular-nums;
      }

      /* Page edge shadows removed - were extending beyond page bottom */
      .lyric-book-scroller{
        position: relative;
      }
    }
    .input[type="file"]::file-selector-button{
      background: var(--accent);
      color: #fff;
      border: 1px solid var(--accent);
      border-radius: 8px;
      padding: 6px 12px;
      margin-right: 10px;
      cursor: pointer;
    }
    .input[type="file"]::-webkit-file-upload-button{
      background: var(--accent);
      color: #fff;
      border: 1px solid var(--accent);
      border-radius: 8px;
      padding: 6px 12px;
      margin-right: 10px;
      cursor: pointer;
    }
    /* Make native select dropdown options readable on dark theme (fix #1) */
    select.select option{
      background: var(--panel);
      color: var(--text);
    }
    /* Some browsers render the open dropdown with OS colors; this helps where supported */
    select.select{
      color-scheme: dark;
    }
    /* Radios: make unchecked radios visible on dark background (fix #2) */
    input[type="radio"].radio{
      border: 2px solid rgba(255,255,255,.55) !important;
      background: transparent !important;
      box-shadow: none !important;
      opacity: 1 !important;
    }
    input[type="radio"].radio:checked{
      border-color: rgba(124,58,237,.95) !important;
      box-shadow: 0 0 0 4px rgba(124,58,237,.18) !important;
      background: transparent !important;
    }
    /* Sliders */
    input[type="range"]{
      width:100%;
      -webkit-appearance:none;
      appearance:none;
      background: transparent;
      accent-color: var(--accent);
      touch-action: pan-y;
    }
    input[type="range"]::-webkit-slider-runnable-track{ height:6px; border-radius:999px; background: rgba(255,255,255,.18); }
    input[type="range"]::-webkit-slider-thumb{
      -webkit-appearance:none; appearance:none;
      margin-top:-6px;
      width:18px; height:18px; border-radius:999px;
      background:#fff;
      border:2px solid rgba(124,58,237,.85);
      box-shadow:0 0 0 4px rgba(124,58,237,.18);
    }
    input[type="range"]::-moz-range-track{ height:6px; border-radius:999px; background: rgba(255,255,255,.18); }
    input[type="range"]::-moz-range-thumb{
      width:18px; height:18px; border-radius:999px;
      background:#fff; border:2px solid rgba(124,58,237,.85);
      box-shadow:0 0 0 4px rgba(124,58,237,.18);
    }
    /* JSON preview stays tree-shaped */
    .json-pre{ white-space: pre; overflow:auto; max-height: 560px; }
    /* Summary formatting */
    .summary-wrap{ display:flex; flex-direction:column; gap:12px; }
    .summary-section{
      border:2px solid var(--border);
      border-radius:12px;
      overflow:hidden;
      background: rgba(255,255,255,.02);
    }
    .summary-head{
      padding:10px 12px;
      border-bottom:2px solid var(--border);
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      background: rgba(255,255,255,.03);
    }
    .summary-grid{
      display:grid;
      grid-template-columns: 1fr;
      gap: 6px;
      padding:12px;
    }
    @media(min-width: 640px){
      .summary-grid{ grid-template-columns: 1fr 1fr; }
    }
    .kv{
      display:flex;
      flex-direction:column;
      gap:4px;
      border:1px solid var(--border);
      border-radius:10px;
      padding:10px;
      background: rgba(0,0,0,.08);
    }
    .kv .k{ font-size:12px; color: var(--dimmer); }
    .kv .v{ font-size:13px; color: var(--text); }
    .kv .v.mono{ font-size:12px; color: var(--dim); }
    .longbox{ grid-column: 1 / -1; }
    .longval{
      white-space: pre-wrap;
      word-break: break-word;
      border:2px solid var(--border);
      border-radius:10px;
      padding:10px;
      background: rgba(0,0,0,.12);
      color: var(--dim);
      font-size:12px;
      line-height: 1.35;
      min-height: 44px;
    }
    /* Hide redundant mode badge in main menu (fix #2) */
    #activeModeBadge{ display:none !important; }
    /* Subtle hover elevation for cards */
    .card{
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    }
    .card:hover{
      transform: translateY(-2px);
      box-shadow: 0 14px 40px rgba(0,0,0,.33);
      border-color: rgba(255,255,255,.30);
    }
    .card:focus-within{
      border-color: rgba(124,58,237,.55);
      box-shadow: 0 0 0 3px rgba(124,58,237,.18), 0 14px 40px rgba(0,0,0,.33);
    }
    /* Avoid hover transforms when modal is open */
    body.modal-open .card,
    body.modal-open .menu-tile,
    body.modal-open .preview-row{
      transform: none !important;
      transition: none !important;
    }
    body.modal-open .card:hover,
    body.modal-open .menu-tile:hover,
    body.modal-open .preview-row:hover{
      transform: none !important;
    }
    body.modal-open{
      overflow: hidden;
      position: fixed;
      width: 100%;
      touch-action: none;
    }
    /* Hide workflow step badge (fix #3) */
    #stepBadge{ display:none !important; }
    /* Main menu tiles */
    .menu-grid{
      display:grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }
    @media (max-width: 640px){
      .menu-grid{ grid-template-columns: 1fr; }
    }
    .menu-tile{
      width:100%;
      text-align:left;
      padding:18px;
      border-radius:16px;
      position: relative;
      overflow: hidden;
      border:2px solid rgba(255,255,255,.12);
      background:
        radial-gradient(220px 160px at 0% 0%, rgba(124,58,237,.18), transparent 55%),
        radial-gradient(160px 120px at 100% 100%, rgba(99,102,241,.16), transparent 60%),
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.10)),
        linear-gradient(135deg, rgba(19,24,38,.72), rgba(13,18,30,.72));
      color: var(--text);
      box-shadow: 0 12px 28px rgba(0,0,0,.28);
      transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, filter .16s ease;
      display:flex;
      gap:14px;
      align-items:flex-start;
      font-family: 'Vipnagorgialla', Arial, sans-serif;
      letter-spacing: 1px;
    }
    .menu-tile::before{
      content:"";
      position:absolute;
      top:-60%;
      left:-80%;
      width: 160%;
      height: 220%;
      background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.10), transparent 60%);
      transform: translateX(-60%) rotate(8deg);
      transition: transform .5s ease, opacity .5s ease;
      opacity: .0;
      pointer-events:none;
    }
    .menu-tile:hover{
      transform: translateY(-2px);
      border-color: rgba(124,58,237,.55);
      box-shadow: 0 16px 36px rgba(0,0,0,.32);
      filter: brightness(1.03);
    }
    .menu-tile:hover::before{
      opacity: .9;
      transform: translateX(25%) rotate(8deg);
    }
    /* Permanent subtle purple sheen on all tiles */
    .menu-tile::after{
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background-image: linear-gradient(
        110deg,
        transparent 25%,
        rgba(124,58,237,.12) 45%,
        rgba(255,255,255,.07) 50%,
        rgba(124,58,237,.12) 55%,
        transparent 75%
      );
      background-size: 200% 100%;
      background-position: 0% 0;
      pointer-events: none;
      z-index: 1;
      transition: opacity 0.6s ease-out;
    }
    /* Login shimmer: bright sweep then fade to permanent sheen */
    @keyframes menu-tile-shimmer{
      0%   { background-position: -200% 0; opacity: 1; }
      60%  { background-position: 200% 0;  opacity: 1; }
      100% { background-position: 200% 0;  opacity: 1; }
    }
    .menu-tile.shimmer::after{
      background-image: linear-gradient(
        110deg,
        transparent 30%,
        rgba(124,58,237,.25) 45%,
        rgba(255,255,255,.18) 50%,
        rgba(124,58,237,.25) 55%,
        transparent 70%
      );
      animation: menu-tile-shimmer 0.8s ease-out forwards;
    }
    .menu-icon{
      width:48px;
      height:48px;
      border-radius:12px;
      display:flex;
      align-items:center;
      justify-content:center;
      background:
        radial-gradient(60px 60px at 30% 30%, rgba(124,58,237,.35), transparent 60%),
        linear-gradient(180deg, rgba(124,58,237,.25), rgba(124,58,237,.08));
      border:1px solid rgba(124,58,237,.6);
      color:#f3e8ff;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 8px 20px rgba(124,58,237,.25);
      flex:0 0 auto;
    }
    .menu-icon svg{
      width:26px;
      height:26px;
      filter: drop-shadow(0 0 6px rgba(124,58,237,.55));
    }
    .menu-title{
      font-weight:900;
      font-size:17px;
  color: #6ee7b7;
  font-family: 'Vipnagorgialla', Arial, sans-serif;
      letter-spacing:.2px;
      text-shadow: 0 0 10px rgba(124,58,237,.35);
      margin-bottom:4px;
    }
    .menu-desc{
      color: var(--dimmer);
      font-size:12px;
      line-height: 1.35;
      font-family: 'Vipnagorgialla', Arial, sans-serif;
    }
    .menu-pill{
      margin-top:10px;
      display:inline-flex;
      align-items:center;
      gap:6px;
      padding:6px 10px;
      font-size:12px;
      font-weight:700;
      color:white;
      background:#7c3aed;
      border-radius:999px;
      box-shadow: 0 8px 18px rgba(124,58,237,.35);
    }
    /* Main menu pad experiment (easy switch via config => body.menu-pad-experiment) */
    body.menu-pad-experiment #mainMenuCard .card-body{
      padding: 10px 10px 12px;
    }
    body.menu-pad-experiment .menu-grid{
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      padding: 12px;
      width: min(100%, 500px);
      box-sizing: border-box;
      margin: 0 auto;
      border-radius: 16px;
      border: 1px solid rgba(124,58,237,.25);
      background: linear-gradient(180deg, rgba(18,22,34,.55), rgba(13,16,28,.55));
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 12px 30px rgba(0,0,0,.25);
    }
    body.menu-pad-experiment .menu-tile{
      position: relative;
      width: 100%;
      aspect-ratio: 1 / 0.92;
      min-height: 154px;
      border: none;
      border-radius: 12px;
      background: transparent;
      overflow: hidden;
      padding: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      transform: none;
      filter: none;
      box-shadow: none;
    }
    body.menu-pad-experiment .menu-tile::after{
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 12px;
      background: linear-gradient(to bottom, #060607, #101015);
      box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 12px rgba(0, 0, 0, 0.9);
      z-index: 0;
    }
    body.menu-pad-experiment .menu-tile::before{
      content: "";
      position: absolute;
      inset: 3px;
      border-radius: 9px;
      opacity: 1;
      transform: none;
      background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.62), transparent 40%),
        radial-gradient(circle at 50% 60%, #9d79f2 0, #6f4bd6 62%);
      box-shadow:
        0 0 22px rgba(0, 0, 0, 0.78) inset,
        0 0 12px rgba(0, 0, 0, 0.66),
        0 0 20px rgba(139, 92, 246, 0.5);
      transition:
        transform 0.07s ease-out,
        box-shadow 0.07s ease-out,
        filter 0.07s ease-out;
      z-index: 1;
    }
    body.menu-pad-experiment .menu-tile.shimmer::after{
      animation: none;
      background: linear-gradient(to bottom, #060607, #101015);
      opacity: 1;
    }
    body.menu-pad-experiment .menu-tile:hover,
    body.menu-pad-experiment .menu-tile:active{
      transform: none;
      filter: none;
      border-color: transparent;
      box-shadow: none;
    }
    body.menu-pad-experiment .menu-tile:active::before{
      transform: translateY(1px);
      filter: brightness(1.4);
      box-shadow:
        0 0 22px rgba(0, 0, 0, 0.7) inset,
        0 0 30px rgba(0, 0, 0, 0.7),
        0 0 34px rgba(184, 155, 255, 1);
    }
    body.menu-pad-experiment .menu-icon,
    body.menu-pad-experiment .menu-desc,
    body.menu-pad-experiment .menu-pill{
      display: none;
    }
    body.menu-pad-experiment .menu-tile > div:last-child{
      position: static;
      z-index: 2;
    }
    body.menu-pad-experiment .menu-title{
      margin: 0;
      position: absolute;
      right: 10px;
      bottom: 8px;
      text-align: right;
      color: rgba(5, 5, 10, 0.55);
      font-size: 16px;
      line-height: 1.05;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      mix-blend-mode: multiply;
      font-family: 'Vipnagorgialla', Arial, sans-serif;
      text-shadow: none;
    }
    body.menu-pad-experiment .menu-title,
    body.menu-pad-experiment #mySongsTitle{
      font-family: 'Vipnagorgialla', Arial, sans-serif;
      font-weight: 600;
    }
    body.menu-pad-experiment #mySongsTitle{
      font-size: 16px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    @media (max-width: 820px){
      body.menu-pad-experiment .menu-title{
        font-size: 14px;
      }
    }
    @media (max-width: 520px){
      body.menu-pad-experiment.menu-pad-mobile-stack .menu-grid{
        grid-template-columns: 1fr;
      }
      body.menu-pad-experiment.menu-pad-mobile-stack .menu-tile{
        aspect-ratio: auto;
        min-height: 114px;
      }
      body.menu-pad-experiment.menu-pad-mobile-stack .menu-title{
        font-size: 13px;
      }
    }
    /* Summary polish (fix #4) */
    .summary-shell{
      padding: 0;
      border: none !important;
      background: transparent !important;
    }
.summary-shell{
  border: 2px solid rgba(124,58,237,.45) !important;
  border-radius: 14px;
  padding: 12px;
  position: relative;
  overflow: visible;
}
.summary-shell.attention{
  animation: summaryGlowStrong 1.1s ease-in-out infinite !important;
  box-shadow: 0 0 0 2px rgba(124,58,237,.8), 0 0 32px rgba(124,58,237,.75), 0 0 72px rgba(99,102,241,.55) !important;
}
@keyframes summaryGlowStrong{
  0%{
    box-shadow: 0 0 0 2px rgba(124,58,237,.45), 0 0 20px rgba(124,58,237,.45), 0 0 40px rgba(99,102,241,.30);
    border-color: rgba(124,58,237,.55);
  }
  50%{
    box-shadow: 0 0 0 3px rgba(124,58,237,.95), 0 0 56px rgba(124,58,237,.95), 0 0 120px rgba(99,102,241,.80);
    border-color: rgba(124,58,237,1);
  }
  100%{
    box-shadow: 0 0 0 2px rgba(124,58,237,.45), 0 0 20px rgba(124,58,237,.45), 0 0 40px rgba(99,102,241,.30);
    border-color: rgba(124,58,237,.55);
  }
}
    .summary-h{
      font-weight: 800;
      letter-spacing: .2px;
    }
    .summary-wrap{
      gap: 14px;
    }
    .summary-section{
      border: none !important;
      background: transparent !important;
      border-radius: 0 !important;
      overflow: visible !important;
    }
.summary-section.compact{
  display:block;
}
.summary-section.compact .summary-head{
  padding: 0;
}
.summary-section.compact .summary-grid{
  margin: 0;
}
.summary-section.compact .summaryKnobRow{
  margin-top: 0;
  gap: 6px;
}
.summary-section.compact .summaryKnobItem{
  gap: 4px;
}
.summary-section.compact .knobSlotSm{
  width: 72px;
  height: 72px;
  margin-top: 2px;
}
    .summary-head{
      border: none !important;
      background: transparent !important;
  padding: 6px 0 12px 0;
  flex-wrap: wrap;
  row-gap: 6px;
    }
    .summary-title{
      font-weight: 900;
  color: #6ee7b7;
      font-size: 14px;
  line-height: 1.25;
  font-family: "Gloria Hallelujah", "Outfit", system-ui, sans-serif;
    }
.summary-section.summary-basics .kvLine .k,
.summary-section.summary-seasoning .kvLine .k{
  text-align: left;
  display: block;
}
.acc-item[data-step="5"] .summary-section.summary-marinade .longbox.summary-lyrics .k,
.acc-item[data-step="5"] .summary-section.summary-marinade .longbox.summary-lyrics .longval{
  text-align: left;
}
.acc-item[data-step="5"] .summary-section.summary-marinade .longbox.summary-prompt .k,
.acc-item[data-step="5"] .summary-section.summary-marinade .longbox.summary-prompt .longval{
  text-align: left;
}
    .summary-divider{
      height: 1px;
      background: rgba(255,255,255,.14);
      margin: 6px 0 10px 0;
    }
    /* --- Rotary knob (inline SVG, no deps) --- */
    .knobSlot { width: 88px; height: 88px; }
    .knobWrap { display:flex; flex-direction:column; align-items:center; gap:6px; }
    .knobSvg { width: 88px; height: 88px; display:block; cursor: pointer; touch-action: none; }
    .knobRing { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 10; }
    .knobArc { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; }
    .knobBody { fill: rgba(255,255,255,0.06); stroke: rgba(255,255,255,0.22); stroke-width: 1.5; }
    .knobTick { stroke: rgba(255,255,255,0.92); stroke-width: 3; stroke-linecap: round; }
    .knobValue{ text-align:center; }
    /* Knob layouts */
    .knobItem{ flex:1; min-width: 120px; display:flex; flex-direction:column; align-items:center; gap:6px; }
    @media (max-width: 520px){
      .knobItem{ min-width: 120px; }
      .knobSlot{ width: 80px; height: 80px; }
      .knobSvg{ width: 80px; height: 80px; }
    }
    /* Summary knobs */
    .summaryKnobRow{ display:flex; flex-wrap:wrap; gap:14px; justify-content:space-between; margin-top: 8px; }
    .summaryKnobItem{ flex:1; min-width:140px; display:flex; flex-direction:column; align-items:center; gap:6px; }
    .knobSlotSm{ width: 64px; height: 64px; }
    .knobSvgSm{ width: 64px; height: 64px; display:block; }
    /* Hide native range sliders (rotaries replace them) */
    input[type="range"] { display: none !important; }
    .knobItem{ flex: 1 1 0; min-width: 0; }
@media (min-width: 1024px){
  /* Controls: force exactly 5 knobs on one row */
  .knobItem{ min-width: 0; }
  .knobSlot{ width: 92px; height: 92px; }
  .knobSvg{ width: 92px; height: 92px; }
}
/* Compact summary rows (key:value on one line) */
.kvLine{
  display:flex;
  align-items:baseline;
  gap:8px;
  padding:6px 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.kvLine:last-child{ border-bottom: none; }
.kvSep{ color: rgba(255,255,255,.35); }
.kvLine .k{ color: rgba(255,255,255,.60); font-size: 12px; font-weight: 700; white-space: nowrap; }
.kvLine .v{ color: rgba(255,255,255,.88); font-size: 12px; font-weight: 600; overflow:hidden; text-overflow: ellipsis; }
/* Controls knobs: true horizontal 5-across on wide; single-row scroll on narrow */
.knobRow{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  justify-items: center;
}
.knobItem{ min-width: 0; width: 100%; }
.knobItem .label-text{ text-align:center; }
@media (max-width: 980px){
  .knobRow{
    grid-template-columns: repeat(5, 150px);
    overflow-x: auto;
    justify-items: center;
    padding-bottom: 8px;
  }
  .knobItem{ width: 150px; }
}
@media (max-width: 520px){
  .knobRow{ grid-template-columns: repeat(5, 140px); }
  .knobItem{ width: 140px; }
}
/* v27 Controls layout override: tighter spacing, later scroll */
.acc-item[data-step="4"] .knobRow{
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 4px !important;   /* 50% tighter spacing */
  width: 100% !important;
  overflow-x: auto !important;
  padding-bottom: 4px;
}
.acc-item[data-step="4"] .knobItem{
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
}
.acc-item[data-step="4"] .knobSlot,
.acc-item[data-step="4"] .knobSvg{
  width: 86px !important;
  height: 86px !important;
}
/* only start forcing fixed-width scroll when very narrow */
@media (max-width: 720px){
  .acc-item[data-step="4"] .knobRow{
    justify-content: center !important;
    gap: 2px !important;
  }
  .acc-item[data-step="4"] .knobItem{
    flex: 0 0 clamp(58px, 16vw, 78px) !important;
  }
  .acc-item[data-step="4"] .knobSlot,
  .acc-item[data-step="4"] .knobSvg{
    width: clamp(52px, 14vw, 68px) !important;
    height: clamp(52px, 14vw, 68px) !important;
  }
  .acc-item[data-step="4"] .knobItem .label-text{
    font-size: 12px;
  }
}
@media (max-width: 480px){
  .acc-item[data-step="4"] .knobRow{ gap: 1px !important; }
  .acc-item[data-step="4"] .knobItem{
    flex-basis: clamp(54px, 15vw, 70px) !important;
  }
  .acc-item[data-step="4"] .knobSlot,
  .acc-item[data-step="4"] .knobSvg{
    width: clamp(48px, 13vw, 62px) !important;
    height: clamp(48px, 13vw, 62px) !important;
  }
}
/* v29: Summary Controls knobs should behave like Step 4 (single-row fit; scroll only when very narrow) */
.summaryKnobRow{
  display:flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  overflow-x: hidden;
}
.summaryKnobItem{
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}
.knobSlotSm{ width: 72px; height: 72px; margin: 4px auto 0; }
@media (max-width: 720px){
  .summaryKnobRow{
    justify-content: center;
    gap: 0;
    overflow-x: hidden;
    padding-bottom: 2px;
  }
  .summaryKnobItem{ flex: 0 0 clamp(46px, 12vw, 58px); }
  .knobSlotSm{
    width: clamp(40px, 10.8vw, 52px);
    height: clamp(40px, 10.8vw, 52px);
    margin-top: 2px;
  }
  .summaryKnobItem .k{
    font-size: 11px;
  }
}
@media (max-width: 480px){
  .summaryKnobRow{ gap: 0; }
  .summaryKnobItem{ flex-basis: clamp(42px, 11vw, 52px); }
  .knobSlotSm{
    width: clamp(36px, 9.8vw, 46px);
    height: clamp(36px, 9.8vw, 46px);
  }
  .summaryKnobItem .k{ font-size: 10px; }
  .summaryKnobItem .mono{ font-size: 10px; }
}
/* v31 Summary-only: stronger distinct background for Summary & Submit */
/* v31 Summary-only: move divider above the Summary header */
.acc-item[data-step="5"] .summary-head{
  position: relative;
  padding-top: 10px;
}
.acc-item[data-step="5"] .summary-head + .summary-divider{ display:none; }
/* v31 Summary-only: aligned label/value columns */
.acc-item[data-step="5"] .kvLine{
  display:flex;
  align-items:baseline;
  gap: 10px;
}
.acc-item[data-step="5"] .kvLine .k{
  flex: 0 0 150px;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acc-item[data-step="5"] .kvLine .kvSep{
  flex: 0 0 10px;
  text-align: center;
}
.acc-item[data-step="5"] .kvLine .v{
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 720px){
  .acc-item[data-step="5"] .kvLine .k{ flex-basis: 125px; max-width: 125px; }
}
@media (max-width: 560px){
  .acc-item[data-step="5"] .kvLine{
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: baseline;
    column-gap: 8px;
  }
  .acc-item[data-step="5"] .kvLine .k{
    text-align: left;
    justify-self: start;
    max-width: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .acc-item[data-step="5"] .kvLine .kvSep{
    justify-self: center;
  }
  .acc-item[data-step="5"] .kvLine .v{
    text-align: left;
    justify-self: start;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
  }
}
/* v33 Summary typography boost */
.acc-item[data-step="5"] .summary-section-title{
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .3px;
  margin: 10px 0 6px;
  color: rgba(255,255,255,.92);
}
.acc-item[data-step="5"] .kvLine .v{
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255,255,255,.95);
}
.acc-item[data-step="5"] .kvLine .k{
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255,255,255,.70);
}
.acc-item[data-step="5"] .kvLine .kvSep{ flex-basis: 12px; }
.acc-item[data-step="5"] .summary-section-title + .summary-divider{
  display: none !important;
}
/* v36 Summary card â€“ persistent glow + green fill (test target area) */
.acc-item[data-step="5"] .summary-shell{
  background: linear-gradient(180deg, #3aa76d, #2f8f5c);
  border: 2px solid rgba(168,139,255,.45);
  border-radius: 16px;
  padding: 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 20px 55px rgba(0,0,0,.55),
    0 0 65px rgba(168,139,255,.55),
    0 0 140px rgba(168,139,255,.28);
}
/* Keep glow always on (no fade animation) */
.acc-item[data-step="5"][data-open="true"] .summary-shell{
  animation: none !important;
}
/* Ensure inner text contrast on green */
/* v37 REMOVE divider lines inside Summary section */
.acc-item[data-step="5"] hr,
.acc-item[data-step="5"] .summary-divider{
  display:none !important;
}
/* v38: keep any previous open animation disabled so glow stays constant */
.acc-item[data-step="5"][data-open="true"] .summary-shell{
  animation: none !important;
}
/* v39 Summary text color (restore readable light labels/values) */
.acc-item[data-step="5"] .summary-section-title{
  color: rgba(255,255,255,.92);
}
.acc-item[data-step="5"] .kvLine .k{
  color: rgba(255,255,255,.72);
}
.acc-item[data-step="5"] .kvLine .v{
  color: rgba(255,255,255,.95);
}
.acc-item[data-step="5"] .kvLine .kvSep{
  color: rgba(255,255,255,.70);
}
/* v39 Remove divider lines directly ABOVE section headers in Summary */
.acc-item[data-step="5"] .summary-shell hr,
.acc-item[data-step="5"] .summary-shell .summary-divider{
  display:none !important;
}
/* v39 Summary panel (correct layer): smoother premium gradient */
.acc-item[data-step="5"]{
  background:
    radial-gradient(900px 520px at 18% 8%, rgba(168,139,255,.22), rgba(0,0,0,0) 62%),
    radial-gradient(760px 420px at 86% 18%, rgba(109,240,255,.10), rgba(0,0,0,0) 58%),
    radial-gradient(1200px 700px at 50% 110%, rgba(0,0,0,.35), rgba(0,0,0,0) 55%),
    linear-gradient(180deg, rgba(30,36,64,.78), rgba(12,16,30,.94));
  border: none;
  box-shadow:
    0 14px 48px rgba(0,0,0,.45),
    0 0 52px rgba(168,139,255,.22),
    0 0 130px rgba(168,139,255,.10);
}
.acc-item[data-step="5"] .acc-content{
  padding: 16px 20px 20px 20px;
}
/* v39 Inner summary shell: glass card with cleaner edge */
.acc-item[data-step="5"] .summary-shell{
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border: none;
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 10px 30px rgba(0,0,0,.32);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
/* v40 Summary headings bigger (Basics/Style/Text/Controls) */
.acc-item[data-step="5"] .summary-section-title{
  font-size: 18px !important;
  font-weight: 900 !important;
  letter-spacing: .2px;
  margin-top: 14px;
  margin-bottom: 8px;
}
/* v40 Hard-remove ALL divider lines inside Summary step */
.acc-item[data-step="5"] hr{ display:none !important; }
.acc-item[data-step="5"] .summary-divider{ display:none !important; }
/* Kill any legacy header divider pseudo-elements */
.acc-item[data-step="5"] .summary-head::before,
.acc-item[data-step="5"] .summary-head::after,
.acc-item[data-step="5"] .summary-shell::before,
.acc-item[data-step="5"] .summary-shell::after{
  content:none !important;
  display:none !important;
}
/* If any section blocks have top borders used as dividers, remove them */
.acc-item[data-step="5"] .summary-shell *{
  border-top-color: transparent;
}
/* v41 â€“ Summary section headers 50% larger */
.acc-item[data-step="5"] .summary-section-title{
  font-size: 27px !important;
  font-weight: 900 !important;
  letter-spacing: .3px;
  margin-top: 18px;
  margin-bottom: 10px;
}
/* v42 â€“ FORCE Summary section headers to be unmistakably larger */
.acc-item[data-step="5"] .summary-section-title{
  font-size: 40px !important;
  line-height: 1.12 !important;
  font-weight: 950 !important;
  letter-spacing: .2px !important;
  margin-top: 22px !important;
  margin-bottom: 14px !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
/* v43 â€“ FIX: Summary headings are .summary-title (JS-generated), not .summary-section-title */
.acc-item[data-step="5"] .summary-title{
  font-size: 28px !important;
  line-height: 1.25 !important;
  font-weight: 950 !important;
  letter-spacing: .2px !important;
  color: #6ee7b7 !important;
  font-family: "Gloria Hallelujah", "Outfit", system-ui, sans-serif !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
/* v43 â€“ remove any leftover divider lines inside summary */
.acc-item[data-step="5"] .summary-divider{ display:none !important; }

/* v44 Accordion open/close easing */
.acc-item .acc-body{
  transition: max-height 600ms cubic-bezier(.2,.9,.2,1), opacity 420ms ease;
}
.acc-item[data-open="true"] .acc-body{
  opacity: 1;
}
.acc-item[data-open="false"] .acc-body{
  opacity: .85;
}

/* v44 Validation UI */
.is-invalid{
  border-color: rgba(255, 80, 80, .75) !important;
  box-shadow: 0 0 0 2px rgba(255, 80, 80, .18) !important;
}
.field-error{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 140, 140, .92);
}

/* v44 Sticky submit bar (mobile only) */
@media (max-width: 640px){
    .summary-actions{
      position: sticky;
      bottom: 10px;
      z-index: 10;
      padding: 10px;
      background: linear-gradient(180deg, rgba(0,0,0,0), rgba(10,12,20,.85));
      border-radius: 14px;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }
.summary-actions{
  pointer-events: auto !important;
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 auto;
  box-sizing: border-box;
}
 .summary-actions .btn{
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  margin: 0 auto !important;
 }
/* Submit status panel */
#submitResult{
  border:1px solid rgba(255,255,255,.12);
}
#submitResult.error{
  border:2px solid rgba(255, 80, 80, .60);
  background: linear-gradient(180deg, rgba(32, 10, 14, .96), rgba(16, 8, 10, .92));
  box-shadow: 0 16px 60px rgba(0,0,0,.35), 0 0 40px rgba(255,80,80,.15);
}
#submitResult.success{
  border:2px solid rgba(34, 197, 94, .55);
  background: linear-gradient(180deg, rgba(10, 28, 18, .96), rgba(8, 18, 12, .92));
  box-shadow: 0 16px 60px rgba(0,0,0,.35), 0 0 40px rgba(34,197,94,.18);
}
/* Review & Submit button: match menu pad tiles (all breakpoints) */
#btnSubmitMock,
#btnSubmitMock.btn{
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.72), transparent 45%),
    radial-gradient(circle at 50% 60%, #b89bff 0, #8b5cf6 65%) !important;
  color: rgba(5, 5, 10, 0.55) !important;
  border: 1px solid rgba(0,0,0,.35) !important;
  box-shadow:
    0 0 12px rgba(0, 0, 0, 0.45) inset,
    0 0 8px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(139, 92, 246, 0.45);
  font-family: 'Vipnagorgialla', Arial, sans-serif !important;
  letter-spacing: 0.04em;
  text-shadow: none !important;
}
#submitResultTimer{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
}
  .acc-item .acc-head{
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .chip{
    padding: 10px 12px;
  }
}

/* Review & Submit button: match menu pad tiles (all breakpoints) */
#btnSubmitMock,
#btnSubmitMock.btn{
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.72), transparent 45%),
    radial-gradient(circle at 50% 60%, #b89bff 0, #8b5cf6 65%) !important;
  color: rgba(5, 5, 10, 0.55) !important;
  border: 1px solid rgba(0,0,0,.35) !important;
  box-shadow:
    0 0 12px rgba(0, 0, 0, 0.45) inset,
    0 0 8px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(139, 92, 246, 0.45);
  font-family: 'Vipnagorgialla', Arial, sans-serif !important;
  letter-spacing: 0.04em;
  text-shadow: none !important;
}
#btnSubmitMock:hover{
  filter: brightness(1.06) !important;
}
#btnSubmitMock:disabled{
  opacity: .5 !important;
  background: rgba(120,120,120,.25) !important;
  border-color: rgba(0,0,0,.25) !important;
  color: rgba(0,0,0,.35) !important;
  cursor: not-allowed !important;
}

/* Lyrics Lab buttons: match menu pad tiles (all breakpoints) */
#lyricsLabNew,
#lyricsLabUseNow,
#lyricsLabSave{
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.72), transparent 45%),
    radial-gradient(circle at 50% 60%, #b89bff 0, #8b5cf6 65%) !important;
  color: rgba(5, 5, 10, 0.55) !important;
  border: 1px solid rgba(0,0,0,.35) !important;
  box-shadow:
    0 0 12px rgba(0, 0, 0, 0.45) inset,
    0 0 8px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(139, 92, 246, 0.45);
  font-family: 'Vipnagorgialla', Arial, sans-serif !important;
  letter-spacing: 0.04em;
  text-shadow: none !important;
}
#lyricsLabNew:hover,
#lyricsLabUseNow:hover,
#lyricsLabSave:hover{
  filter: brightness(1.06) !important;
}

/* v44 Controls knobs: mobile swipe row + snap; desktop stays one row */
.controls-row{
  display:flex;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-color: #7c3aed rgba(255,255,255,.14);
}
.controls-row::-webkit-scrollbar{ height: 8px; }
.controls-row::-webkit-scrollbar-thumb{
  background: #7c3aed;
  border-radius: 999px;
}
.controls-row::-webkit-scrollbar-track{
  background: rgba(255,255,255,.14);
  border-radius: 999px;
}
.controls-row > .knob-wrap{
  scroll-snap-align: start;
  flex: 0 0 auto;
  min-width: 140px;
}
@media (min-width: 1024px){
  .controls-row{
    overflow-x: hidden;
    gap: 10px;
    justify-content: space-between;
  }
  .controls-row > .knob-wrap{
    min-width: 0;
    flex: 1 1 0;
  }
}

/* Negative tags chips (from old format) */
.chipsWrap{
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius:10px;
  padding:8px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  min-height:20px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--border);
  border-radius:999px;
  padding:4px 8px;
  background: rgba(255,255,255,.03);
  font-size:12px;
  color: var(--text);
}
.chip button{
  padding:0 6px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  cursor:pointer;
  font-size:12px;
  line-height:1.1;
}
.chip button:hover{ border-color: rgba(255,255,255,.35); }
#negativeTagsInput{ width:100%; }

/* Lyric mode chips */
.modeWrap{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  width: 100%;
}
.modeChip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  user-select:none;
}
.modeChip input{ width:auto; margin:0; }
.modeChip strong{ font-size: 12px; color: var(--dim); }
.modeChip span{ font-size: 12px; color: var(--dimmer); }
.modeChip.active{
  border-color: rgba(124,58,237,.55);
  background: rgba(124,58,237,.12);
}

/* Counters */
.counterLine{
  display:flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-top: 6px;
}
.counterLine .tag{
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  background: rgba(255,255,255,0.02);
}
.counterLine .tag.ok{ border-color: rgba(34,197,94,0.55); color: #22c55e; }
.counterLine .tag.warn{ border-color: rgba(245,158,11,0.55); color: #f59e0b; }
.counterLine .tag.err{ border-color: rgba(239,68,68,0.55); color: #ef4444; }

/* My Songs table layout (no Tailwind dependency) */
.songs-table{
  width:100%;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  overflow:hidden;
  background: rgba(255,255,255,.03);
}
.panel-soft#mySongsPanel{
  border:none;
  background:transparent;
  padding:0;
}
.songs-table-head,
.songs-table-row{
  display:grid;
  grid-template-columns: 1.9fr 1.3fr 1fr 0.7fr;
  gap:12px;
  align-items:center;
}
.songs-table-head{
  font-size:12px;
  color: rgba(235,240,255,.9);
  padding:10px 12px;
  background: rgba(255,255,255,.04);
  border-bottom:1px solid rgba(255,255,255,.08);
}
/* Table header cells: experimental menu-pad style (dark frame + luminous gel, hover/click) */
.songs-table-head .songs-sort-btn,
.songs-table-head .songs-head-btn{
  position: relative;
  overflow: hidden;
  border: none !important;
  background: transparent !important;
  color: rgba(24,28,36,0.9) !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-family: 'Vipnagorgialla', Arial, sans-serif !important;
  letter-spacing: 0.06em;
  text-shadow: none;
  z-index: 0;
}
/* No dark frame - gel only (smooth like main menu) */
.songs-table-head .songs-sort-btn::before,
.songs-table-head .songs-head-btn::before{
  display: none;
}
/* Gel (lighter center, purple glow) */
.songs-table-head .songs-sort-btn::after,
.songs-table-head .songs-head-btn::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.72), transparent 45%),
    radial-gradient(circle at 50% 60%, #b89bff 0, #8b5cf6 65%);
  box-shadow:
    0 0 12px rgba(0, 0, 0, 0.45) inset,
    0 0 8px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(139, 92, 246, 0.45);
  transition: transform 0.07s ease-out, box-shadow 0.07s ease-out, filter 0.07s ease-out;
  z-index: 1;
  pointer-events: none;
}
.songs-table-head .songs-sort-btn:not(:disabled):hover::after,
.songs-table-head .songs-head-btn:not(:disabled):hover::after{
  filter: brightness(1.08);
  box-shadow:
    0 0 22px rgba(0, 0, 0, 0.78) inset,
    0 0 12px rgba(0, 0, 0, 0.66),
    0 0 26px rgba(139, 92, 246, 0.6);
}
.songs-table-head .songs-sort-btn:not(:disabled):active::after,
.songs-table-head .songs-head-btn:not(:disabled):active::after{
  transform: translateY(1px);
  filter: brightness(1.4);
  box-shadow:
    0 0 22px rgba(0, 0, 0, 0.7) inset,
    0 0 30px rgba(0, 0, 0, 0.7),
    0 0 34px rgba(184, 155, 255, 1);
}
.songs-table-head .songs-head-label{
  position: relative;
  z-index: 2;
}
.songs-table-row{
  padding:12px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.songs-table-row:last-child{
  border-bottom:none;
}
/* Preview-style variant with gradient background */
.songs-table-row.preview-style{
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  padding:10px;
  position: relative;
  overflow: visible;
  background:
    radial-gradient(420px 260px at 10% 0%, rgba(124,58,237,.38), transparent 58%),
    radial-gradient(360px 240px at 100% 100%, rgba(99,102,241,.32), transparent 62%),
    linear-gradient(135deg, rgba(19,24,38,.72), rgba(13,18,30,.72)),
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.22));
  transition: border-color .16s ease, filter .16s ease;
  border-bottom:1px solid rgba(255,255,255,.10);
  grid-template-columns: 2fr 1.5fr 0.6fr;
  z-index: 1;
}
/* Elevate card when menu is open */
.songs-table-row.preview-style:has(.songs-actions-menu:not(.hidden)){
  z-index: 100;
}
.songs-table-row.preview-style::before{
  display: none;
}
.songs-table-row.preview-style:hover{
  border-color: rgba(124,58,237,.45);
  filter: brightness(1.03);
}
#latestPreviewCard .songs-table-row.preview-style{
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: start;
}
#latestPreviewCard .songs-table-row.preview-style .songs-cell[data-label="Song"]{
  grid-column: 1;
  grid-row: 1;
}
#latestPreviewCard .songs-table-row.preview-style .songs-cell.songs-downloads{
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  justify-content: flex-end;
}
#latestPreviewCard .songs-table-row.preview-style .songs-cell[data-label="Artist"]{
  grid-column: 1 / -1;
  grid-row: 2;
}
#latestPreviewCard .songs-table-row.preview-style .songs-actions{
  margin-left: auto;
}
.songs-table-row.songs-row-playing{
  background: rgba(124,58,237,.14);
  border-left: 3px solid #7c3aed;
}
.songs-table-row.songs-row-playing .primary{
  color: #c4b5fd;
}
.songs-table-row.songs-row-playing .secondary{
  color: rgba(196,181,253,.8);
}
.songs-cell{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
}
.songs-cell .primary{
  color:#f8fafc;
  font-size:18px;
  font-weight:600;
  font-family: 'Vipnagorgialla', Arial, sans-serif;
}
.songs-cell .secondary{
  color:rgba(226,232,240,.92);
  font-size:12px;
}
.songs-medal{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right:6px;
  font-size:14px;
}
.songs-artist-actions{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.songs-create-persona{
  padding:4px 8px !important;
  font-size:11px !important;
  line-height:1.1;
  background:#7c3aed !important;
  color:#fff !important;
  border:1px solid #7c3aed !important;
  box-shadow:0 6px 14px rgba(124,58,237,.25);
  min-height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.songs-avatar{
  width:28px;
  height:28px;
  border-radius:8px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  background-size: cover;
  background-position:center;
  flex: 0 0 auto;
}
.songs-cover{
  width:120px;
  height:120px;
  border-radius:16px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  background-size: cover;
  background-position:center;
  flex: 0 0 auto;
  display: block;
}
.songs-cover-wrap{
  position: relative;
  width:120px;
  height:120px;
  flex: 0 0 auto;
}
.songs-play-overlay{
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(124,58,237,.55);
  background: rgba(10,12,20,.55);
  color: #e9d5ff;
  font-size: 18px;
  opacity: 0.85;
  transition: opacity .15s ease, transform .15s ease;
  cursor: pointer;
}
.songs-cover-wrap:hover .songs-play-overlay{
  opacity: 1;
  transform: scale(1.02);
}
.songs-downloads{
  display:flex;
  flex-direction:row;
  flex-wrap: wrap;
  gap:6px;
}
/* Share button: hidden by default (desktop), shown on mobile only */
.songs-share-btn{
  display:none;
  position: relative;
  background: transparent;
  color: rgba(5, 5, 10, 0.6);
  border: none;
  padding:6px;
  border-radius:8px;
  width:32px;
  height:32px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.songs-share-btn:hover{
  filter: brightness(1.03);
}
.songs-share-btn:disabled,
.songs-delete-btn:disabled,
.songs-actions-btn:disabled,
.songs-action-item:disabled{
  opacity: .5 !important;
  cursor: not-allowed !important;
  pointer-events: none;
}
.songs-share-btn svg,
.songs-delete-btn svg{
  width:16px;
  height:16px;
  display:block;
  position: relative;
  z-index: 1;
}
.songs-delete-btn{
  display:none;
  position: relative;
  background: transparent;
  color: rgba(5, 5, 10, 0.6);
  border: none;
  padding:6px;
  border-radius:8px;
  width:32px;
  height:32px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.songs-delete-btn:hover{
  filter: brightness(1.03);
}
.songs-actions{
  position: relative;
  display: inline-flex;
  align-items: center;
}
.songs-actions-btn{
  position: relative;
  background: transparent !important;
  color: rgba(5, 5, 10, 0.6) !important;
  border: none !important;
  padding:6px !important;
  border-radius:8px !important;
  font-weight:600;
  width:32px;
  height:32px;
  min-height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: transform 120ms ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.songs-actions-btn:hover{
  filter: brightness(1.03);
}
.songs-share-btn::after,
.songs-delete-btn::after,
.songs-actions-btn::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(to bottom, #060607, #101015);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 5px rgba(0, 0, 0, 0.45);
  z-index: -2;
  pointer-events: none;
}
.songs-share-btn::before,
.songs-delete-btn::before,
.songs-actions-btn::before{
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.62), transparent 40%),
    radial-gradient(circle at 50% 60%, #93c5fd 0, #3b82f6 62%);
  box-shadow:
    0 0 10px rgba(0, 0, 0, 0.6) inset,
    0 0 8px rgba(0, 0, 0, 0.4),
    0 0 14px rgba(59, 130, 246, 0.45);
  transition:
    transform 0.07s ease-out,
    box-shadow 0.07s ease-out,
    filter 0.07s ease-out;
  z-index: -1;
  pointer-events: none;
}
.songs-share-btn:active,
.songs-delete-btn:active,
.songs-actions-btn:active{
  transform: translateY(1px) scale(0.98);
}
.songs-share-btn:active::before,
.songs-delete-btn:active::before,
.songs-actions-btn:active::before{
  filter: brightness(1.3);
  box-shadow:
    0 0 14px rgba(0, 0, 0, 0.7) inset,
    0 0 16px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(147, 197, 253, 0.9);
}
.songs-actions-btn svg{
  width:16px;
  height:16px;
  display:block;
  flex:0 0 auto;
  position: relative;
  z-index: 1;
}
.songs-actions-menu{
  position: absolute;
  right: 0;
  min-width: 180px;
  background: rgba(18,22,34,.98);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  padding: 6px;
  z-index: 50;
  transition: opacity 0.15s ease;
}

/* Position menu below trigger (default) */
.songs-actions-menu.menu-below{
  top: calc(100% + 6px);
  bottom: auto;
}

/* Position menu above trigger */
.songs-actions-menu.menu-above{
  bottom: calc(100% + 6px);
  top: auto;
}

.songs-actions-menu.hidden{ display:none; }
.songs-action-item{
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: #e9d5ff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
}
.songs-action-item:hover{
  background: rgba(124,58,237,.18);
}
.songs-play-link{
  cursor: pointer;
}
.songs-downloads .btn{
  background:#7c3aed !important;
  color:#fff !important;
  border:1px solid #7c3aed !important;
  font-weight:600 !important;
  padding:6px 12px !important;
}
.songs-downloads .btn:hover{
  background:#6d28d9 !important;
  border-color:#6d28d9 !important;
}
.songs-pagination{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  margin-top:10px;
}
.songs-pagination .btn{
  padding:6px 12px;
  background:#7c3aed !important;
  color:#fff !important;
  border:1px solid #7c3aed !important;
  cursor: pointer;
  pointer-events: auto;
}
.songs-pagination .btn:hover{
  background:#6d28d9 !important;
  border-color:#6d28d9 !important;
}
.songs-pagination .btn:disabled{
  background:#4b5563 !important;
  border-color:#4b5563 !important;
  color: rgba(255,255,255,.65) !important;
}
/* Completion popup */
.celebrate-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-celebrate-overlay);
  pointer-events: auto;
}
.celebrate-card{
  width: min(520px, calc(100% - 32px));
  border:2px solid rgba(124,58,237,.45);
  background: linear-gradient(180deg, rgba(28,20,54,.95), rgba(14,10,26,.95));
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 0 40px rgba(124,58,237,.25);
}
.celebrate-card .btn-primary{
  background: #7c3aed !important;
  border-color: #7c3aed !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.celebrate-card .btn-ghost{
  color: #e9d5ff !important;
  border: 1px solid rgba(124,58,237,.55) !important;
  background: rgba(124,58,237,.12) !important;
}
/* Latest preview card (Create Bangers) */
.preview-variant{ display:none; }
body.preview-v1 .preview-v1{ display:block; }
body.preview-v2 .preview-v2{ display:block; }
body.preview-v3 .preview-v3{ display:block; }
.preview-list{ display:flex; flex-direction:column; gap:10px; }
.preview-row{
  display:grid;
  grid-template-columns: minmax(300px, auto) 1fr;
  gap:12px;
  align-items:stretch;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  padding:10px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(420px 260px at 10% 0%, rgba(124,58,237,.38), transparent 58%),
    radial-gradient(360px 240px at 100% 100%, rgba(99,102,241,.32), transparent 62%),
    linear-gradient(135deg, rgba(19,24,38,1), rgba(13,18,30,1)),
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.22));
  transition: transform .16s ease, border-color .16s ease, filter .16s ease;
}
.preview-row::before{
  content:"";
  position:absolute;
  top:-60%;
  left:-80%;
  width: 160%;
  height: 220%;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.10), transparent 60%);
  transform: translateX(-60%) rotate(8deg);
  transition: transform .5s ease, opacity .5s ease;
  opacity: 0;
  pointer-events:none;
}
.preview-row:hover{
  transform: translateY(-2px);
  border-color: rgba(124,58,237,.45);
  filter: brightness(1.03);
}
.preview-row:hover::before{
  opacity: .9;
  transform: translateX(25%) rotate(8deg);
}
.preview-left{
  display:flex;
  gap:10px;
  align-items:flex-start;
  min-width:0;
}
.preview-right{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:stretch;
  min-width: 0;
  justify-content: space-between;
}
.preview-cover{
  width:120px;
  height:120px;
  margin:0;
  border-radius:16px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  flex:0 0 auto;
}
.preview-cover-wrap{
  position: relative;
  width:120px;
  height:120px;
  flex: 0 0 auto;
}
.preview-play-btn{
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(124,58,237,.55);
  background: rgba(10,12,20,.55);
  color: #e9d5ff;
  font-size: 18px;
  opacity: 0.85;
  transition: opacity .15s ease, transform .15s ease;
}
.preview-cover-wrap:hover .preview-play-btn{
  opacity: 1;
  transform: scale(1.02);
}
.preview-meta{ flex:1 1 auto; min-width:0; }
.preview-meta .title{ 
  font-weight:700; 
  font-size:13px; 
  color: rgba(255,255,255,.95); 
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.preview-meta .sub{ font-size:11px; color: var(--dimmer); }
.preview-audio-shell{
  width:100%;
  max-width: none;
  padding:6px 10px;
  border-radius:12px;
  background:
    radial-gradient(120px 80px at 20% 50%, rgba(124,58,237,.25), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.12));
  border:1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  position: relative;
  overflow: hidden;
}
.preview-audio-shell::after{
  content:"";
  position:absolute;
  inset: 8px;
  border-radius:10px;
  background:
    linear-gradient(90deg,
      rgba(124,58,237,.12) 0%,
      rgba(124,58,237,.45) 20%,
      rgba(124,58,237,.12) 40%,
      rgba(124,58,237,.35) 60%,
      rgba(124,58,237,.12) 80%,
      rgba(124,58,237,.22) 100%);
  opacity: .22;
  pointer-events:none;
  mix-blend-mode: screen;
  filter: blur(0.4px);
}
.preview-audio{
  width:100%;
  max-width: none;
  filter: invert(1) hue-rotate(180deg) brightness(0.78) contrast(1.2) saturate(0.9);
}
.preview-actions-row{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end;
  margin-top:auto;
}
.preview-actions-row .btn{
  opacity: 1 !important;
  visibility: visible !important;
  background:#7c3aed !important;
  border-color:#7c3aed !important;
  color:#fff !important;
  padding-left: 12px;
  padding-right: 12px;
  font-weight: 700;
  border-radius: 8px;
  transition: filter .16s ease, transform .16s ease;
}
.preview-actions-row .btn-outline,
.preview-actions-row .btn-ghost{
  background:#7c3aed !important;
  border-color:#7c3aed !important;
  color:#fff !important;
}
.preview-actions-row .btn:hover{
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.preview-actions-row .btn-primary:hover{
  background:#7c3aed !important;
  border-color:#7c3aed !important;
  color:#fff !important;
}
.preview-audio-native{
  width: 100%;
  margin-top: 6px;
  display: block;
  filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(1.1) saturate(1.2);
}
.preview-actions-row .btn-outline:hover,
.preview-actions-row .btn-ghost:hover{
  background: rgba(124,58,237,.18) !important;
}
.preview-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.preview-actions .btn{
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.preview-tabs{
  display:flex;
  gap:8px;
  margin-bottom:10px;
}
.preview-tab{
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  border:1px solid rgba(124,58,237,.55);
  color:#e9d5ff;
  background: rgba(124,58,237,.12);
  cursor:pointer;
}
.preview-tab.active{
  background:#7c3aed;
  color:#fff;
}
.preview-player{
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  padding:12px;
  background: rgba(255,255,255,.04);
}
.preview-now{ font-size:13px; color: rgba(255,255,255,.92); margin-bottom:8px; }
.preview-select{ width:100%; }
.preview-footnote{
  margin-top:10px;
  font-size:11px;
  color: var(--dimmer);
}
/* Submit overlay */
.submit-overlay{
  position: fixed;
  inset: 0;
  background: rgba(4,7,14,.55);
  backdrop-filter: blur(2px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: var(--z-submit-overlay);
  pointer-events: auto;
}
.submit-overlay-card{
  border:1px solid rgba(124,58,237,.45);
  background: linear-gradient(180deg, rgba(24,18,42,.95), rgba(12,10,22,.95));
  border-radius:20px;
  padding:28px 36px;
  box-shadow: 0 20px 55px rgba(0,0,0,.5), 0 0 40px rgba(124,58,237,.2);
  text-align:center;
  min-width: 520px;
}
.overlay-vinyl{
  --vinyl-size: 220px;
  width: var(--vinyl-size);
  height: var(--vinyl-size);
  aspect-ratio: 1 / 1;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.06) 0 10%, rgba(0,0,0,0) 10% 12%),
    repeating-radial-gradient(
      circle,
      rgba(255,255,255,0.10) 0 1px,
      rgba(0,0,0,0) 2px 5px
    ),
    radial-gradient(circle at center, #0b0b0b 0 100%);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.28),
    inset 0 0 0 2px rgba(255,255,255,0.08);
}
.overlay-vinyl.sm{
  --vinyl-size: 180px;
  margin: 0 auto 12px auto;
}
.overlay-vinyl .vinyl-rotor{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: vinyl-spin 1.8s linear infinite;
  display: grid;
  place-items: center;
}
.overlay-vinyl .vinyl-center{
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background-color: #7c3aed;
  background-image: url("../assets/slickmitzlogo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 55%;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.2);
}
.submit-overlay-title{
  font-weight:800;
  font-size:30px;
  color:#fff;
}
.submit-overlay-line{
  margin-top:10px;
  font-size:24px;
  color: rgba(255,255,255,.75);
}
/* Persona form */
.persona-form-card{
  margin-top: 12px;
  border:1px solid rgba(124,58,237,.35);
  background:
    radial-gradient(900px 520px at 18% 8%, rgba(168,139,255,.22), rgba(0,0,0,0) 62%),
    radial-gradient(760px 420px at 86% 18%, rgba(109,240,255,.10), rgba(0,0,0,0) 58%),
    radial-gradient(1200px 700px at 50% 110%, rgba(0,0,0,.35), rgba(0,0,0,0) 55%),
    linear-gradient(180deg, rgba(30,36,64,.78), rgba(12,16,30,.94));
  border-radius:16px;
  padding:16px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 14px 48px rgba(0,0,0,.45),
    0 0 52px rgba(168,139,255,.22),
    0 0 130px rgba(168,139,255,.10);
}
.persona-form-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.persona-form-title{
  font-weight:800;
  font-size:20px;
  color:#fff;
}
.persona-form-sub{
  margin-top:4px;
  font-size:12px;
  color: var(--dimmer);
}
.persona-form-body{
  margin-top:14px;
}
.persona-form-fields{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.persona-form-avatar-row{
  display:flex;
  align-items:center;
  gap:10px;
}
.persona-form-avatar-wrap{
  width:72px;
  height:72px;
  border-radius:14px;
}
.persona-form-avatar-preview{
  width:56px;
  height:56px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
  background-size: cover;
  background-position: center;
}
.persona-form-avatar-btn{
  min-height: 36px;
}
.persona-form-meta{
  font-size:11px;
  color: var(--dimmer);
}
.persona-form-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:12px;
}
.persona-form-action-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 140px;
  min-height: 40px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  font-family: 'Vipnagorgialla', Arial, sans-serif;
  transition: filter .16s ease, transform .16s ease;
}
.persona-form-action-btn:hover{
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.persona-form-action-btn-secondary{
  background: linear-gradient(180deg, rgba(233,213,255,.92), rgba(196,181,253,.88));
  border-color: rgba(196,181,253,.95);
  color: #1f1b2b;
  box-shadow: 0 8px 18px rgba(124,58,237,.20);
  border-style: solid;
  border-width: 1px;
}
.persona-form-action-btn-primary{
  background: linear-gradient(180deg, #c4b5fd, #8b5cf6);
  border-color: #a78bfa;
  color:#2f2a3a;
  box-shadow: 0 10px 24px rgba(124,58,237,.35);
  border-style: solid;
  border-width: 1px;
}
.persona-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.persona-card{
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:14px 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  display:flex;
  flex-direction:column;
  gap:8px;
  cursor: pointer;
}
.persona-card:hover{
  border-color: rgba(124,58,237,.45);
}
.persona-card-top{
  display:flex;
  gap:12px;
  align-items:center;
}
.persona-thumb{
  width:56px;
  height:56px;
  border-radius:12px;
  object-fit:cover;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
#personaList .persona-thumb{
  background: transparent;
  border: none;
  box-shadow: none;
}
@media (max-width: 900px){
  .persona-thumb{
    width: 128px;
    height: 128px;
    border-radius: 16px;
  }
}
.persona-card-title{
  font-family: 'Vipnagorgialla', Arial, sans-serif;
  font-weight:700;
  font-size: 22px;
  line-height: 1.1;
  color: rgba(255,255,255,.98);
}
.persona-card-desc{
  color: rgba(210,220,255,.85);
  font-size:14px;
  line-height:1.4;
}
.persona-card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color: rgba(170,180,210,.9);
  font-size:12px;
}
.persona-pill{
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  padding:4px 10px;
  background: rgba(255,255,255,.05);
}
.persona-detail-card{
  border:none;
  border-radius:14px;
  padding:18px;
  background:
    linear-gradient(135deg, rgba(22,30,52,.5), rgba(10,12,24,.5)),
    radial-gradient(420px 260px at 12% -10%, rgba(124,58,237,.35), transparent 60%),
    radial-gradient(360px 240px at 110% 110%, rgba(99,102,241,.28), transparent 65%),
    radial-gradient(220px 160px at 50% 10%, rgba(255,255,255,.06), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.12));
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  display:flex;
  flex-direction:column;
  gap:14px;
  position: relative;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
#personaDetailView .persona-detail-card:has(#personaTrackList .songs-actions-menu:not(.hidden)){
  overflow: visible;
}
.persona-detail-card::before{
  content:"";
  position:absolute;
  top:-60%;
  left:-80%;
  width: 160%;
  height: 220%;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.12), transparent 60%);
  transform: translateX(-60%) rotate(8deg);
  transition: transform .5s ease, opacity .5s ease;
  opacity: 0;
  pointer-events:none;
}
.persona-detail-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(0,0,0,.4);
  filter: brightness(1.03);
}
.persona-detail-card:hover::before{
  opacity: .9;
  transform: translateX(25%) rotate(8deg);
}
.persona-detail-actions .persona-detail-btn{
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.72), transparent 45%),
    radial-gradient(circle at 50% 60%, #b89bff 0, #8b5cf6 65%);
  border: 1px solid rgba(0,0,0,.35);
  color: rgba(5, 5, 10, 0.55);
  box-shadow:
    0 0 12px rgba(0, 0, 0, 0.45) inset,
    0 0 8px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(139, 92, 246, 0.45);
  padding: 8px 14px;
  font-weight: 600;
  border-radius: 12px;
  font-family: 'Vipnagorgialla', Arial, sans-serif;
  letter-spacing: 0.04em;
  text-shadow: none;
}
.persona-detail-actions .persona-detail-btn:hover{
  filter: brightness(1.06);
}
#personaDetailName{
  color: rgba(255,255,255,.98);
  font-family: 'Vipnagorgialla', Arial, sans-serif;
}
.panel-soft#personaPanel{
  border: none;
  background: transparent;
  padding: 0;
}
.persona-detail-hero{
  display:flex;
  gap:16px;
  align-items:center;
}
.persona-avatar-wrap{
  position: relative;
  width:120px;
  height:120px;
  border-radius:18px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  overflow: hidden;
}
#personaDetailView .persona-avatar-wrap{
  background: transparent;
  border: none;
  box-shadow: none;
}
#personaFormCard .persona-avatar-wrap{
  background: transparent;
  border: none;
  box-shadow: none;
}
.persona-detail-img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.persona-edit-btn{
  position:absolute;
  right:10px;
  bottom:10px;
  width:36px;
  height:36px;
  border-radius:999px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  cursor: pointer;
}
.persona-edit-btn:hover{
  background:#8b5cf6;
  border-color:#8b5cf6;
}
.persona-detail-info{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.persona-detail-sub{
  color: rgba(210,220,255,.85);
  font-size:14px;
}
.persona-detail-pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.persona-detail-pill{
  border:1px solid rgba(124,58,237,.55);
  color:#e9d5ff;
  background: rgba(124,58,237,.12);
  border-radius:999px;
  padding:4px 10px;
  font-size:12px;
}
.persona-detail-desc{
  color: rgba(220,225,245,.92);
  font-size:14px;
  line-height:1.5;
}
.persona-track-section{
  margin-top:14px;
}
.persona-track-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.persona-track-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
  border-radius:10px;
  background:
    linear-gradient(180deg, rgba(12,16,26,.62), rgba(8,12,20,.62)),
    url("../assets/purplestrip2.png") center center / cover no-repeat;
  border:1px solid rgba(255,255,255,.08);
}
#personaTrackList .persona-track-row:has(.songs-actions-menu:not(.hidden)){
  position: relative;
  z-index: 120;
}
.persona-track-title{
  font-size:13px;
  color:#e5e7eb;
  text-align:left;
}
button.persona-track-title{
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  display:block;
  width:100%;
  text-align:left;
}
button.persona-track-title:hover{
  text-decoration: underline;
}
#personaTrackList .persona-track-main{
  display:flex;
  align-items:center;
  gap:10px;
}
#personaTrackList .persona-track-main .persona-track-title{
  text-align:left !important;
}
#personaTrackList .songs-cover{
  width:70px;
  height:70px;
  border-radius:12px;
  flex: 0 0 auto;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
#personaTrackList .persona-track-title{
  font-size:19px;
  font-weight:700;
  line-height:1.2;
  font-family: 'Vipnagorgialla', Arial, sans-serif;
}
#personaTrackList .songs-share-btn,
#personaTrackList .songs-delete-btn,
#personaTrackList .songs-actions-btn{
  display:inline-flex !important;
  width:30px;
  height:30px;
  min-height:30px;
  border-radius:8px !important;
  border:1px solid rgba(255,255,255,.14) !important;
  background: rgba(255,255,255,.04) !important;
  color: rgba(220,225,245,.92) !important;
  box-shadow:none !important;
}
#personaTrackList .songs-share-btn::before,
#personaTrackList .songs-share-btn::after,
#personaTrackList .songs-delete-btn::before,
#personaTrackList .songs-delete-btn::after,
#personaTrackList .songs-actions-btn::before,
#personaTrackList .songs-actions-btn::after{
  content:none !important;
  display:none !important;
}
#personaTrackList .songs-share-btn:hover,
#personaTrackList .songs-delete-btn:hover,
#personaTrackList .songs-actions-btn:hover{
  filter:none !important;
  background: rgba(255,255,255,.10) !important;
}
.persona-track-meta{
  font-size:11px;
  color:rgba(210,220,255,.7);
}
.persona-file-input{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}
.persona-detail-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
.persona-picker{
  position: relative;
}
.persona-picker-btn{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  background: rgba(255,255,255,.04);
  border:1px solid var(--border);
  color: var(--text);
  padding:8px 10px;
  border-radius:10px;
}
.persona-picker-avatar{
  width:28px;
  height:28px;
  border-radius:8px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
}
.persona-picker-text{
  flex: 1 1 auto;
  text-align:left;
  font-size:14px;
}
.persona-picker-caret{
  flex: 0 0 auto;
  color: rgba(210,220,255,.9);
}
.persona-picker-list{
  position:absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left:0;
  right:0;
  background: #111827;
  border:1px solid rgba(124,58,237,.35);
  border-radius:12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  max-height: 260px;
  overflow:auto;
}
.persona-picker-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  cursor:pointer;
}
.persona-picker-item:hover{
  background: rgba(124,58,237,.18);
}
.persona-picker-name{
  font-size:14px;
  color:#fff;
}
/* Persona submit overlay */
.persona-submit-overlay{
  position: fixed;
  inset: 0;
  background: rgba(4,7,14,.6);
  backdrop-filter: blur(2px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: var(--z-persona-overlay);
  pointer-events: auto;
}
.persona-submit-card{
  border:1px solid rgba(124,58,237,.45);
  background: linear-gradient(180deg, rgba(24,18,42,.95), rgba(12,10,22,.95));
  border-radius:20px;
  padding:24px 30px;
  text-align:center;
  box-shadow: 0 20px 55px rgba(0,0,0,.5), 0 0 40px rgba(124,58,237,.2);
  min-width: 420px;
}
.persona-submit-title{
  font-weight:800;
  font-size:22px;
  color:#fff;
}
.persona-submit-line{
  margin-top:8px;
  font-size:16px;
  color: rgba(255,255,255,.75);
}
.celebrate-title{
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}
.celebrate-msg{
  margin-top: 6px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
}
.confetti-line{
  margin-top: 10px;
  font-size: 18px;
  letter-spacing: 4px;
}
.songs-header{
  font-size:12px;
  color: var(--dimmer);
  padding: 0 8px;
}
.songs-row{
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  padding:12px;
  background: rgba(255,255,255,.05);
}
@media (max-width: 768px){
  /* My Songs list: bleed through app container padding on narrow view */
  #mySongsList{
    margin-left: -10px;
    margin-right: -10px;
  }
  #mySongsList .songs-table{
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
  #mySongsList .songs-table-row{
    border-radius: 0;
  }
  /* Edge-to-edge song list on mobile */
  .songs-table{
    border:none;
    border-radius:0;
    width:100%;
    position:relative;
  }
  .songs-table-head{ display:none; }
  .songs-table-row{
    display:grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap:4px 8px;
    position: relative;
  }
  /* Song cell: first row, left */
  .songs-table-row .songs-cell[data-label="Song"]{
    grid-column: 1;
    grid-row: 1;
  }
  /* Actions chevron + share: first row, top-right */
  .songs-table-row .songs-cell.songs-downloads{
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
  }
  /* Show share button on mobile (JS hides if canShare unavailable) */
  .songs-share-btn,
  .songs-delete-btn{
    display:inline-flex;
  }
  /* Artist, Genre, Created: second row, displayed inline */
  .songs-table-row .songs-cell[data-label="Artist"],
  .songs-table-row .songs-cell[data-label="Genre"]{
    grid-column: 1 / -1;
    display:inline-flex;
    font-size:12px;
  }
  /* Make secondary-row fields flow together */
  .songs-table-row .songs-cell[data-label="Artist"]{
    grid-row: 2;
  }
  .songs-table-row .songs-cell[data-label="Genre"]{
    grid-row: 3;
  }
  /* Remove field label titles on mobile */
  .songs-cell::before{
    display:none !important;
  }
  /* Slightly smaller cover on mobile */
  .songs-cover,
  .songs-cover-wrap{
    width:100px;
    height:100px;
  }
  .songs-cover{
    border-radius:14px;
  }
  .songs-play-overlay{
    border-radius:14px;
  }
}
@media (max-width: 900px) and (orientation: landscape){
  .songs-table-head{
    display:grid;
  }
  .songs-table-row{
    grid-template-columns: 1.9fr 1.3fr 1fr 0.7fr;
    grid-template-rows: none;
    gap:12px;
  }
  .songs-table-row .songs-cell{
    grid-column: auto;
    grid-row: auto;
  }
  .songs-table-row .songs-cell.songs-downloads{
    justify-self: stretch;
    align-self: center;
  }
}
@media (min-width: 901px){
  #mySongsList .songs-share-btn{
    display: inline-flex;
  }
  .songs-table-head .songs-sort-btn,
  .songs-table-head .songs-head-btn{
    color: rgba(5, 5, 10, 0.55) !important;
  }
}

/* v47 validation visuals */
.field-error{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 160, 160, .95);
}
.is-invalid{
  border-color: rgba(255, 80, 80, .85) !important;
  box-shadow: 0 0 0 2px rgba(255, 80, 80, .22) !important;
}
.radio-invalid{
  outline: 2px solid rgba(255, 80, 80, .30);
  border-radius: 10px;
  padding: 6px 8px;
}
#validationBanner.alert{
  border: 2px solid rgba(255, 80, 80, .55);
  background: linear-gradient(180deg, rgba(255, 80, 80, .12), rgba(255, 80, 80, .06));
  color: rgba(255, 225, 225, .96);
  border-radius: 14px;
  padding: 10px 12px;
}

/* v48 validation toast (unmissable popup) */
.validation-toast{
  position: fixed;
  left: 50%;
  bottom: calc(var(--player-height, 96px) + 48px);
  transform: translateX(-50%);
  z-index: var(--z-toast);
  width: min(720px, calc(100% - 24px));
}
body.modal-open .validation-toast{
  bottom: 20px;
  z-index: calc(var(--z-login-overlay) + 20);
}
.validation-toast-inner{
  border: 2px solid rgba(255, 80, 80, .60);
  background: linear-gradient(180deg, rgba(32, 10, 14, .96), rgba(16, 8, 10, .92));
  box-shadow: 0 16px 60px rgba(0,0,0,.55), 0 0 60px rgba(255,80,80,.15);
  border-radius: 16px;
  padding: 12px 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.validation-toast-msg{
  flex: 1 1 auto;
  color: rgba(255, 235, 235, .98);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.validation-toast-inner .btn{
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
.validation-toast-inner .btn:hover{
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}
.validation-toast.success .validation-toast-inner{
  border: 2px solid rgba(80, 220, 140, .65);
  background: linear-gradient(180deg, rgba(10, 28, 18, .96), rgba(8, 18, 12, .92));
  box-shadow: 0 16px 60px rgba(0,0,0,.55), 0 0 60px rgba(80,220,140,.18);
}
.validation-toast.success .validation-toast-msg{
  color: rgba(220, 255, 235, .98);
}
.validation-toast.info .validation-toast-inner{
  border: 2px solid rgba(124, 58, 237, .65);
  background: linear-gradient(180deg, rgba(24, 16, 44, .96), rgba(16, 10, 30, .92));
  box-shadow: 0 16px 60px rgba(0,0,0,.55), 0 0 60px rgba(124,58,237,.22);
}
.validation-toast.info .validation-toast-msg{
  color: rgba(235, 225, 255, .98);
}
.validation-toast .toast-progress{
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
}
.validation-toast .toast-progress-bar{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(124,58,237,.9), rgba(80,220,140,.9));
  box-shadow: 0 0 12px rgba(124,58,237,.5);
  transition: width .2s ease;
}
.validation-toast .toast-progress-meta{
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
}

/* Ensure banner stands out */
#validationBanner.alert{
  border: 2px solid rgba(255, 80, 80, .55);
  background: linear-gradient(180deg, rgba(255, 80, 80, .12), rgba(255, 80, 80, .06));
  color: rgba(255, 225, 225, .96);
  border-radius: 14px;
  padding: 10px 12px;
}
  
/* === Header logo size + alignment fix === */
.brandLogo {
  width: 68px;
  height: 68px;
  max-width: 68px;
  max-height: 68px;
  object-fit: contain;
  border-radius: 8px;
  border: none;
  background: transparent;
  flex: 0 0 auto;
}
/* === Header logo size fix (no Tailwind dependency) === */
#logoToggle{
  position: fixed !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 100 !important;
  width:68px !important;
  height:68px !important;
  max-width:68px !important;
  max-height:68px !important;
  object-fit:contain !important;
  border-radius:10px !important;
  border:none !important;
  background: transparent !important;
  flex:0 0 auto !important;
  cursor:pointer !important;
}


/* v3 header layout uses .smTopbar/.smTopbarLeft/.smTopbarRight */


/* === smTopbar v4: enforce header layout without Tailwind === */
.smTopbar{
  position: relative;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
}
.smTopbarLeft{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.smTopbarTitle{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}
.smTopbarTitle h1{
  margin:0;
  font-size:22px;
  line-height:1.15;
  font-family: 'Vipnagorgialla', Arial, sans-serif;
  letter-spacing: 2px;
}
.smTopbarTitle .subtleLine{
  color: var(--dim);
  font-size: 13px;
  margin-top: 2px;
}
.smTopbarTitle .fineLine{
  color: var(--dimmer);
  font-size: 12px;
  margin-top: 2px;
}
.smTopbarRight{
  position: absolute;
  right: 92px;
  top: 0;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
  flex:0 0 auto;
  padding:6px 8px;
}
.smTopbarButtons{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}


body{
  padding:2px !important;
}

/* === Always-on player (fixed footer) === */
:root{
  --player-height: 96px;
  --toolbar-height: 44px;
  --header-height: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  /* z-index hierarchy (no two fixed overlays share a value) */
  --z-bg: -1;
  --z-lyrics-overlay: 9000;
  --z-submit-overlay: 9100;
  --z-celebrate-overlay: 9200;
  --z-persona-overlay: 9300;
  --z-toast: 9500;
  --z-player: 9800;
  --z-book-footer: 9900;
  --z-actions-drawer: 9950;
  --z-vinyl-menu: 10050;
  --z-login-overlay: 10100;
}
body{
  padding-bottom: 16px !important;
}
body.gp-active{
  padding-bottom: calc(var(--player-height) + 16px + env(safe-area-inset-bottom, 0px)) !important;
}
.global-player{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--player-height);
  display: none;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px 18px;
  padding-left: calc(16px + env(safe-area-inset-left, 0px));
  padding-right: calc(16px + env(safe-area-inset-right, 0px));
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  background: 
    linear-gradient(180deg, rgba(8,12,20,0.98), rgba(12,16,26,0.92) 55%, rgba(12,16,26,0.0) 100%),
    url('../assets/purplestrip.png');
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  box-shadow: 0 -10px 30px rgba(0,0,0,.35);
  z-index: var(--z-player);
  border: none;
}

/* Narrow desktop/wide tablet: switch to 2-row compact layout */
@media (max-width: 1100px) {
  .global-player {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "left controls"
      "left actions";
    gap: 8px;
    padding: 10px 12px 12px;
    padding-left: calc(12px + env(safe-area-inset-left, 0px));
    padding-right: calc(12px + env(safe-area-inset-right, 0px));
  }
  .global-player .gp-center { display: contents; }
  .global-player .gp-left { grid-area: left; }
  .global-player .gp-controls { grid-area: controls; justify-content: center; }
  .global-player .gp-right { grid-area: actions; justify-content: flex-end; }
  
  /* Waveform-on handling for this breakpoint */
  body.waveform-on .global-player{
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 28px auto auto;
    grid-template-areas:
      "wave wave"
      "left controls"
      "left actions";
  }
  body.waveform-on .global-player .gp-wave-container{
    grid-area: wave;
    width: 100%;
    flex: none;
  }
  body.waveform-on .global-player .gp-wave{
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Wider desktop: restore generous 3-column spacing */
@media (min-width: 1200px) {
  .global-player {
    gap: 16px;
    padding-left: calc(22px + env(safe-area-inset-left, 0px));
    padding-right: calc(22px + env(safe-area-inset-right, 0px));
  }
}

.global-player.gp-active{
  display: grid;
}
.global-player .gp-left{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}
.global-player .gp-art{
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
}
.global-player .gp-meta{
  min-width: 0;
}
.global-player .gp-title{
  font-size: 16.8px;
  font-weight: 600;
  color: #6ee7b7;
  font-family: 'Vipnagorgialla', Arial, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.global-player .gp-artist{
  font-size: 14.4px;
  color: #6ee7b7;
  font-family: 'Vipnagorgialla', Arial, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.global-player .gp-center{
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  align-items: center;
  justify-self: center;
  width: auto;
}
.global-player .gp-wave{
  height: 28px;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.32), rgba(8, 12, 20, 0.08));
  border-radius: 6px;
}
.global-player .gp-wave wave,
.global-player .gp-wave canvas,
.global-player .gp-wave svg{
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}
/* Desktop (>900px): when waveform is on, restructure grid to put wave in its own top row */
body.waveform-on .global-player{
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: 28px auto;
  grid-template-areas:
    "wave wave wave"
    "left center right";
  height: calc(var(--player-height) + 28px);
}
body.waveform-on .global-player .gp-center{
  display: contents;
}
body.waveform-on .global-player .gp-wave-container{
  grid-area: wave;
  width: 100%;
  flex: none;
}
body.waveform-on .global-player .gp-wave{
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
body.waveform-on .global-player .gp-controls{
  grid-area: center;
  align-self: center;
}
body.waveform-on .global-player .gp-left{
  grid-area: left;
}
body.waveform-on .global-player .gp-right{
  grid-area: right;
}
body.waveform-on{
  padding-bottom: calc(var(--player-height) + 28px + 16px + env(safe-area-inset-bottom, 0px)) !important;
}
body.lyrics-view-eq .global-player{
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "wave wave wave"
    "left center right";
  height: auto;
  --eq-wave-row-height: 140px;
  background: transparent !important;
  box-shadow: none;
  isolation: isolate;
}
body.lyrics-view-eq .global-player::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--eq-wave-row-height);
  bottom: 0;
  background:
    linear-gradient(180deg, rgba(8,12,20,0.98), rgba(12,16,26,0.92) 55%, rgba(12,16,26,0) 100%),
    url('../assets/purplestrip.png');
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  box-shadow: 0 -10px 30px rgba(0,0,0,.35);
  pointer-events: none;
  z-index: 0;
}
body.lyrics-view-eq .global-player > *{
  position: relative;
  z-index: 1;
}
body.lyrics-view-eq .global-player .gp-center{
  display: contents;
}
body.lyrics-view-eq .global-player .gp-wave-container{
  display: flex !important;
  grid-area: wave;
  width: 100%;
  flex: none;
  min-height: var(--eq-wave-row-height);
  background: transparent !important;
}
body.lyrics-view-eq .global-player .gp-eq-panel{
  display: block;
}
body.lyrics-view-eq .global-player .gp-wave{
  background: transparent !important;
}
body.lyrics-view-eq.waveform-on .global-player .gp-wave-container{
  min-height: 176px;
}
body.lyrics-view-eq.waveform-on .global-player{
  --eq-wave-row-height: 176px;
}
body.lyrics-view-eq .global-player .gp-controls{
  grid-area: center;
  align-self: center;
}
body.lyrics-view-eq .global-player .gp-left{
  grid-area: left;
}
body.lyrics-view-eq .global-player .gp-right{
  grid-area: right;
}
body.lyrics-view-eq:not(.waveform-on) .global-player .gp-wave{
  display: none;
}
body.lyrics-view-eq.waveform-on .global-player .gp-wave{
  display: block;
}
body.lyrics-view-eq{
  padding-bottom: calc(var(--player-height) + 192px + 16px + env(safe-area-inset-bottom, 0px)) !important;
}
.global-player .gp-controls{
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  width: 100%;
  justify-self: center;
}
.global-player .gp-btn{
  --gp-accent-1: #c4b5fd;
  --gp-accent-2: #7c3aed;
  --gp-accent-glow: rgba(168, 85, 247, 0.65);
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: rgba(5, 5, 10, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 120ms ease;
  text-shadow: 0 1px 2px rgba(255,255,255,.4);
}
.global-player .gp-btn svg{
  width: 18px;
  height: 18px;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.4));
}
.global-player .gp-btn.primary svg{
  width: 20px;
  height: 20px;
}
.global-player .gp-btn::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(to bottom, #060607, #101015);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 3px 6px rgba(0, 0, 0, 0.8);
  z-index: -2;
  pointer-events: none;
}
.global-player .gp-btn::before{
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.7), transparent 40%),
    radial-gradient(circle at 50% 60%, var(--gp-accent-1) 0, var(--gp-accent-2) 62%);
  box-shadow:
    0 0 10px rgba(0, 0, 0, 0.7) inset,
    0 0 6px rgba(0, 0, 0, 0.6),
    0 0 12px var(--gp-accent-glow);
  transition:
    transform 0.07s ease-out,
    box-shadow 0.07s ease-out,
    filter 0.07s ease-out;
  z-index: -1;
  pointer-events: none;
}
.global-player .gp-btn.primary{
  width: 44px;
  height: 44px;
  --gp-accent-1: #6ee7b7;
  --gp-accent-2: #14b8a6;
  --gp-accent-glow: rgba(110, 231, 183, 0.85);
}
.global-player .gp-btn:active{
  transform: translateY(1px) scale(0.98);
}
.global-player .gp-btn:active::before{
  filter: brightness(1.3);
  box-shadow:
    0 0 14px rgba(0, 0, 0, 0.7) inset,
    0 0 16px rgba(0, 0, 0, 0.7),
    0 0 20px var(--gp-accent-glow);
}
.global-player .gp-time{
  font-size: 12px;
  color: rgba(226,232,240,.8);
  min-width: 90px;
  text-align: right;
}
.global-player .gp-right{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  justify-self: end;
}
.global-player .gp-volume{
  display: flex;
  align-items: center;
  gap: 8px;
}
.global-player input[type="range"]{
  accent-color: #7c3aed;
}
.global-player .gp-actions{
  position: relative;
  border: none;
  background: transparent;
  color: rgba(5, 5, 10, 0.55);
  border-radius: 10px;
  padding: 6px 12px;
  white-space: nowrap;
  font-family: 'Vipnagorgialla', Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: none;
  transition: transform 120ms ease;
}
.global-player .gp-lyrics{
  position: relative;
  border: none;
  background: transparent;
  color: rgba(5, 5, 10, 0.55);
  border-radius: 10px;
  padding: 6px 12px;
  white-space: nowrap;
  font-family: 'Vipnagorgialla', Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: none;
  transition: transform 120ms ease;
}
.global-player .gp-actions::after,
.global-player .gp-lyrics::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(to bottom, #060607, #101015);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 3px 6px rgba(0, 0, 0, 0.8);
  z-index: -2;
  pointer-events: none;
}
.global-player .gp-actions::before,
.global-player .gp-lyrics::before{
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.62), transparent 40%),
    radial-gradient(circle at 50% 60%, #9d79f2 0, #6f4bd6 62%);
  box-shadow:
    0 0 14px rgba(0, 0, 0, 0.75) inset,
    0 0 10px rgba(0, 0, 0, 0.6),
    0 0 18px rgba(139, 92, 246, 0.55);
  transition:
    transform 0.07s ease-out,
    box-shadow 0.07s ease-out,
    filter 0.07s ease-out;
  z-index: -1;
  pointer-events: none;
}
.global-player .gp-actions:hover,
.global-player .gp-lyrics:hover{
  filter: brightness(1.02);
}
.global-player .gp-actions:active,
.global-player .gp-lyrics:active{
  transform: translateY(1px) scale(0.98);
}
.global-player .gp-actions:active::before,
.global-player .gp-lyrics:active::before{
  filter: brightness(1.35);
  box-shadow:
    0 0 16px rgba(0, 0, 0, 0.7) inset,
    0 0 20px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(184, 155, 255, 0.95);
}
.global-player .gp-lyrics.active{
  color: rgba(5, 5, 10, 0.7);
}
/* Eye button mode colors: 0=purple(default), 1=blue, 2=green, 3=pink, 4=orange */
body.lyrics-view-lyrics .global-player .gp-lyrics::before{
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.62), transparent 40%),
    radial-gradient(circle at 50% 60%, #60a5fa 0, #2563eb 62%);
  box-shadow:
    0 0 14px rgba(0, 0, 0, 0.75) inset,
    0 0 10px rgba(0, 0, 0, 0.6),
    0 0 18px rgba(59, 130, 246, 0.6);
}
body.eq-visuals-mode .global-player .gp-lyrics::before{
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.62), transparent 40%),
    radial-gradient(circle at 50% 60%, #34d399 0, #059669 62%);
  box-shadow:
    0 0 14px rgba(0, 0, 0, 0.75) inset,
    0 0 10px rgba(0, 0, 0, 0.6),
    0 0 18px rgba(16, 185, 129, 0.62);
}
body.lyrics-view-vinyl .global-player .gp-lyrics::before{
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.62), transparent 40%),
    radial-gradient(circle at 50% 60%, #f472b6 0, #db2777 62%);
  box-shadow:
    0 0 14px rgba(0, 0, 0, 0.75) inset,
    0 0 10px rgba(0, 0, 0, 0.6),
    0 0 18px rgba(236, 72, 153, 0.62);
}
body.lyrics-view-blank .global-player .gp-lyrics::before{
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.62), transparent 40%),
    radial-gradient(circle at 50% 60%, #fb923c 0, #f97316 62%);
  box-shadow:
    0 0 14px rgba(0, 0, 0, 0.75) inset,
    0 0 10px rgba(0, 0, 0, 0.6),
    0 0 18px rgba(249, 115, 22, 0.62);
}
.lyrics-overlay{
  position: fixed;
  inset: var(--header-height) 0 var(--player-height) 0;
  z-index: var(--z-lyrics-overlay);
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  padding-top: calc(var(--lyrics-offset, 24px));
  pointer-events: none;
}
.lyrics-overlay.hidden{ display:none; }
.lyrics-overlay-open #afterLogin,
.lyrics-overlay-open #loggedOutLoader{
  display: none !important;
}
.lyrics-overlay .lyrics-shell{
  width: fit-content;
  max-width: min(900px, 92vw);
  max-height: calc(100vh - var(--player-height) - 64px);
  max-height: calc(100dvh - var(--player-height) - 64px);
  overflow: auto;
  background: rgba(15,23,42,0.35);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 22px 22px 26px;
  pointer-events: auto;
}
.lyrics-overlay .lyrics-title{
  font-family: "Gloria Hallelujah", "Outfit", system-ui, sans-serif;
  font-size: 1.2em;
  color: rgba(255,255,255,.9);
  margin-bottom: 12px;
  text-align: center;
}
.lyrics-overlay .lyrics-text{
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,.88);
}

/* Custom scrollbar for lyrics overlay */
.lyrics-shell::-webkit-scrollbar,
#lyricsOverlayBody::-webkit-scrollbar,
.lyrics-timestamped::-webkit-scrollbar {
  width: 8px;
}

.lyrics-shell::-webkit-scrollbar-thumb,
#lyricsOverlayBody::-webkit-scrollbar-thumb,
.lyrics-timestamped::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.4);
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.lyrics-shell::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.6);
}

.lyrics-shell::-webkit-scrollbar-track,
#lyricsOverlayBody::-webkit-scrollbar-track,
.lyrics-timestamped::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

/* Firefox */
.lyrics-shell,
#lyricsOverlayBody,
.lyrics-timestamped {
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.4) rgba(255, 255, 255, 0.05);
}

/* Timestamped lyrics styling */
.lyrics-timestamped {
  line-height: 2.2;
  font-size: 18px;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.lyric-word {
  display: inline;
  transition: all 0.15s ease;
  color: rgba(255, 255, 255, 0.6);
  padding: 2px 4px;
  border-radius: 4px;
}

.lyric-word:first-child {
  display: inline-block;
}

.lyric-word-active {
  color: #fff;
  background: rgba(139, 92, 246, 0.3);
  font-weight: 600;
  transform: scale(1.05);
  text-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

.lyric-word-passed {
  color: rgba(255, 255, 255, 0.4);
}

.lyric-word-unaligned {
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}

#lyricsOverlayBody.has-timestamps {
  text-align: left;
  overflow-y: auto;
  max-height: 70vh;
  scroll-behavior: smooth;
}

.gp-lyrics svg{
  width: 16px;
  height: 16px;
  display: block;
}
body.lyrics-view-lyrics #mySongsPanel,
body.eq-visuals-mode #mySongsPanel,
body.lyrics-view-eq #mySongsPanel,
body.lyrics-view-blank #mySongsPanel,
body.lyrics-view-vinyl #mySongsPanel{
  display: none !important;
}
body.eq-visuals-mode #afterLogin,
body.eq-visuals-mode #loggedOutLoader,
body.lyrics-view-eq #afterLogin,
body.lyrics-view-eq #loggedOutLoader,
body.lyrics-view-blank #afterLogin,
body.lyrics-view-blank #loggedOutLoader{
  display: none !important;
}
body.lyrics-view-vinyl #afterLogin{
  display: none !important;
}
body.lyrics-view-vinyl #loggedOutLoader{
  display: flex !important;
  justify-content: flex-start;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 0;
}
body.lyrics-view-vinyl{
  overflow-y: hidden;
  padding-bottom: 0 !important;
}
body.lyrics-view-vinyl.gp-active{
  padding-bottom: 0 !important;
}
body.lyrics-view-vinyl.gp-active #loggedOutLoader{
  min-height: calc(100dvh - var(--player-height) - 8px);
  max-height: calc(100dvh - var(--player-height) - 8px);
  overflow: hidden;
}
body.logged-out-loader.lyrics-view-vinyl #loggedOutLoader,
body.logged-out-loader.lyrics-view-vinyl.gp-active #loggedOutLoader{
  justify-content: flex-start !important;
  align-items: center;
  padding-top: 12px;
}
body.lyrics-view-eq .global-player,
body.lyrics-view-blank .global-player,
body.lyrics-view-lyrics .global-player{
  display: grid !important;
}
.gp-actions-drawer{
  position: fixed;
  right: 16px;
  bottom: calc(var(--player-height) + 12px);
  width: min(520px, calc(100vw - 24px));
  max-height: min(70vh, 400px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: rgba(18,22,34,.98);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  z-index: var(--z-actions-drawer);
  font-family: 'Vipnagorgialla', Arial, sans-serif;
  letter-spacing: 0.04em;
}
.gp-actions-drawer.hidden{ display:none; }
.gp-actions-drawer-footer{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}
.gp-actions-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}
.gp-action{
  position: relative;
  border: none;
  background: transparent;
  color: rgba(5, 5, 10, 0.55);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  text-shadow: none;
  overflow: hidden;
  transition: transform 120ms ease;
}
.gp-action::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(to bottom, #060607, #101015);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 3px 6px rgba(0, 0, 0, 0.8);
  z-index: -2;
  pointer-events: none;
}
.gp-action::before{
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.62), transparent 40%),
    radial-gradient(circle at 50% 60%, #9d79f2 0, #6f4bd6 62%);
  box-shadow:
    0 0 14px rgba(0, 0, 0, 0.75) inset,
    0 0 10px rgba(0, 0, 0, 0.6),
    0 0 18px rgba(139, 92, 246, 0.55);
  transition:
    transform 0.07s ease-out,
    box-shadow 0.07s ease-out,
    filter 0.07s ease-out;
  z-index: -1;
  pointer-events: none;
}
.gp-action:active{
  transform: translateY(1px) scale(0.98);
}
.gp-action:active::before{
  filter: brightness(1.35);
  box-shadow:
    0 0 16px rgba(0, 0, 0, 0.7) inset,
    0 0 20px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(184, 155, 255, 0.95);
}
.gp-action:disabled{
  opacity: .52;
  cursor: not-allowed;
  pointer-events: none;
}
@media (max-width: 900px){
  :root{ --player-height: 120px; }
  .global-player{
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "left controls"
      "left actions";
    height: auto;
    padding: 10px 12px 12px;
    padding-left: calc(12px + env(safe-area-inset-left, 0px));
    padding-right: calc(12px + env(safe-area-inset-right, 0px));
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }
  .global-player .gp-center{ display: contents; }
  .global-player .gp-wave-container{ display: none; }
  body.lyrics-view-eq .global-player{
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "wave wave"
      "left left"
      "controls controls"
      "actions actions";
    gap: 5px;
    padding-top: 1px;
    padding-bottom: calc(3px + env(safe-area-inset-bottom, 0px));
    height: auto;
    --eq-wave-row-height: 260px;
    background: transparent !important;
  }
  body.lyrics-view-eq .global-player .gp-wave-container{
    display: flex !important;
    grid-area: wave;
    width: 100%;
    flex: none;
  }
  body.lyrics-view-eq .global-player .gp-eq-panel{
    display: block;
    min-height: 224px;
    height: 260px;
  }
  body.lyrics-view-eq.waveform-on .global-player{
    --eq-wave-row-height: 296px;
  }
  body.lyrics-view-eq:not(.waveform-on) .global-player .gp-wave{
    display: none;
  }
  body.lyrics-view-eq .global-player .gp-left{
    grid-area: left;
  }
  body.lyrics-view-eq .global-player .gp-controls{
    grid-area: controls;
    justify-content: center;
  }
  body.lyrics-view-eq .global-player .gp-right{
    grid-area: actions;
    justify-content: center;
  }
  body.waveform-on .global-player{
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "wave wave"
      "left left"
      "controls controls"
      "actions actions";
    gap: 5px;
    padding-top: 1px;
    padding-bottom: calc(3px + env(safe-area-inset-bottom, 0px));
  }
  body.waveform-on .global-player .gp-wave-container{ 
    display: block; 
    grid-area: wave;
    width: 100%;
    flex: none;
  }
  body.waveform-on .global-player .gp-wave{ 
    display: block;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 1px;
    margin-bottom: 2px;
  }
  body.waveform-on .global-player .gp-left{ 
    grid-area: left; 
  }
  body.waveform-on .global-player .gp-controls{ 
    grid-area: controls; 
    justify-content: center;
  }
  body.waveform-on .global-player .gp-right{ 
    grid-area: actions; 
    justify-content: center;
  }
  .global-player .gp-left{ grid-area: left; }
  .global-player .gp-controls{ grid-area: controls; justify-content: center; }
  .global-player .gp-time{ min-width: 70px; text-align: center; }
  .global-player .gp-right{
    grid-area: actions;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
  }
  .global-player .gp-volume input[type="range"]{ width: 90px; }
  .gp-actions-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .global-player .gp-art{ width: 44px; height: 44px; }
  .global-player .gp-title{ font-size: 13px; }
  .global-player .gp-artist{ font-size: 11px; }
  .gp-actions-drawer{
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }
}

/* Base styles for waveform container (outside media queries) */
.gp-wave-container {
  flex:1 1 auto;
  min-width: 0;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gp-eq-panel{
  display: none;
  width: 100%;
  min-height: 120px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
}
.gp-eq-canvas{
  width: 100%;
  height: 100%;
  display: block;
}
.gp-eq-overlay{
  position: fixed;
  display: none;
  pointer-events: none;
  z-index: calc(var(--z-player) + 2);
}

.loop-region-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(139, 92, 246, 0.3);
  border-left: 2px solid rgba(139, 92, 246, 0.8);
  border-right: 2px solid rgba(139, 92, 246, 0.8);
  pointer-events: none;
  display: none;
  z-index: 10;
}

.loop-region-overlay.active {
  display: block;
}

.gp-audio-el{
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* Very narrow screens: prevent button overlap */
@media (max-width: 500px){
  .global-player{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "left"
      "controls"
      "actions";
    gap: 8px;
  }
  .global-player .gp-controls{ 
    justify-content: center; 
    gap: 8px;
  }
  .global-player .gp-right{ 
    justify-content: center; 
  }
  body.waveform-on .global-player{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "wave"
      "left"
      "controls"
      "actions";
  }
  body.waveform-on .global-player .gp-wave-container{ 
    grid-area: wave;
    width: 100%;
    flex: none;
  }
  body.waveform-on .global-player .gp-wave{ 
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}
@media (max-width: 900px) and (orientation: landscape){
  .global-player{
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "left controls actions";
  }
  .global-player .gp-right{ justify-content: flex-end; }
  body.waveform-on .global-player{
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "wave wave wave"
      "left controls actions";
  }
  body.waveform-on .global-player .gp-wave-container{ 
    display: block; 
    grid-area: wave; 
    width: 100%;
    flex: none;
  }
  body.waveform-on .global-player .gp-wave{ 
    display: block; 
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}
/* iPad landscape: limited vertical space — compact the player */
@media (min-width: 744px) and (max-width: 1366px) and (orientation: landscape){
  :root{ --player-height: 80px; }
  .global-player{
    padding-top: 8px;
    padding-bottom: 10px;
  }
  .global-player .gp-wave{ display: none; }
  .global-player .gp-center{ width: auto; }
  .global-player .gp-art{ width: 44px; height: 44px; }
}
/* iPad portrait: undo the ≤900px phone layout — restore desktop 3-column player */
@media (min-width: 744px) and (orientation: portrait){
  :root{ --player-height: 96px; }
  .global-player{
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: none;
    height: var(--player-height);
    padding: 14px 22px 18px;
    padding-left: calc(22px + env(safe-area-inset-left, 0px));
    padding-right: calc(22px + env(safe-area-inset-right, 0px));
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    gap: 16px;
  }
  .global-player .gp-center{
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-self: center;
    width: auto;
  }
  .global-player .gp-wave{ display: none; }
  .global-player .gp-left{ grid-area: auto; }
  .global-player .gp-controls{ grid-area: auto; justify-content: center; }
  .global-player .gp-right{ grid-area: auto; justify-content: flex-end; }
  .global-player .gp-art{ width: 52px; height: 52px; }
  .global-player .gp-title{ font-size: 14px; }
  .global-player .gp-artist{ font-size: 12px; }
  body.waveform-on .global-player{
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: 28px auto;
    grid-template-areas:
      "wave wave wave"
      "left center right";
    height: calc(var(--player-height) + 28px);
  }
  body.waveform-on .global-player .gp-center{ display: contents; }
  body.waveform-on .global-player .gp-wave{ display: block; grid-area: wave; }
  body.waveform-on .global-player .gp-controls{ grid-area: center; }
  body.waveform-on .global-player .gp-left{ grid-area: left; }
  body.waveform-on .global-player .gp-right{ grid-area: right; }
}
@media (max-width: 520px){
  .global-player{
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "left left"
      "time time"
      "controls actions";
  }
  .global-player .gp-time{
    grid-area: time;
    text-align: left;
  }
  .global-player .gp-left{ grid-area: left; }
  .global-player .gp-controls{ grid-area: controls; }
  .global-player .gp-right{ grid-area: actions; }
  body.waveform-on .global-player{
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "wave wave"
      "left left"
      "time time"
      "controls actions";
  }
  body.waveform-on .global-player .gp-wave{ display: block; grid-area: wave; }
}

/* EQ mode canonical breakpoints (last-wins to avoid cascade conflicts) */
@media (min-width: 901px){
  body.lyrics-view-eq .global-player{
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "wave wave wave"
      "left center right";
    height: auto;
    --eq-wave-row-height: 140px;
  }
  body.lyrics-view-eq .global-player .gp-center{ display: contents; }
  body.lyrics-view-eq .global-player .gp-wave-container{
    display: flex !important;
    grid-area: wave;
    width: 100%;
    flex: none;
    min-height: var(--eq-wave-row-height);
    background: transparent !important;
  }
  body.lyrics-view-eq .global-player .gp-eq-panel{
    display: block;
    min-height: 120px;
    height: 140px;
  }
  body.lyrics-view-eq.waveform-on .global-player{
    --eq-wave-row-height: 176px;
  }
  body.lyrics-view-eq:not(.waveform-on) .global-player .gp-wave{ display: none; }
  body.lyrics-view-eq.waveform-on .global-player .gp-wave{ display: block; }
}

@media (max-width: 900px){
  body.lyrics-view-eq .global-player{
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "wave wave"
      "left left"
      "controls controls"
      "actions actions";
    height: auto;
    gap: 5px;
    --eq-wave-row-height: 260px;
  }
  body.lyrics-view-eq .global-player .gp-center{ display: contents; }
  body.lyrics-view-eq .global-player .gp-wave-container{
    display: flex !important;
    grid-area: wave;
    width: 100%;
    flex: none;
    min-height: var(--eq-wave-row-height);
    background: transparent !important;
  }
  body.lyrics-view-eq .global-player .gp-eq-panel{
    display: block;
    min-height: 224px;
    height: 260px;
  }
  body.lyrics-view-eq.waveform-on .global-player{
    --eq-wave-row-height: 296px;
  }
  body.lyrics-view-eq:not(.waveform-on) .global-player .gp-wave{ display: none; }
  body.lyrics-view-eq.waveform-on .global-player .gp-wave{ display: block; }
  body.lyrics-view-eq .global-player .gp-left{ grid-area: left; }
  body.lyrics-view-eq .global-player .gp-controls{ grid-area: controls; justify-content: center; }
  body.lyrics-view-eq .global-player .gp-right{ grid-area: actions; justify-content: center; }
}


#btnConnectWallet{
  background:#7c3aed !important; /* Tailwind violet-600 */
  color:white !important;
  border:1px solid #7c3aed !important;
  padding:10px 16px !important;
  border-radius:10px !important;
  font-weight:500 !important;
}
#btnConnectWallet:hover{
  background:#6d28d9 !important; /* violet-700 */
  border-color:#6d28d9 !important;
}

.login-overlay{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,10,18,.75);
  z-index: var(--z-login-overlay);
}
.login-overlay.hidden{ display:none; }
.login-inline-links{
  margin-top: -2px;
  margin-bottom: 6px;
  text-align: right;
}
.login-inline-links a{
  color: rgba(167,139,250,.96);
  font-size: 13px;
  text-decoration: none;
}
.login-inline-links a:hover{
  color: rgba(196,181,253,.98);
  text-decoration: underline;
}
.login-modal{
  width: min(420px, 92vw);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(16,18,30,.98);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
}
@media (max-width: 520px){
  .login-modal{
    width: min(360px, 88vw);
  }
}
.login-modal-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.login-modal-title{
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  font-family: 'Vipnagorgialla', Arial, sans-serif;
}
.login-modal-body{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-modal-body .sm-btn-ghost{
  font-family: 'Vipnagorgialla', Arial, sans-serif;
}
.rename-song-status{
  min-height: 18px;
}
.login-field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--dimmer);
}
.login-input{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}
.login-input::placeholder{
  color: rgba(255,255,255,.4);
}

/* .quick-nav removed (dead CSS - no HTML uses it) */


/* === Infinite Scroll Spinner === */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(110, 231, 183, 0.2);
  border-top-color: rgba(110, 231, 183, 1);
  border-radius: 50%;
  animation: spinner-spin 0.6s linear infinite;
}

@keyframes spinner-spin {
  to { transform: rotate(360deg); }
}
