/* ===== Musicfy — Lite Experimental Player ===== */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-elevated: #1a1a1a;
  --bg-highlight: #252525;
  --bg-card: #181818;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #6a6a6a;
  --accent: #1ed760;
  --accent-hover: #1fdf64;
  --accent-dim: rgba(30, 215, 96, 0.15);
  --accent-contrast: #000000;
  --theme-color-1: rgba(30, 215, 96, 0.25);
  --theme-color-2: rgba(20, 100, 220, 0.18);
  --theme-color-3: rgba(160, 32, 240, 0.15);
  --playback-height: 90px;
  --sidebar-width: 260px;
  --radius: 8px;
  --radius-lg: 12px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  overscroll-behavior-y: contain;
  position: relative;
}

/* ===== Ambient Dynamic Color & Mesh Background Effect ===== */
.ambient-bg-glow {
  position: fixed;
  top: -25%;
  left: -20%;
  width: 140vw;
  height: 140vh;
  background: radial-gradient(circle at 35% 25%, var(--theme-color-1) 0%, transparent 55%),
              radial-gradient(circle at 75% 65%, var(--theme-color-2) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, var(--theme-color-3) 0%, transparent 50%);
  filter: blur(80px);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
  transition: all 1.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: ambientFloat 24s ease-in-out infinite alternate;
}

.ambient-mesh-glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.015) 0%, transparent 100%);
  backdrop-filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}

@keyframes ambientFloat {
  0% { transform: scale(1) translate(0, 0) rotate(0deg); }
  50% { transform: scale(1.08) translate(30px, -20px) rotate(3deg); }
  100% { transform: scale(1.02) translate(-25px, 25px) rotate(-3deg); }
}

/* ===== Layout ===== */
.app {
  display: flex;
  height: calc(100vh - var(--playback-height));
  position: relative;
  z-index: 2;
}

/* ===== Sidebar ===== */
.sidebar {
  width: var(--sidebar-width);
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 8px;
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.sidebar-nav {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.nav-btn:hover { color: var(--text-primary); }
.nav-btn.active { color: var(--text-primary); }

.sidebar-footer {
  margin-top: auto;
  padding: 12px;
}

.experiment-badge {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.experiment-badge span {
  font-size: 13px;
  font-weight: 600;
}

.experiment-badge small {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== Main Content ===== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  margin-top: 8px;
  margin-right: 8px;
}

/* ===== Top Bar ===== */
.top-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: linear-gradient(180deg, var(--theme-color-1) 0%, transparent 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 1.5s ease;
}

.nav-arrows { display: flex; gap: 8px; }

.arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0.9;
}

.arrow-btn:hover:not(:disabled) {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.06);
}

.arrow-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.3);
  border-color: transparent;
  transform: none;
}

.search-container {
  position: relative;
  max-width: 480px;
  width: 100%;
  z-index: 1001;
  transform: translate3d(0, 0, 0);
  transition: transform 0.52s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s ease,
              max-width 0.52s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Centered Hero Mode in Search Tab (Moved to mid of screen) */
.search-container.is-hero-center {
  max-width: 620px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65),
              0 0 0 1.5px rgba(255, 255, 255, 0.16),
              0 0 35px rgba(30, 215, 96, 0.15);
  border-radius: 34px;
}

.search-container.is-hero-center #searchInput {
  padding: 16px 84px 16px 54px;
  font-size: 16px;
  border-radius: 34px;
  background: rgba(30, 30, 30, 0.95);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.search-container.is-hero-center #searchInput:focus {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(30, 215, 96, 0.28);
}

.search-container.is-hero-center .search-icon {
  left: 18px;
  width: 22px;
  height: 22px;
}

.search-container.is-hero-center .search-filter-btn {
  right: 14px;
  width: 32px;
  height: 32px;
  font-size: 15px;
}

.search-container.is-hero-center .clear-btn {
  right: 50px;
}

.search-container .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

#searchInput {
  width: 100%;
  padding: 12px 76px 12px 44px;
  background: var(--bg-highlight);
  border: 2px solid transparent;
  border-radius: 24px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

#searchInput:focus {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

#searchInput::placeholder { color: var(--text-muted); }

.clear-btn {
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
}

.clear-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) scale(1.1);
}

/* Modern Search Filter Trigger Button */
.search-filter-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  padding: 0;
}

.search-filter-btn .filter-icon-svg {
  transition: transform 0.25s ease, stroke 0.2s ease;
  pointer-events: none;
}

.search-filter-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.search-filter-btn.active-filters {
  background: rgba(30, 215, 96, 0.16);
  border-color: rgba(30, 215, 96, 0.45);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(30, 215, 96, 0.22);
}

.filter-active-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 2px #ffffff;
  border: 1.5px solid #141414;
  animation: filterDotPulse 2s infinite ease-in-out;
}

@keyframes filterDotPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 6px var(--accent);
  }
  50% {
    transform: scale(1.28);
    box-shadow: 0 0 10px var(--accent), 0 0 3px #ffffff;
  }
}

/* Modern Floating Search Filter Popover Menu */
.search-filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 440px;
  max-width: 92vw;
  background: rgba(18, 18, 22, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 1000000;
  overflow: hidden;
  animation: fadeIn 0.18s ease forwards;
}

.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

.filter-panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}

.filter-panel-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-primary);
}

.filter-panel-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.18s ease;
}

.filter-panel-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.1);
}

.filter-panel-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 420px;
  overflow-y: auto;
}

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

.filter-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.filter-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: 16px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.filter-pill-btn svg {
  opacity: 0.75;
  transition: opacity 0.18s ease;
}

.filter-pill-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.22);
}

.filter-pill-btn.active {
  background: var(--accent);
  color: #000000;
  font-weight: 700;
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(30, 215, 96, 0.35);
}

.filter-pill-btn.active svg {
  opacity: 1;
  fill: #000000;
}
  font-family: inherit;
}

.filter-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
}

.filter-pill-btn.active {
  background: var(--accent);
  color: #000000;
  border-color: var(--accent);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(30, 215, 96, 0.3);
}

.filter-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
}

.btn-filter-reset {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-filter-reset:hover {
  color: #ff5555;
  border-color: rgba(255, 85, 85, 0.4);
  background: rgba(255, 85, 85, 0.1);
}

.btn-filter-apply {
  background: var(--accent);
  border: none;
  color: #000000;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-filter-apply:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(30, 215, 96, 0.4);
}

/* Author / Artist Grid in Search Results */
.artist-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  padding: 12px 0;
}

.artist-search-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}

.artist-search-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.artist-search-avatar-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
}

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

.artist-search-card:hover .artist-search-avatar {
  transform: scale(1.06);
}

.artist-search-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.artist-search-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* ===== Content Scroll ===== */
.content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 120px;
  position: relative;
  z-index: 1;
}

.content-scroll::-webkit-scrollbar { width: 8px; }
.content-scroll::-webkit-scrollbar-track { background: transparent; }
.content-scroll::-webkit-scrollbar-thumb { background: var(--bg-highlight); border-radius: 4px; }

/* ===== Views ===== */
.view { display: none; }
.view.active { display: block; }

.greeting {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-top: 8px;
}

/* ===== Home Header & Filter Chips ===== */
.home-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  padding-top: 8px;
}

.home-header .greeting {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 0;
  letter-spacing: -0.5px;
}

.home-filter-chips {
  display: flex;
  gap: 10px;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  transform: scale(1.02);
}

.filter-chip.active {
  background: var(--accent);
  color: var(--accent-contrast, #000000);
  border-color: var(--accent);
  box-shadow: 0 2px 12px var(--accent-dim);
}

/* Quick Picks (Spotify Top Compact 2-column or 3-column rows) */
.quick-picks-container {
  margin-bottom: 36px;
}

.quick-picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.quick-pick-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  height: 64px;
}

.quick-pick-card:hover {
  background: rgba(255, 255, 255, 0.15);
}

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

.quick-pick-art {
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex-shrink: 0;
}

.quick-pick-title {
  font-size: 14px;
  font-weight: 700;
  padding: 0 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.quick-play-btn {
  position: absolute;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
}

.quick-play-btn svg {
  fill: var(--accent-contrast, #000000);
}

.quick-play-btn:hover {
  transform: scale(1.06);
  background: var(--accent-hover);
}

/* Section Header Rows */
.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-subtitle-tag {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.section { margin-bottom: 36px; }

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.subtitle {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ===== Track Grid (Home / Featured) ===== */
.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
}

.track-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 14px;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}

.track-card:hover {
  background: var(--bg-highlight);
}

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

.card-artwork {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--bg-highlight);
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.card-artist {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-play-btn {
  position: absolute;
  right: 20px;
  bottom: 76px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s ease;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.card-play-btn:hover { transform: scale(1.05) translateY(0); background: var(--accent-hover); }

.card-play-btn svg { fill: var(--accent-contrast, #000000); }

/* ===== Search View ===== */
.search-prompt {
  text-align: center;
  padding: 48px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.search-prompt.fade-out {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.search-prompt h1 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.search-prompt p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 26px;
  line-height: 1.4;
}

.search-hero-anchor {
  height: 58px;
  max-width: 620px;
  margin: 0 auto 30px;
  width: 100%;
  pointer-events: none;
  visibility: hidden;
}

.search-results {
  animation: searchResultsFadeIn 0.35s ease forwards;
}

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

.genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 660px;
  margin: 0 auto;
}

.genre-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-highlight);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.genre-pill svg {
  color: var(--accent);
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.genre-pill:hover {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.genre-pill:hover svg {
  transform: scale(1.15);
  opacity: 1;
}

/* ===== Track List (Search Results / Queue) ===== */
.track-list { display: flex; flex-direction: column; }

.track-row {
  display: grid;
  grid-template-columns: 40px 48px 1fr 1fr 60px 40px;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
}

.track-row:hover { background: rgba(255,255,255,0.05); }
.track-row.playing { background: rgba(30,215,96,0.08); }

.track-num {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.track-row:hover .track-num { color: var(--text-primary); }
.track-row.playing .track-num { color: var(--accent); }

.track-row-art {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--bg-highlight);
}

.track-row-info {
  overflow: hidden;
}

.track-row-title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-row.playing .track-row-title { color: var(--accent); }

.track-row-artist {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-row-album {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-row-duration {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state p { font-size: 16px; margin-bottom: 8px; }
.empty-state small { font-size: 13px; }

.loading-spinner {
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
  font-size: 14px;
}

/* ===== Playback Bar ===== */
.playback-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--playback-height);
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  padding: 0 16px;
  z-index: 100;
}

.playback-track {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.playback-art {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.playback-info { overflow: hidden; }

.playback-title {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.playback-artist {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.like-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.like-btn:hover { color: var(--text-primary); }
.like-btn.active { color: var(--accent); }
.like-btn.active svg { fill: var(--accent); }

/* ===== Controls ===== */
.playback-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.control-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.ctrl-btn:hover { color: var(--text-primary); }
.ctrl-btn.active { color: var(--accent); }

.repeat-btn {
  position: relative;
}

.repeat-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white !important;
  color: black !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn:hover { transform: scale(1.06); }

/* ===== Progress Bar ===== */
.progress-container {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 640px;
}

.time {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 32px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.progress-bar:hover { height: 6px; }

.progress-fill {
  height: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  width: 0%;
  transition: none;
  position: relative;
}

.progress-bar:hover .progress-fill { background: var(--accent); }

.progress-handle {
  display: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
}

.progress-bar:hover .progress-handle { display: block; }

/* ===== Volume ===== */
.playback-extra {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-bar {
  width: 90px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.volume-fill {
  height: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  width: 70%;
}

.volume-bar:hover .volume-fill { background: var(--accent); }

.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.results-badge {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-highlight);
  padding: 4px 10px;
  border-radius: 12px;
}

.load-more-container {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.load-more-btn {
  background: var(--bg-highlight);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.load-more-btn:hover {
  background: var(--text-primary);
  color: black;
  transform: scale(1.03);
}

.no-more-results {
  text-align: center;
  padding: 20px 0;
  color: var(--text-muted);
  font-size: 13px;
}

/* Clickable Playback Info */
.clickable-record-nav {
  cursor: pointer;
  transition: opacity 0.15s, text-decoration 0.15s;
}

.clickable-record-nav:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* Playback bar download button */
.download-bar-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.download-bar-btn:hover {
  color: var(--accent);
  background: rgba(30,215,96,0.1);
  transform: scale(1.1);
}

/* ===== Full Track View / Record Page ===== */
.back-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0 20px;
  font-family: inherit;
  transition: color 0.15s;
}

.back-link-btn:hover {
  color: var(--text-primary);
}

.track-detail-hero {
  display: flex;
  gap: 36px;
  align-items: center;
  padding: 28px;
  background: linear-gradient(135deg, var(--theme-color-1) 0%, rgba(20, 20, 20, 0.85) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: background 1.5s ease;
}

.track-detail-art-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  margin-right: 65px;
  flex-shrink: 0;
}

.track-detail-art {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: 0 16px 36px rgba(0,0,0,0.7);
  position: relative;
  z-index: 10; /* Strictly on top of the sliding vinyl record and reflection */
}

/* Vinyl Disc — HD Realistic Black Dark Vinyl (No white rims) */
.vinyl-record {
  position: absolute;
  top: 10px;
  right: -82px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #0a0a0a 0%, #050505 32%, transparent 33%),
    radial-gradient(circle at center, transparent 33%, rgba(0, 0, 0, 0.95) 34%, transparent 35%),
    radial-gradient(circle at center, transparent 55%, rgba(18, 18, 18, 0.6) 56%, transparent 57%),
    radial-gradient(circle at center, transparent 75%, rgba(12, 12, 12, 0.8) 76%, transparent 77%),
    repeating-radial-gradient(circle at center, #060606 0px, #060606 1.5px, #131313 2px, #060606 3px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.95);
  border: none;
  z-index: 1; /* Under reflection (z-index: 5) and album art (z-index: 10) */
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  animation: spinRecordContinuous 14s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}

.vinyl-record.spinning {
  animation-play-state: running !important;
}

/* Concentric dark groove bands — zero white rims */
.vinyl-groove-bands {
  position: absolute;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.8);
  box-shadow: inset 0 0 0 18px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 2;
}

/* Dark center label with track artwork — zero white rims */
.vinyl-center {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  position: relative;
  background: #0d0d0d;
  border: none;
  box-shadow: 0 0 0 3px #050505, inset 0 0 8px rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 3;
}

.vinyl-center-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.95;
}

.vinyl-hole {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #000;
  border: 1.5px solid #1c1c1c;
  z-index: 4;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 1);
}

/* =========================================================
   STATIONARY REALISTIC LIGHT REFLECTION OVERLAY
   Layered BELOW the image of music (z-index: 10),
   but OVER the disk (z-index: 1).
   Fixed in position like real room light, with passing sheen.
   ========================================================= */
.vinyl-fixed-reflection {
  position: absolute;
  top: 10px;
  right: -82px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5; /* Layered below music cover image (10), above disc (1) */
  overflow: hidden;
  box-shadow: none; /* Zero white rims */
}

/* Fixed dual anisotropic reflection beams from overhead room light */
.reflection-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 15deg,
    transparent 0deg,
    rgba(255, 255, 255, 0.02) 18deg,
    rgba(255, 255, 255, 0.30) 38deg,
    rgba(200, 230, 255, 0.16) 48deg,
    rgba(255, 255, 255, 0.03) 65deg,
    transparent 85deg,
    transparent 180deg,
    rgba(255, 255, 255, 0.02) 198deg,
    rgba(255, 255, 255, 0.28) 218deg,
    rgba(255, 210, 240, 0.14) 228deg,
    rgba(255, 255, 255, 0.03) 245deg,
    transparent 265deg
  );
  filter: blur(1.5px);
  mix-blend-mode: screen;
}

/* Realistic passing specular wave across the fixed reflection */
.reflection-specular {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.20) 0%,
    transparent 35%,
    transparent 65%,
    rgba(255, 255, 255, 0.12) 100%
  );
  mix-blend-mode: screen;
  animation: passingReflectionWave 3.5s ease-in-out infinite alternate;
}

@keyframes passingReflectionWave {
  0% {
    opacity: 0.55;
    transform: scale(0.98) rotate(-2deg);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.01) rotate(1deg);
  }
  100% {
    opacity: 0.55;
    transform: scale(0.98) rotate(-2deg);
  }
}

@keyframes spinRecordContinuous {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.track-detail-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
}

.detail-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
  margin: 4px 0;
}

.detail-artist {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
}

.detail-props {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0 16px;
}

.prop-item {
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 4px 12px;
  border-radius: 6px;
}

.detail-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--accent-contrast, #000000);
  border: none;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 28px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.btn-primary svg {
  fill: var(--accent-contrast, #000000);
  transition: transform 0.25s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-primary:active {
  transform: scale(0.97);
}

/* Dynamic Playing State: Glowing, Pulsing, Soundwave Active */
.btn-primary.is-playing {
  background: linear-gradient(135deg, var(--accent) 0%, #15b84c 100%);
  color: var(--accent-contrast, #000000);
  box-shadow: 0 0 20px rgba(30, 215, 96, 0.55), 0 4px 14px rgba(0, 0, 0, 0.35);
  animation: dynamic-play-pulse 2.4s infinite ease-in-out;
}

.btn-primary.is-playing svg {
  fill: var(--accent-contrast, #000000);
  animation: svg-breathe 2.4s infinite ease-in-out;
}

@keyframes dynamic-play-pulse {
  0%, 100% {
    box-shadow: 0 0 16px rgba(30, 215, 96, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 28px rgba(30, 215, 96, 0.75), 0 0 0 4px rgba(30, 215, 96, 0.25), 0 6px 18px rgba(0, 0, 0, 0.4);
  }
}

@keyframes svg-breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-highlight);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 28px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-download:hover {
  background: rgba(255,255,255,0.1);
  transform: scale(1.04);
  border-color: var(--accent);
  color: var(--accent);
}

.track-detail-body {
  margin-top: 16px;
}

.track-detail-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.record-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.record-info-card {
  background: var(--bg-elevated);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.04);
}

.record-info-card h4 {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.record-info-card p {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

/* Clickable Artist Link */
.clickable-artist-link {
  cursor: pointer;
  display: inline-block;
  transition: all 0.2s;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
}

.clickable-artist-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  transform: translateX(4px);
}

/* Artist Hero Section */
.artist-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(30, 215, 96, 0.2) 0%, rgba(20,20,20,0.9) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 28px;
}

.artist-avatar-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0,0,0,0.5);
  border: 3px solid var(--accent);
  flex-shrink: 0;
}

.artist-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--accent);
}

.artist-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.artist-hero-name {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
}

.artist-hero-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
}

.artist-tracks-section {
  margin-top: 16px;
}

/* Artist Avatar Image */
.artist-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Artist Controls & Library Filter Bar */
.artist-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 12px 18px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.artist-library-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.artist-filter-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.artist-filter-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.artist-filter-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(30, 215, 96, 0.4);
}

/* Versions & Remixes of Running Song Toggle Button */
.artist-actions-right {
  display: flex;
  align-items: center;
}

.artist-versions-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  border-radius: 22px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.artist-versions-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.artist-versions-toggle-btn.active {
  background: linear-gradient(135deg, #1ed760 0%, #17b34e 100%);
  color: #000;
  border-color: #1ed760;
  box-shadow: 0 4px 18px rgba(30, 215, 96, 0.5);
  animation: pulse-version-btn 2.2s infinite ease-in-out;
}

.versions-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.artist-versions-toggle-btn.active .versions-btn-icon svg {
  stroke: #000;
}

@keyframes pulse-version-btn {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(30, 215, 96, 0.4);
  }
  50% {
    box-shadow: 0 4px 24px rgba(30, 215, 96, 0.75), 0 0 0 4px rgba(30, 215, 96, 0.2);
  }
}

.artist-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.artist-tracks-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Lyrics Section */
.lyrics-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 24px;
}

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

.lyrics-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.lyrics-status {
  font-size: 12px;
  color: var(--text-muted);
}

.lyrics-content {
  max-height: 340px;
  overflow-y: auto;
  font-size: 16px;
  line-height: 2;
  color: #d1d5db;
  white-space: pre-wrap;
  font-family: inherit;
  padding: 8px 4px;
}

.lyrics-content::-webkit-scrollbar { width: 6px; }
.lyrics-content::-webkit-scrollbar-thumb { background: var(--bg-highlight); border-radius: 4px; }

.lyrics-placeholder {
  color: var(--text-muted);
  font-style: italic;
  font-size: 14px;
}

/* Active Favorite Style */
.btn-fav-active {
  background: rgba(30, 215, 96, 0.15) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

.btn-fav-active svg {
  fill: var(--accent);
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.track-card, .track-row {
  animation: fadeIn 0.3s ease forwards;
}

.track-card:nth-child(n) { animation-delay: calc(var(--i, 0) * 50ms); }

/* Source badges for Multi-API integration (Audius + SoundCloud + TIDAL) */
.source-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  vertical-align: middle;
  line-height: 1.2;
  background: rgba(162, 59, 237, 0.2);
  color: #c084fc;
  border: 1px solid rgba(162, 59, 237, 0.45);
}

.source-badge.audius {
  background: rgba(162, 59, 237, 0.2);
  color: #c084fc;
  border: 1px solid rgba(162, 59, 237, 0.45);
}

.source-badge.soundcloud {
  background: rgba(255, 85, 0, 0.2);
  color: #ff7733;
  border: 1px solid rgba(255, 85, 0, 0.45);
}

.source-badge.tidal {
  background: rgba(0, 235, 255, 0.18);
  color: #00ebff;
  border: 1px solid rgba(0, 235, 255, 0.45);
}

.source-badge.deezer {
  background: rgba(0, 160, 255, 0.2) !important;
  color: #00c0ff !important;
  border: 1px solid rgba(0, 160, 255, 0.5) !important;
}

/* Track row title row flex container to prevent badge clipping */
.track-row-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.track-row-title-text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* Playback Bar Artist navigation link */
.clickable-artist-nav {
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  max-width: fit-content;
}

.clickable-artist-nav:hover {
  color: #fff !important;
  text-decoration: underline;
  transform: translateX(1px);
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 105px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(22, 22, 22, 0.96);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

/* =========================================================
   SEARCH DROPDOWN QUICK RESULTS MENU
   ========================================================= */
.search-container {
  position: relative;
}

.search-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 480px;
  max-width: 90vw;
  background: rgba(18, 18, 20, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 999999;
  overflow: hidden;
  animation: fadeIn 0.2s ease forwards;
}

.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.dropdown-hint {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: none;
}

.dropdown-results-list {
  max-height: 340px;
  overflow-y: auto;
}

.dropdown-results-list::-webkit-scrollbar {
  width: 6px;
}
.dropdown-results-list::-webkit-scrollbar-thumb {
  background: var(--bg-highlight);
  border-radius: 3px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown-item-art {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

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

.dropdown-item-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.dropdown-item-title-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-item-artist {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.dropdown-item-duration {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.dropdown-play-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast, #000000);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.dropdown-play-icon svg {
  fill: var(--accent-contrast, #000000);
}

.dropdown-item:hover .dropdown-play-icon {
  opacity: 1;
  transform: scale(1);
}

.dropdown-loading {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.dropdown-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.dropdown-view-all-btn {
  width: 100%;
  padding: 9px 14px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
  font-family: inherit;
}

.dropdown-view-all-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

/* =========================================================
   FAVORITES: PLAY ALL OFFLINE CONTROL & ANIMATED DOWNLOAD INDICATOR
   ========================================================= */
.favorites-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.offline-all-container {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.offline-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.offline-toggle-input {
  display: none;
}

.offline-toggle-track {
  width: 38px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  position: relative;
  transition: background 0.25s ease;
}

.offline-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.offline-toggle-input:checked + .offline-toggle-track {
  background: var(--accent);
}

.offline-toggle-input:checked + .offline-toggle-track .offline-toggle-thumb {
  background: var(--accent-contrast, #ffffff);
  transform: translateX(18px);
}

.offline-toggle-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.offline-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Moving Down-Arrow Animation while downloading for offline */
@keyframes moveArrowDown {
  0% {
    transform: translateY(-4px);
    opacity: 0.3;
  }
  50% {
    transform: translateY(1px);
    opacity: 1;
  }
  100% {
    transform: translateY(6px);
    opacity: 0.3;
  }
}

.offline-arrow-anim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  animation: moveArrowDown 1s ease-in-out infinite;
}

.offline-ready-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.offline-status-text {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Offline Button on Playback Bar */
.offline-bar-btn {
  color: var(--text-secondary);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offline-bar-btn:hover {
  color: var(--text-primary);
}

.offline-bar-btn.active {
  color: var(--accent);
}

.offline-bar-btn.saving .offline-icon-download {
  animation: moveArrowDown 1s ease-in-out infinite;
  color: var(--accent);
}

/* ===== Track Row 3-Dots Action Menu Button ===== */
.track-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
  width: 100%;
}

.track-row-menu-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-row-menu-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.1);
}

/* Floating Action Context Menu (3-dots) */
.action-context-menu {
  position: fixed;
  z-index: 1000000;
  background: rgba(22, 22, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 6px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: fadeIn 0.15s ease;
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.context-menu-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.context-menu-item svg {
  flex-shrink: 0;
  color: var(--text-secondary);
}

.context-menu-item:hover svg {
  color: var(--accent);
}

/* ===== Share Modal Dialog ===== */
.share-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000001;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.share-modal-card {
  width: 100%;
  max-width: 480px;
  background: #18181c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.share-modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-modal-title-row h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.share-modal-title-row svg {
  color: var(--accent);
}

.share-modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.share-modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.share-track-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 12px;
}

.share-track-card img {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
}

.share-track-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.share-track-artist {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-options-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.share-option-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.share-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.share-input-group {
  display: flex;
  gap: 8px;
}

.share-input-group input {
  flex: 1;
  background: var(--bg-highlight);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 12px;
  font-family: inherit;
  outline: none;
}

.share-copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.share-copy-btn:hover {
  background: var(--accent);
  color: var(--accent-contrast, #000000);
  border-color: var(--accent);
}

.share-copy-btn.copied {
  background: var(--accent) !important;
  color: var(--accent-contrast, #000000) !important;
  border-color: var(--accent) !important;
}

/* ===== TIDAL Embed Player Integration ===== */
.btn-tidal-embed {
  background: rgba(0, 235, 255, 0.15) !important;
  border: 1px solid rgba(0, 235, 255, 0.4) !important;
  color: #00ebff !important;
}

.btn-tidal-embed:hover {
  background: rgba(0, 235, 255, 0.3) !important;
  border-color: #00ebff !important;
  transform: scale(1.04);
}

.tidal-embed-container {
  margin-top: 18px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 235, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 235, 255, 0.1);
}

.tidal-embed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #00ebff;
  letter-spacing: 0.5px;
}

.tidal-embed-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.tidal-embed-close:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* ==============================================================
   MULTI-DEVICE RESPONSIVE SUITE & MOBILE APP NAVIGATION
   Supports Phones (320px-768px), Tablets (769px-1024px) & Desktops
   ============================================================== */

/* ===== Mobile Top Brand & Top Bar Actions ===== */
.mobile-top-brand {
  display: none;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.mobile-brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}
.topbar-info-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: auto;
}
.topbar-info-btn:hover {
  background: rgba(30, 215, 96, 0.2);
  color: var(--accent);
  border-color: rgba(30, 215, 96, 0.4);
  transform: scale(1.05);
}

/* ===== Mobile Bottom Navigation Bar & Mobile Player Controls ===== */
.mobile-bottom-nav {
  display: none;
}
.mobile-quick-play-btn {
  display: none;
}
.mobile-player-progress-bar {
  display: none;
}

/* ===== Welcome / Smart Instructions Modal ===== */
.welcome-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-modal-card {
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  overflow-y: auto;
  background: rgba(18, 18, 22, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px 24px 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(30, 215, 96, 0.12);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: scaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-modal-close-wrap {
  position: absolute;
  top: 16px;
  right: 16px;
}

.welcome-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.welcome-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.welcome-hero-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.welcome-logo-svg {
  filter: drop-shadow(0 0 16px rgba(30, 215, 96, 0.5));
}
.welcome-hero-badge h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}
.welcome-tagline {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.welcome-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.welcome-feature-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.welcome-feature-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(30, 215, 96, 0.3);
}

.welcome-feature-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(30, 215, 96, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-feature-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}
.welcome-feature-text span {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.welcome-instructions-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.welcome-instructions-box h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.3px;
}
.instruction-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.tip-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(30, 215, 96, 0.2);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.instruction-tip p {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}
.instruction-tip strong {
  color: #ffffff;
}

.welcome-start-btn {
  background: var(--accent);
  color: #000000;
  border: none;
  border-radius: 30px;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 6px 20px rgba(30, 215, 96, 0.35);
  width: 100%;
}
.welcome-start-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(30, 215, 96, 0.5);
}

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

/* ===== Responsive Breakpoint: Tablet View (max-width: 1024px) ===== */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 210px;
    --playback-height: 84px;
  }
  .sidebar {
    padding: 10px;
  }
  .sidebar-logo {
    padding: 8px 4px;
  }
  .logo-text {
    font-size: 19px;
  }
  .nav-btn {
    padding: 9px 10px;
    gap: 12px;
    font-size: 13.5px;
  }
  .nav-btn svg {
    width: 20px;
    height: 20px;
  }
  .quick-picks-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }
  .track-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 14px;
  }
  .playback-title, .playback-artist {
    max-width: 140px;
  }
  .track-row {
    grid-template-columns: 36px 44px 1fr 140px 52px 36px;
    gap: 12px;
    padding: 6px 10px;
  }
  .artist-hero {
    padding: 24px 18px;
    gap: 18px;
  }
  .artist-avatar-wrapper {
    width: 100px;
    height: 100px;
  }
  .artist-hero-name {
    font-size: 30px;
  }
}

/* ===== Responsive Breakpoint: Mobile Phones & Handhelds (max-width: 768px) ===== */
@media (max-width: 768px) {
  :root {
    --mobile-nav-height: 58px;
    --mobile-player-height: 58px;
    --playback-height: 58px;
  }

  body {
    overflow-x: hidden;
    height: 100dvh;
    width: 100vw;
  }

  .app {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    width: 100vw;
    overflow: hidden;
  }

  /* Hide Desktop Sidebar Completely on Mobile */
  .sidebar {
    display: none !important;
  }

  .main-content {
    width: 100vw;
    min-width: 100vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* Mobile Top Bar with Safe Area Inset */
  .top-bar {
    padding-top: max(10px, env(safe-area-inset-top, 0px));
    padding-bottom: 10px;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    gap: 8px;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: auto;
    min-height: 54px;
    flex-shrink: 0;
  }

  .mobile-top-brand {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .nav-arrows {
    display: flex;
    gap: 4px;
  }
  .arrow-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .search-container {
    flex: 1;
    max-width: 100%;
    margin: 0;
  }

  .search-container.is-hero-center {
    max-width: 100%;
    border-radius: 20px;
  }

  #searchInput {
    padding: 8px 64px 8px 34px;
    font-size: 13px;
    border-radius: 20px;
    height: 36px;
  }
  .search-icon {
    left: 10px;
    width: 16px;
    height: 16px;
  }
  .search-filter-btn {
    right: 8px;
    width: 26px;
    height: 26px;
  }
  .clear-btn {
    right: 36px;
    width: 20px;
    height: 20px;
  }

  /* Content Scroll Area on Mobile */
  .content-scroll {
    padding: 0 12px calc(var(--mobile-player-height) + var(--mobile-nav-height) + 30px) !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .home-header {
    padding: 12px 0 8px;
  }
  .greeting-title {
    font-size: 21px;
    letter-spacing: -0.5px;
  }

  .home-filter-chips {
    gap: 6px;
    padding-bottom: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }
  .filter-chip {
    padding: 5px 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .section-header {
    margin: 18px 0 10px;
  }
  .section-title {
    font-size: 17px;
  }

  /* Quick Picks: 2 Columns on Mobile */
  .quick-picks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .quick-pick-card {
    height: 52px;
    border-radius: 6px;
    padding-right: 6px;
  }
  .quick-pick-art {
    width: 52px;
    height: 52px;
  }
  .quick-pick-title {
    font-size: 11.5px;
  }

  /* Track Cards Grid: 2 Columns on Mobile */
  .track-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .track-card {
    padding: 8px;
    border-radius: 8px;
  }
  .card-artwork {
    border-radius: 6px;
    margin-bottom: 8px;
  }
  .card-title {
    font-size: 12.5px;
    margin-bottom: 2px;
  }
  .card-artist {
    font-size: 11px;
  }
  .card-play-btn {
    width: 34px;
    height: 34px;
    bottom: 12px;
    right: 12px;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  }

  /* Track Row: Compact & Mobile-Optimized (Hide Album Column) */
  .track-row {
    grid-template-columns: 24px 42px 1fr auto auto;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 8px;
  }
  .track-num {
    font-size: 11px;
    color: var(--text-muted);
  }
  .track-row-art {
    width: 42px;
    height: 42px;
    border-radius: 6px;
  }
  .track-row-title-text {
    font-size: 13px;
  }
  .track-row-artist {
    font-size: 11.5px;
  }
  .source-badge {
    font-size: 8.5px;
    padding: 1px 4px;
  }
  .track-row-album {
    display: none !important; /* Hide album text column on mobile screens */
  }
  .track-row-duration {
    font-size: 11px;
    min-width: 30px;
    text-align: right;
  }
  .track-row-actions {
    width: 28px;
    display: flex;
    justify-content: center;
  }
  .track-row-menu-btn {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  /* Mobile Docked Playback Bar (Floating Glass Pill above bottom nav) */
  .playback-bar {
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px) + 6px) !important;
    height: var(--mobile-player-height) !important;
    background: rgba(18, 18, 22, 0.96) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 10px !important;
    z-index: 100 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
  }

  .mobile-player-progress-bar {
    display: block;
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    height: 2.5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
  }
  .mobile-player-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 4px;
  }

  .playback-track {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-width: 0;
  }
  .playback-art {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .playback-info {
    flex: 1;
    min-width: 0;
  }
  .playback-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: none !important;
  }
  .playback-artist {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: none !important;
  }
  .like-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .mobile-quick-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease;
  }
  .mobile-quick-play-btn:active {
    transform: scale(0.92);
  }

  /* Hide Desktop Playback Controls on Mobile */
  .playback-controls,
  .playback-extra,
  .download-bar-btn {
    display: none !important;
  }

  /* Mobile Bottom Navigation Bar with Safe Area Insets */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: space-around;
    z-index: 101;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  }

  .mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: #888888;
    font-size: 10.5px;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
    height: 100%;
    min-height: 48px;
    min-width: 48px;
    touch-action: manipulation;
    transition: color 0.18s ease;
  }

  /* Active Touch Feedback */
  .mobile-nav-btn:active,
  .quick-pick-card:active,
  .track-card:active,
  .track-row:active,
  .filter-chip:active,
  .filter-pill-btn:active,
  .card-play-btn:active,
  .topbar-info-btn:active,
  .nav-btn:active {
    transform: scale(0.96);
    opacity: 0.88;
    transition: transform 0.08s ease, opacity 0.08s ease;
  }

  /* When Virtual Keyboard (IME) is Open */
  body.keyboard-open .mobile-bottom-nav {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
  }
  body.keyboard-open .playback-bar {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 6px) !important;
  }
  .mobile-nav-btn svg {
    transition: transform 0.18s ease, fill 0.18s ease;
  }
  .mobile-nav-btn.active {
    color: #ffffff;
    font-weight: 700;
  }
  .mobile-nav-btn.active svg {
    fill: var(--accent);
    transform: scale(1.08);
  }

  /* Artist Page on Mobile */
  .artist-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 14px 16px;
    gap: 12px;
  }
  .artist-avatar-wrapper {
    width: 86px;
    height: 86px;
  }
  .artist-hero-name {
    font-size: 24px;
  }
  .artist-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px;
  }
  .artist-library-filters {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }
  .artist-filter-btn {
    padding: 5px 11px;
    font-size: 11.5px;
  }
  .artist-actions-right {
    width: 100%;
  }
  .artist-versions-toggle-btn {
    width: 100%;
    justify-content: center;
    font-size: 11.5px;
    padding: 7px 10px;
  }

  /* Track Detail / Vinyl Page on Mobile */
  .track-detail-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 10px;
    gap: 16px;
  }
  .track-detail-art-wrapper {
    width: 170px;
    height: 170px;
  }
  .vinyl-record {
    width: 160px;
    height: 160px;
    right: -45px;
  }
  .detail-title {
    font-size: 20px;
  }
  .detail-artist {
    font-size: 14px;
  }
  .detail-props {
    justify-content: center;
    font-size: 11px;
    gap: 6px;
  }
  .detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .detail-actions button {
    justify-content: center;
    font-size: 12px;
    padding: 9px 12px;
  }
  .record-info-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Welcome Modal on Mobile */
  .welcome-features-list {
    grid-template-columns: 1fr;
  }
  .welcome-modal-card {
    padding: 20px 14px 18px;
    max-height: 88vh;
  }
  .welcome-hero-badge h2 {
    font-size: 22px;
  }

  /* Search Dropdown & Filter Panel on Mobile */
  .search-dropdown-menu {
    width: calc(100vw - 20px) !important;
    left: 10px !important;
    right: 10px !important;
    max-height: 70vh;
  }
  .search-filter-panel {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: calc(100vw - 24px) !important;
    max-height: 85vh;
  }
}

/* ===== Responsive Breakpoint: Small Mobile Screens (max-width: 480px) ===== */
@media (max-width: 480px) {
  .quick-picks-grid {
    grid-template-columns: 1fr;
  }
  .greeting-title {
    font-size: 19px;
  }
  .welcome-modal-card {
    padding: 18px 12px;
  }
  .artist-hero-name {
    font-size: 21px;
  }
}

