@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope.ttf') format('truetype');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  /* Deep Space Palette */
  --bg: #06070a;
  --bg-deep: #030406;
  --bg-surface: #0a0c13;
  --b1: #090a10;
  --b2: #050609;
  
  /* Obsidian Glass Surfaces */
  --glass-nav: rgba(9, 11, 18, 0.65);
  --glass-panel: rgba(12, 14, 22, 0.58);
  --glass-bar: rgba(9, 11, 18, 0.78);
  --glass-card: rgba(255, 255, 255, 0.035);
  --glass-card-hover: rgba(255, 255, 255, 0.075);
  --glass-blur: blur(28px) saturate(180%);
  --glass-blur-sm: blur(16px) saturate(160%);
  
  /* Micro Luminous Borders */
  --line: rgba(255, 255, 255, 0.12);
  --hair: rgba(255, 255, 255, 0.06);
  --line-highlight: rgba(255, 255, 255, 0.22);

  /* Typography Colors */
  --text: #F8FAFC;
  --text-pure: #FFFFFF;
  --muted: #8E95A5;
  --muted-dim: #5A6072;

  /* Accent & Lighting */
  --acc: #FFFFFF;
  --on-acc: #06070A;
  --accent-cosmic: #818cf8;
  --accent-neon: #38bdf8;
  --track: rgba(255, 255, 255, 0.16);

  /* Shadows & Atmospheric Glows */
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 10px 30px -8px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 20px 48px -12px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 28px rgba(255, 255, 255, 0.07);

  /* Emil Kowalski Animation Timings & Physics */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 160ms;
  --duration-norm: 260ms;
  --duration-smooth: 380ms;

  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  color-scheme: dark;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Accessibility: respect user prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Ultra-slim obsidian scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  transition: background 0.2s var(--ease-out);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(580px 480px at 10% 6%, var(--b1), transparent 75%),
              radial-gradient(700px 580px at 94% 94%, var(--b2), transparent 75%),
              var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

button:focus-visible, input:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

/* Cosmic Canvas Background */
.bd {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

#sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Master 3-Zone Fluid Grid */
.panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr 300px;
  grid-template-rows: minmax(0, 1fr) 96px;
  background: transparent;
  z-index: 1;
}

svg {
  display: block;
}
.cv svg, .th svg {
  width: 100%;
  height: 100%;
}

.mut {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Left Sidebar */
#nav {
  padding: 28px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--hair);
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--glass-nav);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 2;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  padding: 0 12px 24px;
  color: var(--text-pure);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo .sparkle {
  color: var(--acc);
  opacity: 0.9;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

#nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
  text-align: left;
  border-radius: var(--radius-md);
  transition: transform var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

#nav button:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(3px);
}

#nav button.on {
  color: var(--text-pure);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.04);
}

.nl {
  margin: 22px 12px 6px;
}

.nav-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 12px 6px;
}

.nav-section-header .nl {
  margin: 0;
}

.nav-add-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.15s ease;
}

.nav-add-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 8px;
  border-radius: 999px;
  line-height: 1.5;
}

.nav-playlists {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - 440px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.nav-pl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px !important;
  font-size: 14px !important;
  font-weight: 600;
  color: var(--muted);
  border-radius: 8px;
  transition: all 0.15s ease;
  width: 100%;
}

.nav-pl-item:hover, .nav-pl-item.on {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.04);
}

.nav-pl-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  flex-shrink: 0;
}

.nav-pl-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.nav-pl-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.7;
}

.nav-empty-pl-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  margin: 4px 6px;
  transition: all 0.15s ease;
}

.nav-empty-pl-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

/* Nav Bottom Profile Button */
.nav-profile-bottom {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
}

.nav-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px !important;
  width: 100%;
  border-radius: 8px;
  color: var(--muted);
  transition: all 0.15s ease;
}

.nav-profile-btn:hover, .nav-profile-btn.on {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.04);
}

.nav-profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
}

.nav-profile-name {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
}

.nav-profile-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

/* Main Center Canvas */
#main {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 36px 36px;
  scrollbar-width: thin;
  background: transparent;
}

h1 {
  margin: 0 0 22px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--text);
  margin-left: 7px;
  vertical-align: middle;
}

h2 {
  margin: 34px 0 14px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* "МОЯ ВОЛНА" - Luxury Glass Audio Capsule */
.wave-unit {
  margin-bottom: 28px;
  padding: 18px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: var(--glass-blur-sm) !important;
  -webkit-backdrop-filter: var(--glass-blur-sm) !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: all var(--duration-norm) var(--ease-out);
}

.wave-unit:hover {
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

.wave-unit-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: 100% !important;
}

.wave-unit-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-right: 6px;
}

.wave-glow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse-wave-dot 2.2s infinite ease-in-out;
}

@keyframes pulse-wave-dot {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 16px #38bdf8; }
}

.wave-title-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-pure);
  text-transform: uppercase;
}

.wave-unit-visualizer {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin-right: auto !important;
  margin-left: 0 !important;
  height: 48px !important;
  overflow: hidden !important;
}

.wave-equalizer {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  height: 44px !important;
  padding: 0 4px !important;
}

.wave-unit-actions-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}

.wave-play-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 999px !important;
  padding: 10px 22px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}

.wave-play-pill:hover {
  background: #141414 !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  transform: translateY(-1px) !important;
}

.wave-play-pill svg {
  fill: #ffffff !important;
  color: #ffffff !important;
}

.wave-settings-toggle-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.wave-settings-toggle-btn:hover,
.wave-settings-toggle-btn.on {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.wave-equalizer .bar {
  width: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  height: 4px;
  transition: height 0.2s ease, opacity 0.2s ease;
  animation: none !important;
}

.wave-equalizer:not(.active) .bar,
.wave-equalizer:not(.active) .bar[class*="b"] {
  animation: none !important;
  animation-play-state: paused !important;
  height: 4px !important;
  opacity: 0.25 !important;
  background: rgba(255, 255, 255, 0.2) !important;
  box-shadow: none !important;
}

.wave-equalizer.active .bar {
  opacity: 1 !important;
  background: #ffffff !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.45) !important;
}

.wave-equalizer.active .b1  { height: 16px; background: #ffffff !important; animation: wave-beat-1 0.85s infinite ease-in-out !important; }
.wave-equalizer.active .b2  { height: 28px; background: #ffffff !important; animation: wave-beat-2 1.10s infinite ease-in-out 0.1s !important; }
.wave-equalizer.active .b3  { height: 20px; background: #ffffff !important; animation: wave-beat-3 0.75s infinite ease-in-out 0.2s !important; }
.wave-equalizer.active .b4  { height: 38px; background: #ffffff !important; animation: wave-beat-1 1.05s infinite ease-in-out 0.15s !important; }
.wave-equalizer.active .b5  { height: 24px; background: #ffffff !important; animation: wave-beat-4 0.90s infinite ease-in-out 0.3s !important; }
.wave-equalizer.active .b6  { height: 42px; background: #ffffff !important; animation: wave-beat-2 1.25s infinite ease-in-out 0.05s !important; }
.wave-equalizer.active .b7  { height: 32px; background: #ffffff !important; animation: wave-beat-3 0.80s infinite ease-in-out 0.25s !important; }
.wave-equalizer.active .b8  { height: 40px; background: #ffffff !important; animation: wave-beat-1 1.15s infinite ease-in-out 0.35s !important; }
.wave-equalizer.active .b9  { height: 22px; background: #ffffff !important; animation: wave-beat-4 0.70s infinite ease-in-out 0.12s !important; }
.wave-equalizer.active .b10 { height: 36px; background: #ffffff !important; animation: wave-beat-2 0.95s infinite ease-in-out 0.18s !important; }
.wave-equalizer.active .b11 { height: 26px; background: #ffffff !important; animation: wave-beat-3 1.00s infinite ease-in-out 0.28s !important; }
.wave-equalizer.active .b12 { height: 38px; background: #ffffff !important; animation: wave-beat-1 0.80s infinite ease-in-out 0.08s !important; }
.wave-equalizer.active .b13 { height: 18px; background: #ffffff !important; animation: wave-beat-4 0.65s infinite ease-in-out 0.22s !important; }
.wave-equalizer.active .b14 { height: 30px; background: #ffffff !important; animation: wave-beat-2 0.88s infinite ease-in-out 0.14s !important; }

@keyframes wave-beat-1 {
  0%, 100% { height: 6px; }
  25% { height: 38px; }
  50% { height: 14px; }
  75% { height: 42px; }
}

@keyframes wave-beat-2 {
  0%, 100% { height: 8px; }
  20% { height: 22px; }
  45% { height: 44px; }
  65% { height: 12px; }
  85% { height: 34px; }
}

@keyframes wave-beat-3 {
  0%, 100% { height: 5px; }
  30% { height: 30px; }
  60% { height: 8px; }
  80% { height: 36px; }
}

@keyframes wave-beat-4 {
  0%, 100% { height: 7px; }
  35% { height: 26px; }
  55% { height: 40px; }
  75% { height: 16px; }
}

.wave-unit-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  border: none !important;
}

.tabs {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.tabs button:hover {
  color: var(--text-pure);
}

.tabs button.on {
  color: var(--text-pure);
  border-color: var(--acc);
}

.tabs button svg {
  flex-shrink: 0;
}

/* Cards Grid .g4 */
.g4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  cursor: pointer;
  min-width: 0;
  transition: transform var(--duration-fast) var(--ease-out);
}

.cv {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
  background: var(--bg-surface);
  position: relative;
  transition: transform var(--duration-norm) var(--ease-out),
              box-shadow var(--duration-norm) var(--ease-out);
}

.cv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-smooth) var(--ease-out);
}

.card:hover .cv {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.85),
              0 0 32px rgba(56, 189, 248, 0.2),
              inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.card:hover .cv img {
  transform: scale(1.05);
}

.cv-play-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #06070a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.35);
  opacity: 0;
  transform: translateY(10px) scale(0.85);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

.card:hover .cv-play-btn,
.card.playing .cv-play-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cv-play-btn:hover {
  transform: translateY(0) scale(1.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7), 0 0 28px rgba(255, 255, 255, 0.6);
}

.card b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-pure);
}

.card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-top: 2px;
  transition: color var(--duration-fast) var(--ease-out);
}

.card:hover small {
  color: var(--text);
}

/* Track Row - Luxury Glass Capsule */
.row {
  display: grid;
  grid-template-columns: 28px 46px 1fr 140px 48px auto;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
  border: 1px solid transparent;
}

.row .tm {
  color: var(--muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  opacity: 0.65;
}

.row:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}

.row-add-pl-btn, .row-remove-pl-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-radius: 6px;
  opacity: 0.35;
  transition: all 0.15s ease;
}

.row:hover .row-add-pl-btn, .row:hover .row-remove-pl-btn {
  opacity: 1;
}

.row-add-pl-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.row-remove-pl-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.row .n {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  display: grid;
  place-items: center;
}

.row.act {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.035) 100%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5), inset 2px 0 0 0 #ffffff;
}

.row.act .n {
  color: var(--text-pure);
  font-weight: 700;
}

/* Row Live Equalizer Bars */
.row-eq-bars {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5px;
  height: 16px;
  width: 16px;
}

.row-eq-bars span {
  width: 3px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}

.row-eq-bars .eq-b1 { height: 14px; animation: row-beat-1 0.75s ease-in-out infinite alternate; }
.row-eq-bars .eq-b2 { height: 8px; animation: row-beat-2 0.95s ease-in-out infinite alternate 0.15s; }
.row-eq-bars .eq-b3 { height: 16px; animation: row-beat-3 0.65s ease-in-out infinite alternate 0.3s; }

@keyframes row-beat-1 { 0% { height: 4px; } 100% { height: 14px; } }
@keyframes row-beat-2 { 0% { height: 14px; } 100% { height: 6px; } }
@keyframes row-beat-3 { 0% { height: 6px; } 100% { height: 16px; } }

.th {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-surface);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.th-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
  border-radius: 10px;
  pointer-events: none;
}

.row:hover .th-play-overlay {
  opacity: 1;
  transform: scale(1);
}
  background: var(--bg-surface);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

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

.inf {
  min-width: 0;
}

.inf b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-pure);
}

.inf small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.row.act b::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  margin-left: 8px;
  vertical-align: middle;
}

.al {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hb {
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.hb:hover {
  color: var(--text-pure);
  transform: scale(1.12);
}

.hb.on {
  color: #ff334b !important;
}

.hb.on svg {
  fill: currentColor;
}

.tm {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Search Bar .sb - Floating Frosted Capsule */
.sb {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 10px 20px;
  margin-bottom: 28px;
  color: var(--muted);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  transition: all var(--duration-norm) var(--ease-out);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sb:focus-within {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--text-pure);
}

.sb input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  font: 600 18px 'Manrope', system-ui, sans-serif;
  letter-spacing: -0.01em;
  color: var(--text-pure);
}

.sb input::placeholder {
  color: var(--muted-dim);
}

.sb-clear {
  color: var(--muted);
  display: none;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
}
.sb-clear:hover {
  color: var(--text-pure);
}
.sb-clear.on {
  display: block;
}

/* Right Panel - Obsidian Glass */
#right {
  border-left: 1px solid var(--hair);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--glass-panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 2;
}

.rc {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.8),
              0 0 32px rgba(255, 255, 255, 0.04),
              inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: var(--bg-surface);
  width: 100%;
  transition: transform var(--duration-norm) var(--ease-out);
}

.rc:hover {
  transform: scale(1.02);
}

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

.rm .inf b {
  font-size: 18px;
}

.rq {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  padding: 4px 0;
  border-radius: 6px;
}

.rq:hover {
  background: rgba(255, 255, 255, 0.03);
}

.rq .th {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

/* Synced LRC Lyrics - Luxury Kinetic Typography */
.lyrics-box {
  position: relative;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px 4px 32px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 88%, transparent 100%);
}

.lyric-line {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.3);
  transition: transform var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              filter var(--duration-fast) var(--ease-out);
  cursor: pointer;
  filter: blur(0.25px);
  padding: 3px 0;
}

.lyric-line:hover {
  color: rgba(255, 255, 255, 0.75);
  filter: none;
}

.lyric-line.active {
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  transform: scale(1.04);
  transform-origin: left center;
  filter: none;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.45);
}

/* Bottom Player Bar — Obsidian Glass Console */
#bar {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  grid-template-columns: 1fr minmax(360px, 520px) 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  background: rgba(6, 7, 10, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  z-index: 10;
  transition: all var(--duration-norm) var(--ease-out);
}

@media (min-width: 769px) {
  #bar {
    margin: 0 24px 14px 24px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(10, 12, 19, 0.85) !important;
    box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.85),
                0 0 32px rgba(255, 255, 255, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  }
}

.mobile-controls {
  display: none !important;
}

.now {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.now .th {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.now .th:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.now .th::after {
  content: "⤢";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  border-radius: 12px;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.now .th:hover::after {
  opacity: 1;
}

.now-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.c2 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.btns button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--muted);
  transition: color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.btns button:hover {
  color: var(--text-pure);
  transform: scale(1.08);
}

.btns .tg.on, .btns .sk {
  color: var(--text-pure);
}

.btns .play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: #06070a;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.btns .play:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(255, 255, 255, 0.4);
}

.prog {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 99px;
  margin: 0;
  outline: none;
  cursor: pointer;
  background: linear-gradient(to right, var(--acc) var(--p, 0%), var(--track) var(--p, 0%));
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--acc);
  border: 0;
  cursor: pointer;
  transition: transform 0.1s ease;
}

input[type=range]:hover::-webkit-slider-thumb {
  transform: scale(1.25);
}

.rt {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
}

.rt button:hover {
  color: var(--text);
}

.rt input {
  flex: none;
  width: 110px;
}

/* Profile View */
.profile-box {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-card-mini {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--hair);
}

.profile-avatar-big {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
}

.stat-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-pill {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Pills & Action Buttons */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hair);
  transition: all 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
}

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

.pill.solid {
  background: var(--text);
  color: var(--on-acc);
  border: 1px solid var(--text);
}

.pill.solid:hover {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
}

/* Library View Styles */
.lib-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.lib-header h1 {
  margin: 0;
}

.lib-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.lib-tabs button {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hair);
  transition: all 0.15s ease;
}

.lib-tabs button:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.lib-tabs button.on {
  color: #000000;
  background: var(--text);
  border-color: var(--text);
}

/* High-Impact Hero Card for Favorites — Чистый бесшовный стиль */
.lib-hero-fav {
  border-radius: 0;
  padding: 12px 0 24px 0;
  background: transparent !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: none;
}

.lib-hero-fav:hover {
  border: none !important;
  box-shadow: none !important;
}

.lib-hero-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lib-hero-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: none;
  flex-shrink: 0;
}

.lib-hero-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  margin-bottom: 4px;
}

.lib-hero-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.lib-hero-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 600;
}

.lib-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Dashed Create Playlist Card */
.card-create-dashed {
  cursor: pointer;
}

.cv-create-dashed {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.card-create-dashed:hover .cv-create-dashed {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transform: translateY(-2px);
}

.create-icon-plus {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

/* Custom Playlist Card */
.cv-custom-pl {
  background: linear-gradient(135deg, #181824 0%, #0d0d12 100%);
  border: 1px solid var(--hair);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover .cv-custom-pl {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
}

.cv-pl-bg {
  color: rgba(255, 255, 255, 0.15);
}

.cv-hover-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.2s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

.card:hover .cv-hover-play {
  opacity: 1;
  transform: translateY(0);
}

/* Artist Avatar Card */
.cv-artist.rd, .cv.rd {
  border-radius: 50% !important;
}

/* Playlist View Header */
.playlist-header {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hair);
}

.pl-cover {
  width: 170px;
  height: 170px;
  border-radius: 20px;
  background: linear-gradient(135deg, #232338 0%, #101018 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7);
}

.pl-meta {
  flex: 1;
  min-width: 0;
}

.pl-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.pl-title {
  margin: 0 0 8px !important;
  font-size: 38px !important;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  word-break: break-word;
}

.pl-sub {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 18px;
}

.pl-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Empty State */
.empty-state {
  padding: 48px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--hair);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
}

.empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  margin-bottom: 6px;
}

.empty-state b {
  font-size: 18px;
  color: var(--text);
}

.empty-state p {
  max-width: 420px;
  margin: 0;
}

/* Modal Overlay & Card - Obsidian Glass Portal */
.modal-overlay,
.modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(3, 4, 7, 0.78) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  z-index: 100000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  animation: fadeInModal var(--duration-fast) var(--ease-out) !important;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  position: relative !important;
  z-index: 100001 !important;
  background: rgba(12, 14, 22, 0.92) !important;
  backdrop-filter: blur(36px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(36px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-lg) !important;
  padding: 28px 30px !important;
  width: 100% !important;
  max-width: 440px !important;
  box-shadow: 0 32px 72px -16px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  animation: scaleInModal var(--duration-norm) var(--ease-out) !important;
}

@keyframes scaleInModal {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.modal-close-btn {
  color: var(--muted);
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s;
}

.modal-close-btn:hover {
  color: var(--text);
}

.modal-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  margin-bottom: 20px;
  transition: border-color 0.15s;
}

.modal-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.modal-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  margin-bottom: 14px;
}

.modal-track-info img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.modal-playlist-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.modal-pl-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  width: 100%;
  text-align: left;
  transition: background 0.15s;
}

.modal-pl-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.modal-pl-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
}

.artist-link {
  cursor: pointer;
  transition: color 0.15s ease;
}

.artist-link:hover {
  color: var(--text) !important;
  text-decoration: underline;
}

/* Artist Profile View */
.artist-header {
  display: flex;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hair);
}

.artist-avatar-wrap {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  background: #14141d;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.artist-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artist-meta {
  flex: 1;
  min-width: 0;
}

.artist-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.artist-title {
  margin: 0 0 8px !important;
  font-size: 42px !important;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}

.artist-listeners {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 20px;
}

.artist-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Albums & Singles Grid */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 34px;
}

/* Auth Cards & Modals */
.auth-guest-banner {
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-guest-banner b {
  font-size: 20px;
  color: var(--text);
}

.auth-guest-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.modal-error {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.auth-switch-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  margin-top: 14px;
  display: block;
  transition: color 0.15s ease;
}

.auth-switch-link:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Progress line and Mobile controls base defaults */
.bar-progress-line {
  display: none;
}

.mobile-controls {
  display: none;
}

.lyrics-cal-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  margin-bottom: 10px;
  width: fit-content;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.lyrics-cal-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  min-height: 28px;
  transition: all 0.15s ease;
}
.lyrics-cal-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}
.lyrics-cal-btn.reset {
  color: var(--muted);
  border-color: transparent;
  background: transparent;
}
.lyrics-cal-btn.reset:hover {
  color: #fff;
}
.lyrics-cal-label {
  font-size: 11.5px;
  color: var(--muted);
  font-family: var(--mono);
  min-width: 70px;
  text-align: center;
}

/* Mobile & Tablet Responsiveness */
#mobile-tabs {
  display: none;
}

@media (max-width: 1080px) {
  .panel {
    grid-template-columns: 200px 1fr;
  }
  #right {
    display: none;
  }
  .g4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   MOBILE RESPONSIVE SYSTEM (< 768px viewports: 320, 360, 375, 414, 768px)
   ========================================================================== */
@media (max-width: 768px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
  }

  .panel {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 64px 56px;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }

  #nav {
    display: none;
  }

  #right {
    display: none;
  }

  #main {
    padding: 12px 14px 24px;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Wave Header & Description Adaptive Fix */
  .wave-unit {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
    padding: 0 0 12px 0;
  }

  .wave-unit-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
  }

  /* Onboarding Artist Banner: Mobile Vertical Stack */
  .artist-onboard-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 0 16px 0 !important;
    margin-bottom: 20px !important;
  }

  .artist-onboard-banner .artist-onboard-title,
  .artist-onboard-banner div {
    width: 100%;
    box-sizing: border-box;
  }

  .artist-onboard-banner b {
    font-size: 16px !important;
    line-height: 1.35 !important;
    margin-bottom: 0 !important;
    max-width: 100%;
    word-break: break-word;
  }

  .artist-onboard-banner p {
    display: none !important;
  }

  .artist-onboard-banner .pill {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 13.5px;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Library, Playlist & Album Hero Adaptive Mobile */
  .lib-hero-fav {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 8px 0 16px 0 !important;
  }

  .lib-hero-left {
    width: 100% !important;
    gap: 14px !important;
  }

  .lib-hero-actions {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .lib-hero-title {
    font-size: 20px !important;
    word-break: break-word !important;
  }

  .album-hero-cover {
    width: 90px !important;
    height: 90px !important;
    min-width: 90px !important;
    min-height: 90px !important;
    border-radius: 12px !important;
    flex-shrink: 0 !important;
  }

  .wave-unit-left {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .wave-unit-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .wave-unit-meta {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }

  .wave-unit-title {
    font-size: 19px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .wave-unit-sub {
    font-size: 12.5px;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .wave-unit-actions {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .wave-play-pill {
    min-height: 44px;
    padding: 8px 18px;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .wave-settings-toggle-btn {
    min-height: 44px;
    padding: 8px 14px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .pill, .pill.solid {
    min-height: 44px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
  }

  .wave-unit-filters {
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .wave-unit-filters .tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    gap: 10px;
    padding: 4px 0 8px;
    scrollbar-width: none;
  }

  .wave-unit-filters .tabs::-webkit-scrollbar {
    display: none;
  }

  .wave-unit-filters .tabs button {
    min-height: 44px;
    min-width: 44px;
    padding: 6px 14px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Search Controls & Filter Pills Horizontal Scroll */
  .ton-search-controls {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .edition-filter-pill-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    padding: 4px 0 8px;
    scrollbar-width: none;
    box-sizing: border-box;
  }

  .edition-filter-pill-container::-webkit-scrollbar {
    display: none;
  }

  .edition-filter-pill {
    min-height: 44px;
    min-width: 44px;
    font-size: 12.5px;
    padding: 8px 14px;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Bottom Player Bar */
  #bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    height: 64px;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    background: transparent !important;
    border-top: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 20;
  }

  .bar-progress-line {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 2.5px;
    background: #ffffff;
    width: 0%;
    pointer-events: none;
    z-index: 25;
    transition: width 0.1s linear;
  }

  .now {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
  }

  .now .th {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
  }

  .now .th img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .now .inf {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    cursor: pointer;
  }

  .now .inf b {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13.5px;
    color: #ffffff;
  }

  .now .inf small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11.5px;
    color: var(--muted);
  }

  .now-actions {
    display: none;
  }

  .mobile-controls {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  .mobile-controls button {
    min-width: 40px !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    cursor: pointer !important;
  }

  .mobile-controls .hb {
    color: var(--text) !important;
  }

  .mobile-controls .hb.on {
    color: #4ade80 !important;
  }

  .mobile-controls .play-mobile {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    margin: 0 4px !important;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2) !important;
  }

  .mobile-controls .play-mobile svg {
    fill: #000000 !important;
    color: #000000 !important;
    width: 22px !important;
    height: 22px !important;
  }

  .c2 {
    display: none;
  }

  .rt {
    display: none;
  }

  /* Mobile Tabs Navigation */
  #mobile-tabs {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(10, 11, 15, 0.98);
    border-top: 1px solid var(--hair);
    z-index: 20;
    height: 56px;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
  }

  #mobile-tabs button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    min-width: 48px;
    min-height: 48px;
    padding: 4px;
    flex: 1;
  }

  #mobile-tabs button.on {
    color: var(--text);
  }

  /* Track Row Layout: Heart at far right, duration compact before it */
  .row {
    grid-template-columns: 18px 42px 1fr auto auto;
    gap: 8px;
    padding: 6px 4px;
    min-height: 48px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .row .tm {
    font-size: 11px;
    color: var(--muted);
    opacity: 0.65;
    text-align: right;
    min-width: 30px;
    padding-right: 2px;
  }

  .row .row-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    justify-content: flex-end;
  }

  .row .hb {
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .row .cv {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
  }

  .row .tcell {
    min-width: 0;
    overflow: hidden;
  }

  .row .tcell b {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    font-size: 13.5px;
  }

  .row .tcell small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    font-size: 12px;
  }

  .row .al {
    display: none;
  }

  .row .hb, .row .row-add-pl-btn, .row .row-more-btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .g4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Fullscreen Player Responsive */
  .fp-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
  }

  .fp-top-bar {
    padding: 10px 14px;
    flex-shrink: 0;
  }

  .fp-top-actions {
    gap: 6px;
  }

  .fp-tab-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .fp-close-btn {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
  }

  .fp-body {
    flex: 1;
    flex-direction: column;
    align-items: center;
    padding: 6px 16px 10px;
    gap: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    min-height: 0;
  }

  .fp-left-stage {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .fp-cover-box {
    width: min(60vw, 24vh);
    height: min(60vw, 24vh);
    max-width: 200px;
    max-height: 200px;
    border-radius: 16px;
    flex-shrink: 0;
  }

  .fp-meta {
    margin-top: 8px;
    width: 100%;
    text-align: center;
  }

  .fp-title {
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .fp-artist {
    font-size: 13px;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .fp-modal[data-tab="lyrics"] .fp-left-stage {
    display: none;
  }

  .fp-modal[data-tab="lyrics"] .fp-stage-dynamic,
  .fp-modal[data-tab="lyrics"] .fp-lyrics-stage {
    width: 100%;
    max-width: 100%;
    height: 100%;
    flex: 1;
    min-height: 240px;
  }

  .fp-lyrics-stage .lyrics-box {
    max-height: calc(100dvh - 220px);
  }

  .fp-bottom-controls {
    padding: 6px 12px max(12px, env(safe-area-inset-bottom));
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
  }

  .fp-scrubber {
    margin-bottom: 12px;
    gap: 10px;
  }

  .fp-scrubber span {
    font-size: 11.5px;
    min-width: 38px;
  }

  .fp-buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px 12px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .fp-buttons button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .fp-buttons .tg,
  .fp-buttons .hb,
  .fp-buttons .row-add-pl-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
  }

  .fp-buttons .sk {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
  }

  .fp-btn-play {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    margin: 0 4px !important;
    box-shadow: 0 4px 18px rgba(255, 255, 255, 0.3) !important;
  }

  .fp-btn-play svg {
    width: 24px !important;
    height: 24px !important;
  }
}

/* Specific 320px Micro Viewport Refinements */
@media (max-width: 360px) {
  #main {
    padding: 8px 10px 16px;
  }

  .row {
    grid-template-columns: 16px 40px 1fr 40px;
    gap: 6px;
  }

  .row .dur {
    display: none;
  }

  .fp-cover-box {
    width: min(68vw, 28vh);
    height: min(68vw, 28vh);
  }

  .fp-title {
    font-size: 17px;
  }

  .wave-unit-title {
    font-size: 16.5px;
  }

  .wave-play-pill {
    padding: 6px 14px;
    font-size: 12.5px;
  }
}

/* ==========================================================================
   КОСМИЧЕСКАЯ ГОРИЗОНТАЛЬНАЯ ЛЕНТА: «НЕДАВНО СЛУШАЛИ»
   ========================================================================== */
.recent-strip-container {
  margin-bottom: 32px;
  position: relative;
}

.recent-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.recent-strip-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.recent-strip-nav-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.recent-strip-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.recent-strip-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.recent-strip-scroll {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 4px 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(to right, transparent 0%, black 15px, black calc(100% - 15px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15px, black calc(100% - 15px), transparent 100%);
}

.recent-strip-scroll::-webkit-scrollbar {
  display: none;
}

.recent-pill-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  border-radius: 16px;
  background: rgba(18, 20, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 230px;
  max-width: 280px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.recent-pill-card:hover {
  background: rgba(30, 34, 52, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.recent-pill-card.active {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.recent-pill-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
  position: relative;
}

.recent-pill-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recent-pill-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  color: #fff;
  transition: opacity 0.15s ease;
}

.recent-pill-card:hover .recent-pill-thumb-overlay,
.recent-pill-card.active .recent-pill-thumb-overlay {
  opacity: 1;
}

.recent-pill-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.recent-pill-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-pill-artist {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* ==========================================================================
   БОЛЬШОЙ КОСМИЧЕСКИЙ ПОЛНОЭКРАННЫЙ ПЛЕЕР (FULL-SCREEN SPACE PLAYER)
   ========================================================================== */
.fp-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #06070d;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* animation removed to eliminate flickering */
}

@keyframes fp-fade-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.fp-backdrop {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  filter: blur(80px) brightness(0.28) saturate(1.4);
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
  transition: background-image 0.8s ease;
}

.fp-ambient-nebula {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.04), transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.fp-top-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 36px;
}

.fp-badge { display: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
}

.fp-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fp-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fp-tab-btn:hover, .fp-tab-btn.on {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.fp-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fp-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.fp-body {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px 10px;
  gap: 48px;
  min-height: 0;
  overflow: hidden;
}

.fp-left-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 480px;
  width: 100%;
}

.fp-cover-box {
  width: min(400px, 42vh);
  height: min(400px, 42vh);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.9), 0 10px 40px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  transition: transform 0.3s ease;
}

.fp-cover-overlay {
  display: none !important;
}

.fp-cover-box:hover .fp-cover-overlay {
  display: none !important;
}

.fp-cov-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(28, 28, 34, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.fp-cov-btn:hover {
  background: rgba(45, 45, 55, 0.98) !important;
  transform: scale(1.1);
  color: #ffffff !important;
}

.fp-cov-queue {
  top: 16px;
  right: 16px;
}

.fp-cov-more {
  bottom: 16px;
  left: 16px;
}

.fp-cov-lyrics {
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
}

.fp-cov-lyrics:hover {
  transform: translateX(-50%) scale(1.1);
}

.fp-cov-fav {
  bottom: 16px;
  right: 16px;
}

.fp-cov-fav.on {
  color: #ef4444 !important;
}

.fp-cov-center-ctrls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fp-cov-ctrl {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(28, 28, 34, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.fp-cov-ctrl:hover {
  transform: scale(1.1);
  background: rgba(45, 45, 55, 0.98) !important;
}

.fp-cov-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #facc15 !important;
  color: #000000 !important;
  border: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(250, 204, 21, 0.4);
  transition: transform 0.2s ease;
}

.fp-cov-play svg {
  fill: #000000 !important;
  color: #000000 !important;
}

.fp-cov-play:hover {
  transform: scale(1.1);
}

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

.fp-meta {
  width: 100%;
  margin-top: 24px;
  text-align: center;
}

.fp-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-artist {
  font-size: 17px;
  font-weight: 600;
  color: rgba(220, 225, 245, 0.7);
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.fp-artist:hover {
  color: #ffffff;
  text-decoration: underline;
}

.fp-lyrics-stage {
  flex: 1;
  max-width: 580px;
  height: min(520px, 60vh);
  display: flex;
  flex-direction: column;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  padding: 10px 14px;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  overflow: hidden;
}

.fp-lyrics-stage .lyrics-box,
.lyrics-box {
  flex: 1;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  padding-right: 0 !important;
}

.fp-lyrics-stage .lyrics-box::-webkit-scrollbar,
.lyrics-box::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.fp-modal[data-tab="lyrics"] .fp-left-stage {
  display: none !important;
}

.fp-modal[data-tab="lyrics"] .fp-lyrics-stage {
  width: 100% !important;
  max-width: 680px !important;
  margin: 0 auto !important;
}

.fp-lyrics-mini-track {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fp-modal[data-tab="lyrics"] .fp-lyrics-mini-track.on,
.fp-modal[data-tab="lyrics"] .fp-lyrics-mini-track {
  display: flex !important;
}

.fp-mini-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.fp-mini-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.fp-mini-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-mini-artist {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.fp-lyrics-stage .lyric-line {
  font-size: 19px !important;
  line-height: 1.7 !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  color: rgba(255, 255, 255, 0.35) !important;
  font-weight: 600 !important;
  transition: color 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              background 0.4s ease,
              text-shadow 0.45s ease,
              border-color 0.4s ease !important;
  border-left: 3px solid transparent !important;
  margin: 6px 0 !important;
  will-change: color, opacity, text-shadow;
}

.fp-lyrics-stage .lyric-line:hover {
  color: rgba(255, 255, 255, 0.85) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.fp-lyrics-stage .lyric-line.active {
  font-size: 19px !important;
  line-height: 1.7 !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  opacity: 1 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-left: 3px solid #ffffff !important;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.3) !important;
  transform: none !important;
}

.fp-bottom-controls {
  position: relative;
  z-index: 5;
  padding: 16px 40px 32px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.fp-scrubber {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  width: 100%;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.fp-scrubber span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  min-width: 44px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.fp-scrubber .sc-waveform-container {
  flex: 1;
  width: 100%;
  min-width: 240px;
  height: 48px;
}

.fp-scrubber input[type="range"] {
  flex: 1;
}

/* Controls Dock with Expanding Wings */
.fp-controls-dock {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 10px 28px;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fp-btn-wing-left,
.fp-btn-wing-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.fp-controls-dock button {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65) !important;
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.fp-controls-dock button:hover {
  color: #ffffff !important;
  transform: scale(1.12);
}

.fp-controls-dock .tg.on,
.fp-controls-dock .hb.on {
  color: #ffffff !important;
}

.fp-btn-play {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.fp-btn-play svg {
  width: 32px;
  height: 32px;
  fill: currentColor !important;
}

/* PC-Specific Controls Dock & Side-by-Side Stage */
@media (min-width: 769px) {
  .fp-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    height: 100%;
    max-height: calc(100vh - 230px);
    padding: 0 40px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .fp-modal[data-tab="cover"] .fp-left-stage {
    display: flex !important;
    transform: translateX(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .fp-modal[data-tab="cover"] .fp-stage-dynamic {
    display: none !important;
  }

  .fp-modal[data-tab="lyrics"] .fp-left-stage,
  .fp-modal[data-tab="queue"] .fp-left-stage {
    display: flex !important;
    max-width: 400px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .fp-modal[data-tab="lyrics"] .fp-stage-dynamic,
  .fp-modal[data-tab="queue"] .fp-stage-dynamic {
    display: flex !important;
    flex: 1;
    max-width: 560px;
    height: 100%;
    animation: slideInFromRight 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .fp-bottom-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px 40px 24px;
    max-width: 800px;
  }

  /* Centered Play button is semi-transparent without background by default */
  .fp-btn-play {
    opacity: 0.55;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }

  .fp-controls-dock {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 32px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .fp-controls-dock:hover {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .fp-controls-dock:hover .fp-btn-play {
    opacity: 1;
    transform: scale(1.1);
  }

  .fp-btn-wing-left,
  .fp-btn-wing-right {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  /* Left wing buttons: tucked into center play button when idle */
  .fp-btn-wing-left button {
    opacity: 0;
    pointer-events: none;
    transform: translateX(50px) scale(0.2);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  }

  /* Right wing buttons: tucked into center play button when idle */
  .fp-btn-wing-right button {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50px) scale(0.2);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  }

  /* Rapid, staggered outward flyout from play button on dock hover */
  .fp-controls-dock:hover .fp-btn-wing-left button,
  .fp-controls-dock:hover .fp-btn-wing-right button {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1);
  }

  /* Left wing sequential delays (closer to play flies first) */
  .fp-controls-dock:hover .fp-btn-wing-left button[data-act="prev"] {
    transition-delay: 0.02s;
  }
  .fp-controls-dock:hover .fp-btn-wing-left button[data-act="dislike"] {
    transition-delay: 0.05s;
  }
  .fp-controls-dock:hover .fp-btn-wing-left button[data-act="shuffle"] {
    transition-delay: 0.08s;
  }
  .fp-controls-dock:hover .fp-btn-wing-left button[data-add-to-pl] {
    transition-delay: 0.11s;
  }

  /* Right wing sequential delays (closer to play flies first) */
  .fp-controls-dock:hover .fp-btn-wing-right button[data-act="next"] {
    transition-delay: 0.02s;
  }
  .fp-controls-dock:hover .fp-btn-wing-right button[data-fav] {
    transition-delay: 0.05s;
  }
  .fp-controls-dock:hover .fp-btn-wing-right button[data-act="repeat"] {
    transition-delay: 0.08s;
  }
  .fp-controls-dock:hover .fp-btn-wing-right .fp-btn-lyrics {
    transition-delay: 0.11s;
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile Fallbacks */
@media (max-width: 768px) {
  .fp-controls-dock {
    width: 100%;
    justify-content: center;
    gap: 10px;
    padding: 6px 0;
  }

  .fp-btn-wing-left,
  .fp-btn-wing-right {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    gap: 8px !important;
    margin: 0 !important;
  }

  .fp-btn-wing-left button,
  .fp-btn-wing-right button {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .fp-btn-play {
    opacity: 1 !important;
    width: 52px !important;
    height: 52px !important;
  }

  .fp-modal[data-tab="lyrics"] .fp-left-stage,
  .fp-modal[data-tab="queue"] .fp-left-stage {
    display: none !important;
  }

  .fp-modal[data-tab="lyrics"] .fp-lyrics-mini-track,
  .fp-modal[data-tab="queue"] .fp-lyrics-mini-track {
    display: flex !important;
  }
}

/* ==========================================================================
   МОДАЛЬНОЕ ОКНО: ВЫБОР ЛЮБИМЫХ ИСПОЛНИТЕЛЕЙ
   ========================================================================== */
.artist-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(4, 5, 10, 0.85);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: ap-fade 0.25s ease forwards;
}

@keyframes ap-fade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.artist-picker-modal {
  width: 100%;
  max-width: 760px;
  max-height: 85vh;
  background: rgba(14, 16, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 32px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.artist-picker-head {
  padding: 24px 28px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.artist-picker-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}

.artist-picker-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
}

.artist-picker-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #fff;
}

.artist-picker-search-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
}

.artist-picker-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  scrollbar-width: thin;
}

.artist-picker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: center;
}

.artist-picker-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.artist-picker-card.selected {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.5);
}

.artist-picker-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 10px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  background: #1e1e24;
}

.artist-picker-card.selected .artist-picker-avatar {
  border-color: #ffffff;
}

.artist-picker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artist-picker-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.artist-picker-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.artist-picker-foot {
  padding: 16px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Онбординг-баннер на главной - Чистый вид без рамок и фона */
.artist-onboard-banner {
  padding: 14px 0 20px 0;
  border-radius: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.artist-onboard-banner b {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 0;
}

.artist-onboard-banner p {
  display: none !important;
}


/* Wave Settings Minimalist Toggle Button */
.wave-unit-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wave-settings-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.15s ease;
  cursor: pointer;
}

.wave-settings-toggle-btn:hover,
.wave-settings-toggle-btn.on {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Floating Luxury Toast Notification */
.ton-toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(18, 18, 26, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 90vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.ton-toast.warning {
  border-color: rgba(255, 170, 0, 0.4);
  color: #ffca66;
}

.ton-toast.error {
  border-color: rgba(255, 59, 92, 0.45);
  color: #ff708d;
}

/* ── Modern Artist Picker Modal Overhaul ── */
.modern-artist-modal {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(13, 14, 18, 0.96) !important;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}

.ap-sparkle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-clear-search-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-clear-search-btn:hover {
  color: #ffffff;
}

.ap-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #86efac;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.artist-picker-card.selected {
  background: rgba(74, 222, 128, 0.08) !important;
  border-color: rgba(74, 222, 128, 0.35) !important;
  transform: translateY(-2px);
}

.artist-picker-card.selected .artist-picker-avatar {
  border-color: #4ade80 !important;
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.4) !important;
}

.artist-picker-card.selected .artist-picker-check {
  background: #4ade80 !important;
  color: #0a0a0a !important;
}

/* ==========================================================================
   ПОЛНОЭКРАННЫЙ РЕЖИМ: ВЫБОР ИСПОЛНИТЕЛЕЙ
   ========================================================================== */
.artist-picker-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 60px;
}

.artist-picker-page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.artist-picker-page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.artist-picker-page .artist-picker-body {
  padding: 12px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  overflow: visible;
  max-height: none;
}

@media (max-width: 640px) {
  .wave-unit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .wave-unit-actions-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .wave-settings-toggle-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    padding: 0;
  }
  .wave-unit-visualizer {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  .wave-equalizer {
    gap: 3.5px;
    height: 34px;
  }
  .wave-equalizer .bar {
    width: 3.5px;
  }
  .artist-picker-page .artist-picker-body {
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 10px;
  }
  .artist-picker-page .artist-picker-card {
    padding: 10px 4px;
  }
  .artist-picker-page .artist-picker-avatar {
    width: 56px;
    height: 56px;
  }
}

/* ─── YANDEX MUSIC "КОЛЛЕКЦИЯ" STYLING ─── */
.ya-col-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 0 60px;
}

.ya-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 4px;
}

.ya-col-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: #ffffff;
}

.ya-col-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ya-col-icon-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ya-col-icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.05);
}

/* Banner: Моя волна по коллекции (чистая кнопка без рамки и фиолетового градиента) */
.ya-wave-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 24px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin-bottom: 24px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.ya-wave-banner:hover {
  transform: none;
  box-shadow: none !important;
}

.ya-wave-banner-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.ya-wave-banner-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.ya-wave-banner-play {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.ya-wave-banner-play:hover {
  transform: scale(1.04);
}

/* Sections */
.ya-col-section {
  margin-bottom: 36px;
}

.ya-col-sec-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  cursor: pointer;
  user-select: none;
}

.ya-col-sec-hdr-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ya-col-sec-hdr-left h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}

.ya-col-arrow {
  font-size: 22px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.45);
  transition: transform 0.2s ease, color 0.2s ease;
}

.ya-col-sec-hdr:hover .ya-col-arrow {
  color: #ffffff;
  transform: translateX(3px);
}

.ya-col-count {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.ya-heart-badge {
  color: #ef4444 !important;
  display: inline-flex;
  align-items: center;
}

.ya-heart-badge svg {
  color: #ef4444 !important;
  fill: #ef4444 !important;
  stroke: #ef4444 !important;
}

.ya-dislike-badge {
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
}

/* Liked Preview List */
.ya-liked-preview-list {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 8px 12px;
}

.ya-liked-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ya-liked-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ya-liked-thumb-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.ya-liked-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ya-liked-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
  color: #ffffff;
}

.ya-liked-row:hover .ya-liked-play-overlay {
  opacity: 1;
}

.ya-liked-meta {
  flex: 1;
  min-width: 0;
}

.ya-liked-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ya-liked-artist {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.ya-liked-dur {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
}

.ya-liked-dots-btn {
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.ya-liked-dots-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Horizontal Artists Carousel */
.ya-artists-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.ya-artists-row::-webkit-scrollbar {
  display: none;
}

.ya-artist-add-card,
.ya-artist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 96px;
  flex-shrink: 0;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

.ya-artist-add-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.ya-artist-add-card:hover .ya-artist-add-avatar {
  border-color: #ffffff;
  color: #ffffff;
  transform: scale(1.05);
}

.ya-artist-avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.ya-artist-card:hover .ya-artist-avatar-wrap {
  transform: scale(1.05);
}

.ya-artist-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ya-artist-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.ya-artist-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

/* 2x2 Grid for "Ещё у вас в Коллекции" */
.ya-more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.ya-more-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.ya-more-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.ya-more-card-icon {
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.ya-icon-pl,
.ya-icon-alb,
.ya-icon-dl,
.ya-icon-duo {
  background: transparent !important;
  color: #ffffff !important;
}

.ya-more-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.ya-more-card-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* Dislikes Section */
.ya-disliked-preview-list {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 8px 12px;
}

.ya-disliked-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 8px;
  border-radius: 12px;
}

.ya-disliked-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  filter: grayscale(80%);
  opacity: 0.7;
}

.ya-disliked-meta {
  flex: 1;
  min-width: 0;
}

.ya-disliked-title {
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: line-through;
}

.ya-disliked-artist {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.ya-undislike-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border-radius: 9999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.ya-undislike-btn:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}

.ya-empty-notice {
  padding: 20px 14px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
}

/* ─── SOUNDCLOUD WAVEFORM SCRUBBER ─── */
.sc-waveform-container {
  position: relative;
  flex: 1;
  height: 48px;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  touch-action: none;
  padding: 4px 0;
  margin: 0 4px;
}

.sc-waveform-bg,
.sc-waveform-fg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5px;
  pointer-events: none;
}

.sc-waveform-fg {
  z-index: 2;
  transition: clip-path 0.08s linear;
}

.sc-bar {
  flex: 1;
  min-width: 2px;
  max-width: 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  transition: height 0.2s ease, background 0.15s ease;
}

.sc-bar.active {
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.sc-waveform-container:hover .sc-bar {
  background: rgba(255, 255, 255, 0.35);
}

.sc-waveform-container:hover .sc-bar.active {
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}

.sc-scrubber-cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  pointer-events: none;
  z-index: 3;
  transform: translateX(-50%);
  opacity: 0.9;
  border-radius: 1px;
}

.sc-hidden-input {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
}

/* Bottom bar compact SoundCloud scrubber */
#bar .sc-bar-prog {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 520px;
}

#bar .sc-bar-prog .sc-waveform-container {
  height: 26px;
  min-width: 160px;
  flex: 1;
  padding: 2px 0;
}

#bar .sc-bar-prog .sc-bar {
  max-width: 4px;
}

/* ─── FULLSCREEN PLAYER QUEUE STAGE ─── */
.fp-modal[data-tab="queue"] .fp-left-stage {
  display: none !important;
}

.fp-modal[data-tab="queue"] .fp-stage-dynamic {
  width: 100% !important;
  max-width: 680px !important;
  margin: 0 auto !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.fp-modal[data-tab="queue"] .fp-lyrics-mini-track {
  display: flex !important;
}

.fp-queue-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: min(520px, 60vh);
  overflow: hidden;
  padding: 0 10px;
}

.fp-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.fp-queue-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.fp-queue-box {
  flex: 1;
  overflow-y: auto !important;
  scrollbar-width: thin;
  padding-right: 4px;
}

.fp-queue-box::-webkit-scrollbar {
  width: 4px;
}

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

.fp-queue-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
  margin-bottom: 4px;
}

.fp-queue-row:hover {
  background: rgba(255, 255, 255, 0.07);
}

.fp-queue-row.now-playing {
  background: rgba(255, 255, 255, 0.12);
}

.fp-queue-idx {
  width: 24px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  flex-shrink: 0;
}

.fp-queue-row.now-playing .fp-queue-idx {
  color: #ffffff;
}

.fp-queue-playing-icon {
  display: inline-block;
  font-size: 12px;
  color: #ffffff;
}

.fp-queue-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.fp-queue-meta {
  flex: 1;
  min-width: 0;
}

.fp-queue-title {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-queue-row.now-playing .fp-queue-title {
  color: #ffffff;
  font-weight: 700;
}

.fp-queue-artist {
  display: block;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.fp-queue-dur {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
  margin-left: 8px;
  flex-shrink: 0;
}

/* Drag handle on mobile top bar */
.fp-drag-handle {
  width: 42px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
  margin: 6px auto 14px;
  display: none;
}

@media (max-width: 768px) {
  .fp-drag-handle {
    display: block;
  }
}

/* ─── COLLECTION FAST SEARCH BOX ─── */
.ya-col-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px 14px;
  margin-bottom: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ya-col-search-box:focus-within {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.ya-col-search-icon {
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
}

.ya-col-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
}

.ya-col-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.ya-col-search-clear {
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.4) !important;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.ya-col-search-clear:hover {
  color: #ffffff !important;
}
