/* WaveDeck Design System - Ultra-Modern Dark Theme with Ambient Glow */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-main: #07090e;
  --bg-sidebar: #0b0f19;
  --bg-card: rgba(18, 24, 38, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --bg-player: rgba(11, 15, 25, 0.95);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.4);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --player-height: 90px;
  --sidebar-width: 260px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Main App Layout */
#app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Ambient Background Glow */
.ambient-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  transition: all 1s ease;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  z-index: 10;
  flex-shrink: 0;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  background: linear-gradient(90deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 20px 12px 8px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.nav-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 3px;
  border-radius: 4px;
  background: var(--accent-cyan);
}

.nav-badge {
  margin-left: auto;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

/* Sidebar Stash Widget */
.stash-widget {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

.stash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stash-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.stash-path {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  margin-top: 4px;
}

/* User Account Pill */
.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s;
}

.user-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.4);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-sub {
  font-size: 0.72rem;
  color: var(--accent-emerald);
}

/* Main Area */
.main-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: var(--player-height);
  position: relative;
  z-index: 1;
}

/* Top Navigation Bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(7, 9, 14, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 10;
  gap: 20px;
}

.search-box {
  position: relative;
  width: 380px;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glow);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.2);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 1rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  color: #fff;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
}

.btn-wave {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.35);
  animation: wavePulse 3s infinite;
}

@keyframes wavePulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(236, 72, 153, 0.35); }
  50% { box-shadow: 0 6px 24px rgba(139, 92, 246, 0.55); }
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Scrollable Content Body */
.content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 40px;
}

/* View Header / Hero Banner */
.hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.hero-info h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.hero-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

.hero-stats {
  display: flex;
  gap: 20px;
  margin-top: 14px;
}

.hero-stat-pill {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
}

/* Sync Progress Bar Banner */
.sync-banner {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.15), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  animation: fadeIn 0.3s;
}

.sync-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-top: 10px;
  overflow: hidden;
}

.sync-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-indigo));
  width: 0%;
  transition: width 0.3s ease;
}

/* Tracks Table */
.tracks-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  max-height: calc(100vh - 290px);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.tracks-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.tracks-table th {
  position: sticky;
  top: 0;
  background: #0d1527;
  padding: 14px 20px;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 5;
  box-shadow: 0 1px 0 var(--border-subtle);
}

.tracks-table td {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
  vertical-align: middle;
}

.track-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.track-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.track-row.playing {
  background: rgba(6, 182, 212, 0.08);
}

.track-row.playing .track-title-text {
  color: var(--accent-cyan);
  font-weight: 700;
}

.track-col-num {
  width: 44px;
  color: var(--text-dim);
  text-align: center;
  font-size: 0.85rem;
}

.track-cover-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.track-thumb {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #1e293b;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.track-title-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.track-title-text {
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 340px;
}

.track-artists-text, .track-artist {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 340px;
  margin-top: 2px;
}

.track-artist:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.track-title-text, .track-name {
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 340px;
}

.track-album-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.track-plays-text {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.track-duration-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
}

.btn-like {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-dim);
  transition: transform 0.15s, color 0.15s;
}

.btn-like:hover {
  transform: scale(1.2);
  color: var(--accent-rose);
}

.btn-like.liked {
  color: var(--accent-rose);
}

/* Playing Wave Indicator */
.sound-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  width: 14px;
}

.sound-bar {
  width: 3px;
  background: var(--accent-cyan);
  border-radius: 2px;
  animation: soundPulse 1s infinite alternate ease-in-out;
}

.sound-bar:nth-child(2) { animation-delay: 0.2s; height: 10px; }
.sound-bar:nth-child(3) { animation-delay: 0.4s; height: 14px; }
.sound-bar:nth-child(1) { height: 6px; }

@keyframes soundPulse {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* Bottom Persistent Player Bar */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: var(--player-height);
  background: var(--bg-player);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 100;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

/* Left: Now Playing Info */
.player-now-playing {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 280px;
}

.player-cover {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  background: #1e293b;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.player-cover:hover {
  transform: scale(1.05);
}

.player-track-info {
  min-width: 0;
}

.player-track-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-track-artist {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Center: Controls & Scrubber */
.player-center {
  flex: 1;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.15rem;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.ctrl-btn:hover {
  color: #fff;
  transform: scale(1.1);
}

.ctrl-btn.active {
  color: var(--accent-cyan);
}

.ctrl-btn-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 1.25rem;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.ctrl-btn-play:hover {
  transform: scale(1.08);
  background: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.scrubber-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.time-stamp {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  width: 40px;
}

.seek-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: height 0.15s ease;
}

.seek-track:hover {
  height: 6px;
}

.seek-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-indigo));
  border-radius: 4px;
  width: 0%;
  position: relative;
}

.seek-thumb {
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.15s;
}

.seek-track:hover .seek-thumb {
  opacity: 1;
}

/* Right: Tools & Volume */
.player-right {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 260px;
  justify-content: flex-end;
}

.wave-pill-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: all 0.2s;
}

.wave-pill-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(139, 92, 246, 0.3));
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.4);
}

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 110px;
}

.volume-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

/* Modal Windows */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.modal-dialog {
  background: #0f172a;
  border: 1px solid var(--border-glow);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 520px;
  padding: 28px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-cyan);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.loading-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

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

/* --- Double Like Controls --- */
.player-likes-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.btn-like-yandex {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-like-yandex:hover {
  border-color: #fc3f1d;
  color: #fc3f1d;
  transform: scale(1.1);
}

.btn-like-yandex.liked {
  background: #fc3f1d;
  border-color: #fc3f1d;
  color: #fff;
  box-shadow: 0 0 12px rgba(252, 63, 29, 0.5);
}

.fav-cell-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* --- Dedicated "Моя волна" Experience Screen --- */
.wave-experience-container {
  min-height: calc(100vh - 220px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 20px;
  animation: fadeIn 0.4s ease;
}

.wave-back-lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.wave-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: floatLight 12s infinite alternate ease-in-out;
}

.wave-light.light-1 {
  width: 450px;
  height: 450px;
  background: #06b6d4;
  top: 10%;
  left: 20%;
}

.wave-light.light-2 {
  width: 500px;
  height: 500px;
  background: #8b5cf6;
  bottom: 10%;
  right: 20%;
  animation-duration: 15s;
  animation-delay: -3s;
}

.wave-light.light-3 {
  width: 400px;
  height: 400px;
  background: #ec4899;
  top: 40%;
  left: 50%;
  animation-duration: 10s;
  animation-delay: -5s;
}

@keyframes floatLight {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.15); }
  100% { transform: translate(-30px, 40px) scale(0.9); }
}

.wave-card {
  position: relative;
  z-index: 1;
  max-width: 680px;
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(6, 182, 212, 0.1);
}

.wave-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 32px;
}

.wave-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Master Wave Orb & Concentric Rings */
.wave-orb-center {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wave-orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(6, 182, 212, 0.2);
  pointer-events: none;
  transition: all 0.4s ease;
}

.wave-orb-ring.ring-1 { width: 150px; height: 150px; }
.wave-orb-ring.ring-2 { width: 190px; height: 190px; border-color: rgba(139, 92, 246, 0.25); }
.wave-orb-ring.ring-3 { width: 230px; height: 230px; border-color: rgba(236, 72, 153, 0.2); }

.wave-experience-container.playing .wave-orb-ring.ring-1 {
  animation: pulseRing 3s infinite ease-out;
}
.wave-experience-container.playing .wave-orb-ring.ring-2 {
  animation: pulseRing 3s infinite 0.7s ease-out;
}
.wave-experience-container.playing .wave-orb-ring.ring-3 {
  animation: pulseRing 3s infinite 1.4s ease-out;
}

@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.3; }
  100% { transform: scale(1.25); opacity: 0; }
}

.wave-master-btn {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #ec4899 100%);
  border: 3px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4), 0 0 50px rgba(139, 92, 246, 0.3);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
}

.wave-master-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 40px rgba(6, 182, 212, 0.6), 0 0 70px rgba(236, 72, 153, 0.5);
}

.wave-master-btn:active {
  transform: scale(0.96);
}

/* Wave Track Meta */
.wave-track-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 28px;
}

.wave-cover-img {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.wave-track-text {
  flex: 1;
  min-width: 0;
}

.wave-track-text h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.wave-track-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Wave Audio Visualizer Bars */
.wave-audio-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 20px;
  margin-top: 10px;
}

.wave-bar {
  width: 3px;
  height: 4px;
  background: var(--accent-cyan);
  border-radius: 2px;
  transition: height 0.15s;
}

.wave-experience-container.playing .wave-bar:nth-child(1) { animation: bounceBar 1.1s infinite alternate; }
.wave-experience-container.playing .wave-bar:nth-child(2) { animation: bounceBar 0.8s infinite 0.2s alternate; }
.wave-experience-container.playing .wave-bar:nth-child(3) { animation: bounceBar 1.4s infinite 0.1s alternate; }
.wave-experience-container.playing .wave-bar:nth-child(4) { animation: bounceBar 0.9s infinite 0.3s alternate; }
.wave-experience-container.playing .wave-bar:nth-child(5) { animation: bounceBar 1.2s infinite 0.15s alternate; }
.wave-experience-container.playing .wave-bar:nth-child(6) { animation: bounceBar 0.7s infinite 0.25s alternate; }
.wave-experience-container.playing .wave-bar:nth-child(7) { animation: bounceBar 1.3s infinite 0.05s alternate; }
.wave-experience-container.playing .wave-bar:nth-child(8) { animation: bounceBar 1.0s infinite 0.35s alternate; }

@keyframes bounceBar {
  0% { height: 4px; background: var(--accent-cyan); }
  50% { height: 18px; background: var(--accent-indigo); }
  100% { height: 8px; background: var(--accent-pink); }
}

/* Wave Action Buttons */
.wave-action-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-wave-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-wave-action:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-wave-action.active-fav {
  background: rgba(236, 72, 153, 0.2);
  border-color: var(--accent-pink);
  color: #fff;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.35);
}

.btn-wave-action.active-yandex {
  background: rgba(252, 63, 29, 0.2);
  border-color: #fc3f1d;
  color: #fff;
  box-shadow: 0 0 15px rgba(252, 63, 29, 0.35);
}

.btn-wave-next {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
  border-color: rgba(6, 182, 212, 0.4);
}

/* Tabs & Profile in Modal */
.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-btn.active {
  color: #fff;
  border-bottom-color: var(--accent-cyan);
}

.profile-avatar-large {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* --- Typography & Global Alignment Fixes --- */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h1, h2, h3, .brand-title, .wave-master-btn {
  font-family: 'Outfit', sans-serif;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  gap: 16px;
}

.search-box {
  flex: 1;
  max-width: 480px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  box-sizing: border-box;
  white-space: nowrap;
}

.wave-badge-glow {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(236, 72, 153, 0.4)) !important;
  color: #fff !important;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
  animation: waveGlowPulse 2.5s infinite;
}

@keyframes waveGlowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(6, 182, 212, 0.4); }
  50% { box-shadow: 0 0 16px rgba(236, 72, 153, 0.6); }
}

/* --- Artist Cards Grid & Detail Styles --- */
.artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.artist-card {
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.artist-card:hover {
  transform: translateY(-5px);
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(6, 182, 212, 0.15);
}

.artist-avatar-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.artist-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.artist-card:hover .artist-avatar-img {
  transform: scale(1.08);
}

.artist-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.artist-card:hover .artist-play-overlay {
  opacity: 1;
}

.artist-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.artist-track-badge {
  display: inline-block;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.artist-hero-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.artist-hero-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  border: 3px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.artist-badge-pill {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  font-weight: 800;
}

/* --- Lucide SVG & Modern Icon System --- */
.lucide {
  display: inline-block;
  vertical-align: middle;
  stroke-width: 2.1px;
}

.brand-svg {
  width: 22px;
  height: 22px;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.nav-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-item:hover .nav-svg {
  transform: scale(1.1);
}

.text-cyan { color: var(--accent-cyan); }
.text-rose { color: var(--accent-rose); }
.text-purple { color: var(--accent-purple); }
.text-blue { color: #38bdf8; }
.text-amber { color: var(--accent-amber); }

/* Yandex Branded Badges (Sharp and crisp) */
.yandex-nav-badge {
  background: #fc3f1d;
  color: #fff;
  font-weight: 900;
  font-size: 0.72rem;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(252, 63, 29, 0.4);
}

.yandex-pill-badge {
  background: #fc3f1d;
  color: #fff;
  font-weight: 900;
  font-size: 0.75rem;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(252, 63, 29, 0.4);
}

/* Like Heart SVG styling */
.btn-like svg {
  width: 17px;
  height: 17px;
  stroke: var(--text-dim);
  fill: transparent;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-like:hover svg {
  stroke: var(--accent-rose);
  transform: scale(1.18);
}

.btn-like.liked svg {
  stroke: var(--accent-rose);
  fill: var(--accent-rose);
  filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.6));
  animation: heartPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes heartPop {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Yandex Like Button */
.btn-like-yandex {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-dim);
  font-weight: 800;
  font-size: 0.75rem;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-like-yandex:hover {
  border-color: #fc3f1d;
  color: #fc3f1d;
  transform: scale(1.1);
}

.btn-like-yandex.liked {
  background: #fc3f1d;
  border-color: #fc3f1d;
  color: #fff;
  box-shadow: 0 0 10px rgba(252, 63, 29, 0.5);
}

/* --- Preloaded Next Track Pill in Wave --- */
.wave-next-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
  font-size: 0.82rem;
  color: var(--text-main);
  max-width: 440px;
  animation: fadeIn 0.3s ease;
}

.wave-next-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  flex-shrink: 0;
}

.wave-next-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.wave-preloaded-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-left: auto;
  flex-shrink: 0;
}

/* Lucide Play / Pause Button in Table */
.track-play-hover-btn {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.track-row:hover .track-num-text {
  display: none;
}

.track-row:hover .track-play-hover-btn {
  display: flex;
}

/* ==========================================================================
   Mobile Responsive Navigation, Mini-Player & Fullscreen Player
   ========================================================================== */
.mobile-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-close-sidebar-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  margin-left: auto;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop.open {
  display: block;
  opacity: 1;
}

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(10, 15, 29, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 950;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  height: 100%;
  transition: color 0.15s ease;
}

.mobile-nav-btn svg {
  width: 20px;
  height: 20px;
}

.mobile-nav-btn.active {
  color: var(--accent-cyan);
}

.mobile-nav-btn.active svg {
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.5));
}

/* Fullscreen Mobile Player Overlay */
.mobile-player-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: linear-gradient(180deg, #0e1726 0%, #060913 100%);
  display: flex;
  flex-direction: column;
  padding: 20px 20px 32px;
  box-sizing: border-box;
  animation: slideUpPlayer 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

@keyframes slideUpPlayer {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.mobile-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 24px;
}

.mobile-player-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: #fff;
  cursor: pointer;
}

.mobile-player-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--text-dim);
}

.mobile-player-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.mobile-player-art-wrap {
  width: 100%;
  aspect-ratio: 1;
  max-width: 320px;
  margin-bottom: 24px;
}

.mobile-player-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 40px rgba(6, 182, 212, 0.15);
}

.mobile-player-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
}

.mobile-player-meta {
  flex: 1;
  min-width: 0;
  padding-right: 12px;
}

.mobile-player-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-player-artist {
  font-size: 0.95rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}

.mobile-player-likes {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mobile-scrubber-box {
  width: 100%;
  margin-bottom: 24px;
}

.mobile-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: monospace;
  margin-top: 8px;
}

.mobile-player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
}

.mobile-play-large {
  width: 64px !important;
  height: 64px !important;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple)) !important;
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.45) !important;
}

/* ==========================================================================
   Mobile Responsive Screen Breakpoint (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  #app-container {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.7);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-close-sidebar-btn {
    display: flex;
  }

  .mobile-toggle-btn {
    display: flex;
  }

  .mobile-bottom-nav {
    display: grid;
  }

  .top-bar {
    padding: 12px 14px;
    gap: 10px;
  }

  .search-box {
    max-width: none;
  }

  #btn-sync-action span, #btn-header-user span {
    display: none;
  }

  #btn-sync-action, #btn-header-user {
    padding: 0 10px;
    width: 38px;
    height: 38px;
    justify-content: center;
  }

  .content-scroll {
    padding: 14px 14px 140px;
  }

  /* Compact Floating Mini-Player on Mobile */
  .player-bar {
    position: fixed;
    bottom: 68px;
    left: 10px;
    right: 10px;
    height: 60px;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    z-index: 940;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .player-now-playing {
    flex: 1;
    min-width: 0;
    cursor: pointer;
  }

  .player-track-info {
    max-width: 170px;
  }

  .player-track-title {
    font-size: 0.85rem;
  }

  .player-track-artist {
    font-size: 0.75rem;
  }

  .player-likes-wrap {
    display: none;
  }

  .player-center {
    width: auto;
    flex-direction: row;
    align-items: center;
  }

  .scrubber-wrap {
    display: none;
  }

  .player-controls {
    gap: 4px;
  }

  #btn-shuffle, #btn-repeat, .ctrl-btn:nth-child(2) {
    display: none;
  }

  .ctrl-btn-play {
    width: 38px;
    height: 38px;
  }

  .ctrl-btn-play svg {
    width: 17px !important;
    height: 17px !important;
  }

  .player-right {
    display: none;
  }

  /* Compact Mobile Tracks Table */
  .tracks-table-wrap {
    max-height: calc(100vh - 240px);
  }

  .tracks-table th:nth-child(1), .tracks-table td:nth-child(1),
  .tracks-table th:nth-child(3), .tracks-table td:nth-child(3),
  .tracks-table th:nth-child(4), .tracks-table td:nth-child(4) {
    display: none;
  }

  .tracks-table th {
    padding: 10px 12px;
    font-size: 0.72rem;
  }

  .tracks-table td {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .track-thumb {
    width: 40px;
    height: 40px;
  }

  .track-name {
    font-size: 0.88rem;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .track-artist {
    font-size: 0.75rem;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Compact Wave Experience on Mobile */
  .wave-orb-center {
    width: 160px;
    height: 160px;
  }

  .wave-orb-ring.ring-1 { width: 140px; height: 140px; }
  .wave-orb-ring.ring-2 { width: 170px; height: 170px; }
  .wave-orb-ring.ring-3 { width: 200px; height: 200px; }

  .wave-master-btn {
    width: 74px;
    height: 74px;
  }

  .wave-track-text h2 {
    font-size: 1.15rem;
  }

  .wave-track-text p {
    font-size: 0.85rem;
  }

  .wave-action-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .btn-wave-action {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .hero-banner {
    padding: 18px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .hero-banner h1 {
    font-size: 1.5rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 6px;
  }

  .modal-dialog {
    width: 94%;
    padding: 22px 16px;
  }
}


