/*
 * Sonara v4 — enhancements.css
 * Layers improvements on top of styles.css.
 * Import AFTER styles.css in your HTML.
 *
 * Sections:
 *  1. Improved Player Bar
 *  2. Redesigned Auth Modal (v4 full-screen split)
 *  3. Toast Notification System
 *  4. Improved Categories Section
 *  5. Keyboard Shortcuts Modal
 *  6. Visualizer Selector Thumbnails
 *  7. Loading Skeleton
 *  8. Improved Mobile
 *  9. Now Playing Expanded — Improvements
 * 10. Smooth Animations
 */

/* ============================================================
   1. IMPROVED PLAYER BAR
   ============================================================ */

/* Increase player bar height to 100px */
.player-bar {
  height: 100px;
  min-height: 100px;
  padding: 0 16px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Now-playing strip — lives in .player-right (after transport + progress column) */
.player-now-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  max-width: 280px;
  flex-shrink: 0;
}

/* Cover art — 52 × 52, rounded, ready to spin */
.player-now-art {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.35);
  background: rgba(147, 51, 234, 0.15);
}

/* Spinning disc animation — applied via JS when audio is playing */
.player-now-art.is-spinning {
  animation: disc-spin 8s linear infinite;
}

@keyframes disc-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Text stack: title + artist */
.player-now-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

.player-now-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.player-now-artist {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  line-height: 1.3;
}

/* Heart / like button inside now-info strip */
.player-now-like {
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.35);
  font-size: 16px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s, transform 0.15s;
}

.player-now-like:hover {
  color: rgba(255, 255, 255, 0.75);
  transform: scale(1.15);
}

.player-now-like.active {
  color: #ff4d6d;
}

.player-now-like.active:hover {
  color: #ff6b84;
}

/* Seek bar — improved with hover-tooltip support */
.seek-bar-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.seek-time-tooltip {
  position: absolute;
  bottom: 20px;
  background: rgba(147, 51, 234, 0.9);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
  transform: translateX(-50%);
  z-index: 100;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Show tooltip when hovering the seek bar wrapper */
.seek-bar-wrap:hover .seek-time-tooltip {
  opacity: 1;
}

/* ============================================================
   2. REDESIGNED AUTH MODAL — full-screen split layout
   ============================================================ */

/* Full-screen overlay — triggered by .auth-v4-overlay class */
#authOverlay.auth-v4-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #0a0818;
  overflow: hidden;
}
/* CRITICAL: hidden class must override display:flex */
#authOverlay.auth-v4-overlay.hidden {
  display: none !important;
}

/* Inner modal container — full screen split */
.auth-v4-modal {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  position: relative;
}

/* LEFT brand panel — 42% width */
.auth-v4-panel-brand {
  width: 42%;
  flex-shrink: 0;
  background: linear-gradient(145deg, #1a0b2e 0%, #16042c 40%, #0d1a3a 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 3rem 2.5rem;
}

/* Animated subtle background radial pulse */
.auth-v4-panel-brand::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(147, 51, 234, 0.18) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: brand-pulse 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes brand-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.18);
    opacity: 1;
  }
}

/* Brand content container inside brand panel */
.auth-brand-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.auth-brand-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  line-height: 1.6;
  font-family: "Inter", sans-serif;
}

.auth-brand-features {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

.auth-feature-icon {
  font-size: 1.2rem;
  width: 30px;
  text-align: center;
}

/* Brand logo inside brand panel */
.auth-v4-logo {
  position: relative;
  z-index: 2;
  font-size: 2.6rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  font-family: "Space Grotesk", "Inter", sans-serif;
  text-align: center;
}

.auth-v4-logo span {
  background: linear-gradient(90deg, #c084fc, #9333ea, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tagline */
.auth-v4-tagline {
  position: relative;
  z-index: 2;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
  text-align: center;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.3px;
}

/* Floating music note decorations */
.auth-note {
  position: absolute;
  animation: float-note 6s ease-in-out infinite;
  opacity: 0.15;
  font-size: 2rem;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

/* Stagger offsets for individual notes — apply via nth-child or data attrs in HTML */
.auth-note:nth-child(1)  { top: 10%;  left: 12%;  animation-delay: 0s;    animation-duration: 6s; }
.auth-note:nth-child(2)  { top: 20%;  left: 72%;  animation-delay: 1s;    animation-duration: 7s; }
.auth-note:nth-child(3)  { top: 38%;  left: 8%;   animation-delay: 2s;    animation-duration: 5.5s; }
.auth-note:nth-child(4)  { top: 55%;  left: 80%;  animation-delay: 0.5s;  animation-duration: 8s; }
.auth-note:nth-child(5)  { top: 70%;  left: 25%;  animation-delay: 1.5s;  animation-duration: 6.5s; }
.auth-note:nth-child(6)  { top: 82%;  left: 65%;  animation-delay: 3s;    animation-duration: 7.5s; }
.auth-note:nth-child(7)  { top: 5%;   left: 50%;  animation-delay: 2.5s;  animation-duration: 9s; }
.auth-note:nth-child(8)  { top: 90%;  left: 42%;  animation-delay: 0.8s;  animation-duration: 6.2s; }

@keyframes float-note {
  0% {
    transform: translateY(0px) rotate(-8deg);
    opacity: 0.12;
  }
  25% {
    transform: translateY(-18px) rotate(4deg);
    opacity: 0.22;
  }
  50% {
    transform: translateY(-28px) rotate(-4deg);
    opacity: 0.15;
  }
  75% {
    transform: translateY(-12px) rotate(6deg);
    opacity: 0.2;
  }
  100% {
    transform: translateY(0px) rotate(-8deg);
    opacity: 0.12;
  }
}

/* RIGHT form panel — 58% width */
.auth-v4-panel-form {
  width: 58%;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: #0a0818;
}

/* Inner form container */
.auth-v4-form-inner {
  width: 100%;
  max-width: 400px;
}

/* Auth tabs — toggle sign in / sign up */
.auth-tabs-v4 {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-tab-v4 {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.auth-tab-v4:hover {
  color: rgba(255, 255, 255, 0.8);
}

.auth-tab-v4.active {
  background: rgba(147, 51, 234, 0.4);
  color: #ffffff;
}

/* Form heading inside right panel */
.auth-v4-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  font-family: "Space Grotesk", "Inter", sans-serif;
  margin-bottom: 0.4rem;
}

.auth-v4-subheading {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.8rem;
}

/* Floating label input wrapper */
.auth-input-wrap {
  position: relative;
  margin-bottom: 1.2rem;
}

.auth-input-wrap input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(147, 51, 234, 0.25);
  border-radius: 10px;
  padding: 22px 16px 8px;
  color: #ffffff;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.auth-input-wrap input::placeholder {
  color: transparent;
}

.auth-input-wrap input:focus {
  border-color: rgba(147, 51, 234, 0.7);
  background: rgba(147, 51, 234, 0.06);
}

/* Floating label */
.auth-input-wrap label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.4);
  font-family: "Inter", sans-serif;
  pointer-events: none;
  transition: top 0.18s ease, font-size 0.18s ease, color 0.18s ease, transform 0.18s ease;
  transform-origin: left center;
}

/* Floated state — input is focused or has a value (label may follow other siblings e.g. password toggle) */
.auth-input-wrap input:focus ~ label,
.auth-input-wrap input:not(:placeholder-shown) ~ label {
  top: 10px;
  transform: translateY(0) scale(0.82);
  font-size: 11px;
  color: #c084fc;
}

.auth-input-wrap--with-toggle input {
  padding-right: 48px;
}

.auth-input-wrap .auth-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  z-index: 2;
}

/* ── D1 auth modal: stacked labels + visible placeholders (overrides floating-label rules above) ── */
#authOverlay.auth-v4-overlay .auth-v4-panel-form .auth-input-wrap {
  margin-bottom: 1rem;
}

#authOverlay.auth-v4-overlay .auth-v4-panel-form .auth-input-wrap .auth-field-label {
  position: static !important;
  display: block;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Inter", sans-serif;
  pointer-events: auto;
  letter-spacing: 0.02em;
}

#authOverlay.auth-v4-overlay .auth-v4-panel-form .auth-input-wrap input {
  padding: 12px 14px;
}

#authOverlay.auth-v4-overlay .auth-v4-panel-form .auth-input-wrap--with-toggle input {
  padding-right: 48px;
}

#authOverlay.auth-v4-overlay .auth-v4-panel-form .auth-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.58) !important;
  opacity: 1;
}

/* High-contrast typed text + fields (avoid “black box” inputs on dark themes) */
#authOverlay.auth-v4-overlay .auth-v4-panel-form .auth-input-wrap input {
  color: #f5f3ff !important;
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(196, 181, 253, 0.4) !important;
}

#authOverlay.auth-v4-overlay .auth-v4-panel-form .auth-input-wrap input:focus {
  color: #ffffff !important;
  background: rgba(147, 51, 234, 0.12) !important;
  border-color: rgba(196, 181, 253, 0.75) !important;
}

#authOverlay.auth-v4-overlay .auth-v4-panel-form .auth-terms,
#authOverlay.auth-v4-overlay .auth-v4-panel-form .auth-terms span {
  color: rgba(255, 255, 255, 0.78) !important;
}

#authOverlay.auth-v4-overlay .auth-v4-panel-form .auth-input-row-toggle {
  position: relative;
}

#authOverlay.auth-v4-overlay .auth-v4-panel-form .auth-input-row-toggle input {
  width: 100%;
  box-sizing: border-box;
}

#authOverlay.auth-v4-overlay .auth-v4-panel-form .auth-input-row-toggle .auth-pw-toggle {
  top: 50%;
  transform: translateY(-50%);
}

/* Password strength bar */
.auth-strength-bar {
  height: 3px;
  border-radius: 3px;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.08);
  transition: width 0.3s ease, background 0.3s ease;
  width: 0%;
}

.auth-strength-bar[data-strength="weak"] {
  background: #ef4444;
  width: 30%;
}

.auth-strength-bar[data-strength="medium"] {
  background: #f59e0b;
  width: 65%;
}

.auth-strength-bar[data-strength="strong"] {
  background: #22c55e;
  width: 100%;
}

/* Primary auth submit button */
.btn-auth-primary {
  width: 100%;
  padding: 13px 20px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #9333ea, #6366f1);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  margin-bottom: 1rem;
}

.btn-auth-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-auth-primary:active {
  transform: translateY(0);
}

/* Social login buttons */
.btn-social-v4 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  width: 100%;
  margin-bottom: 10px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  text-align: left;
  box-sizing: border-box;
}

.btn-social-v4:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(147, 51, 234, 0.4);
  transform: translateY(-1px);
}

.btn-social-v4:active {
  transform: translateY(0);
}

.btn-social-v4 svg,
.btn-social-v4 img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Divider between social and email login */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1rem 0;
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
  font-family: "Inter", sans-serif;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* Continue as guest button */
.btn-guest {
  width: 100%;
  padding: 10px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
  margin-top: 8px;
}

.btn-guest:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   3. TOAST NOTIFICATION SYSTEM
   ============================================================ */

#toastContainer {
  position: fixed;
  bottom: 110px; /* sits above the 100px player bar */
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: rgba(22, 16, 42, 0.95);
  border: 1px solid rgba(147, 51, 234, 0.3);
  border-left: 3px solid #9333ea;
  border-radius: 10px;
  padding: 12px 18px;
  color: #ffffff;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  min-width: 220px;
  max-width: 320px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  animation: toast-in 0.3s ease forwards;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(8px);
}

.toast-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  line-height: 1.4;
}

.toast-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
}

.toast-close:hover {
  color: rgba(255, 255, 255, 0.75);
}

.toast.toast-success {
  border-left-color: #22c55e;
}

.toast.toast-error {
  border-left-color: #ef4444;
}

.toast.toast-warning {
  border-left-color: #f59e0b;
}

.toast.toast-info {
  border-left-color: #0ea5e9;
}

.toast.toast-out {
  animation: toast-out 0.3s ease forwards;
}

@keyframes toast-in {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toast-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100px);
    opacity: 0;
  }
}

/* ============================================================
   4. IMPROVED CATEGORIES SECTION — v4 category tiles
   ============================================================ */

.v4-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin: 1rem 0 2rem;
}

.v4-category-tile {
  border-radius: 12px;
  padding: 1.4rem 1.2rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
}

.v4-category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.18s ease;
  border-radius: inherit;
}

.v4-category-tile:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.v4-category-tile:hover::after {
  background: rgba(0, 0, 0, 0.12);
}

.v4-category-tile .tile-emoji {
  font-size: 2rem;
  position: absolute;
  top: 12px;
  right: 14px;
  opacity: 0.7;
  z-index: 1;
  line-height: 1;
}

.v4-category-tile .tile-name {
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  font-family: "Inter", "Space Grotesk", sans-serif;
  position: relative;
  z-index: 1;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.v4-category-tile .tile-count {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
  font-family: "Inter", sans-serif;
  position: relative;
  z-index: 1;
}

/* Individual tile color gradients */
.v4-tile-trending    { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.v4-tile-new         { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.v4-tile-chill       { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.v4-tile-party       { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.v4-tile-focus       { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.v4-tile-workout     { background: linear-gradient(135deg, #ef4444, #f97316); }
.v4-tile-sleep       { background: linear-gradient(135deg, #1e3a5f, #312e81); }
.v4-tile-hiphop      { background: linear-gradient(135deg, #1c1917, #44403c); }
.v4-tile-electronic  { background: linear-gradient(135deg, #0f172a, #9333ea); }
.v4-tile-lofi        { background: linear-gradient(135deg, #78350f, #92400e); }
.v4-tile-jazz        { background: linear-gradient(135deg, #7f1d1d, #991b1b); }
.v4-tile-classical   { background: linear-gradient(135deg, #1e1b4b, #312e81); }
.v4-tile-rock        { background: linear-gradient(135deg, #1c1917, #292524); }
.v4-tile-synthwave   { background: linear-gradient(135deg, #831843, #9333ea); }
.v4-tile-podcast     { background: linear-gradient(135deg, #064e3b, #065f46); }
.v4-tile-radio       { background: linear-gradient(135deg, #1e3a5f, #1d4ed8); }
.v4-tile-charts      { background: linear-gradient(135deg, #7c3aed, #db2777); }
.v4-tile-gaming      { background: linear-gradient(135deg, #052e16, #166534); }
.v4-tile-latin       { background: linear-gradient(135deg, #9a3412, #c2410c); }
.v4-tile-gospel      { background: linear-gradient(135deg, #713f12, #92400e); }

/* ============================================================
   5. KEYBOARD SHORTCUTS MODAL
   ============================================================ */

.kbd-shortcuts-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: overlay-fade-in 0.2s ease;
}

.kbd-shortcuts-overlay.hidden {
  display: none;
}

@keyframes overlay-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.kbd-shortcuts-modal {
  background: rgba(14, 8, 30, 0.96);
  border: 1px solid rgba(147, 51, 234, 0.25);
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: modal-slide-in 0.2s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(147, 51, 234, 0.3) transparent;
}

@keyframes modal-slide-in {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.kbd-shortcuts-modal::-webkit-scrollbar {
  width: 4px;
}

.kbd-shortcuts-modal::-webkit-scrollbar-track {
  background: transparent;
}

.kbd-shortcuts-modal::-webkit-scrollbar-thumb {
  background: rgba(147, 51, 234, 0.3);
  border-radius: 2px;
}

.kbd-shortcuts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.kbd-shortcuts-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.kbd-shortcuts-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 20px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.kbd-shortcuts-close:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.07);
}

.kbd-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(192, 132, 252, 0.7);
  font-family: "Inter", sans-serif;
  padding: 14px 0 6px;
}

.kbd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kbd-row:last-of-type {
  border-bottom: none;
}

.kbd-action {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-family: "Inter", sans-serif;
}

.kbd-keys {
  display: flex;
  align-items: center;
  gap: 4px;
}

kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 12px;
  font-family: "SF Mono", "Fira Code", "Fira Mono", monospace;
  color: rgba(192, 132, 252, 0.9);
  line-height: 1.5;
  white-space: nowrap;
}

.kbd-plus {
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
}

/* ============================================================
   6. VISUALIZER SELECTOR THUMBNAILS
   ============================================================ */

.viz-picker-wrap {
  background: rgba(22, 16, 42, 0.8);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: 14px;
  padding: 14px;
}

.viz-picker-heading {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Inter", sans-serif;
  margin-bottom: 10px;
}

.viz-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(147, 51, 234, 0.3) transparent;
}

.viz-picker-grid::-webkit-scrollbar {
  width: 4px;
}

.viz-picker-grid::-webkit-scrollbar-track {
  background: transparent;
}

.viz-picker-grid::-webkit-scrollbar-thumb {
  background: rgba(147, 51, 234, 0.3);
  border-radius: 2px;
}

.viz-picker-item {
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #0a0818;
  transition: border-color 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viz-picker-item.active {
  border-color: #9333ea;
}

.viz-picker-item:hover {
  border-color: rgba(147, 51, 234, 0.5);
  transform: scale(1.03);
}

.viz-picker-item canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.viz-picker-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  font-size: 9px;
  font-weight: 600;
  color: #ffffff;
  padding: 4px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: "Inter", sans-serif;
}

/* Active checkmark badge on selected viz */
.viz-picker-item.active::before {
  content: "✓";
  position: absolute;
  top: 4px;
  left: 5px;
  font-size: 9px;
  font-weight: 700;
  color: #ffffff;
  background: #9333ea;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  line-height: 14px;
  text-align: center;
}

/* ============================================================
   7. LOADING SKELETON
   ============================================================ */

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Pre-built skeleton shapes */
.skeleton-text {
  height: 14px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-text.sm { height: 11px; }
.skeleton-text.lg { height: 18px; }

.skeleton-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
}

.skeleton-thumb.wide {
  aspect-ratio: 16 / 9;
}

/* Track row skeleton */
.skeleton-track-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.skeleton-track-art {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
}

.skeleton-track-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ============================================================
   8. IMPROVED MOBILE
   ============================================================ */

@media (max-width: 768px) {
  /* Player bar stacks on mobile */
  .player-bar {
    height: auto;
    min-height: unset;
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Stack track strip under icon row inside .player-right */
  .player-right {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 6px;
  }
  .player-right-icons {
    border-left: none;
    margin-left: 0;
    padding-left: 0;
  }
  .player-now-info--bar-right {
    width: 100%;
    max-width: 100%;
    order: 5;
    margin-left: 0;
    padding-left: 0;
    padding-top: 8px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-direction: row;
    justify-content: flex-end;
  }
  .player-now-info--bar-right .player-now-info__meta {
    align-items: flex-end;
    text-align: right;
  }
  .player-now-info--bar-right .player-now-info__artist-line {
    justify-content: flex-end;
  }

  /* Hide brand panel on mobile — show only the form */
  .auth-v4-panel-brand {
    display: none;
  }

  .auth-v4-panel-form {
    width: 100%;
    padding: 2rem 1.5rem;
  }

  /* Category grid: 3 columns on tablet */
  .v4-category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .v4-category-tile {
    min-height: 80px;
    padding: 1rem 0.9rem;
  }

  .v4-category-tile .tile-name {
    font-size: 13px;
  }

  .v4-category-tile .tile-emoji {
    font-size: 1.6rem;
  }

  /* Viz picker: 3 columns on mobile */
  .viz-picker-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Keyboard shortcuts modal full-width */
  .kbd-shortcuts-modal {
    width: 96%;
    padding: 1.5rem;
  }

  /* Now playing modal stacks on mobile */
  .now-playing-modal.v4 {
    grid-template-columns: 1fr;
    height: auto;
    max-height: 92vh;
    overflow-y: auto;
  }

  /* Toast anchored higher due to wrapped player bar */
  #toastContainer {
    bottom: 140px;
    right: 12px;
  }

  .toast {
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 480px) {
  /* Category grid: 2 columns on small phones */
  .v4-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* Viz picker: 2 columns on small phones */
  .viz-picker-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .auth-v4-panel-form {
    padding: 1.5rem 1rem;
  }

  .auth-v4-form-inner {
    max-width: 100%;
  }
}

/* ============================================================
   9. NOW PLAYING EXPANDED — v4 split layout
   ============================================================ */

/* Grid-based split: left visualizer, right info/queue */
.now-playing-modal.v4 {
  display: grid;
  grid-template-columns: 1fr 360px;
  max-width: 1100px;
  width: 95%;
  height: 85vh;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(10, 8, 24, 0.98);
  border: 1px solid rgba(147, 51, 234, 0.18);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
}

/* Visualizer pane — full height, no extra border-radius */
.now-playing-modal.v4 .now-playing-modal-visualizer {
  border-radius: 0;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #050310;
}

/* Right info pane */
.now-playing-modal.v4 .now-playing-modal-info {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

/* Album art + title area inside info pane */
.now-playing-modal.v4 .now-playing-art-wrap {
  padding: 2rem 1.8rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.now-playing-modal.v4 .now-playing-art-img {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.now-playing-modal.v4 .now-playing-track-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.now-playing-modal.v4 .now-playing-track-artist {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-top: -6px;
}

/* Queue inside now-playing panel */
.now-playing-queue-tab {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  padding: 0 1.2rem;
}

.now-playing-queue-tab-btn {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.now-playing-queue-tab-btn:hover {
  color: rgba(255, 255, 255, 0.75);
}

.now-playing-queue-tab-btn.active {
  color: #c084fc;
  border-bottom-color: #9333ea;
}

/* Queue list scroll area */
.now-playing-queue-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(147, 51, 234, 0.25) transparent;
}

.now-playing-queue-list::-webkit-scrollbar {
  width: 3px;
}

.now-playing-queue-list::-webkit-scrollbar-thumb {
  background: rgba(147, 51, 234, 0.25);
  border-radius: 2px;
}

/* Individual queue item */
.queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 1.2rem;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 0;
}

.queue-item:hover {
  background: rgba(147, 51, 234, 0.08);
}

.queue-item.is-current {
  background: rgba(147, 51, 234, 0.15);
}

.queue-item-art {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(147, 51, 234, 0.15);
}

.queue-item-info {
  flex: 1;
  min-width: 0;
}

.queue-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Inter", sans-serif;
}

.queue-item.is-current .queue-item-title {
  color: #c084fc;
}

.queue-item-artist {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  font-family: "Inter", sans-serif;
}

.queue-item-duration {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  font-family: "Inter", sans-serif;
}

/* ============================================================
   10. SMOOTH ANIMATIONS
   ============================================================ */

/* Play button pulse when audio is actively playing */
@keyframes play-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(147, 51, 234, 0);
  }
}

.player-btn-play.is-playing {
  animation: play-pulse 2s ease-in-out infinite;
}

/* Track card hover lift */
.track-card,
.browse-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.track-card:hover,
.browse-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(147, 51, 234, 0.2);
}

/* Genre chip / mood button glow when active */
.genre-chip.active,
.mood-btn.active {
  box-shadow: 0 0 16px rgba(147, 51, 234, 0.45);
}

/* Sidebar nav item hover glide */
.nav-item,
.sidebar-item {
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.nav-item:hover,
.sidebar-item:hover {
  padding-left: calc(var(--nav-pad-left, 16px) + 3px);
}

/* Modal backdrop fade */
.modal-overlay {
  transition: opacity 0.2s ease;
}

/* Glassmorphism card shimmer on hover */
.glass-card {
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  background: rgba(30, 22, 55, 0.85);
  border-color: rgba(147, 51, 234, 0.35);
  box-shadow: 0 8px 32px rgba(147, 51, 234, 0.15);
}

/* Smooth progress bar fill */
.progress-fill,
.seek-fill {
  transition: width 0.1s linear;
}

/* Volume slider thumb glow */
input[type="range"].volume-slider::-webkit-slider-thumb {
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

input[type="range"].volume-slider:active::-webkit-slider-thumb {
  box-shadow: 0 0 0 6px rgba(147, 51, 234, 0.25);
  transform: scale(1.15);
}

/* Like / heart button pop animation */
@keyframes heart-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.like-btn.just-liked {
  animation: heart-pop 0.4s ease;
}

/* Page-level fade-in for sections loaded dynamically */
@keyframes section-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-animated {
  animation: section-fade-in 0.35s ease forwards;
}

/* Ripple effect base (trigger via JS adding .ripple child) */
.ripple-container {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(147, 51, 234, 0.25);
  transform: scale(0);
  animation: ripple-expand 0.5s linear;
  pointer-events: none;
}

@keyframes ripple-expand {
  to {
    transform: scale(4);
    opacity: 0;
  }
}


/* ══════════════════════════════════════════════════════════════════════
   AUTH VISIBILITY OVERRIDE — MUST BE LAST
   Guarantees .hidden always wins and :not(.hidden) always shows correctly.
   Fixes "Sign In buttons stay invisible after logout" and
   "Sign Out button never appears in header" bugs.
   ══════════════════════════════════════════════════════════════════════ */

#btnLogIn.hidden,
#btnSignUp.hidden,
#btnSignOut.hidden,
#headerAuthEntry.hidden,
#headerUserTray.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#headerAuthEntry:not(.hidden) {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  flex-shrink: 0 !important;
}

#btnLogIn:not(.hidden),
#btnSignUp:not(.hidden),
#btnSignOut:not(.hidden) {
  display: inline-flex !important;
  align-items: center !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#headerUserTray:not(.hidden) {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  visibility: visible !important;
}

/* Slider vertical deprecation fix */
input[type=range].vertical-slider {
  writing-mode: vertical-lr;
  direction: rtl;
  appearance: slider-vertical;
}

/* ══ ADMIN PANEL ══════════════════════════════════════════════════════════ */
.admin-panel {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.admin-header { margin-bottom: 2rem; }
.admin-title { font-size: 2rem; font-weight: 700; color: #fff; margin: 0 0 0.25rem; }
.admin-subtitle { color: rgba(255,255,255,0.5); font-size: 0.95rem; margin: 0; }

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.admin-stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}
.admin-stat-number { font-size: 2rem; font-weight: 700; color: #a855f7; }
.admin-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0;
}
.admin-tab {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.admin-tab:hover { color: #fff; }
.admin-tab.active { color: #a855f7; border-bottom-color: #a855f7; }

.admin-toolbar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.admin-search, .admin-filter {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}
.admin-search { flex: 1; }
.admin-filter { min-width: 140px; }
.admin-search::placeholder { color: rgba(255,255,255,0.4); }

.admin-list { display: flex; flex-direction: column; gap: 0.5rem; }
.admin-loading { color: rgba(255,255,255,0.4); text-align: center; padding: 2rem; }
.admin-hint { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-bottom: 1rem; }

.admin-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: background 0.2s;
}
.admin-row:hover { background: rgba(255,255,255,0.08); }
.admin-row-cover {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.admin-row-info { flex: 1; min-width: 0; }
.admin-row-title { font-weight: 600; color: #fff; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-row-meta { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-top: 0.15rem; }
.admin-row-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.admin-badge-public { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.admin-badge-private { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.15); }
.admin-badge-featured { background: rgba(168,85,247,0.2); color: #c084fc; border: 1px solid rgba(168,85,247,0.4); }

.admin-row-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.admin-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.admin-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.admin-btn-danger { border-color: rgba(239,68,68,0.4); color: #f87171; }
.admin-btn-danger:hover { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.6); }
.admin-btn-feature { border-color: rgba(168,85,247,0.4); color: #c084fc; }
.admin-btn-feature:hover { background: rgba(168,85,247,0.15); border-color: rgba(168,85,247,0.6); }
.admin-btn-primary { background: rgba(168,85,247,0.2); border-color: rgba(168,85,247,0.5); color: #c084fc; }

.admin-tab-content.hidden { display: none; }
@media (max-width: 600px) {
  .admin-stats-row { grid-template-columns: repeat(2, 1fr); }
  .admin-toolbar { flex-direction: column; }
}

/* ══ GRAFFITI STREET ART LYRICS ══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Cabin+Sketch:wght@400;700&display=swap');

body[data-lyrics-font="graffiti"] .now-playing-lyrics,
body[data-lyrics-font="graffiti"] .now-playing-lyrics-inner,
body[data-lyrics-font="graffiti"] .lyrics-line {
  font-family: 'Permanent Marker', 'Cabin Sketch', cursive !important;
}

body[data-lyrics-font="graffiti"] .lyrics-line {
  font-size: 2rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.3 !important;
  color: transparent !important;
  background: linear-gradient(135deg, #ff006e, #8338ec, #3a86ff, #06ffa5) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  text-shadow: none !important;
  filter: drop-shadow(2px 3px 0px rgba(0,0,0,0.8)) drop-shadow(-1px -1px 0px rgba(0,0,0,0.6)) !important;
  transform-origin: left center !important;
}

body[data-lyrics-font="graffiti"] .lyrics-line.active {
  font-size: 2.4rem !important;
  background: linear-gradient(135deg, #ffbe0b, #fb5607, #ff006e, #8338ec) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  filter: drop-shadow(3px 4px 0px rgba(0,0,0,0.9)) drop-shadow(-1px -1px 0px rgba(0,0,0,0.7)) !important;
  animation: graffitiSplash 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

body[data-lyrics-font="graffiti"] .lyrics-line:nth-child(odd).active {
  background: linear-gradient(135deg, #06ffa5, #3a86ff, #8338ec) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

@keyframes graffitiSplash {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-8deg) translateX(-30px);
    filter: drop-shadow(3px 4px 0px rgba(0,0,0,0.9)) blur(4px);
  }
  50% {
    transform: scale(1.15) rotate(2deg) translateX(5px);
    filter: drop-shadow(3px 4px 0px rgba(0,0,0,0.9)) blur(0px);
  }
  70% {
    transform: scale(0.95) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg) translateX(0);
    filter: drop-shadow(3px 4px 0px rgba(0,0,0,0.9)) drop-shadow(-1px -1px 0px rgba(0,0,0,0.7));
  }
}

/* Each line gets a slightly different angle for authentic graffiti feel */
body[data-lyrics-font="graffiti"] .lyrics-line:nth-child(3n) {
  transform: rotate(-1.5deg) !important;
}
body[data-lyrics-font="graffiti"] .lyrics-line:nth-child(3n+1) {
  transform: rotate(0.8deg) !important;
}
body[data-lyrics-font="graffiti"] .lyrics-line:nth-child(3n+2) {
  transform: rotate(-0.5deg) !important;
}
body[data-lyrics-font="graffiti"] .lyrics-line.active {
  transform: scale(1) rotate(0deg) !important;
}

/* ══ SONARA FOOTER — REDESIGNED ══════════════════════════════════════════ */
.sonara-footer {
  position: relative;
  z-index: 2;
  background: rgba(5, 3, 15, 0.98);
  border-top: 1px solid rgba(147, 51, 234, 0.2);
  margin-top: 0;
  padding-bottom: calc(var(--player-height, 80px) + 1rem);
}

.sonara-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px 40px;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 60px;
}

/* Brand column */
.sonara-footer-brand { display: flex; flex-direction: column; gap: 20px; }

.sonara-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.sonara-footer-logo img { border-radius: 8px; }

.sonara-footer-tagline {
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
  max-width: 280px;
}

/* Newsletter */
.sonara-footer-newsletter { display: flex; flex-direction: column; gap: 8px; }
.sonara-footer-newsletter label {
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sonara-footer-newsletter-input-wrap { display: flex; gap: 8px; }
.sonara-footer-newsletter-input-wrap input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  padding: 10px 14px;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.sonara-footer-newsletter-input-wrap input:focus { border-color: rgba(147,51,234,0.6); }
.sonara-footer-newsletter-input-wrap input::placeholder { color: rgba(255,255,255,0.3); }
.sonara-footer-newsletter-input-wrap button {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  border: none;
  border-radius: 8px;
  color: #fff;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.sonara-footer-newsletter-input-wrap button:hover { opacity: 0.85; }
.sonara-footer-newsletter-hint { font-size: 0.75rem; margin: 0; min-height: 1em; }

/* Social icons */
.sonara-footer-social { display: flex; gap: 10px; align-items: center; }
.sonara-footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.2s;
}
.sonara-footer-social-btn:hover {
  background: rgba(147,51,234,0.2);
  border-color: rgba(147,51,234,0.5);
  color: #c084fc;
  transform: translateY(-2px);
}

/* Links grid */
.sonara-footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.sonara-footer-col { display: flex; flex-direction: column; gap: 10px; }
.sonara-footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 6px;
}
.sonara-footer-col a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.4;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sonara-footer-col a:hover { color: #c084fc; }

/* Support highlight */
.sonara-footer-support-link {
  color: rgba(192,132,252,0.8) !important;
  font-weight: 600 !important;
}
.sonara-footer-support-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 8px 10px;
  background: rgba(147,51,234,0.1);
  border: 1px solid rgba(147,51,234,0.25);
  border-radius: 8px;
  font-size: 0.78rem;
  color: rgba(192,132,252,0.9);
}

/* Bottom bar */
.sonara-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sonara-footer-bottom span {
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
}
.sonara-footer-bottom-links { display: flex; gap: 20px; }
.sonara-footer-bottom-links a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s;
}
.sonara-footer-bottom-links a:hover { color: rgba(192,132,252,0.8); }

/* Legal modal styles */
#sonaraLegalModal h4 { color: #c084fc; font-size: 14px; margin: 16px 0 6px; }
#sonaraLegalModal a { color: #a855f7; }
#sonaraLegalModal p { margin: 0 0 10px; }

@media (max-width: 900px) {
  .sonara-footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .sonara-footer-links { grid-template-columns: repeat(2, 1fr); }
  .sonara-footer-tagline { max-width: 100%; }
}
@media (max-width: 560px) {
  .sonara-footer-inner { padding: 40px 20px 32px; }
  .sonara-footer-links { grid-template-columns: 1fr 1fr; gap: 24px; }
  .sonara-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ══ SONARA HERO — TYPEWRITER + VELOCITY BAR ══════════════════════════════ */
.sonara-hero {
  position: relative;
  padding: 3rem 2rem 1.5rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 242, 255, 0.08);
}

/* Subtle radial glow behind the title */
.sonara-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 10%;
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(147, 51, 234, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.sonara-hero-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #00f2ff;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  opacity: 0.8;
}

.sonara-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
  min-height: 1.2em;
  display: flex;
  align-items: center;
  gap: 0;
}

.sonara-hero-typewriter {
  background: linear-gradient(135deg, #ffffff 0%, #e0c9ff 60%, #00f2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sonara-hero-cursor {
  display: inline-block;
  color: #00f2ff;
  font-weight: 300;
  animation: heroBlinkCursor 0.8s step-end infinite;
  margin-left: 2px;
  -webkit-text-fill-color: #00f2ff;
}

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

.sonara-hero-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 1.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ── Velocity Bar ── */
.sonara-velocity-bar {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(147, 51, 234, 0.25);
  border-radius: 999px;
  background: rgba(147, 51, 234, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 0;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.sonara-velocity-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: velocityScroll 28s linear infinite;
  width: max-content;
}

.sonara-velocity-track span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #00f2ff;
  text-transform: uppercase;
  padding: 0 18px;
}

.sonara-velocity-dot {
  color: rgba(147, 51, 234, 0.7) !important;
  padding: 0 4px !important;
  font-size: 0.9rem !important;
  letter-spacing: 0 !important;
}

@keyframes velocityScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pause on hover */
.sonara-velocity-bar:hover .sonara-velocity-track {
  animation-play-state: paused;
}

@media (max-width: 600px) {
  .sonara-hero { padding: 2rem 1rem 1rem; }
  .sonara-hero-title { font-size: 2rem; }
}

/* ══ LANDING TWO-COLUMN LAYOUT ═══════════════════════════════════════════ */
.landing-two-col {
  display: grid;
  grid-template-columns: minmax(0, 65%) minmax(0, 35%);
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 2rem;
}
@media (max-width: 1100px) {
  .landing-two-col { grid-template-columns: 1fr; }
}

.landing-main-col { min-width: 0; }

/* ══ RIGHT SIDEBAR ════════════════════════════════════════════════════════ */
.landing-side-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 5.5rem;
  min-width: 0;
}
@media (max-width: 1100px) {
  .landing-side-col { position: static; }
}

.landing-side-panel,
.landing-hype-panel {
  border-radius: 16px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(147, 51, 234, 0.2);
  background: rgba(15, 10, 35, 0.6) !important;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.landing-side-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 190, 230, 0.85);
  margin: 0 0 0.75rem;
}

/* ── Recently Played list ── */
.home-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 210px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(147, 51, 234, 0.35) transparent;
}
.home-recent-list::-webkit-scrollbar { width: 4px; }
.home-recent-list::-webkit-scrollbar-thumb {
  background: rgba(147, 51, 234, 0.4);
  border-radius: 999px;
}

.home-recent-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.35rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.home-recent-item:hover { background: rgba(147,51,234,0.1); }
.home-recent-item img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(147,51,234,0.15);
}
.home-recent-item-info { min-width: 0; }
.home-recent-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(248,246,255,0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-recent-meta {
  font-size: 0.7rem;
  color: rgba(168,155,192,0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Community Hype ticker ── */
.hype-ticker-outer {
  height: 210px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}
.hype-ticker-inner {
  display: flex;
  flex-direction: column;
  animation: hypeScroll 30s linear infinite;
}
@keyframes hypeScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.hype-ticker-outer:hover .hype-ticker-inner {
  animation-play-state: paused;
}
.hype-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.25rem 0;
}
.hype-card {
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(147,51,234,0.12);
  font-size: 0.78rem;
  color: rgba(220,215,240,0.85);
  line-height: 1.4;
  backdrop-filter: none;
  transition: background 0.15s;
}
.hype-card:hover { background: rgba(147,51,234,0.12) !important; }
.hype-card strong {
  color: #00f2ff;
  font-weight: 600;
}
.hype-accent {
  color: rgba(192,132,252,0.9);
  font-style: normal;
  margin: 0 2px;
}
.hype-card em {
  color: rgba(255,255,255,0.9);
  font-style: normal;
  font-weight: 500;
}

/* ══ CRYSTAL SOUNDSCAPE ══════════════════════════════════════════════════ */
.soundscape-section { padding-bottom: 0; }
.soundscape-header { margin-bottom: 1rem; }
.soundscape-sub {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em;
  color: rgba(0,242,255,0.5); margin: 0.2rem 0 0; text-transform: uppercase;
}
.soundscape-container {
  position: relative; width: 100%; height: 460px;
  background: radial-gradient(ellipse at 30% 40%, rgba(88,28,220,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 60%, rgba(0,200,255,0.07) 0%, transparent 55%),
              linear-gradient(160deg, #080810 0%, #0d0a1e 50%, #080810 100%);
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(147,51,234,0.2);
  box-shadow: 0 0 60px rgba(138,43,226,0.07), inset 0 0 60px rgba(0,0,0,0.3);
}
.soundscape-stars {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.soundscape-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}
.soundscape-nodes { position: absolute; inset: 0; z-index: 2; }

/* ── Crystal nodes ── */
.sc-node {
  position: absolute; display: flex; flex-direction: column;
  align-items: center; cursor: pointer;
  animation: scFloat var(--float-dur, 5.5s) ease-in-out var(--float-delay, 0s) infinite;
}
.sc-node.sc-major { --float-dur: 6s; }
.sc-node.sc-mid   { --float-dur: 5s; }

@keyframes scFloat {
  0%,100% { transform: translate(-50%,-50%) translateY(0px)   rotate(0deg); }
  33%     { transform: translate(-50%,-50%) translateY(-9px)  rotate(1.5deg); }
  66%     { transform: translate(-50%,-50%) translateY(-4px)  rotate(-1deg); }
}

.sc-crystal {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.sc-body {
  position: relative; transition: filter 0.3s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

/* Outer halo ring on major nodes */
.sc-ring { animation: ringPulse 3s ease-in-out infinite; }
@keyframes ringPulse {
  0%,100% { opacity: 0.6; transform: translate(-50%,-50%) scale(1); }
  50%     { opacity: 1;   transform: translate(-50%,-50%) scale(1.08); }
}

/* Labels */
.sc-label {
  margin-top: 7px; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  font-family: 'Share Tech Mono', 'JetBrains Mono', monospace;
  white-space: nowrap; opacity: 0; transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s; pointer-events: none;
  text-shadow: 0 0 10px currentColor;
}
.sc-node.sc-major .sc-label { opacity: 1; transform: translateY(0); font-size: 0.72rem; }
.sc-node.sc-mid   .sc-label { opacity: 0.75; transform: translateY(0); }
.sc-node:hover    .sc-label { opacity: 1 !important; transform: translateY(0) !important; }

/* Tooltip */
.soundscape-tooltip {
  position: absolute; z-index: 10;
  background: rgba(10,6,24,0.97); border: 1px solid rgba(147,51,234,0.45);
  border-radius: 14px; padding: 12px 16px; min-width: 200px; max-width: 260px;
  backdrop-filter: blur(24px); pointer-events: none;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 20px rgba(138,43,226,0.25);
  transition: opacity 0.15s;
}
.soundscape-tooltip.hidden { opacity: 0; }
.soundscape-tooltip-genre {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #00f2ff; margin-bottom: 10px;
  font-family: 'Share Tech Mono', monospace;
  border-bottom: 1px solid rgba(0,242,255,0.15); padding-bottom: 6px;
}
.soundscape-tooltip-tracks { display: flex; flex-direction: column; gap: 6px; }
.soundscape-tooltip-track {
  font-size: 0.78rem; color: rgba(220,215,240,0.9);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.soundscape-tooltip-track em {
  display: block; color: rgba(192,132,252,0.7);
  font-style: normal; font-size: 0.68rem; margin-top: 1px;
}

@media (max-width: 700px) {
  .soundscape-container { height: 320px; }
  .sc-label { font-size: 0.5rem; }
}

/* ── TOP RANKINGS ─────────────────────────────────────────── */
.rankings-tabs {
  display: flex;
  gap: 6px;
}
.rankings-tab {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.45);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}
.rankings-tab.active,
.rankings-tab:hover {
  background: rgba(147,51,234,0.2);
  border-color: rgba(147,51,234,0.5);
  color: #C084FC;
}
.rankings-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.ranking-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.ranking-row:hover {
  background: rgba(147,51,234,0.08);
  border-color: rgba(147,51,234,0.25);
  transform: translateX(3px);
}
.ranking-row:nth-child(1) { border-left: 3px solid #FFD700; }
.ranking-row:nth-child(2) { border-left: 3px solid #C0C0C0; }
.ranking-row:nth-child(3) { border-left: 3px solid #CD7F32; }
.ranking-pos {
  font-size: 15px;
  font-weight: 800;
  color: rgba(255,255,255,0.25);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.ranking-row:nth-child(1) .ranking-pos { color: #FFD700; }
.ranking-row:nth-child(2) .ranking-pos { color: #C0C0C0; }
.ranking-row:nth-child(3) .ranking-pos { color: #CD7F32; }
.ranking-cover {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(147,51,234,0.2);
  flex-shrink: 0;
}
.ranking-info {
  flex: 1;
  min-width: 0;
}
.ranking-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking-artist {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}
.ranking-plays {
  font-size: 12px;
  font-weight: 600;
  color: rgba(192,132,252,0.7);
  flex-shrink: 0;
}
.ranking-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(147,51,234,0.4);
  background: rgba(147,51,234,0.15);
  color: #C084FC;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.ranking-play-btn:hover {
  background: rgba(147,51,234,0.35);
}
.rankings-empty {
  text-align: center;
  color: rgba(255,255,255,0.3);
  padding: 2rem;
  font-size: 14px;
}

/* ── GENRE DROPDOWN ─────────────────────────────────────────── */
.genre-dropdown { position: relative; width: 100%; }
.genre-dropdown-toggle {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s;
  text-align: left;
}
.genre-dropdown-toggle:hover { border-color: rgba(147,51,234,0.5); }
.genre-dropdown-arrow { font-size: 11px; opacity: 0.5; }
.genre-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #1a1025;
  border: 1px solid rgba(147,51,234,0.3);
  border-radius: 12px;
  padding: 12px;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  max-height: 240px;
  overflow-y: auto;
}
.genre-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.genre-chip {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.genre-chip:hover { border-color: rgba(147,51,234,0.4); color: #C084FC; }
.genre-chip.selected {
  background: rgba(147,51,234,0.25);
  border-color: rgba(147,51,234,0.6);
  color: #C084FC;
  font-weight: 600;
}

/* ── TRACK PAGE ─────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════
   ✦ SONARA TRACK PAGE — Artesian Editorial Redesign
   Matches reference image: full-page, 3-col hero,
   floating glass action panel, deep-dive carousels
═══════════════════════════════════════════════════════ */

#trackPageOverlay {
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow-y: auto;
  align-items: flex-start;
  padding: 0;
}
#trackPageOverlay.hidden { display: none !important; }
#trackPageOverlay:not(.hidden) { display: flex !important; }

/* Modal — full page sheet */
.tp-modal {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, #0d0820 0%, #060312 50%, #020108 100%);
  position: relative;
  overflow: hidden;
}

/* Blurred album art background layer */
.tp-bg-art {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center top;
  filter: blur(80px) saturate(1.6) brightness(0.35);
  transform: scale(1.15);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
.tp-bg-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg,
    rgba(6,2,18,0.55) 0%,
    rgba(4,1,14,0.75) 40%,
    rgba(2,0,10,0.92) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Close button */
.tp-close {
  position: fixed;
  top: 20px; right: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.55);
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.tp-close:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(0,210,255,0.4);
  box-shadow: 0 0 12px rgba(0,210,255,0.2);
}

/* ══ HERO ══ */
.tp-hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  gap: 40px;
  align-items: start;
  padding: 60px 60px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cover */
.tp-cover-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  flex-shrink: 0;
}
.tp-cover {
  width: 260px;
  height: 260px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(0,210,255,0.3);
  box-shadow:
    0 0 0 1px rgba(0,210,255,0.1),
    0 24px 70px rgba(0,0,0,0.8),
    0 0 60px rgba(0,210,255,0.12);
  display: block;
}
.tp-cover-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,210,255,0.18) 0%, transparent 65%);
  pointer-events: none;
  animation: tpGlowPulse 4s ease-in-out infinite;
  z-index: -1;
}
@keyframes tpGlowPulse {
  0%,100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.tp-play-btn {
  position: absolute;
  bottom: 12px; right: 12px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 28px rgba(0,210,255,0.55), 0 6px 20px rgba(0,0,0,0.6);
  transition: all 0.25s;
  z-index: 3;
}
.tp-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(0,210,255,0.7);
}

/* Hero centre info */
.tp-hero-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
}
.tp-genres {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 8px;
}
.tp-genre-tag {
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(0,210,255,0.1);
  border: 1px solid rgba(0,210,255,0.28);
  color: rgba(0,210,255,0.85);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tp-title {
  font-size: 40px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.tp-artist-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none; border: none;
  cursor: pointer; padding: 0;
  margin-bottom: 16px;
  color: rgba(0,210,255,0.9);
  font-size: 17px; font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.tp-artist-link:hover { color: rgba(0,210,255,1); }
.tp-artist-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0,210,255,0.25);
}

/* Meta list — bold label + value, like the image */
.tp-meta-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 22px;
}
.tp-meta-row {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  display: flex; gap: 6px;
}
.tp-meta-label {
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

/* Primary actions */
.tp-primary-actions {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.tp-action-like {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(236,72,153,0.12);
  border: 1px solid rgba(236,72,153,0.35);
  color: #f472b6;
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.tp-action-like:hover, .tp-action-like.liked {
  background: rgba(236,72,153,0.25);
  border-color: rgba(236,72,153,0.6);
  box-shadow: 0 0 18px rgba(236,72,153,0.25);
}
.tp-action-like.liked svg { fill: #f472b6; }
.tp-action-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.tp-action-btn:hover {
  background: rgba(0,210,255,0.08);
  border-color: rgba(0,210,255,0.3);
  color: rgba(0,210,255,0.9);
}
.tp-action-more {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  font-size: 16px; font-weight: 700;
  letter-spacing: 2px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.tp-action-more:hover {
  background: rgba(0,210,255,0.08);
  border-color: rgba(0,210,255,0.3);
  color: rgba(0,210,255,0.9);
}
.tp-action-label { white-space: nowrap; }

/* More panel */
.tp-more-panel {
  margin-top: 8px;
  padding: 8px;
  background: rgba(6,2,18,0.9);
  border: 1px solid rgba(0,210,255,0.2);
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 2px;
  backdrop-filter: blur(12px);
  width: fit-content;
}
.tp-more-panel.hidden { display: none; }
.tp-more-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  background: none; border: none;
  color: rgba(255,255,255,0.65);
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
  white-space: nowrap; text-align: left;
}
.tp-more-item:hover {
  background: rgba(0,210,255,0.08);
  color: rgba(0,210,255,0.9);
}

/* ══ RIGHT ACTION PANEL — floating glass card ══ */
.tp-action-panel {
  position: relative;
  align-self: start;
}
.tp-panel-glow-border {
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(0,210,255,0.4), rgba(147,51,234,0.2), rgba(0,210,255,0.1));
  z-index: 0;
  pointer-events: none;
}
.tp-action-panel-inner {
  position: relative;
  z-index: 1;
  background: rgba(6,3,20,0.85);
  border-radius: 16px;
  padding: 18px 16px;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 0 40px rgba(0,210,255,0.1), inset 0 0 30px rgba(0,0,0,0.3);
}

/* Panel rows */
.tp-panel-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: none; border: none;
  color: rgba(255,255,255,0.8);
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.18s;
  text-align: left; width: 100%;
}
.tp-panel-row:hover {
  background: rgba(0,210,255,0.08);
  color: #fff;
}
.tp-panel-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tp-panel-icon--playlist { background: rgba(0,210,255,0.12); color: rgba(0,210,255,0.9); }
.tp-panel-icon--fav { background: rgba(236,72,153,0.12); }
.tp-panel-icon--share { background: rgba(147,51,234,0.12); color: #C084FC; }
.tp-panel-label { font-size: 14px; }

/* Listen on row */
.tp-panel-listen-on {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
}
.tp-panel-listen-label {
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}
.tp-panel-listen-icons {
  display: flex; gap: 8px; align-items: center;
}
.tp-listen-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}
.tp-listen-icon:hover { transform: scale(1.12); }
.tp-listen-spotify { background: #1DB954; color: #fff; box-shadow: 0 0 10px rgba(29,185,84,0.4); }
.tp-listen-apple { background: linear-gradient(135deg, #fc5c7d, #6a3de8); color: #fff; box-shadow: 0 0 10px rgba(252,92,125,0.4); }
.tp-listen-itunes { background: linear-gradient(135deg, #f56040, #f093fb); color: #fff; box-shadow: 0 0 10px rgba(245,96,64,0.4); }

.tp-panel-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 6px 0;
}

/* Artist Note button + body */
.tp-panel-artist-note-btn {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(0,210,255,0.06);
  border: 1px solid rgba(0,210,255,0.22);
  color: rgba(0,210,255,0.85);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer; transition: all 0.2s;
  text-align: center;
}
.tp-panel-artist-note-btn:hover {
  background: rgba(0,210,255,0.12);
  border-color: rgba(0,210,255,0.45);
  box-shadow: 0 0 16px rgba(0,210,255,0.15);
}
.tp-artist-note-body {
  padding: 10px 12px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  margin-top: 4px;
}
.tp-artist-note-text {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin: 0;
  font-style: italic;
}

/* Support button */
.tp-panel-support {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: rgba(147,51,234,0.12);
  border: 1px solid rgba(147,51,234,0.3);
  color: #C084FC;
  font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  margin-top: 4px;
}
.tp-panel-support:hover {
  background: rgba(147,51,234,0.22);
  box-shadow: 0 0 20px rgba(147,51,234,0.25);
}

/* ══ CONTENT SECTION ══ */
.tp-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px 80px;
}

/* Content headings — bold, like image */
.tp-content-heading {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.tp-deep-dive-heading {
  margin-top: 40px;
  margin-bottom: 28px;
}

/* Credits block */
.tp-credits-block {
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  margin-bottom: 24px;
}
.tp-credits-inner {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 2;
}
.tp-credits-inner strong { color: rgba(255,255,255,0.75); }

/* Lyric spotlight */
.tp-lyric-spotlight {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 16px 20px;
  background: rgba(0,210,255,0.05);
  border: 1px solid rgba(0,210,255,0.25);
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: 0 0 24px rgba(0,210,255,0.08);
}
.tp-spotlight-quote {
  font-size: 2rem;
  color: rgba(0,210,255,0.65);
  font-family: Georgia, serif;
  line-height: 1;
  flex-shrink: 0;
}
.tp-spotlight-text {
  font-size: 16px; font-weight: 700;
  font-style: italic; color: #fff;
  line-height: 1.55; flex: 1;
}

/* Lyrics */
.tp-lyrics-block { margin-bottom: 32px; }
.tp-lyrics {
  font-size: 14px; line-height: 2;
  color: rgba(255,255,255,0.5);
  white-space: pre-wrap;
  max-height: 260px;
  overflow-y: auto;
  padding: 16px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,210,255,0.2) transparent;
}

/* Discovery row — two columns side by side */
.tp-discovery-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.tp-discovery-col {}
.tp-discovery-label {
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.tp-discovery-artist, .tp-discovery-genre {
  color: rgba(0,210,255,0.8);
  font-weight: 700;
}

/* Carousel with arrows */
.tp-discovery-carousel-wrap {
  display: flex; align-items: center; gap: 10px;
}
.tp-carousel {
  display: flex; gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,210,255,0.15) transparent;
  flex: 1;
}
.tp-carousel::-webkit-scrollbar { height: 3px; }
.tp-carousel::-webkit-scrollbar-track { background: transparent; }
.tp-carousel::-webkit-scrollbar-thumb { background: rgba(0,210,255,0.2); border-radius: 2px; }

.tp-carousel-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(0,210,255,0.2);
  color: rgba(0,210,255,0.7);
  font-size: 18px;
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.tp-carousel-arrow:hover {
  background: rgba(0,210,255,0.1);
  border-color: rgba(0,210,255,0.5);
  color: #fff;
}

/* Carousel cards — large square like image */
.tp-carousel-card {
  flex-shrink: 0;
  width: 140px;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: 12px;
  border: 1px solid rgba(0,210,255,0.12);
  background: rgba(0,0,0,0.35);
  padding: 0 0 10px;
  overflow: hidden;
}
.tp-carousel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,210,255,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 20px rgba(0,210,255,0.1);
}
.tp-carousel-cover {
  width: 140px; height: 140px;
  object-fit: cover;
  display: block;
  margin-bottom: 8px;
}
.tp-carousel-cover-fallback {
  width: 140px; height: 140px;
  background: rgba(0,210,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin-bottom: 8px;
}
.tp-carousel-title {
  font-size: 12px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 10px;
}
.tp-carousel-artist {
  font-size: 11px; color: rgba(255,255,255,0.4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 2px 10px 0;
}
.tp-carousel-play-row {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px 0;
}
.tp-carousel-play-btn {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  border: none; color: #fff; font-size: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: transform 0.15s;
}
.tp-carousel-play-btn:hover { transform: scale(1.15); }
.tp-carousel-go {
  font-size: 10px; color: rgba(0,210,255,0.6); font-weight: 600;
}

/* Comments */
.tp-comments-block {}
.tp-comments-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.tp-comment-count {
  font-size: 12px; color: rgba(147,51,234,0.8);
  font-weight: 700; background: rgba(147,51,234,0.1);
  padding: 2px 8px; border-radius: 999px;
}
.tp-comment-form {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 20px;
}
.tp-comment-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; color: #fff;
  padding: 12px 16px; font-size: 13px;
  resize: none; font-family: inherit;
  transition: border-color 0.2s;
  width: 100%; box-sizing: border-box;
}
.tp-comment-input:focus {
  outline: none;
  border-color: rgba(0,210,255,0.35);
  box-shadow: 0 0 14px rgba(0,210,255,0.08);
}
.tp-comment-form-footer {
  display: flex; justify-content: space-between; align-items: center;
}
.tp-comment-hint { font-size: 11px; color: rgba(255,255,255,0.22); }
.tp-comment-submit {
  padding: 9px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124,58,237,0.9), rgba(6,182,212,0.7));
  border: none; color: #fff;
  font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.tp-comment-submit:hover { opacity: 0.85; box-shadow: 0 0 18px rgba(0,210,255,0.3); }
.tp-comment-submit:disabled { opacity: 0.45; cursor: not-allowed; }
.tp-comments-list { display: flex; flex-direction: column; }

/* ══ MOBILE ══ */
@media (max-width: 900px) {
  .tp-hero {
    grid-template-columns: 1fr;
    padding: 48px 24px 32px;
    gap: 24px;
  }
  .tp-cover-wrap { width: 180px; height: 180px; margin: 0 auto; }
  .tp-cover { width: 180px; height: 180px; }
  .tp-title { font-size: 28px; }
  .tp-artist-link { font-size: 15px; }
  .tp-action-panel { width: 100%; }
  .tp-action-panel-inner { padding: 14px 12px; }
  .tp-content { padding: 0 24px 60px; }
  .tp-discovery-row { grid-template-columns: 1fr; gap: 24px; }
  .tp-deep-dive-heading { margin-top: 28px; }
}

@media (max-width: 600px) {
  .tp-modal { min-height: 100dvh; }
  .tp-hero { padding: 44px 16px 24px; }
  .tp-cover-wrap { width: 160px; height: 160px; }
  .tp-cover { width: 160px; height: 160px; }
  .tp-title { font-size: 24px; }
  .tp-primary-actions { justify-content: center; }
  .tp-content { padding: 0 16px 60px; }
  .tp-comment-hint { display: none; }
  .tp-close { top: 14px; right: 14px; width: 34px; height: 34px; }
  .tp-discovery-carousel-wrap { flex-direction: column; align-items: flex-start; }
  .tp-carousel-arrow { display: none; }
}
/* ── UPLOAD FORM CREDITS ROW ────────────────────────────────── */
.upload-credits-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}
.upload-credit-field { margin-bottom: 0 !important; }
@media (max-width: 500px) { .upload-credits-row { grid-template-columns: 1fr; } }

/* ── TRACK CARD GENRE LABEL ─────────────────────────────────── */
.track-card-genre-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(192,132,252,0.55);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── SONARA COMMENTS SYSTEM v2 ─────────────────────────────────────────── */

/* Loading animation */
.snr-comments-loading {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 20px 0;
  justify-content: center;
}
.snr-comments-loading-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(147,51,234,0.5);
  animation: snrDotPulse 1.2s ease-in-out infinite;
}
.snr-comments-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.snr-comments-loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes snrDotPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* Empty state */
.snr-comments-empty {
  text-align: center;
  padding: 28px 0 12px;
  color: rgba(255,255,255,0.3);
  font-size: 13px;
  line-height: 1.7;
}
.snr-comments-empty-icon { font-size: 26px; margin-bottom: 8px; }

/* Comment form upgrades */
.track-page-comment-form {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}
.track-page-comment-form:focus-within {
  border-color: rgba(147,51,234,0.35);
}
.track-page-comment-input {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 4px 2px !important;
  min-height: 40px;
  transition: none !important;
}
.track-page-comment-input:focus {
  border-color: transparent !important;
  box-shadow: none !important;
}
.track-page-comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.track-page-comment-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
}
.track-page-comment-submit {
  padding: 6px 18px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  transition: opacity 0.15s, transform 0.15s !important;
}
.track-page-comment-submit:active { transform: scale(0.97); }
.track-page-comment-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Comment item */
.snr-comment {
  display: flex;
  gap: 11px;
  margin-bottom: 18px;
  animation: snrCommentFadeIn 0.25s ease;
}
@keyframes snrCommentFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.snr-comment-reply {
  margin-top: 10px;
  margin-bottom: 8px;
}

/* Avatar */
.snr-comment-avatar-wrap { flex-shrink: 0; }
.snr-comment-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.snr-comment-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(147,51,234,0.4);
  user-select: none;
}
.snr-comment-reply .snr-comment-avatar {
  width: 26px; height: 26px;
  font-size: 11px;
}

/* Comment body */
.snr-comment-main { flex: 1; min-width: 0; }
.snr-comment-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.snr-comment-name {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}
.snr-comment-you-badge {
  font-size: 10px;
  font-weight: 600;
  color: rgba(147,51,234,0.9);
  background: rgba(147,51,234,0.12);
  border: 1px solid rgba(147,51,234,0.25);
  border-radius: 4px;
  padding: 1px 6px;
  letter-spacing: 0.04em;
}
.snr-comment-time {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  margin-left: auto;
}
.snr-comment-text {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 7px;
}

/* Action buttons */
.snr-comment-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
}
.snr-comment-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.3);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s, background 0.15s;
  font-family: inherit;
  letter-spacing: 0.02em;
}
.snr-comment-action-btn:hover {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
}
.snr-comment-reply-btn { color: rgba(255,255,255,0.28); }
.snr-comment-reply-btn:hover { color: rgba(124,58,237,0.9) !important; background: rgba(124,58,237,0.08) !important; }
.snr-comment-like-btn.liked { color: #c084fc; }
.snr-comment-like-btn.liked:hover { color: #e879f9; }
.snr-comment-like-btn svg { transition: transform 0.15s; }
.snr-comment-like-btn:active svg { transform: scale(1.3); }
.snr-comment-delete-btn:hover { color: rgba(255,90,90,0.8) !important; background: rgba(255,60,60,0.07) !important; }
.snr-comment-like-count { min-width: 8px; }

/* Reply form */
.snr-comment-reply-form {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
}
.snr-comment-reply-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 12px;
  font-family: inherit;
  padding: 0;
}
.snr-comment-reply-input::placeholder { color: rgba(255,255,255,0.25); }
.snr-comment-reply-submit {
  background: rgba(147,51,234,0.6);
  border: none;
  border-radius: 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.snr-comment-reply-submit:hover { background: rgba(147,51,234,0.85); }
.snr-comment-reply-submit:disabled { opacity: 0.4; cursor: not-allowed; }

/* Replies indent */
.snr-comment-replies {
  margin-top: 10px;
  padding-left: 4px;
  border-left: 2px solid rgba(147,51,234,0.15);
  padding-left: 12px;
}

/* Separator between top-level comments */
.snr-comment + .snr-comment {
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* Mobile */
@media (max-width: 480px) {
  .snr-comment-time { margin-left: 0; width: 100%; order: 3; }
}

/* ── COMMUNITY — LIVE DISCUSSION FEED ────────────────────────────────────── */

.community-section { padding: 0 !important; height: calc(100vh - 80px); overflow: hidden; }

.community-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  height: 100%;
  gap: 0;
}

/* ── Panel shared ─────────────────────────────── */
.community-chat-panel,
.community-feed-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.community-feed-panel { border-right: none; }

.community-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.community-panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.community-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 0.3s;
  flex-shrink: 0;
}
.community-live-dot.active { background: #22c55e; }
.community-live-dot.pulse { animation: snrLivePulse 0.6s ease; }
@keyframes snrLivePulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.community-online-count {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}

/* ── Chat messages ────────────────────────────── */
.community-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scroll-behavior: smooth;
}
.community-chat-messages::-webkit-scrollbar { width: 4px; }
.community-chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.community-chat-signin {
  margin: auto;
  text-align: center;
  color: rgba(255,255,255,0.25);
  font-size: 13px;
  padding: 30px 0;
}

.community-chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
}
.community-chat-msg.own {
  flex-direction: row-reverse;
}

.community-chat-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  margin-bottom: 2px;
  align-self: flex-end;
}
.community-chat-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.community-chat-avatar-spacer {
  width: 28px;
  flex-shrink: 0;
}

.community-chat-msg-body {
  display: flex;
  flex-direction: column;
  max-width: calc(100% - 44px);
}
.community-chat-msg.own .community-chat-msg-body {
  align-items: flex-end;
}
.community-chat-msg-name {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  margin-bottom: 3px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.community-chat-msg-time {
  font-weight: 400;
  color: rgba(255,255,255,0.18);
}
.community-chat-bubble {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px 14px 14px 4px;
  padding: 7px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
  word-break: break-word;
  max-width: 100%;
}
.community-chat-msg.own .community-chat-bubble {
  background: rgba(124,58,237,0.25);
  border-color: rgba(124,58,237,0.3);
  border-radius: 14px 14px 4px 14px;
  color: rgba(255,255,255,0.9);
}
/* Group consecutive bubbles from same user */
.community-chat-msg:not(.show-avatar) .community-chat-bubble {
  border-radius: 4px 14px 14px 4px;
}
.community-chat-msg.own:not(.show-avatar) .community-chat-bubble {
  border-radius: 14px 4px 4px 14px;
}

/* ── Chat input ───────────────────────────────── */
.community-chat-input-row {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.community-chat-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 24px;
  padding: 8px 8px 8px 16px;
  transition: border-color 0.2s;
}
.community-chat-input-wrap:focus-within {
  border-color: rgba(124,58,237,0.4);
}
.community-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  min-width: 0;
}
.community-chat-input::placeholder { color: rgba(255,255,255,0.22); }
.community-chat-input:disabled { opacity: 0.4; cursor: not-allowed; }
.community-chat-send-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(124,58,237,0.7);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.12s;
}
.community-chat-send-btn:hover { background: rgba(124,58,237,0.95); }
.community-chat-send-btn:active { transform: scale(0.92); }
.community-chat-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.22);
  text-align: center;
  margin-top: 6px;
}

/* ── Feed panel tabs ──────────────────────────── */
.community-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  padding: 0 4px;
}
.community-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  font-weight: 600;
  padding: 14px 18px 12px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.03em;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}
.community-tab:hover { color: rgba(255,255,255,0.65); }
.community-tab.active {
  color: #fff;
  border-bottom-color: rgba(124,58,237,0.8);
}

/* ── Activity / Top Comments ──────────────────── */
.community-tab-panel {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.community-tab-panel::-webkit-scrollbar { width: 4px; }
.community-tab-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.community-activity-list { display: flex; flex-direction: column; }

.community-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
  cursor: default;
}
.community-activity-item[data-track-id] { cursor: pointer; }
.community-activity-item:hover { background: rgba(255,255,255,0.03); }

.community-activity-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
}

.community-activity-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}
.community-activity-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.community-activity-body { flex: 1; min-width: 0; }
.community-activity-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 3px;
}
.community-activity-comment .community-activity-label {
  text-transform: none;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
.community-activity-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.community-activity-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  margin-top: 3px;
}

.community-activity-play-btn {
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 50%;
  width: 30px; height: 30px;
  color: rgba(255,255,255,0.7);
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  transition: background 0.15s, transform 0.12s;
  padding-left: 2px;
}
.community-activity-play-btn:hover { background: rgba(124,58,237,0.5); color: #fff; transform: scale(1.08); }

/* ── Mobile ───────────────────────────────────── */
@media (max-width: 860px) {
  .community-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .community-chat-panel { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .community-section { height: auto; overflow: auto; }
}
@media (max-width: 480px) {
  .community-layout { grid-template-rows: auto auto; }
  .community-chat-messages { max-height: 340px; }
}

/* ── CONTENT MODERATION UI ───────────────────────────────────────────────── */
.snr-mod-warning {
  font-size: 12px;
  color: #f87171;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 8px;
  animation: snrFadeIn 0.2s ease;
}
@keyframes snrFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.snr-mod-shake {
  animation: snrShake 0.4s ease;
}
@keyframes snrShake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-6px); }
  40%     { transform: translateX(6px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}

/* ── AUTH MODAL FORM VISIBILITY FIX ─────────────────────────────────────── */
.auth-form[aria-hidden="true"] { display: none !important; }
.auth-form[aria-hidden="false"] { display: block !important; }
#authResetSection[aria-hidden="true"] { display: none !important; }
#authResetSection[aria-hidden="false"] { display: block !important; }

/* ══════════════════════════════════════════════════════════════════════════
   SONARA MOBILE RESPONSIVE LAYOUT
   Kicks in at 768px and below — full app-style layout like Spotify/YouTube
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --mobile-tab-bar-height: 56px;
}

/* Mobile tab bar — hidden on desktop */
.mobile-tab-bar {
  display: none;
}

/* Mobile header brand — hidden on desktop */
.mobile-header-brand {
  display: none;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.1rem 0;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.mobile-header-brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(147, 51, 234, 0.5);
  flex-shrink: 0;
}

.mobile-header-brand-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #C084FC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

/* ── 768px breakpoint — full mobile layout ── */
@media (max-width: 768px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  /* Hide desktop sidebar completely */
  .sidebar {
    display: none !important;
  }

  /* Show mobile header brand */
  .mobile-header-brand {
    display: flex;
    order: 0;
    flex-shrink: 0;
    align-self: center;
  }

  /* Main content — full width, pad for player + tab bar */
  .main {
    margin-left: 0 !important;
    width: 100% !important;
    padding-bottom: calc(110px + var(--mobile-tab-bar-height) + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Mobile header */
  .main-header {
    padding: 0.5rem 0.75rem 0.55rem;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    background: rgba(10, 8, 24, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    position: sticky;
    top: 0;
    z-index: 20;
  }

  /* Search bar goes full width on second row */
  #globalSearch,
  .search-bar,
  [id="globalSearch"] {
    order: 4;
    flex: 1 1 100%;
    max-width: none;
  }

  /* Header actions on same row as brand */
  .main-header > nav,
  .main-header > .header-actions,
  .main-header > #headerAuthEntry,
  .main-header > #headerUserTray {
    order: 2;
    margin-left: auto;
  }

  /* Main content padding */
  .main-content {
    padding: 0.85rem 0.85rem 1.25rem;
  }

  /* Track grid — 2 columns on mobile */
  .track-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  /* Quick picks card — don't overflow */
  .quick-pick-card,
  .browse-card {
    flex: 0 0 min(200px, 78vw);
    scroll-snap-align: start;
  }

  /* Genre/mood filters — horizontal scroll */
  .genre-filters,
  .mood-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.4rem;
    padding-bottom: 0.1rem;
    mask-image: linear-gradient(90deg, #000 90%, transparent 100%);
  }

  .genre-filters::-webkit-scrollbar,
  .mood-pills::-webkit-scrollbar {
    display: none;
  }

  .mood-pill,
  .genre-filter {
    flex-shrink: 0;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  /* Section titles */
  .section-title,
  h2.section-title {
    font-size: 1.15rem;
  }

  /* Hero section — tighter on phone */
  .sonara-hero {
    padding: 1.25rem 0.85rem 1rem !important;
  }

  .sonara-hero-title {
    font-size: clamp(1.6rem, 6vw, 2rem) !important;
  }

  /* Community layout — stack on mobile */
  .community-layout {
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr 1fr !important;
  }

  .community-chat-messages {
    max-height: 280px;
  }

  /* Track page overlay */
  .track-page-body {
    grid-template-columns: 1fr !important;
  }

  .track-page-main {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  /* Auth modal — full screen on mobile */
  .auth-v4-panel-brand {
    display: none;
  }

  .auth-v4-modal {
    flex-direction: column;
    max-width: 100%;
    border-radius: 24px 24px 0 0;
  }

  /* Profile tabs — horizontal scroll */
  .profile-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    padding-bottom: 0.1rem;
  }

  .profile-tabs::-webkit-scrollbar {
    display: none;
  }

  .profile-tab {
    flex-shrink: 0;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }

  /* ── MOBILE BOTTOM PLAYER — exact layout from concept ── */
  .player-bar {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    grid-template-rows: auto auto auto !important;
    grid-template-areas:
      "np np np"
      "tr tr ic"
      "sk sk sk" !important;
    flex-wrap: nowrap !important;
    align-items: center;
    column-gap: 0.35rem;
    row-gap: 0.28rem;
    height: auto !important;
    min-height: 0 !important;
    max-height: none;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    bottom: calc(var(--mobile-tab-bar-height) + env(safe-area-inset-bottom, 0px) + 5px) !important;
    padding: 0.3rem 0.65rem 0.42rem !important;
    z-index: 25;
    border-radius: 22px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(10, 7, 22, 0.82) !important;
    backdrop-filter: blur(44px) saturate(185%) !important;
    -webkit-backdrop-filter: blur(44px) saturate(185%) !important;
    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(147, 51, 234, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    cursor: default;
  }

  .player-bar.glass {
    border-top: none !important;
  }

  /* player-right wraps now-playing + right-icons — make it a contents container */
  .player-bar > .player-right {
    display: contents;
  }

  /* Transport buttons → grid area tr */
  .player-bar > .player-left {
    grid-area: tr;
    justify-self: start;
    align-self: end;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.12rem;
    padding-left: 0;
    margin: 0;
  }

  /* Progress/seek → grid area sk */
  .player-bar > .player-center {
    grid-area: sk;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }

  /* Now playing info → grid area np */
  .player-bar .player-now-info--bar-right {
    grid-area: np;
    justify-self: center;
    align-self: center;
    width: 100%;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto;
    border-left: none !important;
    padding-left: 0 !important;
    padding-right: 0;
    margin: 0;
    justify-content: center;
    gap: 0.45rem;
  }

  .player-bar .player-now-info--bar-right .player-now-info__meta {
    flex: 0 1 auto;
    min-width: 0;
    align-items: center;
    text-align: center;
  }

  .player-bar .player-now-info--bar-right .player-now-info__artist-line {
    justify-content: center;
  }

  /* Right icons → grid area ic */
  .player-bar .player-right-icons {
    grid-area: ic;
    justify-self: end;
    align-self: end;
    display: flex !important;
    flex: 0 0 auto;
    justify-content: flex-end;
    flex-shrink: 0;
    position: relative;
    padding: 0;
    margin: 0;
    border: none;
    gap: 0.2rem;
    align-items: center;
    width: max-content;
    max-width: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }

  .player-right-icons::-webkit-scrollbar {
    display: none;
  }

  /* Button sizes */
  .player-btn {
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
    touch-action: manipulation;
  }

  .player-btn-play {
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
    touch-action: manipulation;
    align-self: center;
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(147, 51, 234, 0.35);
  }

  .player-btn-icon {
    width: 26px;
    height: 26px;
    touch-action: manipulation;
  }

  .player-btn-icon .player-icon {
    width: 12px;
    height: 12px;
  }

  .player-btn-queue .queue-icon-img {
    width: 13px;
    height: 13px;
  }

  .player-bar .futurist-icon-host.player-btn-icon .futurist-icon-tile {
    width: 22px !important;
    height: 22px !important;
    border-radius: 5px !important;
  }

  .player-bar .futurist-icon-host.player-btn-transport .futurist-icon-tile {
    width: 28px !important;
    height: 28px !important;
  }

  .player-bar .player-bar-settings-btn.futurist-icon-host .futurist-icon-tile {
    width: 22px !important;
    height: 22px !important;
  }

  /* Artwork */
  .player-bar .player-now-info__art-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  /* Track info text */
  .player-bar .player-now-info__title {
    font-size: 0.74rem;
    line-height: 1.25;
    font-weight: 600;
  }

  .player-now-info__artist-line {
    font-size: 0.65rem;
    display: flex;
    margin-top: 0.04rem;
  }

  .player-now-info__like {
    display: flex;
    flex-shrink: 0;
    font-size: 0.95rem;
    padding: 0 0.15rem;
    opacity: 0.85;
  }

  /* Hide on mobile */
  .waveform-mini { display: none !important; }
  .player-brand { display: none !important; }
  .sonara-footer { display: none !important; }
  .progress-bar-times { display: none; }

  /* Settings btn — show it, sits inside player-center but visually belongs with right icons */
  .player-bar-settings-btn {
    display: flex !important;
    position: static !important;
    transform: none !important;
    flex-shrink: 0;
    align-self: center;
    width: auto !important;
    height: auto !important;
    margin: 0;
    top: auto !important;
    right: auto !important;
    order: -1;
  }

  .player-bar-settings-btn:hover {
    transform: none !important;
    filter: brightness(1.15);
  }

  /* Move settings btn to appear in the ic (right icons) grid area
     by making player-center a flex row and pushing settings to the right-icons area */
  .player-bar > .player-center {
    display: flex;
    flex-direction: column;
  }

  .player-center-main {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 0.35rem;
  }

  /* Transport buttons — properly sized on mobile */
  .player-bar > .player-left {
    gap: 0.25rem !important;
    align-items: center !important;
  }

  /* Prev + Next: smaller than play */
  .player-bar > .player-left .futurist-icon-host.player-btn-transport {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .player-bar > .player-left .futurist-icon-host.player-btn-transport .futurist-icon-tile {
    width: 24px !important;
    height: 24px !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
  }

  .player-bar > .player-left .futurist-icon-tile--transport {
    font-size: 0.75rem !important;
    color: #aeb6c3;
  }

  /* Play button — largest */
  .player-bar > .player-left .player-btn-play {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  /* Queue button — beat futurist-icon-tile.css which forces 40px with !important */
  /* Using .player-bar to increase specificity above .player-left .futurist-icon-host.player-btn */
  .player-bar .player-left .futurist-icon-host.player-btn.player-btn-queue {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    border-radius: 5px !important;
  }

  /* Queue tile inside the button */
  .player-bar .player-left .player-btn-queue .futurist-icon-tile,
  .player-bar .player-left .futurist-icon-host.player-btn.player-btn-queue .futurist-icon-tile {
    width: 20px !important;
    height: 20px !important;
    border-radius: 4px !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(170,180,195,0.12) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Queue icon image inside tile */
  .player-bar .player-left .player-btn-queue .queue-icon-img {
    width: 11px !important;
    height: 11px !important;
  }

  /* Progress bar — full width spanning sk grid area */
  .player-bar > .player-center {
    width: 100% !important;
    min-width: 0 !important;
  }

  .player-bar > .player-center .progress-bar {
    width: 100% !important;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.1rem;
  }

  .player-bar > .player-center .progress-bar-track {
    width: 100% !important;
  }

  .seek-slider {
    width: 100% !important;
    height: 5px;
    touch-action: manipulation;
  }

  /* ── MOBILE BOTTOM NAV BAR ── */
  .mobile-tab-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    min-height: calc(var(--mobile-tab-bar-height) + env(safe-area-inset-bottom, 0px));
    padding: 0 0.25rem env(safe-area-inset-bottom, 0px);
    align-items: stretch;
    justify-content: space-around;
    width: 100%;
    box-sizing: border-box;
    background: rgba(8, 5, 20, 0.97);
    border-top: 1px solid rgba(147, 51, 234, 0.2);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
  }

  .mobile-tab-bar .nav-item {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    padding: 0.35rem 0.1rem 0.25rem;
    margin: 0;
    border-radius: 10px;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: transparent;
    color: rgba(168, 155, 192, 0.8);
    box-sizing: border-box;
    text-decoration: none;
    display: flex;
  }

  .mobile-tab-bar .nav-item .futurist-icon-tile {
    display: none;
  }

  .mobile-tab-bar .nav-item .mobile-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-tab-bar .nav-item .mobile-tab-icon svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .mobile-tab-bar .nav-item .mobile-tab-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.58rem;
  }

  /* Hide desktop nav labels on mobile tab bar */
  .mobile-tab-bar .nav-item > span:not(.mobile-tab-icon):not(.mobile-tab-label) {
    display: none;
  }

  .mobile-tab-bar .nav-item.active {
    color: #fff;
    background: rgba(147, 51, 234, 0.18);
    border-radius: 10px;
  }

  .mobile-tab-bar .nav-item.active .mobile-tab-icon svg {
    color: #C084FC;
  }

  /* Admin link hidden in mobile nav */
  .mobile-tab-bar .admin-only-nav {
    display: none !important;
  }
}

/* Extra small phones */
@media (max-width: 390px) {
  .mobile-tab-bar .nav-item .mobile-tab-label {
    font-size: 0.52rem;
  }

  .mobile-tab-bar .nav-item .mobile-tab-icon svg {
    width: 20px;
    height: 20px;
  }

  .track-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
}

/* ── SAFARI MOBILE BUTTON FIX ── */
/* Safari on iOS overrides button appearance with native grey tiles */
@media (max-width: 768px) {
  .player-bar button,
  .player-bar .player-btn,
  .player-bar .futurist-icon-host {
    -webkit-appearance: none !important;
    appearance: none !important;
  }

  /* Keep futurist tile dark glass look on mobile */
  .player-bar .futurist-icon-tile {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(170, 180, 195, 0.15) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 6px !important;
  }

  .player-bar .futurist-icon-tile--transport {
    font-size: 1rem !important;
    line-height: 1 !important;
  }

  /* Settings button — move out of center, show in right icons row */
  .player-bar > .player-center .player-bar-settings-btn {
    display: none !important;
  }

  /* Show settings in right icons by appending via CSS order trick */
  .player-bar .player-right-icons .player-bar-settings-btn {
    display: flex !important;
    order: 10;
  }
}

/* Settings button — desktop shows the one in player-center, mobile shows the one in right-icons */
.mobile-hidden { display: flex; } /* visible on desktop */

@media (max-width: 768px) {
  .mobile-hidden { display: none !important; } /* hide desktop btn on mobile */
  /* The one in player-right-icons shows on mobile (already has display:flex from right-icons CSS) */
}

@media (min-width: 769px) {
  /* Hide the mobile copy in right-icons on desktop */
  .player-bar .player-right-icons .player-bar-settings-btn:not(.mobile-hidden) {
    display: none !important;
  }
}



/* ═══════════════════════════════════════════════════════════
   PROFILE AVATAR BUTTON — header ring
═══════════════════════════════════════════════════════════ */
.header-profile-tray { position: relative; display: flex; align-items: center; }

.profile-avatar-btn {
  width: 40px; height: 40px;
  border-radius: 50%; border: none; background: transparent;
  cursor: pointer; padding: 0; position: relative;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.profile-avatar-btn:hover { transform: scale(1.08); }

.profile-avatar-ring {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(147,51,234,0.7);
  box-shadow: 0 0 0 3px rgba(147,51,234,0.15), 0 0 16px rgba(147,51,234,0.4);
  overflow: hidden; background: rgba(147,51,234,0.15);
  display: flex; align-items: center; justify-content: center;
}
.profile-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-avatar-initials {
  font-size: 0.9rem; font-weight: 700;
  color: rgba(192,132,252,0.95); text-transform: uppercase;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}

/* ═══════════════════════════════════════════════════════════
   PROFILE DROPDOWN PANEL
═══════════════════════════════════════════════════════════ */
.profile-dropdown {
  position: fixed;
  top: 64px;
  right: 16px;
  width: 320px;
  background: rgba(8,5,24,0.98);
  backdrop-filter: blur(48px) saturate(180%);
  -webkit-backdrop-filter: blur(48px) saturate(180%);
  border: 1px solid rgba(147,51,234,0.25);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(147,51,234,0.06),
    0 28px 72px rgba(0,0,0,0.75),
    inset 0 1px 0 rgba(255,255,255,0.06);
  z-index: 99999;
  overflow: hidden;
  display: none;
  flex-direction: column;
}
/* Top glow line */
.profile-dropdown::before {
  content: '';
  position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(147,51,234,0.8), rgba(6,182,212,0.6), transparent);
}

/* ── Hero ── */
.pd-hero {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 20px 16px;
  background: linear-gradient(135deg, rgba(147,51,234,0.1), rgba(79,70,229,0.06));
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pd-avatar-wrap { position: relative; width: 52px; height: 52px; flex-shrink: 0; }
.pd-avatar-img {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(147,51,234,0.5);
}
.pd-avatar-initials {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(147,51,234,0.35), rgba(79,70,229,0.35));
  border: 2px solid rgba(147,51,234,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; color: rgba(192,132,252,0.95);
}
.pd-online {
  position: absolute; bottom: 1px; right: 1px;
  width: 13px; height: 13px; border-radius: 50%;
  background: #22c55e; border: 2.5px solid rgba(8,5,24,0.98);
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
}
.pd-info { flex: 1; min-width: 0; }
.pd-name {
  display: block; font-size: 1rem; font-weight: 700;
  color: #f0ecff; letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pd-handle { display: block; font-size: 0.72rem; color: rgba(192,132,252,0.55); margin-top: 2px; }
.pd-badge {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 7px; padding: 3px 9px;
  background: rgba(147,51,234,0.15); border: 1px solid rgba(147,51,234,0.3);
  border-radius: 20px;
}
.pd-badge-icon { font-size: 0.65rem; }
.pd-badge-txt {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(192,132,252,0.85);
}

/* ── Stats ── */
.pd-stats {
  display: flex; align-items: center; justify-content: space-around;
  padding: 13px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pd-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pd-stat-n { font-size: 1.05rem; font-weight: 700; color: #f0ecff; line-height: 1; }
.pd-stat-l { font-size: 0.6rem; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.08em; }
.pd-divider { width: 1px; height: 26px; background: rgba(255,255,255,0.07); }

/* ── Nav links ── */
.pd-nav { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.pd-link {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 9px 10px; border: none; background: transparent;
  color: rgba(255,255,255,0.7); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; border-radius: 10px; transition: background 0.15s, color 0.15s;
  text-align: left; font-family: inherit;
}
.pd-link:hover { background: rgba(147,51,234,0.12); color: #f0ecff; }
.pd-link-icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.pd-link:hover .pd-link-icon { background: rgba(147,51,234,0.15); border-color: rgba(147,51,234,0.3); }
.pd-link-icon svg { width: 15px; height: 15px; color: rgba(192,132,252,0.75); }
.pd-link span:not(.pd-link-icon) { flex: 1; }
.pd-link-arrow { width: 13px; height: 13px; opacity: 0.28; flex-shrink: 0; transition: opacity 0.15s, transform 0.15s; }
.pd-link:hover .pd-link-arrow { opacity: 0.6; transform: translateX(2px); }

/* ── Power Card ── */
.pd-power {
  margin: 10px 10px 6px;
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, rgba(147,51,234,0.18) 0%, rgba(79,70,229,0.12) 50%, rgba(6,182,212,0.1) 100%);
  border: 1px solid rgba(147,51,234,0.32);
  cursor: pointer; position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pd-power:hover { border-color: rgba(147,51,234,0.6); box-shadow: 0 0 20px rgba(147,51,234,0.2); }
.pd-power-glow {
  position: absolute; top: -20px; right: -20px;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(147,51,234,0.5), transparent 70%);
  pointer-events: none;
}
.pd-power-inner { display: flex; align-items: center; gap: 11px; padding: 13px 14px; }
.pd-power-emoji { font-size: 1.4rem; flex-shrink: 0; }
.pd-power-txt { flex: 1; min-width: 0; }
.pd-power-title { display: block; font-size: 0.82rem; font-weight: 700; color: #f0ecff; letter-spacing: 0.02em; }
.pd-power-sub { display: block; font-size: 0.66rem; color: rgba(192,132,252,0.6); margin-top: 2px; }
.pd-power-badge {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: rgba(192,132,252,0.9); background: rgba(147,51,234,0.18);
  border: 1px solid rgba(147,51,234,0.38); border-radius: 20px; padding: 3px 9px; flex-shrink: 0;
}

/* ── Achievements ── */
.pd-achievements {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 8px 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pd-ach {
  font-size: 0.65rem; font-weight: 600;
  color: rgba(192,132,252,0.85); background: rgba(147,51,234,0.1);
  border: 1px solid rgba(147,51,234,0.22); border-radius: 20px; padding: 3px 10px;
  transition: background 0.15s;
}
.pd-ach:hover { background: rgba(147,51,234,0.2); }
.pd-ach.locked { color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.07); }

/* ── Sign out ── */
.pd-signout {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 13px 20px;
  border: none; background: transparent;
  color: rgba(239,68,68,0.65); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: background 0.15s, color 0.15s;
  text-align: left; font-family: inherit;
}
.pd-signout:hover { background: rgba(239,68,68,0.07); color: rgba(239,68,68,0.9); }
.pd-signout svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Hide original sign out if somehow visible outside dropdown */
#btnSignOut:not(.pd-signout) { display: none !important; }

/* ══ POWER CARD PROFILE TAB ══ */
.profile-tab-power {
  background: linear-gradient(135deg, rgba(147,51,234,0.15), rgba(6,182,212,0.1)) !important;
  border: 1px solid rgba(147,51,234,0.3) !important;
  color: rgba(192,132,252,0.9) !important;
  font-weight: 600 !important;
}
.profile-tab-power.active,
.profile-tab-power:hover {
  background: linear-gradient(135deg, rgba(147,51,234,0.35), rgba(6,182,212,0.2)) !important;
  color: #fff !important;
  border-color: rgba(147,51,234,0.6) !important;
}

.power-card-pane {
  margin: -16px -16px 0;
  border-radius: 16px;
  overflow: hidden;
}

.power-card-iframe {
  width: 100%;
  height: 680px;
  border: none;
  border-radius: 16px;
  background: transparent;
  display: block;
}

@media (max-width: 768px) {
  .power-card-iframe { height: 520px; }
  .power-card-pane { margin: -12px -12px 0; }
}

/* ═══════════════════════════════════════════════════════
   📱 MOBILE RESPONSIVE — Track Page, Artist Profile,
   Lyric Spotlight, Follow Button, Comments
   Full phone-size polish
═══════════════════════════════════════════════════════ */

/* ── Track page mobile ── */
@media (max-width: 600px) {
  #trackPageOverlay { padding: 0; align-items: flex-end; }

  .track-page-modal {
    border-radius: 24px 24px 0 0;
    max-height: 95vh;
    overflow-y: auto;
    margin: 0;
    width: 100%;
  }

  .track-page-hero {
    flex-direction: column;
    padding: 20px 16px 16px;
    gap: 16px;
    align-items: center;
    text-align: center;
  }

  .track-page-cover-wrap { width: 100%; display: flex; justify-content: center; }

  .track-page-cover {
    width: 160px;
    height: 160px;
  }

  .track-page-play-big {
    width: 52px; height: 52px;
    font-size: 20px;
    bottom: 8px; right: calc(50% - 80px - 10px);
  }

  .track-page-hero-info { width: 100%; }

  .track-page-title { font-size: 20px; }

  .track-page-artist-row { justify-content: center; }

  .track-page-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .track-page-btn {
    padding: 7px 12px;
    font-size: 12px;
  }

  .track-page-body { grid-template-columns: 1fr; }

  .track-page-main {
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .track-page-sidebar { padding: 16px; }

  .track-page-comment-hint { display: none; }

  .track-page-close {
    top: 12px; right: 12px;
    width: 32px; height: 32px;
    font-size: 14px;
  }

  /* Drag handle visual on mobile */
  .track-page-modal::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.15);
    margin: 10px auto 0;
  }
}

/* ── Artist profile mobile ── */
@media (max-width: 600px) {
  .artist-profile-header {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
    gap: 1rem;
  }

  .artist-profile-avatar { width: 80px; height: 80px; }

  .artist-profile-meta { align-items: center; }

  .artist-follow-btn { align-self: center; }

  .artist-profile-featured .artist-profile-featured-inner {
    flex-direction: column;
  }

  .artist-profile-featured-cover img { width: 120px; height: 120px; }
}

/* ── Lyric Spotlight mobile ── */
@media (max-width: 600px) {
  .lyric-spotlight-layout { grid-template-columns: 1fr; gap: 1rem; }

  .spotlight-card { padding: 1.25rem 1.25rem 1rem; min-height: 180px; }

  .spotlight-lyric { font-size: 1.05rem; }

  .spotlight-right-col { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }

  .spotlight-right-col .quick-pick-card {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 130px;
    padding: 0.7rem 0.75rem;
  }

  .spotlight-right-col .quick-pick-art { width: 40px; height: 40px; }

  .spotlight-dots { gap: 4px; }
  .spotlight-dot { width: 5px; height: 5px; }
  .spotlight-dot.active { width: 14px; }
}

/* ── Follow button mobile ── */
@media (max-width: 600px) {
  .artist-follow-btn {
    padding: 9px 18px 9px 14px;
    font-size: 0.82rem;
    align-self: center;
  }
}

/* ── Comments mobile ── */
@media (max-width: 600px) {
  .snr-comment { gap: 8px; }
  .snr-comment-avatar-wrap { width: 30px; }
  .snr-comment-avatar-fallback { width: 30px; height: 30px; font-size: 12px; }
  .snr-comment-text { font-size: 13px; }
  .snr-comment-actions { gap: 8px; }
  .track-page-comment-form-footer { flex-direction: column; align-items: flex-end; gap: 6px; }
  .track-page-comment-hint { display: none; }
}

/* ── General landing two-col mobile ── */
@media (max-width: 600px) {
  .landing-two-col { flex-direction: column; }
  .landing-side-col { width: 100% !important; }
  .lyric-spotlight-section { margin-bottom: 1rem; }
}
