/* ═════════════════════════════════════════════════════════════════════════
   ZeroMusic — Native Web Player & Mobile Experience
   Aesthetic: Dark Luxury Minimalist (Apple Music Web & Spotify Desktop)
   ═════════════════════════════════════════════════════════════════════════ */

:root {
  --zm-bg: #050507;
  --zm-sidebar: #08080b;
  --zm-stage: #07070a;
  --zm-surface: #101015;
  --zm-surface-hover: rgba(255, 255, 255, 0.06);
  --zm-surface-active: rgba(255, 255, 255, 0.1);
  --zm-border: rgba(255, 255, 255, 0.06);
  --zm-border-hover: rgba(255, 255, 255, 0.16);
  --zm-text-primary: #ffffff;
  --zm-text-secondary: #a1a1aa;
  --zm-text-muted: #71717a;
  --zm-text-dim: #52525b;
  --zm-accent: #f97316;
  --zm-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --zm-font-mono: 'JetBrains Mono', monospace;
}

/* Universal Native Cursor Enforcement */
*, *::before, *::after {
  cursor: auto !important;
}
button, a, [role="button"], input[type="range"], .clickable, .track-row-item, .track-card, .sidebar-item, .mood-chip, .btn-editorial-play, .btn-play-all-section, .chart-tab-btn, .sidebar-action-btn, .playlist-nav-item, .card-hover-play, .card-hover-like, .card-hover-menu, .btn-ctrl, .control-btn, .transport-btn, .btn-circle-playpause, .player-util-btn, .btn-player-heart, .btn-player-add, .scrubber-input, .volume-range-input {
  cursor: pointer !important;
}
input[type="text"], input[type="search"] {
  cursor: text !important;
}

/* Base App Body */
html, body.zm-app-body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--zm-bg) !important;
  color: var(--zm-text-primary);
  font-family: var(--zm-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Minimal subtle scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

/* ═════════════════════════════════════════════════════════════════════════
   DESKTOP PLAYER APP SHELL
   ═════════════════════════════════════════════════════════════════════════ */
#zm-player-view {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  position: relative;
  background: var(--zm-bg);
}

/* ── Left Sidebar (250px Native App Navigation) ── */
.player-sidebar {
  width: 250px;
  min-width: 250px;
  height: 100vh;
  background: var(--zm-sidebar);
  border-right: 1px solid var(--zm-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 16px 96px;
  box-sizing: border-box;
  flex-shrink: 0;
  user-select: none;
  z-index: 10;
}

.sidebar-top-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

/* Brand Lockup */
.sidebar-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 4px 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.sidebar-brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.sidebar-brand-meta {
  display: flex;
  flex-direction: column;
}
.sidebar-brand-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.sidebar-brand-sub {
  font-family: var(--zm-font-mono);
  font-size: 10px;
  color: var(--zm-text-muted);
}

/* Nav Blocks */
.sidebar-nav-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-block-title {
  font-family: var(--zm-font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--zm-text-dim);
  letter-spacing: 0.1em;
  padding: 6px 12px;
  text-transform: uppercase;
}

/* Sidebar Nav Buttons */
.sidebar-item {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--zm-text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sidebar-item svg {
  color: var(--zm-text-muted);
  transition: color 0.15s ease;
}
.sidebar-item:hover {
  color: #ffffff;
  background: var(--zm-surface-hover);
}
.sidebar-item:hover svg {
  color: #ffffff;
}
.sidebar-item.active {
  color: #ffffff;
  background: var(--zm-surface-active);
  font-weight: 600;
}
.sidebar-item.active svg {
  color: var(--zm-accent);
}

/* Sidebar Playlists Navigation */
.sidebar-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 4px;
}
.sidebar-block-header .sidebar-block-title {
  margin-bottom: 0;
  padding: 0;
}
.sidebar-action-btn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--zm-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  transition: all 0.15s ease;
}
.sidebar-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}
.sidebar-playlists-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 280px;
  overflow-y: auto;
}
.playlist-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--zm-text-secondary);
  cursor: pointer !important;
  transition: all 0.15s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.playlist-nav-item:hover {
  color: #ffffff;
  background: var(--zm-surface-hover);
}
.playlist-nav-item.active {
  color: #ffffff;
  background: var(--zm-surface-active);
  font-weight: 600;
}
.playlist-nav-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.playlist-nav-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.playlist-nav-count {
  font-family: var(--zm-font-mono);
  font-size: 11px;
  color: var(--zm-text-dim);
  flex-shrink: 0;
}

/* Sidebar Bottom */
.sidebar-bottom-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.sidebar-return-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--zm-font-mono);
  font-size: 11px;
  color: var(--zm-text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
  cursor: pointer !important;
}
.sidebar-return-link:hover {
  color: #ffffff;
  background: var(--zm-surface-hover);
}
.sidebar-audio-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: var(--zm-font-mono);
  font-size: 11px;
  color: var(--zm-text-dim);
}
.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

/* ── Main Stage Area ── */
.player-main-stage {
  flex: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--zm-stage);
  position: relative;
}

/* Stage Nav Header: Completely Single Row & Glitch-Free */
.stage-nav-header {
  height: 60px !important;
  min-height: 60px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 36px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  background: rgba(7, 7, 10, 0.95) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  z-index: 20 !important;
  gap: 20px !important;
  margin: 0 !important;
}

/* Search Box */
.stage-search-shell {
  position: relative;
  width: 360px;
}
.stage-search-box {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0 12px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.stage-search-box:focus-within {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04);
}
.search-icon {
  color: var(--zm-text-muted);
  flex-shrink: 0;
}
.search-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  font-family: var(--zm-font-sans);
  color: #ffffff;
  cursor: text !important;
}
.search-input-field::placeholder {
  color: var(--zm-text-muted);
}
.search-btn-clear {
  display: none;
  background: none;
  border: none;
  color: var(--zm-text-muted);
  cursor: pointer !important;
  padding: 2px;
  font-size: 12px;
}

/* Header Action Pills */
.stage-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-action-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--zm-text-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer !important;
  transition: all 0.15s ease;
}
.header-action-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.header-action-pill.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.header-actions-separator {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
}

/* Google Sign-in & Profile Pill (Phone ↔ PC Account Sync) */
.user-auth-wrap {
  display: flex;
  align-items: center;
}
.btn-google-sync {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.btn-google-sync:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}
.btn-google-sync .google-auth-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 8px 3px 4px;
  border-radius: 9999px;
  transition: all 0.15s ease;
}
.user-profile-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}
.user-avatar-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: #202028;
}
.user-profile-info {
  display: flex;
  flex-direction: column;
  cursor: pointer !important;
  padding-right: 4px;
}
.user-profile-name {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.user-sync-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 500;
  color: var(--zm-text-muted);
  line-height: 1;
}
.sync-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #64748b;
}
.sync-status-dot.online {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}
.sync-status-dot.syncing {
  background: #3b82f6;
  animation: zm-pulse 0.8s infinite alternate;
}
@keyframes zm-pulse { from { opacity: 0.3; } to { opacity: 1; } }

.btn-sync-action-icon, .btn-signout-action-icon {
  background: none;
  border: none;
  color: var(--zm-text-muted);
  cursor: pointer !important;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.btn-sync-action-icon:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
}
.btn-signout-action-icon:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

/* Autocomplete Dropdown */
.stage-suggest-dropdown {
  display: none;
  position: absolute;
  top: 44px;
  left: 0;
  width: 100%;
  background: #0e0e13;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  z-index: 100;
  max-height: 260px;
  overflow-y: auto;
}
.stage-suggest-dropdown.visible {
  display: block;
}
.suggest-item {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--zm-text-secondary);
  cursor: pointer !important;
  transition: background 0.12s, color 0.12s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.suggest-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Moods & Genres Sub-Bar (Divided exactly like Android App MOODS) */
.moods-subbar {
  height: 46px;
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 36px;
  background: rgba(7, 7, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  z-index: 19;
}
.mood-chips-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: nowrap;
}
.mood-chips-scroll::-webkit-scrollbar {
  display: none;
}
.mood-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--zm-text-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 9999px;
  cursor: pointer !important;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.mood-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.mood-chip.active {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  border-color: #ffffff;
}

/* Scroll Canvas */
.stage-scroll-canvas {
  flex: 1;
  overflow-y: auto;
  padding: 32px 36px 140px;
  display: flex;
  flex-direction: column;
}

/* Section Headings */
.section-heading-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-heading-bar h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
}

/* ── Cinematic Editorial Billboard ── */
.editorial-billboard {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.editorial-art-frame {
  width: 160px;
  height: 160px;
  min-width: 160px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  background: #141419;
}
.editorial-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.editorial-info-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.editorial-eyebrow {
  font-family: var(--zm-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--zm-text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.editorial-heading {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.15;
}
.editorial-subheading {
  font-size: 15px;
  color: var(--zm-text-secondary);
  font-weight: 500;
  margin: 0 0 20px;
}
.editorial-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-editorial-play {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 9999px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-editorial-play:hover {
  transform: scale(1.04);
  background: #f0f0f0;
}

/* ── Modern Spotify-Style Track Cards Grid ── */
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 24px;
}
.track-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.track-card:hover {
  transform: translateY(-4px);
}
.card-art-box {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #101015;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.card-art-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.track-card:hover .card-art-box img {
  transform: scale(1.04);
}

/* Floating Round Play Button */
.card-hover-play {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.track-card:hover .card-hover-play {
  opacity: 1;
  transform: translateY(0);
}
.card-hover-play:hover {
  transform: scale(1.08) !important;
}

/* Hover Like Heart on Card */
.card-hover-like {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.track-card:hover .card-hover-like {
  opacity: 1;
}
.card-hover-like.liked {
  opacity: 1;
}
.card-hover-like:hover {
  transform: scale(1.1);
}

/* Card Typography */
.card-meta {
  padding: 8px 0 0;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.card-artist {
  font-size: 12px;
  font-weight: 400;
  color: var(--zm-text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Active playing glow outline on card */
.now-playing-card .card-art-box {
  outline: 2px solid var(--zm-accent);
}

/* ── Track Rows (Table List View) ── */
.track-rows-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.track-row-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.track-row-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.track-row-item.active-row {
  background: rgba(255, 255, 255, 0.08);
}
.track-row-item.active-row .row-track-name {
  color: var(--zm-accent);
}
.row-index {
  font-family: var(--zm-font-mono);
  font-size: 13px;
  color: var(--zm-text-dim);
  width: 22px;
  text-align: center;
}
.row-art-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  background: #141419;
}
.row-meta-col {
  flex: 1;
  min-width: 0;
}
.row-track-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-artist-name {
  font-size: 12px;
  color: var(--zm-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-duration-tag {
  font-family: var(--zm-font-mono);
  font-size: 12px;
  color: var(--zm-text-muted);
}
.row-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.track-row-item:hover .row-actions-group {
  opacity: 1;
}
.row-btn-action {
  background: none;
  border: none;
  color: var(--zm-text-muted);
  cursor: pointer !important;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.12s ease;
}
.row-btn-action:hover {
  color: #ffffff;
}

/* ── Home Feed Sections & Android App Architecture ── */
.home-feed-section {
  margin-bottom: 48px;
}
.section-heading-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}
.section-subtitle {
  font-size: 13px;
  color: var(--zm-text-muted);
  margin: 3px 0 0;
}
.section-badge {
  font-family: var(--zm-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--zm-accent);
  margin-bottom: 4px;
  text-transform: uppercase;
}

/* Home Welcome Tip (Android App style) */
.home-welcome-tip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--zm-text-secondary);
}
.welcome-tip-icon {
  font-size: 18px;
}
.welcome-tip-text {
  line-height: 1.5;
}

/* Chart Controls Group */
.chart-controls-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chart-tab-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.chart-tab-btn {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--zm-text-muted);
  padding: 5px 14px;
  border-radius: 16px;
  cursor: pointer !important;
  transition: all 0.15s ease;
}
.chart-tab-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 600;
}
.btn-play-all-section {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer !important;
  transition: all 0.15s ease;
}
.btn-play-all-section:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* Top 100 Ranked Rows */
.top-100-table .track-row-item {
  position: relative;
}
.rank-top-1 { color: #f59e0b !important; font-weight: 800 !important; }
.rank-top-2 { color: #94a3b8 !important; font-weight: 800 !important; }
.rank-top-3 { color: #d97706 !important; font-weight: 800 !important; }

/* Playlist Detail Hero */
.playlist-editorial-hero {
  display: flex;
  gap: 32px;
  align-items: flex-end;
  padding: 24px 0 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 24px;
}
.playlist-art-frame {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}
.playlist-art-gradient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  background: linear-gradient(135deg, #18181f 0%, #272733 100%);
}
.playlist-heading {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.playlist-subheading {
  font-size: 13px;
  color: var(--zm-text-muted);
  margin-bottom: 18px;
  font-family: var(--zm-font-mono);
}
.playlist-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer !important;
  transition: all 0.15s ease;
}
.btn-action-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-action-ghost {
  padding: 8px 14px;
  background: transparent;
  border: none;
  color: var(--zm-text-muted);
  font-size: 13px;
  cursor: pointer !important;
  transition: color 0.15s ease;
}
.btn-action-ghost:hover {
  color: #ffffff;
}

/* Modals */
.zm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zm-modal-card {
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 380px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.8);
}
.zm-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
}
.zm-modal-input {
  width: 100%;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  color: #ffffff;
  outline: none;
  margin-bottom: 20px;
  box-sizing: border-box;
}
.zm-modal-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}
.zm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.btn-action-primary {
  padding: 8px 18px;
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  font-size: 13px;
  border-radius: 9999px;
  border: none;
  cursor: pointer !important;
  transition: all 0.15s ease;
}
.btn-action-primary:hover {
  transform: scale(1.03);
}
.playlist-picker-scroll {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 16px;
}
.playlist-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: #ffffff;
  cursor: pointer !important;
  transition: background 0.12s ease;
}
.playlist-picker-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Phone ↔ PC Cloud Sync Modal */
.sync-modal-card {
  max-width: 450px;
  width: 90%;
}
.sync-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}
.sync-modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sync-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(66, 133, 244, 0.15);
  color: #4285f4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sync-modal-subtitle {
  font-size: 11px;
  color: var(--zm-text-muted);
  margin-top: 2px;
}
.modal-close-cross {
  background: none;
  border: none;
  color: var(--zm-text-muted);
  font-size: 16px;
  cursor: pointer !important;
  padding: 4px 6px;
  border-radius: 6px;
}
.modal-close-cross:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.sync-account-info-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 16px;
}
.sync-modal-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #1c1c24;
  flex-shrink: 0;
}
.sync-account-details {
  flex: 1;
  min-width: 0;
}
.sync-account-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}
.sync-account-email {
  font-size: 12px;
  color: var(--zm-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sync-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.sync-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
}
.sync-badge.active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}
.sync-time-text {
  font-size: 10px;
  color: var(--zm-text-dim);
}

.sync-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.sync-stat-tile {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}
.sync-stat-number {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
}
.sync-stat-label {
  font-size: 10px;
  color: var(--zm-text-muted);
  margin-top: 2px;
}

.sync-cloud-info-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(59, 130, 246, 0.06);
  border-left: 2px solid #3b82f6;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--zm-text-secondary);
  margin-bottom: 16px;
}
.sync-cloud-info-note code {
  color: #60a5fa;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
}

.sync-advanced-section {
  margin-bottom: 16px;
}
.btn-text-link {
  background: none;
  border: none;
  color: var(--zm-text-muted);
  font-size: 11px;
  cursor: pointer !important;
  padding: 0;
  transition: color 0.15s ease;
}
.btn-text-link:hover {
  color: #ffffff;
}
.sync-client-id-drawer {
  margin-top: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.sync-input-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--zm-text-secondary);
  margin-bottom: 6px;
}
.sync-client-tip {
  font-size: 10px;
  color: var(--zm-text-muted);
  margin-top: 6px;
  margin-bottom: 10px;
  line-height: 1.4;
}
.sync-client-tip code {
  color: #e2e8f0;
}
.btn-save-id {
  font-size: 11px;
  padding: 5px 12px;
}
.btn-action-danger {
  padding: 8px 18px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-weight: 600;
  font-size: 13px;
  border-radius: 9999px;
  cursor: pointer !important;
  transition: all 0.15s ease;
}
.btn-action-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
}
.btn-player-add {
  background: none;
  border: none;
  color: var(--zm-text-muted);
  cursor: pointer !important;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}
.btn-player-add:hover {
  color: #ffffff;
}
.card-hover-menu {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer !important;
}
.track-card:hover .card-hover-menu {
  opacity: 1;
}
.card-hover-menu:hover {
  transform: scale(1.1);
}

/* Empty / Loading messages */
.zm-empty, .zm-loading {
  padding: 48px 0;
  text-align: center;
  font-size: 13px;
  color: var(--zm-text-muted);
  font-family: var(--zm-font-mono);
}

/* ── Pure Bottom Terms & Legal Footer ── */
.zm-player-footer {
  margin-top: auto;
  padding-top: 56px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--zm-font-mono);
  font-size: 11px;
  color: var(--zm-text-dim);
  width: 100%;
}
.zm-player-footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.zm-player-footer-left a {
  color: var(--zm-text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}
.zm-player-footer-left a:hover {
  color: #ffffff;
}
.zm-player-footer-sub {
  font-size: 10px;
  color: var(--zm-text-dim);
}
.zm-player-footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.zm-player-footer-links a {
  color: var(--zm-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.zm-player-footer-links a:hover {
  color: #ffffff;
}

/* ═════════════════════════════════════════════════════════════════════════
   MASTER BOTTOM PLAYER BAR (EDGE-TO-EDGE FLUSH DOCK)
   ═════════════════════════════════════════════════════════════════════════ */
.master-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(8, 8, 11, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  z-index: 1000;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Left: Now Playing */
.player-left-col {
  width: 260px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.player-art-wrap {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  background: #141419;
}
.player-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.player-meta-wrap {
  min-width: 0;
  flex: 1;
}
.player-title-text {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.player-artist-text {
  font-size: 12px;
  color: var(--zm-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-player-heart {
  background: none;
  border: none;
  color: var(--zm-text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, transform 0.15s ease;
}
.btn-player-heart:hover {
  color: #ffffff;
  transform: scale(1.1);
}
.btn-player-heart.liked {
  color: var(--zm-accent);
}

/* Center: Transport & Scrubber */
.player-center-col {
  flex: 1;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.player-transport-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.transport-btn {
  background: none;
  border: none;
  color: var(--zm-text-secondary);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, transform 0.15s ease;
}
.transport-btn:hover {
  color: #ffffff;
}
.transport-btn.active {
  color: var(--zm-accent);
}

/* Main Circle Play/Pause Button */
.btn-circle-playpause {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease;
}
.btn-circle-playpause:hover {
  transform: scale(1.08);
}

/* Scrubber Timeline */
.player-timeline-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}
.time-digit-text {
  font-family: var(--zm-font-mono);
  font-size: 11px;
  color: var(--zm-text-muted);
  width: 34px;
  text-align: center;
}
.scrubber-track-wrap {
  flex: 1;
  height: 16px;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}
.scrubber-fill {
  position: absolute;
  left: 0;
  top: 6px;
  height: 4px;
  background: #ffffff;
  border-radius: 2px;
  pointer-events: none;
  width: 0%;
  transition: height 0.1s ease;
}
.scrubber-track-wrap:hover .scrubber-fill {
  height: 6px;
  top: 5px;
  background: var(--zm-accent);
}
.scrubber-input {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  outline: none;
  margin: 0;
  cursor: pointer;
  transition: height 0.1s ease;
}
.scrubber-track-wrap:hover .scrubber-input {
  height: 6px;
}
.scrubber-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.scrubber-track-wrap:hover .scrubber-input::-webkit-slider-thumb {
  opacity: 1;
  transform: scale(1.1);
}

/* Right: Volume & Drawers */
.player-right-col {
  width: 260px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.volume-slider-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.volume-range-input {
  width: 72px;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.volume-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}
.player-util-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--zm-text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.player-util-btn:hover {
  color: #ffffff;
  background: var(--zm-surface-hover);
}
.player-util-btn.active {
  color: #ffffff;
  background: var(--zm-surface-active);
}

/* ═════════════════════════════════════════════════════════════════════════
   SYNCED LYRICS DRAWER (APPLE MUSIC DARK LUXE)
   ═════════════════════════════════════════════════════════════════════════ */
.lyrics-slideover-sheet {
  position: fixed;
  right: -480px;
  top: 0;
  bottom: 80px;
  width: 440px;
  max-width: 90vw;
  background: rgba(8, 8, 11, 0.98);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border-left: 1px solid var(--zm-border);
  z-index: 950;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}
.lyrics-slideover-sheet.open {
  right: 0;
}
.lyrics-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.lyrics-header-track {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.lyrics-header-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  background: #141419;
}
.lyrics-header-meta {
  min-width: 0;
}
.lyrics-header-meta h4 {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lyrics-header-meta p {
  font-size: 11px;
  color: var(--zm-text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-close-sheet {
  background: none;
  border: none;
  color: var(--zm-text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: color 0.15s ease;
}
.btn-close-sheet:hover {
  color: #ffffff;
}

.lyrics-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 40px 28px;
  scroll-behavior: smooth;
}
.lyric-line {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.55;
  color: #ffffff;
  opacity: 0.22;
  filter: blur(0.2px);
  padding: 10px 0;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}
.lyric-line:hover {
  opacity: 0.7;
}
.lyric-line.active {
  opacity: 1.0;
  filter: blur(0);
  transform: scale(1.02);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}
.lyrics-status {
  text-align: center;
  font-size: 13px;
  color: var(--zm-text-muted);
  margin-top: 60px;
  font-family: var(--zm-font-mono);
}
.plain-lyrics {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
  padding: 10px 4px 60px;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
}
.lyrics-badge-unsynced {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: var(--zm-text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 4px 10px;
  margin-bottom: 20px;
}

/* ═════════════════════════════════════════════════════════════════════════
   QUEUE DRAWER
   ═════════════════════════════════════════════════════════════════════════ */
.queue-slideover-sheet {
  position: fixed;
  right: -420px;
  top: 0;
  bottom: 80px;
  width: 360px;
  max-width: 90vw;
  background: rgba(8, 8, 11, 0.98);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border-left: 1px solid var(--zm-border);
  z-index: 950;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}
.queue-slideover-sheet.open {
  right: 0;
}
.queue-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.queue-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}
.queue-counter {
  font-family: var(--zm-font-mono);
  font-size: 11px;
  color: var(--zm-text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 12px;
}
.queue-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.queue-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.queue-item-card:hover {
  background: rgba(255, 255, 255, 0.05);
}
.queue-item-card.current-playing {
  background: rgba(255, 255, 255, 0.08);
}
.queue-art-thumb {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  background: #141419;
}
.queue-info-text {
  flex: 1;
  min-width: 0;
}
.queue-song-name {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.queue-song-artist {
  font-size: 11px;
  color: var(--zm-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-queue-del {
  background: none;
  border: none;
  color: var(--zm-text-dim);
  cursor: pointer;
  padding: 4px 6px;
  font-size: 12px;
  transition: color 0.15s ease;
}
.btn-queue-del:hover {
  color: #ffffff;
}

/* ═════════════════════════════════════════════════════════════════════════
   MOBILE DOWNLOAD SHOWCASE (ARC / NOTHING MINIMAL)
   ═════════════════════════════════════════════════════════════════════════ */
#zm-download-view {
  min-height: 100vh;
  width: 100vw;
  background: #050507;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.zm-mobile-topbar {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--zm-border);
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(20px);
}
.zm-mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.zm-mobile-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}
.zm-mobile-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}
.zm-mobile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.zm-mobile-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.zm-mobile-core-link {
  font-family: var(--zm-font-mono);
  font-size: 12px;
  color: var(--zm-text-muted);
  text-decoration: none;
  padding: 6px;
}

.mobile-landing-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mobile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
}
.mobile-app-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.25);
  margin-bottom: 24px;
}
.mobile-app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mobile-hero-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 12px;
}
.mobile-hero-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--zm-text-secondary);
  margin: 0 0 32px;
  max-width: 380px;
}
.mobile-cta-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;
}
.btn-mobile-download {
  height: 52px;
  background: #ffffff;
  color: #000000;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease;
}
.btn-mobile-download:hover {
  transform: scale(1.02);
}
.mobile-version-badge {
  font-family: var(--zm-font-mono);
  font-size: 11px;
  background: rgba(0, 0, 0, 0.15);
  padding: 3px 8px;
  border-radius: 12px;
}
.btn-mobile-webplayer {
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Feature Grid */
.mobile-features-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-bottom: 48px;
}
.mobile-feat-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
}
.feat-dot {
  color: var(--zm-accent);
  font-size: 14px;
  line-height: 1.4;
}
.feat-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 4px;
}
.feat-text p {
  font-size: 13px;
  color: var(--zm-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.zm-footer {
  width: 100%;
  padding-top: 32px;
  border-top: 1px solid var(--zm-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  font-family: var(--zm-font-mono);
  font-size: 11px;
  color: var(--zm-text-dim);
}
.zm-footer a {
  color: var(--zm-text-muted);
  text-decoration: none;
  margin: 0 6px;
}
.zm-footer a:hover {
  color: #ffffff;
}

/* ═════════════════════════════════════════════════════════════════════════
   TOAST NOTIFICATION
   ═════════════════════════════════════════════════════════════════════════ */
#zm-toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #14141a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2000;
}
#zm-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.zm-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: zm-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes zm-spin { to { transform: rotate(360deg); } }

/* ═════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN (TABLETS & LAPTOPS)
   ═════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .player-sidebar {
    display: none;
  }
  .stage-nav-header {
    padding: 0 20px;
  }
  .stage-scroll-canvas {
    padding: 24px 20px 140px;
  }
  .editorial-billboard {
    flex-direction: column;
    text-align: center;
  }
  .editorial-info-pane {
    align-items: center;
  }
  .master-player-bar {
    padding: 0 16px;
  }
  .player-right-col .volume-slider-group {
    display: none;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   STRICT DEVICE ACCESS CONTROL: ANDROID RESTRICTED TO DOWNLOAD VIEW
   ═════════════════════════════════════════════════════════════════════════ */
html.android #zm-player-view,
html.android #floating-player-dock,
html.android #modal-sync-account,
html.android #yt-audio-container,
html.android .btn-mobile-webplayer,
html.android #btn-toggle-view,
html.mobile-device #zm-player-view,
html.mobile-device #floating-player-dock,
html.mobile-device #modal-sync-account,
html.mobile-device #yt-audio-container,
html.mobile-device .btn-mobile-webplayer,
html.mobile-device #btn-toggle-view,
body[data-zm-view="download"] #zm-player-view,
body[data-zm-view="download"] #floating-player-dock,
body[data-zm-view="download"] #modal-sync-account,
body[data-zm-view="download"] #yt-audio-container {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

html.android #zm-download-view,
html.mobile-device #zm-download-view,
body[data-zm-view="download"] #zm-download-view {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Desktop & Laptop Users: Strictly Web Player */
html:not(.android):not(.mobile-device) body[data-zm-view="player"] #zm-download-view {
  display: none !important;
}

html:not(.android):not(.mobile-device) body[data-zm-view="player"] #zm-player-view {
  display: flex !important;
}

html:not(.android):not(.mobile-device) body[data-zm-view="player"] #floating-player-dock {
  display: flex !important;
}

/* ═════════════════════════════════════════════════════════════════════════
   MANDATORY AUTHENTICATION GATE & USERS DIRECTORY
   ═════════════════════════════════════════════════════════════════════════ */
.zm-auth-gate-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  background: rgba(5, 5, 8, 0.94);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.zm-auth-gate-card {
  width: 100%;
  max-width: 440px;
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(249, 115, 22, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.zm-auth-gate-badge {
  display: inline-block;
  font-family: var(--zm-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--zm-accent);
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 20px;
}

.zm-auth-gate-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #14141b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.zm-auth-gate-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
}

.zm-auth-gate-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--zm-text-secondary);
  margin: 0 0 24px 0;
}

.zm-auth-gate-features {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 14px 16px;
  box-sizing: border-box;
}

.zm-auth-gate-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #e4e4e7;
}

.zm-auth-gate-feat .feat-bullet {
  color: var(--zm-accent);
  font-size: 14px;
}

.btn-gate-signin {
  width: 100%;
  height: 48px;
  background: #ffffff;
  color: #09090b;
  font-family: var(--zm-font-sans);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.btn-gate-signin:hover {
  background: #f4f4f5;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.22);
}

.btn-gate-signin:active {
  transform: translateY(0);
}

.zm-auth-gate-footnote {
  font-size: 12px;
  color: var(--zm-text-muted);
  margin: 18px 0 0 0;
  letter-spacing: 0.2px;
}

/* Users directory in Sync Modal */
.sync-users-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  border-radius: 10px;
}

.sync-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  font-size: 13px;
}

.sync-user-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sync-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #18181f;
  flex-shrink: 0;
}

.sync-user-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sync-user-name {
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sync-user-email {
  font-size: 11px;
  color: var(--zm-text-muted);
  font-family: var(--zm-font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sync-user-badge {
  font-family: var(--zm-font-mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--zm-text-secondary);
  flex-shrink: 0;
  text-align: right;
}

