:root {
  /* ZellRayy Exact Design System */
  --bg: #0a0a0b;
  --bg-soft: #121213;
  --surface: #19191b;
  --surface-2: #222224;
  --border: #2b2b2e;
  --border-soft: #1f1f21;
  --border-hover: #45454a;
  
  --text: #d9d4c7;
  --text-muted: #a49f92;
  --text-dim: #908b7e;
  
  --accent: #cdbd94;
  --accent-strong: #ded0aa;
  --accent-ink: #17150f;
  
  --spotify-green: #1db954;
  --spotify-green-hover: #1ed760;
  --success: #7fbf8f;
  --code-bg: #101011;
  
  --radius: 10px;
  --radius-sm: 6px;
  --radius-full: 9999px;
  
  --font-main: 'Inter', -apple-system, sans-serif;
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Custom Scrollbar - Sleek, Slim 6px ZellRayy Theme */
::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background: #2b2b2e;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background: #45454a;
}
::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
  background: transparent;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #2b2b2e transparent;
}

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: padding-bottom 0.2s ease;
}

body.player-open {
  padding-bottom: 74px;
}
body.player-open .toast-container {
  bottom: 84px;
}

body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

main.container {
  flex: 1 0 auto;
  width: 100%;
}

/* Navigation */
.navbar {
  padding: 14px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--spotify-green);
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}
.brand-text span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-icon-btn,
.nav-icon-btn:link,
.nav-icon-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted) !important;
  text-decoration: none !important;
  transition: all 0.2s var(--ease);
}
.nav-icon-btn:hover {
  border-color: var(--border-hover);
  color: var(--accent) !important;
  background: var(--surface-2);
}
.nav-icon-btn svg {
  fill: currentColor;
  color: inherit;
}

.nav-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  background: rgba(205, 189, 148, 0.08);
  border: 1px solid rgba(205, 189, 148, 0.35);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.nav-support-btn svg {
  color: #ff5e5b;
  transition: transform 0.2s ease;
}
.nav-support-btn:hover {
  background: rgba(205, 189, 148, 0.2);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(205, 189, 148, 0.25);
}
.nav-support-btn:hover svg {
  transform: scale(1.25);
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.nav-btn:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent-strong);
}

/* Hero / Downloader Section - Dynamic Responsive Focus */
.hero {
  min-height: 52vh;
  min-height: 52dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 55px 0 35px;
  text-align: center;
  box-sizing: border-box;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Ambient glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -30%);
  width: min(540px, 92vw);
  max-width: 100%;
  height: 240px;
  background: radial-gradient(ellipse at center, rgba(205, 189, 148, 0.08) 0%, rgba(29, 185, 84, 0.03) 45%, transparent 70%);
  filter: blur(44px);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s var(--ease), height 0.4s var(--ease);
}

.hero.compact,
.hero.search-active {
  min-height: auto;
  padding: 16px 0 14px;
}

.hero.compact::before,
.hero.search-active::before {
  opacity: 0.35;
  height: 100px;
}

.hero.compact .hero-title,
.hero.search-active .hero-title {
  font-size: 1.35rem;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.hero.compact .hero-desc,
.hero.search-active .hero-desc {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
  transform: translateY(-8px);
  pointer-events: none;
}

.hero.compact .quick-chips,
.hero.search-active .quick-chips {
  opacity: 0.85;
  margin-top: 6px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  color: var(--text);
  transition: font-size 0.4s cubic-bezier(0.16, 1, 0.3, 1), margin-bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  max-width: 580px;
  margin: 0 auto 26px;
  font-size: 0.94rem;
  color: var(--text-muted);
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-bottom 0.35s ease;
  position: relative;
  z-index: 1;
}
.search-container {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  background: rgba(25, 25, 27, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  position: relative;
  z-index: 1;
}
.search-container:focus-within {
  border-color: var(--accent);
  box-shadow: 0 8px 34px rgba(205, 189, 148, 0.14), 0 0 0 1px var(--accent);
}

/* Tabs */
.search-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.search-tabs::-webkit-scrollbar {
  display: none;
}
.tab-btn {
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.18s var(--ease);
  user-select: none;
}
.tab-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: #2a2a2d;
}
.tab-btn.active {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(205, 189, 148, 0.25);
}

/* Input Form */
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.search-input-wrapper {
  position: relative;
  flex: 1;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.search-input {
  width: 100%;
  height: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 36px 8px 36px;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
}
.search-input:focus {
  border-color: var(--accent);
}
.search-input::placeholder {
  color: var(--text-dim);
}
.clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: none;
  font-size: 1.1rem;
}
.clear-btn:hover {
  color: var(--text);
}

.submit-btn {
  height: 40px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background-color 0.15s var(--ease);
}
.submit-btn:hover {
  background: var(--accent-strong);
}
.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Quick Chips */
.quick-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
  padding-left: 2px;
}
.chip-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}
.chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 2px 9px;
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.chip:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Results Section */
.results-section {
  padding: 14px 0 80px;
  scroll-margin-top: 75px;
}
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.results-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.results-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.results-count {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--accent);
  background: rgba(205, 189, 148, 0.1);
  border: 1px solid rgba(205, 189, 148, 0.22);
  border-radius: var(--radius-full);
  padding: 2px 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.results-count.empty {
  color: var(--text-dim);
  background: transparent;
  border-color: transparent;
}
.results-reset-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  padding: 3px 9px;
  font-size: 0.72rem;
  font-family: var(--font-main);
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s var(--ease);
}
.results-reset-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--surface-2);
}

.view-toggle {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}
.view-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.view-toggle-btn:hover {
  color: var(--text);
}
.view-toggle-btn.active {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Grids - Compact, Clean, High Density */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 12px;
}

/* Skeleton Shimmer Loading */
.skeleton {
  background: linear-gradient(90deg, #18181b 25%, #26262b 50%, #18181b 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

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

.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  overflow: hidden;
  height: 290px;
}

.skeleton-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.skeleton-text-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.skeleton-line {
  height: 12px;
}

.skeleton-line-title {
  width: 80%;
  height: 14px;
}

.skeleton-line-sub {
  width: 55%;
  height: 11px;
}

.skeleton-line-meta {
  width: 35%;
  height: 10px;
  margin-top: 2px;
}

.skeleton-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

.skeleton-btn {
  flex: 1;
  height: 30px;
  border-radius: var(--radius-sm);
}
.skeleton-btn-sm {
  width: 32px;
  flex: none;
}

/* Card Entrance Animation */
@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card - ZellRayy Theme Surface */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  content-visibility: auto;
  contain-intrinsic-size: 260px;
  animation: cardEntrance 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.card-cover-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
  background: var(--surface-2);
}
.card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay play button */
.cover-play-btn {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}
.cover-play-btn svg {
  width: 15px;
  height: 15px;
  fill: var(--accent-ink);
  margin-left: 2px;
}
.card:hover .cover-play-btn {
  opacity: 1;
  transform: translateY(0);
}
.cover-play-btn:hover {
  background: var(--accent-strong);
}

.card-title {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.card-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-bottom: 8px;
}
.card-badge {
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
}

.card-actions {
  margin-top: auto;
  display: flex;
  gap: 5px;
}
.btn-action {
  flex: 1;
  height: 30px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.btn-action.btn-icon-square {
  flex: 0 0 30px;
  width: 30px;
  padding: 0;
}

/* Button Loading Spinner & Interactive Feedback */
.btn-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spinBtnLoader 0.65s linear infinite;
  flex-shrink: 0;
  vertical-align: middle;
}
@keyframes spinBtnLoader {
  to { transform: rotate(360deg); }
}
.btn-action.is-loading,
.btn-action:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-strong);
}
.btn-secondary {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--accent-strong);
}

/* Artist Avatar Card */
.artist-card {
  text-align: center;
  padding: 12px 8px 10px;
}
.artist-card .card-cover-wrapper {
  border-radius: 50%;
  width: 96px;
  height: 96px;
  margin: 2px auto 8px;
  border: 1px solid var(--border);
}
.genre-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-bottom: 6px;
  min-height: 16px;
}
.genre-tag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 1px 6px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* LIST VIEW MODE (Super Slim Tracklist) */
.grid-cards.list-view {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 100% !important;
}
.grid-cards.list-view .card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  padding: 8px 12px !important;
  gap: 12px !important;
  height: auto !important;
  min-height: 56px !important;
  border-radius: var(--radius-sm) !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  width: 100% !important;
}
.grid-cards.list-view .card:hover {
  border-color: var(--accent);
  transform: none;
}
.grid-cards.list-view .card-cover-wrapper {
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px !important;
  margin-bottom: 0 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}
.grid-cards.list-view .artist-card .card-cover-wrapper {
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px !important;
  margin: 0 !important;
}
.grid-cards.list-view .cover-play-btn {
  display: none !important;
}
.grid-cards.list-view .card-text-wrapper {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 2px !important;
  overflow: hidden !important;
}
.grid-cards.list-view .card-title-group {
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
.grid-cards.list-view .card-title {
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  margin-bottom: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.3 !important;
  color: var(--text) !important;
}
.grid-cards.list-view .card-subtitle {
  font-size: 0.74rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.3 !important;
}
.grid-cards.list-view .card-meta {
  margin-bottom: 0 !important;
  white-space: nowrap !important;
  font-size: 0.68rem !important;
  line-height: 1.2 !important;
}
.grid-cards.list-view .card-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: fit-content !important;
  margin: 0 0 0 auto !important;
  gap: 6px !important;
}
.grid-cards.list-view .card-actions .btn-action {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  height: 32px !important;
  padding: 0 10px !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
}
.grid-cards.list-view .card-actions .btn-icon-square {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px !important;
  padding: 0 !important;
}
.grid-cards.list-view .genre-tags {
  display: none !important;
}

/* Modals - Clean & Lightweight */
.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
  box-sizing: border-box;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  max-height: 85dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.bottom-sheet-handle {
  display: none;
}
.modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.modal-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover {
  color: var(--text);
}
.modal-body {
  padding: 16px;
  overflow-y: auto;
}

.modal-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.modal-hero-cover {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
}
.modal-hero-details h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.modal-hero-details p {
  color: var(--accent);
  font-size: 0.82rem;
}

/* Tracklist in Modal */
.tracklist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  gap: 10px;
  content-visibility: auto;
  contain-intrinsic-size: 44px;
}
.track-item:hover {
  border-color: var(--border);
  background: var(--surface-2);
}
.track-info-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.track-num {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  width: 18px;
  text-align: right;
  flex-shrink: 0;
}
.track-text {
  min-width: 0;
}
.track-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-actions-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

/* Modern Track Action Buttons with SVG Icons */
.row-btn {
  height: 30px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  padding: 0 10px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
  transition: all 0.15s var(--ease);
}
.row-btn.btn-icon-only {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
}
.row-btn:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: rgba(205, 189, 148, 0.08);
}
.row-btn-play {
  color: var(--text);
}
.row-btn-play:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.row-btn-play:hover svg {
  fill: var(--accent-ink);
}
.row-btn-dl {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 700;
}
.row-btn-dl:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--accent-ink);
}
.row-btn-dl svg {
  stroke: var(--accent-ink);
}
.row-btn-lyrics {
  color: var(--text-muted);
}
.row-btn-lyrics:hover {
  color: var(--accent);
}

/* Lyrics Modal */
.lyrics-modal-content {
  max-width: 580px;
}
.lyrics-modal-content .modal-body {
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lyrics-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}
.lyrics-hero-cover {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.lyrics-hero-info {
  flex: 1;
  min-width: 0;
}
.lyrics-hero-info h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.lyrics-hero-info p {
  font-size: 0.82rem;
  color: var(--accent);
}
.lyrics-actions-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.lyrics-actions-bar .btn-action {
  height: 34px;
  padding: 0 10px;
  font-size: 0.78rem;
  justify-content: center;
  white-space: nowrap;
}
.btn-sm {
  height: 28px;
  padding: 3px 10px;
  font-size: 0.75rem;
}

/* Plain Text Lyrics View - Super Clean & Comfortable */
.lyrics-container {
  max-height: 400px;
  min-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}
.lyrics-plain-view {
  white-space: pre-wrap;
  line-height: 1.85;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  user-select: text;
}
.lyrics-empty {
  text-align: center;
  padding: 36px 10px;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* Direct URL Showcase Card */
.direct-showcase {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}

/* Support Modal & Cards */
.support-modal-content {
  max-width: 520px;
}
.support-modal-body {
  padding: 18px 20px 22px;
}
.support-intro-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 18px;
}
.support-intro-text strong {
  color: var(--accent);
}
.support-options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.support-card {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none !important;
  color: var(--text) !important;
  transition: all 0.22s var(--ease);
}
.support-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.kofi-card:hover {
  border-color: #ff5e5b;
  background: rgba(255, 94, 91, 0.08);
}
.saweria-card:hover {
  border-color: #faae2b;
  background: rgba(250, 174, 43, 0.08);
}
.support-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.support-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  font-family: var(--font-display);
  color: #ffffff;
}
.support-badge {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.kofi-badge {
  background: rgba(255, 94, 91, 0.15);
  color: #ff8582;
  border: 1px solid rgba(255, 94, 91, 0.35);
}
.saweria-badge {
  background: rgba(250, 174, 43, 0.15);
  color: #fbbf4a;
  border: 1px solid rgba(250, 174, 43, 0.35);
}
.support-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
}
.support-card-action {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}
.kofi-card:hover .support-card-action {
  color: #ff8582;
}
.saweria-card:hover .support-card-action {
  color: #fbbf4a;
}
.support-footer-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 4px;
}
.footer-support-link {
  color: var(--accent) !important;
  font-weight: 600;
}
.footer-support-link:hover {
  text-decoration: underline !important;
}
.showcase-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.showcase-cover {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.showcase-cover.artist-circle {
  border-radius: 50%;
}
.showcase-info {
  flex: 1;
  min-width: 0;
}
.showcase-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.showcase-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.25;
}
.showcase-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.showcase-meta {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.showcase-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Live Download Progress Component (SpotiDown / SpotyLoader style) */
.dl-live-progress {
  width: 100%;
  margin-top: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: fadeIn 0.2s ease-out;
  transition: opacity 0.3s ease;
}
.dl-live-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.dl-live-progress-step {
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}
.dl-live-progress-pct {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text);
  font-size: 0.82rem;
}
.dl-live-progress-track {
  width: 100%;
  height: 6px;
  background: var(--surface);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}
.dl-live-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--spotify-green), var(--accent));
  border-radius: var(--radius-full);
  transition: width 0.25s cubic-bezier(0.1, 0.8, 0.2, 1);
  box-shadow: 0 0 10px rgba(29, 185, 84, 0.4);
}
.showcase-tracklist-section {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.showcase-tracklist-title {
  font-size: 0.88rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.showcase-tracklist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Audio Player Bar - Fixed Bottom */
.audio-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.2s var(--ease);
}
.audio-player-bar.active {
  transform: translateY(0);
}
.player-left {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 240px;
  min-width: 0;
}
.player-thumb {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.player-meta {
  min-width: 0;
}
.player-meta h4 {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.player-meta p {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-center {
  flex: 1;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ctrl-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s var(--ease);
}
.ctrl-btn:hover {
  color: var(--text);
}
.ctrl-skip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-muted);
}
.ctrl-skip:hover {
  color: var(--accent);
  background: var(--surface-2);
}
.ctrl-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  transition: transform 0.15s var(--ease), background 0.15s var(--ease);
}
.ctrl-play svg {
  width: 14px;
  height: 14px;
  fill: var(--accent-ink);
}
.ctrl-play:hover {
  background: var(--accent-strong);
  transform: scale(1.06);
}
.ctrl-autoplay {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 11px;
  font-size: 0.72rem;
  font-family: var(--font-main);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s var(--ease);
}
.ctrl-autoplay .autoplay-status-pill {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: #2b2b2e;
  color: var(--text-dim);
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}
.ctrl-autoplay.active {
  background: rgba(29, 185, 84, 0.15);
  border-color: var(--spotify-green);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(29, 185, 84, 0.25);
}
.ctrl-autoplay.active svg {
  stroke: var(--spotify-green);
}
.ctrl-autoplay.active .autoplay-status-pill {
  background: var(--spotify-green);
  color: #050505;
}
.ctrl-autoplay:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  transform: translateY(-1px);
}
.player-progress-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}
.time-text {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  width: 32px;
}
.seek-slider {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--surface-2);
  outline: none;
  cursor: pointer;
  accent-color: var(--accent);
}
.player-right {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 200px;
  justify-content: flex-end;
}
#playerLyricsBtn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--accent);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
#playerLyricsBtn:hover {
  border-color: var(--accent);
  background: rgba(205, 189, 148, 0.15);
  transform: scale(1.06);
}

/* Toast Manager */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  animation: toastIn 0.2s var(--ease);
}
.toast.error {
  border-color: #ef4444;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  background: var(--bg);
  position: relative;
  width: 100%;
}
.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-brand-tag {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.footer-brand-tag strong {
  color: var(--text);
}
.footer-brand-tag a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.footer-brand-tag a:hover {
  text-decoration: underline;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}
.footer-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  transition: all 0.2s var(--ease);
  user-select: none;
}
.footer-pill-link:hover {
  border-color: var(--border-hover);
  color: var(--text) !important;
  background: var(--surface-2);
  transform: translateY(-1px);
}
.footer-pill-saweria:hover {
  border-color: #faae2b;
  color: #fbbf4a !important;
  background: rgba(250, 174, 43, 0.1);
}
.footer-pill-kofi:hover {
  border-color: #ff5e5b;
  color: #ff8582 !important;
  background: rgba(255, 94, 91, 0.1);
}
.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--text-dim);
  opacity: 0.75;
  line-height: 1.55;
  max-width: 660px;
  margin: 4px auto 0;
  text-align: center;
}

/* Responsive short/full text helpers */
.btn-text-short {
  display: none;
}
.btn-text-full {
  display: inline;
}

/* Language Selector */
.lang-selector {
  position: relative;
  display: inline-block;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.lang-btn:hover {
  border-color: var(--border-hover);
  color: var(--accent);
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  min-width: 170px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s var(--ease);
  z-index: 200;
}
.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-option {
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-option:hover {
  background: var(--surface-2);
  color: var(--text);
}
.lang-option.active {
  background: rgba(205, 189, 148, 0.12);
  color: var(--accent);
  font-weight: 600;
}

/* Info Sections */
.info-section {
  margin: 50px 0;
}
.info-section:first-of-type {
  margin-top: 120px;
  padding-top: 40px;
}
.section-heading {
  text-align: center;
  margin-bottom: 26px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* 3 How-To Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  position: relative;
  transition: border-color 0.2s var(--ease);
}
.step-card:hover {
  border-color: var(--border-hover);
}
.step-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 10px;
}
.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.step-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 6 Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}
.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(205, 189, 148, 0.08);
  border: 1px solid rgba(205, 189, 148, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 14px;
}
.feature-icon svg {
  color: var(--accent);
}
.feature-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.feature-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-section {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.faq-item:hover,
.faq-item.active {
  border-color: var(--border-hover);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 12px;
}
.faq-question:hover {
  color: var(--accent);
}
.faq-icon {
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
  color: var(--text-muted);
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  padding: 0 18px;
  margin: 0;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), opacity 0.2s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 400px;
  opacity: 1;
  visibility: visible;
  padding: 0 18px 18px;
  transition: max-height 0.35s cubic-bezier(0.8, 0, 1, 0), opacity 0.25s ease, padding 0.3s ease;
}
.faq-answer p {
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Responsive Mobile Layout (Flawless Smartphone & Tablet Experience) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Safe Area Insets for Bezel-less iPhones and Androids */
  .container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
  }

  /* Body Padding when Player is Active */
  body.player-open {
    padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.player-open .toast-container {
    bottom: calc(155px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .navbar {
    padding: 10px 0;
    padding-top: max(10px, env(safe-area-inset-top, 0px));
    width: 100%;
    max-width: 100%;
  }
  .brand-text {
    font-size: 1.05rem;
  }
  .nav-badge {
    display: none;
  }

  .hero {
    padding: 20px 0 14px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .hero::before {
    width: 240px;
    height: 140px;
    filter: blur(34px);
    max-width: 90vw;
  }
  .hero-title {
    font-size: 1.45rem;
    line-height: 1.25;
  }
  .hero-desc {
    font-size: 0.82rem;
    margin-bottom: 12px;
  }

  /* Search Container & Tabs */
  .search-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 10px 12px;
    border-radius: var(--radius);
  }
  .search-tabs {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 6px;
    padding-bottom: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }
  .search-tabs::-webkit-scrollbar {
    display: none;
  }
  .tab-btn {
    padding: 7px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 34px;
    border-radius: 7px;
    scroll-snap-align: start;
  }

  /* Form & Input - 16px Font Size to Prevent iOS Safari Auto-Zoom */
  .search-form {
    flex-direction: column;
    gap: 8px;
  }
  .search-input-wrapper {
    width: 100%;
  }
  .search-input {
    height: 44px;
    font-size: 16px !important; /* Critical: Stops iOS Safari auto-zoom */
    padding: 10px 38px 10px 38px;
    border-radius: 8px;
  }
  .search-icon {
    left: 12px;
    width: 18px;
    height: 18px;
  }
  .clear-btn {
    width: 34px;
    height: 34px;
    font-size: 1.3rem;
  }
  .submit-btn {
    width: 100%;
    height: 44px;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 8px;
  }

  /* Trending Chips */
  .quick-chips {
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
  }
  .chip-label {
    font-size: 0.72rem;
  }
  .chip {
    font-size: 0.75rem;
    padding: 4px 10px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-full);
  }

  /* Results Header & Toggle View */
  .results-section {
    padding: 12px 0 60px;
  }
  .results-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
  }
  .results-title {
    font-size: 1.05rem;
  }
  .results-count {
    font-size: 0.7rem;
    padding: 2px 8px;
  }
  .results-reset-btn {
    padding: 3px 7px;
    font-size: 0.68rem;
  }
  .view-toggle {
    padding: 2px;
  }
  .view-toggle-btn {
    padding: 4px 7px;
    font-size: 0.72rem;
  }

  /* Grid Cards (2 columns on mobile) */
  .grid-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  /* Tabs wrap so every tab stays visible on small screens */
  .search-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
    overflow-y: hidden;
    padding-bottom: 6px;
  }
  .tab-btn {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }
  .card {
    padding: 8px;
    border-radius: 10px;
  }
  .card-cover-wrapper {
    margin-bottom: 6px;
  }
  .card-title {
    font-size: 0.84rem;
    font-weight: 600;
  }
  .card-subtitle {
    font-size: 0.72rem;
    margin-bottom: 4px;
  }
  .card-meta {
    font-size: 0.68rem;
    margin-bottom: 8px;
  }

  /* Always visible play button on mobile touch devices */
  .cover-play-btn {
    opacity: 0.95 !important;
    transform: translateY(0) !important;
    width: 32px;
    height: 32px;
    bottom: 6px;
    right: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  }
  .cover-play-btn svg {
    width: 14px;
    height: 14px;
  }

  /* Touch-friendly card actions in standard grid view */
  .grid-cards:not(.list-view) .card-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
  }
  .grid-cards:not(.list-view) .card-actions .btn-action {
    height: 32px;
    padding: 0 6px;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 6px;
  }
  .grid-cards:not(.list-view) .card-actions .dl-track-btn,
  .grid-cards:not(.list-view) .card-actions .view-album-btn,
  .grid-cards:not(.list-view) .card-actions .open-lyrics-btn,
  .grid-cards:not(.list-view) .card-actions .view-artist-btn,
  .grid-cards:not(.list-view) .card-actions .view-playlist-btn {
    flex: 1;
    min-width: 0;
  }
  .grid-cards:not(.list-view) .card-actions .btn-icon-square {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 0.85rem;
  }

  /* List View Mode on Mobile (Clean Spotify Row) */
  .grid-cards.list-view .card {
    padding: 8px 10px !important;
    gap: 10px !important;
    align-items: center !important;
    flex-direction: row !important;
  }
  .grid-cards.list-view .card-cover-wrapper {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
    border-radius: 6px !important;
  }
  .grid-cards.list-view .card-text-wrapper {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    overflow: hidden !important;
  }
  .grid-cards.list-view .card-title {
    font-size: 0.84rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
  }
  .grid-cards.list-view .card-subtitle {
    font-size: 0.72rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
  }
  .grid-cards.list-view .card-meta {
    font-size: 0.66rem !important;
    white-space: nowrap !important;
  }
  .grid-cards.list-view .card-actions {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: fit-content !important;
    margin: 0 0 0 auto !important;
    gap: 4px !important;
    display: flex !important;
    align-items: center !important;
  }
  .grid-cards.list-view .card-actions .btn-action {
    height: 30px !important;
    padding: 0 8px !important;
    font-size: 0.72rem !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
  }
  .grid-cards.list-view .card-actions .btn-icon-square {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    flex: 0 0 30px !important;
    padding: 0 !important;
  }

  /* Direct Showcase Cards on Mobile */
  .direct-showcase {
    padding: 14px;
    gap: 14px;
    border-radius: 12px;
  }
  .showcase-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .showcase-cover {
    width: 88px;
    height: 88px;
    border-radius: 8px;
  }
  .showcase-title {
    font-size: 1.18rem;
    margin-bottom: 2px;
  }
  .showcase-subtitle {
    font-size: 0.82rem;
    margin-bottom: 6px;
  }
  .showcase-meta {
    justify-content: center;
    font-size: 0.72rem;
    gap: 6px;
    margin-bottom: 10px;
  }
  .showcase-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .showcase-actions .btn-action {
    width: 100%;
    height: 36px;
    font-size: 0.76rem;
    justify-content: center;
    border-radius: 7px;
  }

  /* Modals on Mobile - Modern Native Bottom Sheet (Never Exceeds Screen) */
  .modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
    justify-content: center !important;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .bottom-sheet-handle {
    display: block !important;
    width: 40px !important;
    height: 5px !important;
    background: rgba(255, 255, 255, 0.28) !important;
    border-radius: 9999px !important;
    margin: 10px auto 4px !important;
    flex-shrink: 0 !important;
  }
  .modal-content,
  .lyrics-modal-content,
  .support-modal-content {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    border-bottom: none !important;
    border-left: 1px solid var(--border) !important;
    border-right: 1px solid var(--border) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    max-height: 86dvh !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: sheetSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 -14px 44px rgba(0, 0, 0, 0.85) !important;
  }
  @keyframes sheetSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .modal-header {
    padding: 10px 16px 12px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
  }
  .modal-title {
    font-size: 0.98rem;
  }
  .modal-close {
    font-size: 1.4rem;
    padding: 4px 8px;
  }
  .modal-body {
    padding: 12px 14px;
    max-height: none;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }
  .modal-hero {
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }
  .modal-hero-cover {
    width: 58px;
    height: 58px;
    border-radius: 6px;
  }
  .modal-hero-details h3 {
    font-size: 0.95rem;
  }
  .modal-hero-details p {
    font-size: 0.76rem;
  }

  /* Modal Tracklist Items */
  .track-item {
    padding: 8px 10px;
    gap: 8px;
    border-radius: var(--radius-sm);
  }
  .track-info-left {
    gap: 8px;
    min-width: 0;
  }
  .track-num {
    font-size: 0.72rem;
    width: 18px;
  }
  .track-name {
    font-size: 0.82rem;
    line-height: 1.25;
  }
  .track-sub {
    font-size: 0.7rem;
    line-height: 1.2;
  }
  .track-actions-right {
    gap: 5px;
  }
  .row-btn {
    height: 32px;
    padding: 0 8px;
    font-size: 0.72rem;
    border-radius: 6px;
  }
  .row-btn.btn-icon-only {
    width: 32px;
    height: 32px;
  }

  /* Lyrics Modal on Mobile - Bottom Sheet Body */
  .lyrics-modal-content .modal-body {
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
  }
  .lyrics-hero {
    gap: 12px;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    flex-shrink: 0;
  }
  .lyrics-hero-cover {
    width: 52px;
    height: 52px;
    border-radius: 8px;
  }
  .lyrics-hero-info h3 {
    font-size: 0.95rem;
  }
  .lyrics-hero-info p {
    font-size: 0.78rem;
  }

  .lyrics-actions-bar {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 4px 0 10px !important;
    width: 100% !important;
    flex-shrink: 0 !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .lyrics-actions-bar .btn-action {
    height: 38px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    padding: 0 4px !important;
    justify-content: center !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
    gap: 5px !important;
  }
  .lyrics-container {
    flex: 1;
    max-height: 48dvh;
    min-height: 180px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--surface-2);
  }
  .lyrics-plain-view {
    font-size: 0.94rem;
    line-height: 1.85;
  }

  /* Fixed Audio Player Bar on Mobile - Sleek Music Player Bar */
  .audio-player-bar {
    height: auto;
    flex-direction: column;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    box-sizing: border-box;
    background: rgba(18, 18, 20, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-hover);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
  }
  .player-left {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .player-thumb {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    flex-shrink: 0;
  }
  .player-meta {
    flex: 1;
    min-width: 0;
  }
  .player-meta h4 {
    font-size: 0.85rem;
    font-weight: 600;
  }
  .player-meta p {
    font-size: 0.72rem;
    color: var(--text-dim);
  }
  .player-center {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }
  .ctrl-play {
    width: 36px;
    height: 36px;
  }
  .ctrl-skip {
    width: 32px;
    height: 32px;
  }
  .ctrl-autoplay {
    padding: 3px 8px;
    font-size: 0.68rem;
    gap: 4px;
    border-radius: var(--radius-full);
  }
  .player-progress-bar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .time-text {
    font-size: 0.65rem;
    width: 30px;
  }
  .seek-slider {
    flex: 1;
    height: 6px;
  }
  .player-right {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .player-right #playerLyricsBtn {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 8px;
    font-size: 1.1rem;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
  }
  .player-right #playerDownloadBtn {
    flex: 1;
    height: 38px;
    font-size: 0.84rem;
    padding: 0 10px;
    justify-content: center;
    font-weight: 700;
    border-radius: 8px;
  }
  .player-right #closePlayerBtn {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 1.35rem;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-dim);
  }

  /* Info & Features Sections on Mobile */
  .steps-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .section-title {
    font-size: 1.2rem;
  }
  .section-subtitle {
    font-size: 0.8rem;
  }

  /* FAQ on Mobile */
  .faq-question {
    padding: 12px 14px;
    font-size: 0.85rem;
    gap: 8px;
  }
  .faq-answer {
    padding: 0 14px;
  }
  .faq-item.active .faq-answer {
    padding: 0 14px 14px;
  }
  .faq-answer p {
    font-size: 0.78rem;
    line-height: 1.55;
  }

  /* Footer on Mobile - Breathable, Balanced & Clean */
  .footer {
    padding: 38px 0 calc(34px + env(safe-area-inset-bottom, 0px)) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin-top: 48px !important;
  }
  .footer .container {
    padding: 0 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    text-align: center !important;
  }
  .footer-brand-box {
    width: 100%;
    margin-bottom: 2px;
  }
  .footer-brand-tag {
    font-size: 0.82rem !important;
    line-height: 1.6 !important;
    color: var(--text-muted) !important;
  }
  .footer-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 460px !important;
    margin: 2px auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  .footer-pill-link {
    padding: 8px 15px !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    gap: 7px !important;
    white-space: nowrap !important;
    border-radius: var(--radius-full) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: var(--text) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.2s var(--ease) !important;
    display: inline-flex !important;
    align-items: center !important;
  }
  .footer-pill-link:hover,
  .footer-pill-link:active {
    background: var(--surface-2) !important;
    border-color: var(--accent) !important;
    color: var(--accent-strong) !important;
    transform: translateY(-1px) !important;
  }
  .footer-pill-saweria:hover,
  .footer-pill-saweria:active {
    border-color: #faae2b !important;
    color: #fbbf4a !important;
    background: rgba(250, 174, 43, 0.14) !important;
  }
  .footer-pill-kofi:hover,
  .footer-pill-kofi:active {
    border-color: #ff5e5b !important;
    color: #ff8582 !important;
    background: rgba(255, 94, 91, 0.14) !important;
  }
  .footer-disclaimer {
    font-size: 0.72rem !important;
    line-height: 1.65 !important;
    color: var(--text-dim) !important;
    opacity: 0.8 !important;
    max-width: 480px !important;
    margin-top: 4px !important;
    padding: 0 8px !important;
    text-wrap: pretty !important;
  }

  .lang-dropdown {
    right: 0;
  }

  /* Direct Showcase prominent full-width download button on mobile */
  .showcase-actions .sc-track-dl-btn {
    grid-column: 1 / -1;
    height: 42px;
    font-size: 0.84rem;
    font-weight: 700;
  }
}

/* Extra Small Phones (Width < 360px) */
@media (max-width: 360px) {
  .grid-cards:not(.list-view) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  .grid-cards.list-view .card {
    padding: 6px 8px !important;
    gap: 8px !important;
  }
  .grid-cards.list-view .card-cover-wrapper {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
  }
  .grid-cards.list-view .card-actions .btn-action {
    font-size: 0.68rem !important;
    padding: 0 6px !important;
    height: 28px !important;
  }
  .card-actions .btn-action {
    font-size: 0.7rem;
  }
  .showcase-actions {
    grid-template-columns: 1fr;
  }
}
