/* ═══════════════════════════════════════════════════════════════
   ERI-FAM — Apple Music Style
   Accent: #FA2D48 · Surfaces: #1C1C1E / #2C2C2E · Font: system
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:         #000000;
  --surface:    #1C1C1E;
  --card:       #2C2C2E;
  --card-hover: #3A3A3C;
  --border:     rgba(255,255,255,0.08);
  --accent:     #C8914A;
  --accent-dk:  #A0703A;
  --accent-glow:rgba(200,145,74,0.30);
  --green:      #32D74B;
  --green-dk:   #248A35;
  --blue:       #0A84FF;
  --red:        #FF453A;
  --gold:       #C8914A;
  --text:       #FFFFFF;
  --text-sub:   rgba(255,255,255,0.55);
  --text-dim:   rgba(255,255,255,0.28);
  --player-h:   82px;
  --nav-h:      66px;
  --header-h:   52px;
  --radius:     14px;
  --radius-sm:  10px;
  --radius-lg:  20px;
  --glass:      rgba(28,28,30,0.88);
  --fp-ring-c:  867.08;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display',
               'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
svg { display: block; }

/* ── INSTALL BANNER ─────────────────────────────────────── */
.install-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 14px;
}
.install-inner { display: flex; align-items: center; gap: 10px; max-width: 480px; margin: 0 auto; }
.ib-icon { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; }
.ib-text { flex: 1; line-height: 1.3; }
.ib-text strong { display: block; font-size: 0.85rem; }
.ib-text span { font-size: 0.75rem; opacity: 0.7; }
.ib-confirm {
  background: var(--accent); color: white; font-weight: 700;
  padding: 6px 16px; border-radius: 20px; font-size: 0.8rem;
}
.ib-dismiss { color: var(--text-dim); font-size: 1.1rem; padding: 4px 8px; }

/* ── HEADER ─────────────────────────────────────────────── */
.app-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
.header-left { display: flex; align-items: center; gap: 9px; }
.header-logo { width: 30px; height: 30px; border-radius: 7px; }
.header-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.4px; }
.header-title strong { color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 2px; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; color: var(--text-sub);
  transition: background 0.18s, color 0.18s;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover, .icon-btn:active { background: rgba(255,255,255,0.08); color: var(--text); }

/* ── SEARCH BAR ─────────────────────────────────────────── */
.search-bar {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 14px;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  border-bottom: 1px solid var(--border);
}
.search-bar.open { transform: translateY(0); }
.search-wrap {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.1); border-radius: 12px; padding: 0 14px;
}
.search-ico { width: 15px; height: 15px; color: var(--text-dim); flex-shrink: 0; }
#searchInput {
  flex: 1; background: none; border: none; color: var(--text);
  font-size: 0.9rem; padding: 10px 0; outline: none;
}
#searchInput::placeholder { color: var(--text-dim); }
.search-close-btn { color: var(--accent); font-size: 0.9rem; font-weight: 600; padding: 4px; }

/* ── MAIN CONTENT ───────────────────────────────────────── */
.main-content {
  padding-top: var(--header-h);
  padding-bottom: calc(var(--nav-h) + var(--player-h) + 12px);
  min-height: 100dvh;
}
.view { display: none; padding: 16px 14px; }
.view.active { display: block; }

/* ── UPLOAD ZONE ────────────────────────────────────────── */
.upload-zone {
  border: 1.5px dashed rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.upload-zone.drag-over { border-color: var(--accent); background: rgba(250,45,72,0.06); }
.upload-inner { padding: 26px 20px; text-align: center; }
.upload-svg { width: 32px; height: 32px; margin: 0 auto 10px; color: var(--accent); }
.upload-inner p { font-size: 0.88rem; color: var(--text-sub); line-height: 1.6; }
.upload-inner strong { color: var(--text); }
.upload-link { color: var(--accent); cursor: pointer; }

/* ── STATS / FILTER ─────────────────────────────────────── */
.stats-bar {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.76rem; color: var(--text-sub);
  margin-bottom: 10px; padding: 0 2px;
}
.stat-divider { color: var(--text-dim); }
.stat-sync-btn { color: var(--accent); font-size: 0.76rem; font-weight: 600; }
.stat-select-btn { margin-left: auto; color: var(--accent); font-size: 0.76rem; font-weight: 600; }
.stat-delete-btn {
  font-size: 0.76rem; font-weight: 600; color: #fff;
  background: var(--accent); border-radius: 20px; padding: 4px 12px;
}

/* ── SELECTION BAR ──────────────────────────────────────── */
.sel-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border-radius: var(--radius);
  padding: 10px 14px; margin-bottom: 10px;
}
.sel-cancel { font-size: 0.82rem; color: var(--text-sub); font-weight: 500; }
.sel-count  { font-size: 0.82rem; color: var(--text); font-weight: 600; flex: 1; text-align: center; }
.sel-actions { display: flex; gap: 8px; }
.sel-action {
  font-size: 0.78rem; font-weight: 600; padding: 5px 12px;
  border-radius: 20px; background: var(--card); color: var(--text);
  transition: background 0.15s;
}
.sel-action:active { background: var(--card-hover); }
.sel-action.sel-delete { background: rgba(250,45,72,0.18); color: var(--accent); }
.sel-action.sel-delete:disabled { opacity: 0.35; pointer-events: none; }

/* ── SELECTION MODE TRACK STATES ────────────────────────── */
.track-card .tc-sel-check, .track-row .tr-sel-check {
  display: none;
}
body.select-mode .track-card .tc-sel-check {
  display: flex; position: absolute; top: 7px; left: 7px; z-index: 4;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.55); border: 2px solid rgba(255,255,255,0.55);
  align-items: center; justify-content: center; font-size: 0.7rem;
}
body.select-mode .track-card.selected .tc-sel-check {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
body.select-mode .track-card.selected .tc-sel-check::after { content: '✓'; }
body.select-mode .track-row .tr-sel-check {
  display: flex; width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.08); border: 2px solid rgba(255,255,255,0.3);
  align-items: center; justify-content: center; font-size: 0.7rem;
}
body.select-mode .track-row.selected .tr-sel-check {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
body.select-mode .track-row.selected .tr-sel-check::after { content: '✓'; }
body.select-mode .track-card { cursor: default; }
body.select-mode .track-card:active { transform: none; opacity: 1; }

.sync-banner {
  background: rgba(250,45,72,0.08); border: 1px solid rgba(250,45,72,0.22);
  border-radius: var(--radius-sm); padding: 10px 14px;
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-size: 0.84rem;
}
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s infinite; }
.sync-x { margin-left: auto; color: var(--text-dim); }

.filter-row {
  display: flex; align-items: center; gap: 6px; margin-bottom: 16px;
  overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip {
  padding: 6px 16px; border-radius: 20px; font-size: 0.76rem; font-weight: 600;
  background: var(--card); color: var(--text-sub); white-space: nowrap;
  transition: all 0.18s;
}
.filter-chip.active { background: var(--accent); color: white; }
.view-toggle-wrap { margin-left: auto; display: flex; gap: 4px; }
.view-tog {
  width: 30px; height: 30px; border-radius: var(--radius-sm); font-size: 0.95rem;
  background: var(--card); color: var(--text-dim);
}
.view-tog.active { background: var(--accent); color: white; }

/* ── TRACK GRID ─────────────────────────────────────────── */
.track-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.track-card {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  position: relative;
}
.track-card:active { transform: scale(0.96); opacity: 0.85; }
.track-card.playing { background: var(--card-hover); }
.track-card.playing::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
}
.tc-art {
  width: 100%; aspect-ratio: 1;
  background: linear-gradient(145deg, #2C2C2E, #1C1C1E);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; position: relative; overflow: hidden;
}
.tc-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tc-play-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.40);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
.track-card:hover .tc-play-overlay,
.track-card.playing .tc-play-overlay { opacity: 1; }
.tc-play-ico {
  width: 42px; height: 42px; background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.tc-play-ico svg { width: 18px; height: 18px; fill: #000; margin-left: 2px; }
.tc-eq-bars {
  position: absolute; bottom: 8px; left: 8px;
  display: flex; align-items: flex-end; gap: 2px; height: 16px;
}
.tc-eq-bars span {
  width: 3px; background: var(--accent); border-radius: 1px;
  animation: eqBar 0.75s ease-in-out infinite alternate;
}
.tc-eq-bars span:nth-child(2) { animation-delay: 0.15s; }
.tc-eq-bars span:nth-child(3) { animation-delay: 0.3s; }
.tc-info { padding: 9px 10px 11px; }
.tc-title { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.tc-artist { font-size: 0.71rem; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-more {
  position: absolute; top: 5px; right: 5px;
  width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem; opacity: 0; transition: opacity 0.2s;
}
.track-card:hover .tc-more { opacity: 1; }

/* ── TRACK LIST ─────────────────────────────────────────── */
.track-list { display: flex; flex-direction: column; }

/* Alphabetical letter divider */
.alpha-header {
  font-size: 0.72rem; font-weight: 800; color: var(--accent);
  padding: 14px 12px 3px; letter-spacing: 0.5px; pointer-events: none;
}

.track-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background 0.15s;
}
.track-row:hover, .track-row.playing { background: var(--card); }
.track-row.playing { border-left: 2px solid var(--accent); padding-left: 8px; }
.tr-art {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--card); display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; flex-shrink: 0;
  position: relative; overflow: hidden;
}
.tr-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tr-info { flex: 1; min-width: 0; }
.tr-title { font-size: 0.87rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-artist { font-size: 0.73rem; color: var(--text-sub); }
.tr-dur { font-size: 0.71rem; color: var(--text-dim); flex-shrink: 0; }
.tr-more { color: var(--text-dim); font-size: 1.1rem; padding: 4px 8px; flex-shrink: 0; }

/* Per-row play / pause button (list view) */
.tr-play-btn {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.07); color: var(--text-sub);
  transition: background 0.15s, color 0.15s;
}
.tr-play-btn:active { background: rgba(255,255,255,0.14); }
.tr-play-btn.tr-playing { background: rgba(250,45,72,0.15); color: var(--accent); }
.tr-play-btn svg { width: 14px; height: 14px; }

/* ── EMPTY STATE ────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-icon { font-size: 3.5rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p { font-size: 0.85rem; color: var(--text-sub); margin-bottom: 22px; line-height: 1.6; }
.empty-msg { text-align: center; color: var(--text-sub); padding: 32px 16px; font-size: 0.84rem; }

/* ── SECTION HEADERS ────────────────────────────────────── */
.section-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 14px; }
.section-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

/* ── LIBRARY TABS ───────────────────────────────────────── */
.lib-tabs {
  display: flex; gap: 0; margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.lib-tab {
  flex: 1; padding: 10px 4px; font-size: 0.82rem; font-weight: 600;
  color: var(--text-sub); border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: color 0.18s, border-color 0.18s;
  text-align: center;
}
.lib-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.lib-panel { display: none; }
.lib-panel.active { display: block; }

/* ── SONGS ACTIONS (Play / Shuffle) ─────────────────────── */
.songs-actions {
  display: flex; gap: 10px; margin-bottom: 16px;
}
.songs-play-btn, .songs-shuffle-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px; border-radius: var(--radius); font-size: 0.9rem; font-weight: 700;
  transition: opacity 0.15s;
}
.songs-play-btn:active, .songs-shuffle-btn:active { opacity: 0.7; }
.songs-play-btn    { background: var(--accent); color: #fff; }
.songs-shuffle-btn { background: var(--card); color: var(--text); }

/* ── SONGS LIST ─────────────────────────────────────────── */
.lib-song-list { display: flex; flex-direction: column; }
.lib-song-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 4px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.12s; border-radius: 6px;
}
.lib-song-row:last-child { border-bottom: none; }
.lib-song-row:active { background: var(--card); }
.lib-song-row.playing { color: var(--accent); }
.lib-song-num  { width: 22px; text-align: center; font-size: 0.75rem; color: var(--text-dim); flex-shrink: 0; }
.lib-song-row.playing .lib-song-num { color: var(--accent); }
.lib-song-info { flex: 1; min-width: 0; }
.lib-song-title  { font-size: 0.88rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-song-row.playing .lib-song-title { color: var(--accent); }
.lib-song-artist { font-size: 0.73rem; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-song-dur    { font-size: 0.72rem; color: var(--text-dim); flex-shrink: 0; }

/* ── ARTISTS LIST ───────────────────────────────────────── */
.lib-list { display: flex; flex-direction: column; }
.lib-artist-row {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 4px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.12s; border-radius: 6px;
}
.lib-artist-row:last-child { border-bottom: none; }
.lib-artist-row:active { background: var(--card); }
.lib-artist-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--card-hover), var(--card));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; overflow: hidden;
}
.lib-artist-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lib-artist-name  { flex: 1; font-size: 0.9rem; font-weight: 600; }
.lib-artist-count { font-size: 0.73rem; color: var(--text-sub); }
.lib-chevron { color: var(--text-dim); font-size: 0.8rem; }

/* ── ALBUMS GRID ────────────────────────────────────────── */
.lib-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.lib-album-card {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: background 0.15s;
}
.lib-album-card:active { background: var(--card-hover); }
.lib-album-art {
  width: 100%; aspect-ratio: 1;
  background: linear-gradient(145deg, #2C2C2E, #1C1C1E);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; position: relative; overflow: hidden;
}
.lib-album-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.lib-album-info { padding: 9px 10px 11px; }
.lib-album-title  { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-album-artist { font-size: 0.71rem; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

/* ── ARTIST / ALBUM DETAIL ──────────────────────────────── */
.lib-detail-hdr {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.lib-detail-back {
  font-size: 0.9rem; color: var(--accent); font-weight: 600;
  display: flex; align-items: center; gap: 4px; margin-bottom: 14px; cursor: pointer;
}
.lib-detail-avatar {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--card-hover), var(--card));
  display: flex; align-items: center; justify-content: center; font-size: 2rem; overflow: hidden;
}
.lib-detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lib-detail-art {
  width: 100px; height: 100px; border-radius: var(--radius); flex-shrink: 0;
  background: linear-gradient(145deg, #2C2C2E, #1C1C1E);
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem; overflow: hidden;
}
.lib-detail-art img { width: 100%; height: 100%; object-fit: cover; }
.lib-detail-name  { font-size: 1.1rem; font-weight: 700; }
.lib-detail-meta  { font-size: 0.78rem; color: var(--text-sub); margin-top: 3px; }

/* ── PLAYLIST GRID ──────────────────────────────────────── */
.playlist-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pl-card {
  background: var(--card); border-radius: var(--radius);
  padding: 14px; cursor: pointer; transition: background 0.18s;
}
.pl-card:hover { background: var(--card-hover); }
.pl-art {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-dk), #7B0F22);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: 10px;
}
.pl-name { font-size: 0.85rem; font-weight: 600; }
.pl-count { font-size: 0.71rem; color: var(--text-sub); margin-top: 3px; }

/* ── TRANSLATE VIEW ─────────────────────────────────────── */
.translate-panel { max-width: 600px; margin: 0 auto; }
.trans-sub { font-size: 0.82rem; color: var(--text-sub); margin-bottom: 16px; }
.trans-lang-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.lang-select {
  flex: 1; background: var(--card); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 0.82rem;
}
.swap-lang-btn {
  background: var(--card); color: var(--accent); border-radius: var(--radius-sm);
  padding: 8px 12px; font-size: 1.1rem; border: 1px solid var(--border);
}
.trans-textarea {
  width: 100%; background: var(--card); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius); padding: 12px;
  font-size: 0.9rem; resize: none; outline: none; transition: border-color 0.2s;
}
.trans-textarea:focus { border-color: var(--accent); }
.trans-char-row { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 12px; font-size: 0.74rem; color: var(--text-dim); }
.trans-output {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; min-height: 80px;
  font-size: 0.9rem; line-height: 1.7; margin-bottom: 14px;
}
.phrase-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.phrase-chip {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 12px; font-size: 0.74rem;
  color: var(--text-sub); cursor: pointer; transition: all 0.18s;
}
.phrase-chip:hover { border-color: var(--accent); color: var(--accent); }

/* ── BOTTOM NAV ─────────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(18,18,18,0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 0.5px solid rgba(255,255,255,0.12);
  display: flex;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; color: var(--text-dim);
  transition: color 0.18s; padding: 8px 0;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item span { font-size: 0.64rem; font-weight: 600; letter-spacing: -0.1px; }
.nav-item.active { color: var(--accent); }

/* ── MINI PLAYER ────────────────────────────────────────── */
.mini-player {
  position: fixed; bottom: var(--nav-h);
  left: 0; right: 0; z-index: 99;
  padding: 0 10px 6px;
}
.mini-player-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 8px 10px 12px;
  background: rgba(36,36,38,0.97);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.3);
  cursor: pointer;
}
.mini-art {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--card); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; overflow: hidden;
}
.mini-art img { width: 100%; height: 100%; object-fit: cover; }
.mini-art-ph { font-size: 1.5rem; }
.mini-info { flex: 1; min-width: 0; }
.mini-title  { font-size: 0.88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-artist { font-size: 0.73rem; color: var(--text-sub); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-btns { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.mini-btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85); transition: opacity 0.15s;
}
.mini-btn:active { opacity: 0.5; }
.mini-skip svg { width: 22px; height: 22px; }
.mini-play-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: white; color: #000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  margin: 0 2px;
}
.mini-play-btn svg { width: 20px; height: 20px; fill: #000; margin-left: 2px; }
.mini-prog { height: 2px; background: rgba(255,255,255,0.1); border-radius: 1px; margin: 0 12px; }
.mini-prog-fill { height: 100%; background: white; width: 0%; transition: width 0.5s linear; border-radius: 1px; opacity: 0.7; }

/* ── FULL PLAYER ────────────────────────────────────────── */
.full-player {
  position: fixed; inset: 0; z-index: 200;
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.32,0.72,0,1);
  display: flex; flex-direction: column;
}
.full-player.open { transform: translateY(0); }
.fp-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #1e1408 0%, #100a02 45%, #000000 100%);
  transition: background 0.7s ease;
}
.fp-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.38); }
.fp-content {
  position: relative; z-index: 1; flex: 1; display: flex;
  flex-direction: column; align-items: center;
  padding: 0 24px 20px; overflow-y: auto;
  max-width: 500px; margin: 0 auto; width: 100%;
}

/* Header */
.fp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0 8px; width: 100%;
}
.fp-header-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.3px;
  color: var(--text-sub); text-align: center; flex: 1;
}

/* Song info — centered, above art */
.fp-info {
  text-align: center; width: 100%; margin-bottom: 6px; margin-top: 4px;
}
.fp-title {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.fp-artist {
  font-size: 0.9rem; color: var(--text-sub); margin-top: 5px; font-weight: 600;
  letter-spacing: 0.3px;
}

/* Time display */
.fp-time-display {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 0.78rem; font-weight: 500;
  color: var(--accent); margin-bottom: 12px; letter-spacing: 0.5px;
}
.fp-time-sep { color: var(--text-dim); font-weight: 300; }

/* Circular art + ring */
.fp-ring-container {
  position: relative;
  width: min(260px, 70vw);
  aspect-ratio: 1;
  margin-bottom: 24px; flex-shrink: 0;
}
.fp-ring-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
}
.fp-ring-track {
  fill: none;
  stroke: rgba(255,255,255,0.12);
  stroke-width: 3;
}
.fp-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.5;
  filter: drop-shadow(0 0 4px var(--accent-glow));
  stroke-linecap: round;
  stroke-dasharray: 867.08;
  stroke-dashoffset: 867.08;
  transition: stroke-dashoffset 0.4s linear;
}
.fp-ring-dot {
  fill: var(--accent);
  filter: drop-shadow(0 0 3px var(--accent));
}
.fp-art {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.08), 0 20px 60px rgba(0,0,0,0.8);
  background: linear-gradient(145deg, #2C2C2E, #1C1C1E);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7);
}
.fp-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.fp-art-ph { font-size: 3rem; }

/* Hidden art-wrap for JS-referenced elements */
.fp-art-wrap { display: none !important; }
.id-btn { display: none !important; }
.viz-toggle-btn { display: none !important; }

/* Hidden progress track (JS compat) */
.fp-progress-wrap { display: none !important; }

/* Main controls: skip-back · prev · play · next · like */
.fp-controls {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0 4px; margin-bottom: 16px;
}
.ctrl-btn {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: opacity 0.15s;
}
.ctrl-btn:active { opacity: 0.45; }
.ctrl-secondary { color: rgba(255,255,255,0.45); }
.ctrl-secondary svg { width: 22px; height: 22px; }
.ctrl-secondary.active { color: var(--accent); }
.ctrl-prev, .ctrl-next { color: #fff; }
.ctrl-prev svg, .ctrl-next svg { width: 30px; height: 30px; }
.ctrl-play {
  width: 68px; height: 68px;
  background: white; color: #000;
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(255,255,255,0.2);
  transition: transform 0.15s;
}
.ctrl-play:active { transform: scale(0.92); }
.ctrl-play svg { width: 26px; height: 26px; fill: #000; margin-left: 3px; }
.like-btn {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); flex-shrink: 0; transition: color 0.2s;
}
.like-btn svg { width: 22px; height: 22px; }
.like-btn.liked { color: var(--accent); }
.like-btn.liked svg { fill: var(--accent); stroke: var(--accent); }

/* Secondary controls: shuffle · queue · volume · repeat */
.fp-controls-secondary {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0 8px; margin-bottom: 12px;
}
.fp-controls-secondary .ctrl-btn {
  width: 44px; height: 44px;
}
.fp-controls-secondary .ctrl-secondary svg { width: 20px; height: 20px; }

/* Volume row (toggled) */
.fp-volume {
  display: flex; align-items: center; gap: 10px;
  width: 100%; margin-bottom: 12px;
}
.vol-ico { width: 16px; height: 16px; color: var(--text-dim); flex-shrink: 0; }
.vol-range {
  flex: 1; -webkit-appearance: none; height: 3px;
  background: rgba(255,255,255,0.18); border-radius: 2px; outline: none;
}
.vol-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: white; cursor: pointer;
}

/* Extras row */
.fp-extras {
  display: flex; align-items: center;
  border-top: 0.5px solid var(--border); padding-top: 12px;
  overflow-x: auto; scrollbar-width: none; gap: 0;
  justify-content: flex-start; width: 100%;
}
.fp-extras::-webkit-scrollbar { display: none; }
.extra-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 0.62rem; font-weight: 600; color: var(--text-sub);
  padding: 6px 10px; border-radius: var(--radius-sm); transition: all 0.18s;
  flex-shrink: 0; min-width: 50px;
}
.extra-btn svg { width: 18px; height: 18px; }
.extra-btn:hover { color: var(--accent); background: rgba(200,145,74,0.1); }

/* fp-times hidden (kept for JS compat) */
.fp-times { display: none; }

/* ── SIDE PANELS ────────────────────────────────────────── */
.side-panel {
  position: fixed; inset: 0; z-index: 300;
  background: var(--surface);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
.side-panel.open { transform: translateX(0); }
.panel-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 0.5px solid var(--border);
}
.panel-hdr h3 { font-size: 1.05rem; font-weight: 700; }
.panel-close { color: var(--text-sub); font-size: 0.85rem; font-weight: 600; padding: 4px 8px; color: var(--accent); }

/* ── QUEUE ──────────────────────────────────────────────── */
.queue-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.queue-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px; transition: background 0.15s; cursor: pointer;
}
.queue-item:hover { background: rgba(255,255,255,0.04); }
.queue-item.active { border-left: 2px solid var(--accent); padding-left: 16px; }
.qi-num { width: 20px; text-align: center; font-size: 0.74rem; color: var(--text-dim); flex-shrink: 0; }
.qi-art { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--card); flex-shrink: 0; }
.qi-info { flex: 1; min-width: 0; }
.qi-title { font-size: 0.83rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qi-artist { font-size: 0.71rem; color: var(--text-sub); }
.qi-dur { font-size: 0.71rem; color: var(--text-dim); }

/* ── EQUALIZER ──────────────────────────────────────────── */
.eq-content { padding: 16px; flex: 1; overflow-y: auto; }
.eq-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.eq-pre {
  padding: 6px 14px; border-radius: 20px; font-size: 0.76rem; font-weight: 600;
  background: var(--card); color: var(--text-sub); transition: all 0.18s;
}
.eq-pre.active { background: var(--accent); color: white; }
.eq-sliders { display: flex; gap: 12px; justify-content: space-around; height: 160px; align-items: flex-end; }
.eq-band { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.eq-band input[type=range] {
  -webkit-appearance: slider-vertical; writing-mode: bt-lr;
  width: 4px; height: 120px; cursor: pointer;
  background: rgba(255,255,255,0.14); border-radius: 2px; outline: none;
}
.eq-band input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.eq-band-label { font-size: 0.63rem; color: var(--text-dim); }

/* ── SETTINGS ───────────────────────────────────────────── */

/* Profile header */
.settings-hdr-wrap {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dk) 100%);
  padding: 18px 16px 16px; flex-shrink: 0;
}
.settings-profile-card {
  display: flex; align-items: center; gap: 12px;
}
.settings-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; font-weight: 800; color: white; flex-shrink: 0;
}
.settings-profile-info { flex: 1; min-width: 0; }
.settings-profile-name { font-size: 0.95rem; font-weight: 700; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings-profile-badge { font-size: 0.7rem; color: rgba(255,255,255,0.7); margin-top: 2px; }
.settings-edit-btn {
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3);
  padding: 5px 12px; border-radius: 20px; color: white; font-size: 0.75rem;
  white-space: nowrap; flex-shrink: 0; transition: background 0.15s;
}
.settings-edit-btn:hover { background: rgba(255,255,255,0.28); }
.settings-hdr-wrap > .panel-close {
  position: absolute; top: 14px; right: 14px;
  color: rgba(255,255,255,0.8); font-size: 1rem; padding: 4px 8px;
  background: rgba(0,0,0,0.2); border-radius: 8px;
}
.settings-hdr-wrap { position: relative; }

/* Stats strip */
.settings-stats-strip {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); padding: 12px 18px;
  border-bottom: 0.5px solid var(--border); gap: 0; flex-shrink: 0;
}
.settings-stat-pill { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.settings-stat-val { font-size: 1rem; font-weight: 700; color: var(--accent); }
.settings-stat-lbl { font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.6px; }
.settings-stat-divider { width: 0.5px; height: 28px; background: var(--border); }

/* Section headers with icon */
.settings-sec-hdr { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.settings-sec-icon {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: rgba(255,255,255,0.07); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 0.82rem;
}
.settings-sec-hdr h4 {
  font-size: 0.73rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.9px; color: var(--text); margin: 0;
}

.settings-body { flex: 1; overflow-y: auto; padding: 6px 0 40px; }
.settings-section { padding: 14px 18px 16px; border-bottom: 0.5px solid var(--border); }
.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; font-size: 0.88rem; gap: 12px;
}
.setting-row span:last-child { color: var(--text-sub); font-size: 0.82rem; }
.toggle {
  -webkit-appearance: none; width: 44px; height: 26px; border-radius: 13px;
  background: var(--card); border: 2px solid var(--border); cursor: pointer;
  position: relative; transition: background 0.2s; flex-shrink: 0;
}
.toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--text-dim);
  transition: transform 0.2s, background 0.2s;
}
.toggle:checked { background: var(--green); border-color: var(--green); }
.toggle:checked::after { transform: translateX(18px); background: white; }
.btn-setting {
  width: 100%; padding: 11px 14px; background: var(--card); border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.86rem; text-align: left; margin-bottom: 8px;
  transition: background 0.18s; border: 1px solid var(--border);
}
.btn-setting:hover { background: var(--card-hover); border-color: rgba(255,255,255,0.12); }
.btn-admin-go { color: var(--accent); font-weight: 600; border-color: rgba(200,145,74,0.25); }

/* ── MODALS ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: #1C1C1E; border-radius: 22px;
  padding: 24px 20px; width: 100%; max-width: 380px;
  border: 0.5px solid rgba(255,255,255,0.12);
}
.modal-wide { max-width: 480px; }
.modal-box h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.modal-box p { font-size: 0.85rem; color: var(--text-sub); margin-bottom: 14px; }
.modal-sub { font-size: 0.82rem; color: var(--text-sub); margin-bottom: 12px; }
.modal-input {
  width: 100%; background: var(--card); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius-sm);
  padding: 11px 13px; font-size: 0.9rem; outline: none; margin-bottom: 14px;
}
.modal-input:focus { border-color: var(--accent); }
.modal-actions { display: flex; gap: 10px; margin-top: 4px; }
.modal-note { font-size: 0.71rem; color: var(--text-dim); margin-top: 10px; }

/* ── SLEEP MODAL ────────────────────────────────────────── */
.sleep-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.sleep-opt {
  padding: 12px 8px; background: var(--card); border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 600; color: var(--text); transition: all 0.18s;
}
.sleep-opt:hover { background: var(--accent); color: white; }
.sleep-opt.active { background: var(--accent); color: white; }

/* ── DUPLICATES ─────────────────────────────────────────── */
.dup-list { max-height: 300px; overflow-y: auto; margin: 12px 0; }
.dup-group { background: var(--card); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; }
.dup-group-title { padding: 8px 12px; font-size: 0.78rem; font-weight: 700; color: var(--text-sub); background: rgba(255,255,255,0.04); }
.dup-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; font-size: 0.82rem; }
.dup-item:not(:last-child) { border-bottom: 0.5px solid var(--border); }
.dup-item-info { flex: 1; min-width: 0; }
.dup-item-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.8rem; }
.dup-item-size { font-size: 0.7rem; color: var(--text-dim); }
.dup-remove { color: var(--accent); font-size: 0.75rem; font-weight: 600; padding: 4px 8px; }

/* ── BOTTOM SHEET ───────────────────────────────────────── */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 350;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.22s;
}
.sheet-overlay.open { opacity: 1; pointer-events: all; }
.bottom-sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 360;
  background: #1C1C1E; border-radius: 20px 20px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 20px);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  max-width: 500px; margin: 0 auto;
}
.bottom-sheet.open { transform: translateY(0); }
.sheet-handle { width: 38px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; margin: 10px auto; }
.sheet-track-info { padding: 4px 18px 14px; border-bottom: 0.5px solid var(--border); }
.sheet-track-info strong { display: block; font-size: 0.9rem; }
.sheet-track-info span { font-size: 0.77rem; color: var(--text-sub); }
.sheet-actions { padding: 8px 0; }
.sheet-action {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; font-size: 0.9rem; color: var(--text); width: 100%;
  transition: background 0.15s;
}
.sheet-action:hover { background: rgba(255,255,255,0.04); }
.sheet-action svg { width: 20px; height: 20px; color: var(--text-sub); }
.sheet-action.danger { color: var(--red); }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  background: var(--accent); color: white; font-weight: 700;
  padding: 11px 22px; border-radius: 24px; font-size: 0.88rem;
  transition: opacity 0.18s;
}
.btn-primary:hover { opacity: 0.88; }
.btn-secondary {
  background: var(--card); color: var(--text); font-weight: 600;
  padding: 11px 22px; border-radius: 24px; font-size: 0.88rem;
  border: 0.5px solid var(--border);
}
.btn-sm {
  padding: 6px 14px; border-radius: 20px; font-size: 0.76rem; font-weight: 700;
  background: var(--card); color: var(--accent);
  border: 1px solid rgba(250,45,72,0.3);
}
.pl-options { display: flex; flex-direction: column; gap: 4px; max-height: 250px; overflow-y: auto; }
.pl-option {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--radius-sm); cursor: pointer; transition: background 0.15s;
  font-size: 0.88rem;
}
.pl-option:hover { background: rgba(255,255,255,0.05); }

/* ── TOAST ──────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: calc(var(--nav-h) + var(--player-h) + 12px);
  left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(44,44,46,0.98); color: white; padding: 10px 18px;
  border-radius: 24px; font-size: 0.82rem; font-weight: 600;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.22s, transform 0.22s;
  max-width: 85vw; text-align: center; z-index: 999;
  backdrop-filter: blur(12px);
  border: 0.5px solid rgba(255,255,255,0.1);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── OFFLINE BAR ────────────────────────────────────────── */
.offline-bar {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 98;
  background: rgba(255,69,58,0.9); text-align: center; padding: 6px;
  font-size: 0.77rem; font-weight: 600;
}

/* ── IDENTIFY RESULT ────────────────────────────────────── */
#identifyResult { padding: 10px 0; }
.id-result-card { text-align: center; padding: 10px 0; }
.id-result-art { width: 120px; height: 120px; border-radius: 14px; margin: 0 auto 12px; background: var(--card); }
.id-result-title { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.id-result-artist { font-size: 0.85rem; color: var(--text-sub); margin-bottom: 4px; }
.id-result-album { font-size: 0.77rem; color: var(--text-dim); }

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes pulse   { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes eqBar   { from { height: 4px; } to { height: 14px; } }
@keyframes fadeIn  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin    { to { transform: rotate(360deg); } }
.fade-in  { animation: fadeIn 0.3s ease forwards; }
.spinning { animation: spin 1s linear infinite; }

/* ── SCROLLBARS ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

/* ── MEDIA QUERIES ──────────────────────────────────────── */
@media (min-width: 480px) {
  .track-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 600px) {
  .fp-content { padding: 0 36px 36px; }
  .track-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-color-scheme: light) {
  body { background: var(--bg); color: var(--text); }
}

/* ═══════════════════════════════════════════════════════════
   HOME SEARCH BAR
   ═══════════════════════════════════════════════════════════ */
.home-search-wrap {
  margin: 12px 0 8px;
}
.home-search-inner {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border-radius: 14px;
  padding: 10px 14px; border: 0.5px solid var(--border);
}
.hs-ico { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-dim); }
.home-search-inner input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 0.9rem;
}
.home-search-inner input::placeholder { color: var(--text-dim); }

/* ═══════════════════════════════════════════════════════════
   PROMOTIONS / ADVERTISE
   ═══════════════════════════════════════════════════════════ */
.promo-section { margin-bottom: 20px; }
.promo-adv-btn {
  font-size: 0.72rem; font-weight: 700; color: var(--accent);
  padding: 4px 10px; border-radius: 14px;
  border: 1px solid rgba(250,45,72,0.35);
  background: rgba(250,45,72,0.08);
}
.promo-scroll {
  display: flex; gap: 10px; overflow-x: auto;
  padding-bottom: 6px; scrollbar-width: none;
}
.promo-scroll::-webkit-scrollbar { display: none; }
.promo-card {
  flex-shrink: 0; width: 170px; background: var(--card);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform 0.15s; border: 0.5px solid var(--border);
}
.promo-card:active { transform: scale(0.96); }
.promo-card-img {
  width: 100%; height: 88px; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.promo-card-img img { width: 100%; height: 100%; object-fit: cover; }
.promo-card-ph {
  font-size: 2rem; font-weight: 800; color: var(--accent); opacity: 0.7;
}
.promo-card-body { padding: 10px 10px 12px; }
.promo-badge {
  display: inline-block; font-size: 0.62rem; font-weight: 700;
  color: var(--accent); background: rgba(250,45,72,0.12);
  border-radius: 8px; padding: 2px 7px; margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.promo-name { font-size: 0.83rem; font-weight: 700; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-desc { font-size: 0.72rem; color: var(--text-sub); line-height: 1.4; margin-bottom: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.promo-visit-btn {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  color: var(--accent); background: rgba(250,45,72,0.12);
  border-radius: 12px; padding: 4px 10px;
  text-decoration: none; transition: background 0.15s;
}
.promo-visit-btn:hover { background: rgba(250,45,72,0.22); }

/* Advertise modal */
.adv-perks { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }
.adv-perk { display: flex; align-items: flex-start; gap: 12px; }
.adv-perk-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.adv-perk strong { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 2px; }
.adv-perk p { font-size: 0.75rem; color: var(--text-sub); margin: 0; }

/* ═══════════════════════════════════════════════════════════
   FEATURE STYLES — Top Charts, Radio, TV, Lyrics, Feedback
   ═══════════════════════════════════════════════════════════ */

/* ── TOP CHARTS ─────────────────────────────────────────── */
.top-charts-section { margin-bottom: 22px; }
.charts-sub { font-size: 0.71rem; color: var(--text-dim); }
.chart-scroll {
  display: flex; gap: 10px; overflow-x: auto;
  padding-bottom: 4px; scrollbar-width: none;
}
.chart-scroll::-webkit-scrollbar { display: none; }
.chart-item {
  flex-shrink: 0; width: 112px; background: var(--card);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform 0.15s; position: relative;
}
.chart-item:active { transform: scale(0.95); }
.chart-item-art {
  width: 112px; height: 112px;
  background: linear-gradient(145deg, #2C2C2E, #1C1C1E);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; position: relative; overflow: hidden;
}
.chart-item-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.chart-rank {
  position: absolute; top: 6px; left: 6px; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 800; color: white;
}
.chart-rank.top3 { background: var(--gold); color: #000; }
.chart-item-info { padding: 8px 8px 10px; }
.chart-title { font-size: 0.74rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-artist { font-size: 0.63rem; color: var(--text-sub); margin-top: 2px; }
.chart-plays { font-size: 0.59rem; color: var(--text-dim); margin-top: 1px; }

/* ── RADIO ──────────────────────────────────────────────── */
.radio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.radio-card {
  background: var(--card); border-radius: var(--radius); padding: 16px;
  cursor: pointer; transition: all 0.18s; display: flex; flex-direction: column;
  gap: 6px; border: 1.5px solid transparent; position: relative; overflow: hidden;
}
.radio-card:hover { background: var(--card-hover); }
.radio-card.playing { border-color: var(--accent); }
.radio-card.playing::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
}
.radio-card-icon { font-size: 1.8rem; display: flex; align-items: center; justify-content: center; }
.radio-card-icon .radio-logo-img { width: 90px; height: auto; border-radius: 10px; display: block; }
.radio-card-name { font-size: 0.88rem; font-weight: 700; }
.radio-card-desc { font-size: 0.71rem; color: var(--text-sub); }
.radio-card-lang {
  font-size: 0.63rem; color: var(--text-dim); background: var(--surface);
  padding: 2px 8px; border-radius: 10px; width: fit-content;
}
.radio-live-badge { display: flex; align-items: center; gap: 4px; font-size: 0.63rem; font-weight: 700; color: var(--red); margin-top: 4px; }
.radio-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 1s infinite; flex-shrink: 0; }
.radio-now-playing {
  background: rgba(250,45,72,0.08); border: 1px solid rgba(250,45,72,0.22);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
}
.rnp-art { font-size: 2rem; flex-shrink: 0; display: flex; align-items: center; }
.rnp-art .radio-logo-img { width: 58px; height: auto; border-radius: 8px; }
.rnp-info { flex: 1; min-width: 0; }
.rnp-name { font-size: 0.92rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rnp-status { display: flex; align-items: center; gap: 5px; font-size: 0.71rem; color: var(--text-sub); margin-top: 3px; }
.rnp-stop { background: var(--accent); color: white; padding: 7px 16px; border-radius: 20px; font-size: 0.77rem; font-weight: 700; flex-shrink: 0; }

/* ── VISUALIZER ─────────────────────────────────────────── */
.viz-canvas {
  width: 100%; height: 64px; border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.35); margin-bottom: 16px; display: block;
}
.viz-toggle-btn {
  position: absolute; bottom: 10px; left: calc(6% + 4px);
  background: rgba(0,0,0,0.6); color: white; border-radius: 50%;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); transition: background 0.18s;
}
.viz-toggle-btn svg { width: 13px; height: 13px; }
.viz-toggle-btn.active { background: rgba(250,45,72,0.7); }

/* ── LYRICS ─────────────────────────────────────────────── */
.lyrics-body {
  flex: 1; overflow-y: auto; padding: 24px 20px;
  display: flex; flex-direction: column;
}
.lyrics-text {
  font-size: 1rem; line-height: 2.2; color: var(--text-sub);
  white-space: pre-wrap; text-align: center; flex: 1;
}
.lyrics-track-info { text-align: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 0.5px solid var(--border); }
.lyrics-track-info h4 { font-size: 0.9rem; font-weight: 700; }
.lyrics-track-info p { font-size: 0.77rem; color: var(--text-sub); margin-top: 3px; }

/* ── ARTIST MODAL ───────────────────────────────────────── */
.fp-artist-clickable { cursor: pointer; transition: color 0.18s; }
.fp-artist-clickable:hover { opacity: 0.75; }

/* ── DOWNLOAD ───────────────────────────────────────────── */
.dl-progress-bar { height: 2px; background: var(--border); border-radius: 1px; margin-top: 8px; overflow: hidden; }
.dl-progress-fill { height: 100%; background: var(--accent); width: 0%; transition: width 0.2s; border-radius: 1px; }

/* ── SWIPE HINT ─────────────────────────────────────────── */
.swipe-hint { text-align: center; font-size: 0.63rem; color: var(--text-dim); padding: 4px 0 0; letter-spacing: 0.5px; }

/* ── LIVE TV GRID ───────────────────────────────────────── */
.tv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tv-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; transition: all 0.18s; border: 1.5px solid transparent;
  position: relative;
}
.tv-card:hover { background: var(--card-hover); transform: scale(1.01); }
.tv-card-thumb {
  width: 100%; aspect-ratio: 16/9; background: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; position: relative; overflow: hidden;
}
.tv-card-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tv-thumb-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.2s;
}
.tv-play-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center;
}
.tv-play-btn svg { width: 17px; height: 17px; fill: #000; margin-left: 3px; }
.tv-live-pill {
  position: absolute; top: 7px; left: 7px;
  background: var(--accent); color: white;
  font-size: 0.59rem; font-weight: 800; padding: 2px 7px; border-radius: 4px;
  display: flex; align-items: center; gap: 4px; letter-spacing: 0.4px;
}
.tv-card-info { padding: 10px 12px 12px; }
.tv-card-name { font-size: 0.86rem; font-weight: 700; margin-bottom: 3px; }
.tv-card-desc { font-size: 0.71rem; color: var(--text-sub); }
.tv-card-lang { font-size: 0.63rem; color: var(--text-dim); margin-top: 4px; }

/* TV overlay (kept for reference, not currently used since we open YouTube directly) */
.tv-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: #000; display: flex; flex-direction: column;
  animation: fadeIn 0.22s ease;
}
.tv-overlay-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
  border-bottom: 0.5px solid rgba(255,255,255,0.1); flex-shrink: 0;
}
.tv-overlay-info { display: flex; align-items: center; gap: 10px; }
.tv-live-badge {
  display: flex; align-items: center; gap: 5px;
  background: var(--accent); padding: 3px 10px; border-radius: 4px;
  font-size: 0.63rem; font-weight: 800; letter-spacing: 0.8px; color: white;
}
.tv-overlay-name { font-size: 0.95rem; font-weight: 700; color: white; }
.tv-overlay-btns { display: flex; align-items: center; gap: 10px; }
.tv-yt-btn {
  background: var(--accent); color: white; padding: 6px 14px;
  border-radius: 20px; font-size: 0.74rem; font-weight: 700;
  text-decoration: none; display: flex; align-items: center; gap: 5px;
}
.tv-close-btn { color: white; font-size: 1.3rem; padding: 4px 8px; opacity: 0.8; }
.tv-close-btn:hover { opacity: 1; }
.tv-iframe-wrap { flex: 1; position: relative; background: #000; }
.tv-iframe-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.tv-overlay-footer { padding: 10px 16px; background: rgba(0,0,0,0.8); flex-shrink: 0; text-align: center; }
.tv-overlay-footer p { font-size: 0.77rem; color: rgba(255,255,255,0.5); }

/* ── FEEDBACK FAB ───────────────────────────────────────── */
.feedback-fab {
  position: fixed; right: 16px;
  bottom: calc(var(--nav-h) + var(--player-h) + 8px);
  z-index: 98;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent);
  color: white; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform 0.18s, box-shadow 0.18s;
}
.feedback-fab svg { width: 19px; height: 19px; }
.feedback-fab:hover { transform: scale(1.08); box-shadow: 0 6px 28px var(--accent-glow); }
.feedback-fab:active { transform: scale(0.94); }

/* ── STAR RATING ────────────────────────────────────────── */
.feedback-modal-box { max-width: 400px; }
.star-row { display: flex; gap: 4px; justify-content: center; margin: 4px 0 6px; }
.star-btn { font-size: 2rem; color: var(--border); transition: color 0.13s, transform 0.1s; padding: 2px 4px; }
.star-btn.active, .star-btn.hovered { color: var(--gold); }
.star-btn:active { transform: scale(1.25); }
.star-label { text-align: center; font-size: 0.77rem; color: var(--text-sub); margin-bottom: 12px; min-height: 1.2em; }

/* ── ADMIN FEEDBACK ─────────────────────────────────────── */
.feedback-list { display: flex; flex-direction: column; gap: 12px; }
.feedback-card {
  background: var(--card); border-radius: var(--radius); padding: 16px;
  border-left: 2px solid var(--accent);
}
.feedback-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.feedback-stars { color: var(--gold); font-size: 1rem; letter-spacing: 1px; }
.feedback-meta { font-size: 0.71rem; color: var(--text-dim); }
.feedback-name { font-size: 0.82rem; font-weight: 700; margin-bottom: 4px; }
.feedback-text { font-size: 0.87rem; color: var(--text-sub); line-height: 1.6; }
.feedback-del { color: var(--red); font-size: 0.74rem; font-weight: 600; padding: 4px 8px; }
.feedback-stats-row {
  display: flex; gap: 16px; margin-bottom: 20px;
  background: var(--card); border-radius: var(--radius); padding: 14px 18px;
}
.fb-stat { text-align: center; flex: 1; }
.fb-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--gold); }
.fb-stat-label { font-size: 0.71rem; color: var(--text-sub); margin-top: 3px; }

/* ── SIDEBAR DRAWER ─────────────────────────────────────── */
.app-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 270px; z-index: 500;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
.app-sidebar.open { transform: translateX(0); }
.sb-overlay {
  position: fixed; inset: 0; z-index: 499;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
}
.sb-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.sb-brand { display: flex; align-items: center; gap: 10px; }
.sb-logo { width: 32px; height: 32px; border-radius: 8px; }
.sb-brand span { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.sb-brand strong { color: var(--accent); }
.sb-close-btn {
  color: var(--text-dim); font-size: 1.1rem; padding: 6px 10px;
  border-radius: 8px; transition: background 0.15s;
}
.sb-close-btn:hover { background: var(--card-hover); }
.sb-nav-list { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; flex: 1; overflow-y: auto; }
.sb-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  color: var(--text-sub); font-size: 0.9rem; font-weight: 500;
  transition: background 0.15s, color 0.15s; text-align: left; width: 100%;
}
.sb-nav-item:hover, .sb-nav-item.active { background: var(--card); color: var(--text); }
.sb-nav-item.active svg { stroke: var(--accent); }
.sb-grp { display: flex; flex-direction: column; }
.sb-grp-hd {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  color: var(--text-sub); font-size: 0.9rem; font-weight: 500;
  transition: background 0.15s, color 0.15s; text-align: left; width: 100%;
}
.sb-grp-hd:hover { background: var(--card); color: var(--text); }
.sb-grp-hd span { flex: 1; }
.sb-chev { transition: transform 0.2s; flex-shrink: 0; }
.sb-grp.open .sb-chev { transform: rotate(180deg); }
.sb-grp-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.25s ease;
  padding-left: 26px;
}
.sb-grp.open .sb-grp-body { max-height: 220px; }
.sb-sub-item {
  display: block; width: 100%; text-align: left;
  padding: 9px 14px; border-radius: var(--radius-sm);
  color: var(--text-dim); font-size: 0.85rem;
  transition: background 0.15s, color 0.15s;
}
.sb-sub-item:hover { background: var(--card); color: var(--text); }
.sb-open-btn { margin-right: 2px; }

/* ── YOUTUBE WATCH SECTION ──────────────────────────────── */
.yt-watch-section {
  background: var(--surface);
  border-radius: var(--radius);
  margin: 12px 0 6px;
  overflow: hidden;
}
.yt-watch-hd {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  cursor: default;
}
.yt-watch-title { font-size: 0.95rem; font-weight: 700; flex: 1; }
.yt-login-hint { font-size: 0.7rem; color: var(--text-dim); }
.yt-collapse-btn {
  color: var(--text-dim); font-size: 1rem; padding: 2px 8px;
  transition: transform 0.2s;
}
.yt-watch-section.collapsed .yt-collapse-btn { transform: rotate(-90deg); }
.yt-watch-body { padding: 0 14px 14px; }
.yt-watch-section.collapsed .yt-watch-body { display: none; }
.yt-watch-row { display: flex; gap: 8px; margin-bottom: 10px; }
.yt-watch-input {
  flex: 1; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  padding: 9px 12px; font-size: 0.82rem; outline: none;
}
.yt-watch-input:focus { border-color: var(--accent); }
.yt-play-btn {
  background: var(--accent); color: #000; font-weight: 700;
  border-radius: var(--radius-sm); padding: 9px 16px; font-size: 0.82rem;
  white-space: nowrap; flex-shrink: 0;
}
.yt-watch-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.yt-pre {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; color: var(--text-sub);
  padding: 5px 12px; font-size: 0.76rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.yt-pre:hover { background: var(--card-hover); color: var(--text); border-color: var(--accent); }
.yt-watch-player-wrap {
  background: var(--card); border-radius: var(--radius-sm);
  overflow: hidden; min-height: 48px;
}
.yt-watch-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 16px; gap: 6px; color: var(--text-dim);
}
.yt-empty-ico { font-size: 2rem; opacity: 0.3; }
.yt-watch-empty p { font-size: 0.78rem; text-align: center; }
.yt-watch-frame { width: 100%; height: 220px; border: none; display: block; }
@media (min-width: 480px) { .yt-watch-frame { height: 300px; } }
.yt-watch-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0 0; font-size: 0.78rem; color: var(--text-sub);
}
.yt-stop-btn {
  background: var(--card); border-radius: 20px; color: var(--text-sub);
  padding: 4px 12px; font-size: 0.74rem; border: 1px solid var(--border);
}

/* ── SETTINGS ADDITIONS ──────────────────────────────────── */
.setting-select {
  width: 100%; background: var(--card); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius-sm);
  padding: 9px 12px; font-size: 0.85rem; outline: none;
}
.setting-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.setting-swatch {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.setting-swatch:hover { transform: scale(1.15); }
.setting-swatch.active { border-color: var(--text); transform: scale(1.15); }
.theme-opts-row { display: flex; gap: 10px; margin-top: 4px; }
.theme-opt-btn {
  flex: 1; padding: 10px 8px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--border);
  color: var(--text-sub); font-size: 0.82rem; font-weight: 600;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.theme-opt-btn.active, .theme-opt-btn:hover { background: var(--card-hover); border-color: var(--accent); color: var(--text); }

/* ════════════════════════════════════════════════════════════
   PREMIUM REDESIGN — HD Music Player Style
   ════════════════════════════════════════════════════════════ */

/* New color tokens */
:root {
  --bg:         #0d0d1a;
  --surface:    #16162a;
  --card:       #1e1e35;
  --card-hover: #26263f;
  --border:     rgba(255,255,255,0.07);
  --accent:     #a855f7;
  --accent-dk:  #7c3aed;
  --accent-glow:rgba(168,85,247,0.35);
  --gold:       #a855f7;
  --green:      #34d399;
  --red:        #f87171;
  --text:       #f1f0ff;
  --text-sub:   rgba(241,240,255,0.55);
  --text-dim:   rgba(241,240,255,0.28);
}

body {
  background: radial-gradient(ellipse at 30% 0%, rgba(124,58,237,0.18) 0%, transparent 55%),
              radial-gradient(ellipse at 80% 100%, rgba(56,189,248,0.10) 0%, transparent 50%),
              #0d0d1a;
  background-attachment: fixed;
}

/* ── HEADER redesign ──────────────────────────────────────── */
.app-header {
  background: rgba(13,13,26,0.80);
  border-bottom: 1px solid var(--border);
}
.header-title { font-weight: 800; letter-spacing: -0.5px; }

/* ── BOTTOM NAV redesign ──────────────────────────────────── */
.bottom-nav {
  background: rgba(16,16,30,0.94);
  border-top: 1px solid rgba(168,85,247,0.15);
  padding: 6px 8px 0;
  gap: 4px;
}
.nav-item {
  border-radius: 14px;
  padding: 6px 12px 8px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.nav-item svg { width: 20px; height: 20px; }
.nav-item span { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2px; }
.nav-item.active {
  background: rgba(168,85,247,0.15);
  color: #c084fc;
}
.nav-item.active::before {
  content: '';
  position: absolute; top: 0; left: 25%; right: 25%;
  height: 2px; border-radius: 0 0 3px 3px;
  background: var(--accent);
}

/* ── MINI PLAYER redesign ─────────────────────────────────── */
.mini-player-card {
  background: rgba(22,22,42,0.97);
  border: 1px solid rgba(168,85,247,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.7), 0 0 0 1px rgba(168,85,247,0.05);
  border-radius: 20px;
}
.mini-play-btn { background: var(--accent); color: #fff; }
.mini-play-btn svg { fill: #fff; }
.mini-prog-fill { background: var(--accent); opacity: 1; }

/* ── TRACK GRID cards redesign ──────────────────────────────  */
.track-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.track-card {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.18s, box-shadow 0.18s;
}
.track-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(168,85,247,0.2); }
.track-card.playing { background: rgba(168,85,247,0.12); border-color: rgba(168,85,247,0.35); }
.track-card.playing::after { background: var(--accent); height: 3px; border-radius: 0; }
.tc-art {
  background: linear-gradient(145deg, #2a1f4e, #1a1a35);
  border-radius: 18px 18px 0 0;
}
.tc-play-ico { background: var(--accent); }
.tc-play-ico svg { fill: #fff; }
.tc-info { padding: 10px 12px 13px; }
.tc-title { font-size: 0.84rem; font-weight: 700; }
.tc-artist { font-size: 0.72rem; color: var(--text-sub); }
.tc-more { background: rgba(168,85,247,0.25); }

/* ── TRACK ROW redesign ───────────────────────────────────── */
.track-row {
  border-radius: 14px;
  padding: 10px 12px;
  gap: 12px;
}
.track-row:hover { background: var(--card); }
.track-row.playing {
  background: rgba(168,85,247,0.1);
  border-left: 3px solid var(--accent);
  padding-left: 9px;
}
.tr-art {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: linear-gradient(145deg, #2a1f4e, #1a1a35);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.tr-title { font-size: 0.88rem; font-weight: 700; }
.tr-play-btn.tr-playing { background: rgba(168,85,247,0.2); color: var(--accent); }

/* ── FULL PLAYER redesign ─────────────────────────────────── */
.full-player { overflow: hidden; }
.fp-bg {
  background: linear-gradient(160deg, #1e0a3c 0%, #0d0d1a 50%, #030518 100%);
}
.fp-overlay { background: rgba(0,0,0,0.28); }
.fp-content {
  padding: 0 28px env(safe-area-inset-bottom, 20px);
  justify-content: space-between;
  min-height: 100%;
  overflow-y: hidden;
}

/* Song title / artist */
.fp-title { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.5px; }
.fp-artist { font-size: 0.9rem; color: rgba(200,170,255,0.75); font-weight: 500; }
.fp-time-display { color: rgba(200,170,255,0.7); }

/* Ring / art */
.fp-ring-container { width: min(270px, 72vw); margin-bottom: 20px; }
.fp-ring-track { stroke: rgba(168,85,247,0.18); stroke-width: 3.5; }
.fp-ring-fill { stroke: var(--accent); stroke-width: 3.5; filter: drop-shadow(0 0 6px rgba(168,85,247,0.6)); }
.fp-ring-dot { fill: #fff; filter: drop-shadow(0 0 4px var(--accent)); }
.fp-art {
  background: linear-gradient(145deg, #2a1240, #0d0d1a);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 40px rgba(168,85,247,0.2);
}

/* Play button */
.ctrl-play {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  box-shadow: 0 4px 24px rgba(168,85,247,0.5), 0 0 0 8px rgba(168,85,247,0.1);
}
.ctrl-play svg { fill: #fff; width: 28px; height: 28px; }
.ctrl-prev svg, .ctrl-next svg { width: 32px; height: 32px; }
.ctrl-secondary { color: rgba(200,170,255,0.45); }
.like-btn { color: rgba(200,170,255,0.4); }
.like-btn.liked { color: var(--accent); }
.like-btn.liked svg { fill: var(--accent); stroke: var(--accent); }

/* Extras row */
.extra-btn { color: rgba(200,170,255,0.6); font-size: 0.7rem; }
.extra-btn:hover { color: #fff; }

/* ── FILTER CHIPS redesign ────────────────────────────────── */
.filter-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  font-size: 0.78rem; font-weight: 600;
  padding: 7px 18px;
}
.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(168,85,247,0.4);
}

/* ── LIBRARY TABS redesign ────────────────────────────────── */
.lib-tabs {
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 4px;
  gap: 4px;
  border-bottom: none;
  margin-bottom: 20px;
}
.lib-tab {
  border-radius: 10px;
  border-bottom: none;
  margin-bottom: 0;
  transition: background 0.18s, color 0.18s;
  font-size: 0.78rem;
}
.lib-tab.active { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(168,85,247,0.35); }

/* ── SIDE PANELS redesign ─────────────────────────────────── */
.side-panel {
  background: #14142a;
  border-left: 1px solid rgba(168,85,247,0.15);
}
.panel-hdr {
  border-bottom: 1px solid rgba(168,85,247,0.12);
}

/* ── SETTINGS panel ───────────────────────────────────────── */
.settings-body { background: transparent; }
.settings-section { border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 18px; margin-bottom: 18px; }
.settings-section h4 { color: rgba(168,85,247,0.9); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.btn-setting {
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.2);
  color: var(--text);
  border-radius: 12px;
}
.btn-setting:hover { background: rgba(168,85,247,0.2); }
.btn-admin-go { background: rgba(168,85,247,0.18); color: #c084fc; }

/* ── UPLOAD ZONE ──────────────────────────────────────────── */
.upload-zone {
  border-color: rgba(168,85,247,0.25);
  background: rgba(168,85,247,0.04);
  border-radius: 20px;
}
.upload-zone.drag-over { border-color: var(--accent); background: rgba(168,85,247,0.1); }

/* ── MODAL / SHEETS ───────────────────────────────────────── */
.modal-box {
  background: #16162a;
  border: 1px solid rgba(168,85,247,0.15);
  border-radius: 24px;
}
.btn-primary {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  border-radius: 14px;
}
.btn-secondary { border-radius: 14px; }

/* ── SIDEBAR DRAWER redesign ──────────────────────────────── */
.app-sidebar {
  background: #12122a;
  border-right: 1px solid rgba(168,85,247,0.12);
}
.sb-grp-hd:hover, .sb-nav-item:hover, .sb-nav-item.active { background: rgba(168,85,247,0.1); }
.sb-sub-item:hover { background: rgba(168,85,247,0.08); color: #c084fc; }

/* ── YT WATCH SECTION ─────────────────────────────────────── */
.yt-watch-section { background: var(--card); border: 1px solid var(--border); border-radius: 20px; }
.yt-play-btn { background: linear-gradient(135deg, #a855f7, #7c3aed); color: #fff; }
.yt-pre { background: rgba(168,85,247,0.08); border-color: rgba(168,85,247,0.15); }
.yt-pre:hover { border-color: var(--accent); background: rgba(168,85,247,0.2); color: #fff; }

/* ── GLASS THEME ─────────────────────────────────────────── */
body.theme-glass {
  background: radial-gradient(ellipse at 20% 20%, rgba(99,102,241,0.18) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(200,145,74,0.12) 0%, transparent 50%),
              #06060e;
  background-attachment: fixed;
}
body.theme-glass .app-header,
body.theme-glass .bottom-nav,
body.theme-glass .mini-player,
body.theme-glass .app-sidebar { background: rgba(10,10,20,0.65); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border-color: rgba(255,255,255,0.07); }
body.theme-glass .card,
body.theme-glass .side-panel,
body.theme-glass .modal-box,
body.theme-glass .yt-watch-section,
body.theme-glass .upload-zone { background: rgba(255,255,255,0.04); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.07); }

/* ══════════════════════════════════════════════════════════
   YOUTUBE VANCED VIEW
══════════════════════════════════════════════════════════ */

/* Search */
.ytv-search-section { margin-bottom: 14px; }
.ytv-search-row { display: flex; gap: 8px; margin-bottom: 10px; }
.ytv-search-inner {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 0 12px;
}
.ytv-search-inner input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: .9rem; padding: 11px 0;
  font-family: inherit;
}
.ytv-search-btn {
  background: #ef4444; color: #fff; border: none; border-radius: 10px;
  padding: 0 18px; font-size: .85rem; font-weight: 700; cursor: pointer;
  height: 44px; flex-shrink: 0; transition: opacity .15s;
}
.ytv-search-btn:active { opacity: .8; }

/* Chips */
.ytv-chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.ytv-chips::-webkit-scrollbar { display: none; }
.ytv-chip {
  flex-shrink: 0; padding: 5px 13px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text-sub); font-size: .78rem; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.ytv-chip.active, .ytv-chip:hover { background: #ef4444; color: #fff; border-color: #ef4444; }

/* Player */
.ytv-player { margin-bottom: 16px; border-radius: 14px; overflow: hidden; background: #000; }
.ytv-frame-wrap { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; transition: height .3s; }
.ytv-frame { width: 100%; height: 100%; border: none; display: block; }
.ytv-frame-wrap.audio-mode { height: 0 !important; }
.ytv-bar {
  background: var(--card2); padding: 10px 14px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.ytv-bar-info { flex: 1 1 100%; min-width: 0; }
.ytv-bar-title { font-size: .85rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ytv-bar-author { font-size: .75rem; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ytv-queue-counter { font-size: .68rem; color: var(--text-dim); margin-top: 2px; }
.ytv-bar-controls { display: flex; gap: 4px; align-items: center; }
.ytv-ctrl-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--card); color: var(--text-sub); font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s; flex-shrink: 0;
}
.ytv-ctrl-btn:hover, .ytv-ctrl-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.ytv-bar-btns { display: flex; gap: 6px; flex-shrink: 0; }
.ytv-bar-btn {
  padding: 5px 10px; border-radius: 7px; font-size: .75rem; font-weight: 600;
  background: var(--card); border: 1px solid var(--border); color: var(--text-sub);
  cursor: pointer; transition: all .15s;
}
.ytv-bar-btn:hover, .ytv-bar-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.ytv-stop-btn:hover { background: #ef4444 !important; border-color: #ef4444 !important; color: #fff !important; }

/* Status */
.ytv-status { font-size: .82rem; color: var(--text-sub); padding: 8px 0; text-align: center; }

/* Results grid */
.ytv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 520px) { .ytv-grid { grid-template-columns: repeat(3, 1fr); } }
.ytv-card { background: var(--card); border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform .15s; border: 1px solid var(--border); }
.ytv-card:active { transform: scale(.96); }
.ytv-card-active { border-color: #ef4444 !important; box-shadow: 0 0 0 2px rgba(239,68,68,.35) !important; }
.ytv-thumb-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #111; overflow: hidden; }
.ytv-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.ytv-dur {
  position: absolute; bottom: 5px; right: 5px;
  background: rgba(0,0,0,.8); color: #fff;
  font-size: .68rem; font-weight: 700; padding: 2px 5px; border-radius: 4px;
}
.ytv-now-badge {
  position: absolute; top: 5px; left: 5px;
  background: #ef4444; color: #fff;
  font-size: .62rem; font-weight: 700; padding: 2px 6px; border-radius: 4px;
  letter-spacing: .03em;
}
.ytv-card-info { padding: 8px 10px 10px; }
.ytv-card-title { font-size: .78rem; font-weight: 600; color: var(--text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ytv-card-meta { font-size: .7rem; color: var(--text-sub); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ytv-empty { text-align: center; color: var(--text-sub); font-size: .85rem; padding: 32px 0; grid-column: 1/-1; }

/* Floating mini YouTube player */
.yt-float[hidden] { display: none !important; }
.yt-float {
  position: fixed; bottom: calc(var(--mini-h, 72px) + var(--nav-h, 60px) + 8px);
  left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 430px;
  background: #1a1a1a; border: 1px solid rgba(239,68,68,.4);
  border-radius: 12px; display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; z-index: 900; box-shadow: 0 8px 32px rgba(0,0,0,.5);
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateX(-50%) translateY(20px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }
.yt-float-thumb { width: 52px; height: 36px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: #333; }
.yt-float-info { flex: 1; min-width: 0; }
.yt-float-title { font-size: .78rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yt-float-author { font-size: .68rem; color: rgba(255,255,255,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yt-float-nav { background: none; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; width: 28px; height: 28px; color: rgba(255,255,255,.7); font-size: .7rem; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: all .15s; }
.yt-float-nav:hover { background: rgba(255,255,255,.15); color: #fff; }
.yt-float-open { background: #ef4444; color: #fff; border: none; border-radius: 7px; padding: 5px 10px; font-size: .73rem; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.yt-float-close { background: none; border: none; color: rgba(255,255,255,.4); font-size: 1rem; cursor: pointer; padding: 4px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   3-D OVERHAUL — depth · glass · neon · motion
   ═══════════════════════════════════════════════════════════════ */

.ambient-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse at 25% 20%, rgba(200,145,74,.14) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 75%, rgba(99,102,241,.10) 0%, transparent 60%);
  transition: background 4s ease;
  animation: ambientDrift 12s ease-in-out infinite alternate;
}
@keyframes ambientDrift {
  0%   { opacity:.7; transform: scale(1)    rotate(0deg); }
  50%  { opacity:1;  transform: scale(1.06) rotate(2deg); }
  100% { opacity:.8; transform: scale(.97)  rotate(-1deg); }
}

.app-header {
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 4px 24px rgba(0,0,0,.4);
}
.header-title {
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero {
  position: relative; margin: 0 -14px 20px;
  padding: 28px 20px 22px;
  background: linear-gradient(135deg, rgba(200,145,74,.15) 0%, rgba(99,102,241,.10) 55%, rgba(0,0,0,0) 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
}
.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(40px);
}
.hero-orb-1 {
  width: 220px; height: 220px; top: -80px; right: -60px;
  background: radial-gradient(circle, rgba(200,145,74,.35) 0%, transparent 70%);
  animation: orbFloat 7s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width: 160px; height: 160px; bottom: -60px; left: -40px;
  background: radial-gradient(circle, rgba(99,102,241,.25) 0%, transparent 70%);
  animation: orbFloat 9s ease-in-out infinite alternate-reverse;
}
@keyframes orbFloat {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-16px) scale(1.1); }
}
.hero-greeting {
  display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.6px; margin-bottom: 4px;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: .82rem; color: var(--text-sub); margin-bottom: 16px; }
.hero-quick-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-quick-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 15px; border-radius: 22px; font-size: .78rem; font-weight: 600;
  background: rgba(255,255,255,.09); color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: all .2s; cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,.3), 0 1px 0 rgba(255,255,255,.07) inset;
}
.hero-quick-btn:hover, .hero-quick-btn:active {
  background: var(--accent); border-color: transparent; color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,145,74,.4), 0 1px 0 rgba(255,255,255,.15) inset;
}

.mood-row {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 2px 0 10px; margin-bottom: 4px;
}
.mood-row::-webkit-scrollbar { display: none; }
.mood-chip {
  flex-shrink: 0; padding: 8px 16px; border-radius: 22px;
  font-size: .77rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  background: var(--card); color: var(--text-sub);
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
  transition: all .2s; user-select: none;
}
.mood-chip:hover  { background: var(--card-hover); color: var(--text); }
.mood-chip.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 20px rgba(200,145,74,.45), 0 1px 0 rgba(255,255,255,.12) inset;
}

.track-card {
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 4px 16px rgba(0,0,0,.5), 0 1px 0 rgba(255,255,255,.05) inset;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  will-change: transform;
}
.track-card:hover {
  border-color: rgba(200,145,74,.25);
  box-shadow: 0 12px 40px rgba(0,0,0,.7), 0 0 0 1px rgba(200,145,74,.3), 0 1px 0 rgba(255,255,255,.08) inset;
}
.track-card:active { transform: scale(.95) !important; }
.track-card.playing {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px var(--accent), 0 8px 32px rgba(200,145,74,.35) !important;
}
.track-card.playing::after { height: 3px; box-shadow: 0 0 8px var(--accent); }
.tc-play-ico { transform: scale(.85); transition: transform .2s; }
.track-card:hover .tc-play-ico { transform: scale(1); }

.bottom-nav {
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(36px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  border-top: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 -8px 40px rgba(0,0,0,.7), 0 -1px 0 rgba(255,255,255,.04);
}
.nav-item { transition: transform .15s; }
.nav-item:active { transform: scale(.88); }
.nav-item.active { position: relative; }
.nav-item.active::before {
  content: '';
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(200,145,74,.5);
}
.nav-item.active svg { filter: drop-shadow(0 0 6px var(--accent)) drop-shadow(0 0 16px var(--accent)); }
.nav-item.active span { color: var(--accent); text-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent); }
.nav-item.active::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -62%);
  width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 68%);
  opacity: 0.16; pointer-events: none; z-index: -1;
  animation: navIconGlow 2.2s ease-in-out infinite alternate;
}
@keyframes navIconGlow {
  from { opacity: 0.12; transform: translate(-50%, -62%) scale(0.9); }
  to   { opacity: 0.22; transform: translate(-50%, -62%) scale(1.1); }
}

/* EQ panel as bottom sheet — slides up, doesn't cover full player */
#eqPanel {
  top: auto; bottom: 0; left: 0; right: 0;
  max-height: 74vh;
  transform: translateY(100%);
  border-radius: 22px 22px 0 0;
  z-index: 350;
  box-shadow: 0 -8px 48px rgba(0,0,0,.8);
}
#eqPanel.open { transform: translateY(0); }

.mini-player {
  background: rgba(16,16,18,.92) !important;
  backdrop-filter: blur(40px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
  box-shadow: 0 -4px 40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.07) !important;
  border-top: 1px solid rgba(255,255,255,.06) !important;
}
.mini-play-btn {
  background: var(--accent) !important;
  box-shadow: 0 4px 16px rgba(200,145,74,.5), 0 0 0 1px rgba(255,255,255,.12) inset !important;
  transition: transform .15s, box-shadow .15s !important;
}
.mini-play-btn:active { transform: scale(.9) !important; }

.ctrl-play {
  box-shadow: 0 8px 32px rgba(200,145,74,.5), 0 0 0 1px rgba(255,255,255,.12) inset !important;
  transition: transform .15s, box-shadow .15s !important;
}
.ctrl-play:hover {
  transform: scale(1.06) !important;
  box-shadow: 0 12px 48px rgba(200,145,74,.7), 0 0 24px rgba(200,145,74,.4) !important;
}
.ctrl-play:active { transform: scale(.92) !important; }

.fp-art {
  box-shadow: 0 24px 80px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.08), 0 0 60px rgba(200,145,74,.12) !important;
  animation: artFloat 6s ease-in-out infinite;
}
@keyframes artFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.fp-ring-fill { filter: drop-shadow(0 0 6px var(--accent)); }

.upload-zone {
  background: linear-gradient(135deg, rgba(200,145,74,.05) 0%, rgba(99,102,241,.04) 100%);
  box-shadow: 0 4px 24px rgba(0,0,0,.3), 0 1px 0 rgba(255,255,255,.04) inset;
  transition: transform .2s, box-shadow .2s, border-color .2s, background .2s !important;
}
.upload-zone:hover {
  transform: translateY(-3px);
  border-color: rgba(200,145,74,.4) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(200,145,74,.2);
}

.filter-chip { border: 1px solid rgba(255,255,255,.07); box-shadow: 0 2px 8px rgba(0,0,0,.3); transition: all .2s !important; }
.filter-chip.active { box-shadow: 0 4px 18px rgba(200,145,74,.4), 0 0 0 1px rgba(200,145,74,.3) !important; }

.modal-box {
  box-shadow: 0 32px 100px rgba(0,0,0,.92), 0 0 0 1px rgba(255,255,255,.08) !important;
  animation: modalPop .3s cubic-bezier(.34,1.56,.64,1) !important;
}
@keyframes modalPop {
  from { transform: scale(.88) translateY(24px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);    opacity: 1; }
}

.feedback-fab {
  box-shadow: 0 8px 36px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.1) inset !important;
  transition: transform .2s, box-shadow .2s !important;
}
.feedback-fab:hover { transform: scale(1.1) translateY(-3px) !important; box-shadow: 0 16px 48px rgba(0,0,0,.7), 0 0 24px rgba(200,145,74,.3) !important; }
.feedback-fab:active { transform: scale(.92) !important; }

.ytv-card { border: 1px solid rgba(255,255,255,.07); box-shadow: 0 4px 16px rgba(0,0,0,.5); transition: transform .2s ease, box-shadow .2s ease !important; }
.ytv-card:hover { transform: translateY(-4px) scale(1.02) !important; box-shadow: 0 12px 36px rgba(0,0,0,.65), 0 0 0 1px rgba(239,68,68,.3) !important; }

.radio-card { transition: transform .2s, box-shadow .2s !important; }
.radio-card:hover { transform: translateY(-3px) scale(1.015) !important; box-shadow: 0 10px 32px rgba(0,0,0,.6) !important; }

.radio-live-dot { box-shadow: 0 0 0 0 rgba(50,215,75,.6); animation: livePulse 1.6s ease-in-out infinite !important; }
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0   rgba(50,215,75,.7); }
  70%  { box-shadow: 0 0 0 6px rgba(50,215,75,0);  }
  100% { box-shadow: 0 0 0 0   rgba(50,215,75,0);  }
}

.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0% { background-position:-200% 0; } 100% { background-position:200% 0; } }

.tc-eq-bars span { box-shadow: 0 0 4px var(--accent); }
.bottom-sheet { box-shadow: 0 -16px 60px rgba(0,0,0,.9) !important; }
.side-panel { box-shadow: -12px 0 48px rgba(0,0,0,.8) !important; }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── RADIO FULLSCREEN OVERLAY ─────────────────────── */
.radio-fullscreen {
  position: fixed; inset: 0; z-index: 500;
  background: linear-gradient(160deg, #0c0a1e 0%, #130626 45%, #071322 100%);
  flex-direction: column; align-items: center; justify-content: center;
  animation: fadeIn 0.25s ease; overflow: hidden;
}
.radio-fullscreen::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 55% at 50% 25%, rgba(139,92,246,0.22) 0%, transparent 65%);
  pointer-events: none;
}
.radio-fs-header {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(env(safe-area-inset-top,0px),12px) 18px 12px;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(10px);
}
.radio-fs-live {
  display: flex; align-items: center; gap: 6px;
  background: #e5183d; padding: 4px 12px; border-radius: 4px;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 1px; color: white;
}
.radio-fs-close { color: rgba(255,255,255,0.75); font-size: 1.4rem; padding: 2px 8px; }
.radio-fs-glow {
  position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.35) 0%, transparent 70%);
  top: 18%; pointer-events: none; animation: radioGlowPulse 3s ease-in-out infinite;
}
@keyframes radioGlowPulse {
  0%,100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.25); opacity: 1; }
}
.radio-fs-icon {
  font-size: 5.5rem; margin-bottom: 14px; position: relative; z-index: 1;
  filter: drop-shadow(0 0 32px rgba(139,92,246,0.8));
  animation: radioFloat 3.5s ease-in-out infinite;
  display: flex; align-items: center; justify-content: center;
}
.radio-fs-icon .radio-logo-img {
  width: 240px; height: auto; border-radius: 20px;
  box-shadow: 0 0 40px rgba(139,92,246,0.5), 0 12px 48px rgba(0,0,0,0.6);
}
@keyframes radioFloat {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-10px); }
}
.radio-fs-name {
  font-size: 1.7rem; font-weight: 800; color: white; margin-bottom: 6px;
  text-align: center; letter-spacing: -0.3px; position: relative; z-index: 1;
}
.radio-fs-desc {
  font-size: 0.83rem; color: rgba(255,255,255,0.5); margin-bottom: 32px;
  text-align: center; position: relative; z-index: 1;
}
.radio-eq {
  display: flex; align-items: flex-end; gap: 6px;
  height: 64px; margin-bottom: 44px; position: relative; z-index: 1;
}
.radio-eq-bar {
  width: 7px; border-radius: 4px 4px 2px 2px; transform-origin: bottom;
  background: linear-gradient(to top, #6d28d9, #a855f7, #e879f9);
  box-shadow: 0 0 12px rgba(168,85,247,0.6);
  animation: eqBounce 0.75s ease-in-out infinite alternate;
}
.radio-eq-bar:nth-child(1) { animation-duration: 0.60s; animation-delay: 0.00s; }
.radio-eq-bar:nth-child(2) { animation-duration: 0.48s; animation-delay: 0.10s; }
.radio-eq-bar:nth-child(3) { animation-duration: 0.82s; animation-delay: 0.04s; }
.radio-eq-bar:nth-child(4) { animation-duration: 0.44s; animation-delay: 0.18s; }
.radio-eq-bar:nth-child(5) { animation-duration: 0.68s; animation-delay: 0.14s; }
.radio-eq-bar:nth-child(6) { animation-duration: 0.53s; animation-delay: 0.07s; }
.radio-eq-bar:nth-child(7) { animation-duration: 0.76s; animation-delay: 0.22s; }
@keyframes eqBounce {
  from { height: 5px;  opacity: 0.6; }
  to   { height: 58px; opacity: 1;   }
}
.radio-fs-stop {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white; padding: 15px 54px; border-radius: 32px;
  font-size: 1rem; font-weight: 700; letter-spacing: 0.3px; position: relative; z-index: 1;
  box-shadow: 0 8px 32px rgba(139,92,246,0.5), 0 2px 8px rgba(0,0,0,0.5);
  transition: transform 0.15s, box-shadow 0.15s;
}
.radio-fs-stop:active { transform: scale(0.96); box-shadow: 0 4px 16px rgba(139,92,246,0.4); }

/* Header radio button — pulse dot when live */
.header-radio-btn { position: relative; }
.header-radio-btn.playing svg { stroke: #a855f7; }
.header-radio-btn.playing::after {
  content: ''; position: absolute; top: 5px; right: 5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #32d74b; box-shadow: 0 0 6px #32d74b;
  animation: livePulse 1.6s ease-in-out infinite;
}

/* Bottom-nav radio button — glow when live */
.nav-item[data-view="radio"].radio-active svg { stroke: #a855f7; }
.nav-item[data-view="radio"].radio-active span { color: #a855f7; }

/* ══════════════════════════════════════════════════════════════
   HEADER — MUSIC PLAYING GLOW
   ══════════════════════════════════════════════════════════════ */
.app-header { position: relative; overflow: visible; }
.app-header.music-playing {
  border-bottom-color: var(--accent) !important;
  box-shadow: 0 0 24px var(--accent-glow), 0 1px 0 rgba(255,255,255,.05), 0 4px 24px rgba(0,0,0,.5) !important;
}
.app-header.music-playing::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-dk), var(--accent), transparent);
  background-size: 200% 100%;
  animation: headerBeat 1.8s linear infinite;
  pointer-events: none;
}
@keyframes headerBeat {
  0%   { background-position: 200% 0; opacity: 0.8; }
  50%  { opacity: 1; }
  100% { background-position: -200% 0; opacity: 0.8; }
}

/* ══════════════════════════════════════════════════════════════
   THEMES — Neon, Sunset, Ocean, Forest, Galaxy
   ══════════════════════════════════════════════════════════════ */

/* NEON */
body.theme-neon {
  --bg: #030d1a; --surface: #061424; --card: #0a1e30; --card-hover: #112840;
  --accent: #00f0ff; --accent-dk: #00b8cc; --accent-glow: rgba(0,240,255,0.30);
  --text: #e0f8ff; --text-sub: rgba(224,248,255,0.55); --text-dim: rgba(224,248,255,0.28);
  background:
    radial-gradient(ellipse at 10% 30%, rgba(0,240,255,.12) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 70%, rgba(180,0,255,.10) 0%, transparent 55%),
    #030d1a;
  background-attachment: fixed;
}
body.theme-neon .app-header,
body.theme-neon .bottom-nav { background: rgba(3,13,26,0.80); border-color: rgba(0,240,255,.15); }
body.theme-neon .track-card { border-color: rgba(0,240,255,.12); }
body.theme-neon .nav-item.active::before { box-shadow: 0 0 12px #00f0ff, 0 0 24px rgba(0,240,255,.5); }

/* SUNSET */
body.theme-sunset {
  --bg: #0f0500; --surface: #1a0800; --card: #2a0f02; --card-hover: #3a1803;
  --accent: #ff6b00; --accent-dk: #cc5500; --accent-glow: rgba(255,107,0,0.30);
  --text: #fff5ee; --text-sub: rgba(255,245,238,0.55); --text-dim: rgba(255,245,238,0.28);
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,107,0,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(255,0,80,.12) 0%, transparent 55%),
    #0f0500;
  background-attachment: fixed;
}
body.theme-sunset .app-header,
body.theme-sunset .bottom-nav { background: rgba(15,5,0,0.82); border-color: rgba(255,107,0,.15); }

/* OCEAN */
body.theme-ocean {
  --bg: #00060f; --surface: #000e1f; --card: #00182e; --card-hover: #00233d;
  --accent: #0080ff; --accent-dk: #0060cc; --accent-glow: rgba(0,128,255,0.30);
  --text: #e8f4ff; --text-sub: rgba(232,244,255,0.55); --text-dim: rgba(232,244,255,0.28);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0,128,255,.14) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(0,200,200,.10) 0%, transparent 55%),
    #00060f;
  background-attachment: fixed;
}
body.theme-ocean .app-header,
body.theme-ocean .bottom-nav { background: rgba(0,6,15,0.82); border-color: rgba(0,128,255,.15); }

/* FOREST */
body.theme-forest {
  --bg: #010d04; --surface: #031809; --card: #062510; --card-hover: #0a3518;
  --accent: #00c853; --accent-dk: #009640; --accent-glow: rgba(0,200,83,0.30);
  --text: #e8ffe4; --text-sub: rgba(232,255,228,0.55); --text-dim: rgba(232,255,228,0.28);
  background:
    radial-gradient(ellipse at 25% 25%, rgba(0,200,83,.12) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 75%, rgba(0,100,30,.14) 0%, transparent 55%),
    #010d04;
  background-attachment: fixed;
}
body.theme-forest .app-header,
body.theme-forest .bottom-nav { background: rgba(1,13,4,0.82); border-color: rgba(0,200,83,.15); }

/* GALAXY */
body.theme-galaxy {
  --bg: #05000f; --surface: #0a0020; --card: #120030; --card-hover: #1c0040;
  --accent: #9b59ff; --accent-dk: #7a3fcc; --accent-glow: rgba(155,89,255,0.30);
  --text: #f5f0ff; --text-sub: rgba(245,240,255,0.55); --text-dim: rgba(245,240,255,0.28);
  background:
    radial-gradient(ellipse at 15% 15%, rgba(155,89,255,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(0,200,255,.10) 0%, transparent 55%),
    #05000f;
  background-attachment: fixed;
}
body.theme-galaxy .app-header,
body.theme-galaxy .bottom-nav { background: rgba(5,0,15,0.85); border-color: rgba(155,89,255,.18); }
body.theme-galaxy .nav-item.active::before { background: var(--accent); box-shadow: 0 0 14px #9b59ff, 0 0 28px rgba(155,89,255,.5); }

/* Theme button layout */
.theme-opts-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.theme-opt-btn {
  flex: none !important;
  padding: 7px 14px; border-radius: 20px; font-size: 0.77rem; font-weight: 600;
  background: var(--card); color: var(--text-sub); border: 1.5px solid transparent;
  transition: all 0.18s; white-space: nowrap;
}
.theme-opt-btn.active { background: var(--accent) !important; color: #fff !important; border-color: transparent; }
.theme-opt-btn:hover { border-color: var(--accent); color: var(--text); }

/* ══════════════════════════════════════════════════════════════
   DJ FULL PLAYER — Vinyl & Waveform
   ══════════════════════════════════════════════════════════════ */

/* Vinyl overlay on album art */
.fp-vinyl {
  position: absolute; inset: 8%; border-radius: 50%;
  pointer-events: none; opacity: 0;
  transition: opacity 0.4s;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.fp-vinyl.spinning { opacity: 1; }
.fp-vinyl-grooves {
  position: absolute; inset: 0; border-radius: 50%;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    rgba(0,0,0,0)    0px,
    rgba(0,0,0,0)    8px,
    rgba(255,255,255,0.04) 9px,
    rgba(0,0,0,0)    10px
  );
  animation: vinylSpin 2.2s linear infinite;
}
.fp-vinyl.spinning .fp-vinyl-grooves { animation-play-state: running; }
.fp-vinyl:not(.spinning) .fp-vinyl-grooves { animation-play-state: paused; }
.fp-vinyl-label {
  width: 32%; height: 32%; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(20,20,20,0.9), rgba(40,40,40,0.7));
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
  position: relative; z-index: 1;
}
.fp-vinyl-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* DJ waveform bars — heights driven by JS/AnalyserNode in real-time */
/* ── DJ Visualizer Scene ──────────────────────────────────── */
.fp-dj-scene {
  width: 100%; margin-bottom: 16px; padding: 0 8px;
  opacity: 0; transition: opacity 0.4s;
  position: relative;
  will-change: filter;
}
.fp-dj-scene.active { opacity: 1; }

/* Peak-hold dots — sit inside the wave, one per bar slot */
.fp-dj-peaks {
  display: flex; align-items: flex-end; gap: 3px;
  height: 64px; width: 100%;
  position: absolute; bottom: 0; left: 0; right: 0;
  pointer-events: none; z-index: 2;
}
.fp-dj-peak {
  flex: 1; height: 2px; border-radius: 2px;
  will-change: transform, background, box-shadow;
  transform: translateY(0);
  transition: transform 0.05s linear;
}

/* Main bars — align to bottom */
.fp-dj-wave {
  display: flex; align-items: flex-end; gap: 3px;
  height: 64px; width: 100%;
  position: relative; z-index: 1;
}
.fp-dj-bar {
  flex: 1; border-radius: 3px 3px 1px 1px;
  height: 3px; min-height: 3px;
  will-change: height, background, box-shadow;
}

/* Mirror reflection below — flipped, faded */
.fp-dj-reflect {
  display: flex; align-items: flex-start; gap: 3px;
  height: 24px; width: 100%;
  transform: scaleY(-1);
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6) 100%);
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6) 100%);
}
.fp-dj-reflect .fp-dj-bar {
  border-radius: 1px 1px 3px 3px;
  will-change: height, background, box-shadow;
}

/* Beat pulse on album art ring — JS adds/removes class on each beat */
@keyframes beat-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.042); filter: brightness(1.18) drop-shadow(0 0 20px var(--accent-glow)); }
  100% { transform: scale(1); }
}
.fp-ring-container.beat-pulse { animation: beat-pulse 0.32s cubic-bezier(0.22,1,0.36,1); }

/* Kill-code PIN overlay */
[data-kill-overlay] { position: fixed; inset: 0; z-index: 10000; }
.kc-backdrop {
  width: 100%; height: 100%; background: rgba(0,0,0,0.93);
  display: flex; align-items: center; justify-content: center;
}
.kc-card {
  background: linear-gradient(160deg, #08080f 0%, #0d0d1e 100%);
  border: 1px solid rgba(0,255,136,0.35); border-radius: 20px;
  padding: 36px 28px; width: 88%; max-width: 320px;
  text-align: center; box-shadow: 0 0 60px rgba(0,255,136,0.1), 0 24px 48px rgba(0,0,0,0.8);
}
.kc-glyph {
  font-size: 2.8rem; color: #00ff88; margin-bottom: 8px;
  animation: kc-glow 2s ease-in-out infinite;
}
@keyframes kc-glow {
  0%,100% { text-shadow: 0 0 16px rgba(0,255,136,0.5); }
  50%     { text-shadow: 0 0 36px rgba(0,255,136,0.95); }
}
.kc-title {
  font-size: 0.68rem; font-weight: 900; letter-spacing: 4px;
  color: #00ff88; text-transform: uppercase; margin-bottom: 4px;
}
.kc-sub { font-size: 0.78rem; color: rgba(255,255,255,0.38); margin-bottom: 24px; }
.kc-input {
  width: 100%; background: rgba(0,255,136,0.06); border: 1.5px solid rgba(0,255,136,0.3);
  border-radius: 10px; padding: 14px; color: #00ff88; font-size: 1.5rem;
  letter-spacing: 10px; text-align: center; margin-bottom: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.kc-input:focus { outline: none; border-color: #00ff88; box-shadow: 0 0 18px rgba(0,255,136,0.18); }
.kc-msg { font-size: 0.75rem; min-height: 20px; margin-bottom: 16px; }
.kc-btns { display: flex; gap: 10px; }
.kc-cancel {
  flex: 1; padding: 12px; background: transparent;
  border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.45);
  border-radius: 10px; font-weight: 600; font-size: 0.88rem;
}
.kc-submit {
  flex: 1; padding: 12px; background: #00ff88; border: none;
  color: #000; border-radius: 10px; font-weight: 900; letter-spacing: 1px;
  font-size: 0.88rem; transition: background 0.15s, transform 0.1s;
}
.kc-submit:active { transform: scale(0.97); background: #00cc6a; }

/* DJ label on full player */
.fp-dj-label {
  font-size: 0.56rem; font-weight: 800; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase; opacity: 0.6;
  margin-bottom: 4px; align-self: flex-start;
}

/* Sidebar settings button */
.sb-settings-btn { border-top: 0.5px solid var(--border); margin-top: 8px; padding-top: 12px; }

/* ── UPDATE AVAILABLE BANNER ──────────────────────────── */
.update-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: linear-gradient(90deg, #10b981, #059669);
  color: #fff; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: .85rem; font-weight: 600;
}
.update-banner span { flex: 1; }
.update-now-btn {
  background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.4);
  color: #fff; padding: 5px 14px; border-radius: 20px; font-weight: 700;
  font-size: .8rem; cursor: pointer; white-space: nowrap;
}
.update-now-btn:hover { background: rgba(255,255,255,.4); }
.update-dismiss-btn {
  background: none; border: none; color: rgba(255,255,255,.7);
  font-size: 1.1rem; cursor: pointer; padding: 2px 6px; line-height: 1;
}
.update-dismiss-btn:hover { color: #fff; }

/* ── COMMUNITY VIEW ───────────────────────────────────── */
.community-hd {
  padding: 8px 0 4px;
}
.community-submit-btn {
  background: linear-gradient(135deg, var(--accent-dk), var(--accent));
  color: #fff; border: none; border-radius: 24px;
  padding: 10px 22px; font-size: .88rem; font-weight: 700;
  cursor: pointer; margin-bottom: 20px;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: transform .15s, box-shadow .15s;
}
.community-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); }
.community-submit-btn:active { transform: scale(.97); }

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.community-post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.community-post-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.community-post-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; display: block;
}
.community-post-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.community-post-title {
  font-size: .95rem; font-weight: 700; margin-bottom: 6px;
  color: var(--text); line-height: 1.3;
}
.community-post-text {
  font-size: .8rem; color: var(--text-sub); line-height: 1.55;
  flex: 1; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; margin-bottom: 10px;
}
.community-post-foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 6px;
}
.community-post-author {
  font-size: .72rem; color: var(--text-dim); font-weight: 600;
}
.community-post-tags {
  display: flex; gap: 4px; flex-wrap: wrap;
}
.community-tag {
  font-size: .65rem; background: var(--accent-glow); color: var(--accent);
  border-radius: 12px; padding: 2px 8px; font-weight: 600;
}
.community-post-date { font-size: .68rem; color: var(--text-dim); }

/* Community modal */
.community-modal-box { max-width: 440px; }
.community-modal-box h3 { margin-bottom: 4px; }
.community-modal-box .modal-sub { margin-bottom: 14px; }

/* ── ARTIST / ALBUM FILTER SELECTS ──────────────────────── */
.filter-select {
  padding: 5px 10px; border-radius: 20px; font-size: 0.74rem; font-weight: 600;
  background: var(--card); color: var(--text-sub); border: none;
  white-space: nowrap; cursor: pointer; flex-shrink: 0;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,.4)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  padding-right: 24px;
  max-width: 130px;
  overflow: hidden; text-overflow: ellipsis;
}
.filter-select:focus { outline: none; background-color: var(--card-hover); }
option { background: #1C1C1E; color: #fff; }

/* ── DELETE FILTERED BUTTON ──────────────────────────────── */
.stat-del-filtered-btn {
  background: rgba(250,45,72,0.18) !important; color: #ff6b6b !important;
  margin-left: 4px;
}

/* ── ALBUM ART EDIT BUTTON ───────────────────────────────── */
.lib-album-art { position: relative; }
.album-art-edit-btn {
  position: absolute; bottom: 6px; right: 6px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,0.68); color: #fff; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.18s; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.15);
}
.lib-album-card:hover .album-art-edit-btn,
.lib-album-card:focus-within .album-art-edit-btn { opacity: 1; }
/* Always visible on touch devices */
@media (hover: none) { .album-art-edit-btn { opacity: 0.75; } }

/* ── USERNAME MODAL ──────────────────────────────────────── */
#usernameModal .modal-box { text-align: left; }

/* ── SETTINGS PROFILE SECTION ────────────────────────────── */
#settingUsername { color: var(--accent); font-weight: 600; }


/* ── SETTINGS ABOUT SECTION ──────────────────────────────── */
.about-desc-text {
  font-size: .82rem; color: var(--text-sub);
  line-height: 1.6; margin-bottom: 10px;
}
.about-contacts {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px;
}
.about-contact-link {
  font-size: .82rem; color: var(--accent); text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}
.about-contact-link:hover { opacity: .8; }
.about-socials-row {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px;
}
.about-social-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 99px;
  background: var(--surface2); border: 1px solid rgba(255,255,255,0.1);
  font-size: .78rem; color: var(--text-sub); text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.about-social-btn:hover { background: var(--accent); color: #fff; }
.about-empty-text { font-size: .82rem; color: var(--text-sub); margin: 0; }

/* ── PREMIUM LOCK BADGE ───────────────────────────────────── */
.tc-premium-lock {
  font-size: .75em; vertical-align: middle; margin-left: 3px; opacity: .7;
}

/* ── SPONSOR BANNER ───────────────────────────────────────── */
.sponsor-banner {
  margin: 0 0 14px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
}
.sponsor-banner-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  color: var(--text); text-decoration: none;
  transition: background .15s;
}
.sponsor-banner-link:hover { background: rgba(255,255,255,.05); }
.sp-logo { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; flex-shrink: 0; }
.sp-emoji { font-size: 1.6rem; flex-shrink: 0; }
.sp-info { flex: 1; min-width: 0; }
.sp-label { font-size: .62rem; text-transform: uppercase; letter-spacing: .8px; color: var(--accent); font-weight: 700; }
.sp-name { font-size: .88rem; font-weight: 700; margin-top: 1px; }
.sp-desc { font-size: .75rem; color: var(--text-sub); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-arrow { font-size: .9rem; color: var(--text-sub); flex-shrink: 0; }

/* ── DONATE LINKS (settings) ──────────────────────────────── */
.donate-links-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
}
.donate-link-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 16px; border-radius: 99px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: var(--text); font-size: .82rem; font-weight: 600;
  text-decoration: none; transition: background .15s, border-color .15s;
}
.donate-link-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── BIO LINKS (settings) ────────────────────────────────── */
.settings-bio-links { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.settings-bio-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07);
  color: var(--text); text-decoration: none;
  transition: background .15s, border-color .15s;
}
.settings-bio-link:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); }
.sbl-emoji { font-size: 1.2rem; flex-shrink: 0; width: 28px; text-align: center; }
.sbl-info { flex: 1; min-width: 0; }
.sbl-title { font-size: .875rem; font-weight: 600; }
.sbl-desc { font-size: .72rem; color: var(--text-sub); margin-top: 1px; }
.sbl-arrow { font-size: .8rem; color: var(--text-sub); flex-shrink: 0; }

/* ── FULL PLAYER META ROW (position + up-next) ───────────── */
.fp-meta-row {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 4px; flex-wrap: wrap;
}
.fp-position {
  font-size: .72rem; color: rgba(255,255,255,0.35);
  font-variant-numeric: tabular-nums;
}
.fp-up-next {
  font-size: .72rem; color: rgba(255,255,255,0.4);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 220px;
}

/* ── KEYBOARD SHORTCUTS ──────────────────────────────────── */
.kbd-help-btn {
  position: fixed; bottom: 88px; right: 14px; z-index: 90;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.45); font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s; cursor: pointer;
}
.kbd-help-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.kbd-grid {
  display: grid; grid-template-columns: auto 1fr;
  gap: 10px 16px; align-items: center;
}
.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px; padding: 3px 9px; font-size: .75rem;
  font-family: monospace; color: var(--text); white-space: nowrap; min-width: 36px;
}


/* ════════════════════════════════════════════════════════════════
   APP FEATURES — 10 New Additions
   ════════════════════════════════════════════════════════════════ */

/* ── Recently Played ──────────────────────────────────────── */
.recently-played-section { padding: 0 16px; margin-bottom: 20px; }
.recent-scroll {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: none;
}
.recent-scroll::-webkit-scrollbar { display: none; }
.recent-card {
  flex: 0 0 104px; cursor: pointer; border-radius: var(--radius);
  transition: transform 0.15s; -webkit-tap-highlight-color: transparent;
}
.recent-card:hover, .recent-card:active { transform: scale(1.04); }
.recent-art {
  width: 104px; height: 104px; border-radius: var(--radius);
  overflow: hidden; background: var(--card);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px; font-size: 2.2rem;
}
.recent-art img { width: 100%; height: 100%; object-fit: cover; }
.recent-title {
  font-size: .76rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.recent-artist {
  font-size: .68rem; color: var(--text-sub);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Share Sheet ──────────────────────────────────────────── */
.share-sheet-box { max-width: 380px; }
.share-apps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px;
}
.share-app-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  cursor: pointer; transition: background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.share-app-btn:hover, .share-app-btn:active {
  background: rgba(255,255,255,.12); transform: scale(1.04);
}
.share-ico { font-size: 1.7rem; line-height: 1; }
.share-app-btn > span:last-child { font-size: .68rem; color: var(--text-sub); }

/* ── Download / Saved Offline Badge ──────────────────────── */
.tc-saved-badge {
  position: absolute; bottom: 5px; left: 5px; z-index: 3;
  background: var(--green); color: #fff;
  font-size: .52rem; font-weight: 800; padding: 2px 6px;
  border-radius: 5px; text-transform: uppercase; letter-spacing: .04em;
  pointer-events: none;
}

/* ── Playlist Management ──────────────────────────────────── */
.pl-card { position: relative; }
.pl-card-opts {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  background: rgba(0,0,0,0.55); border-radius: 50%;
  width: 26px; height: 26px; display: flex; align-items: center;
  justify-content: center; font-size: .75rem; color: var(--text);
  cursor: pointer; border: none;
}
.pl-card-opts:hover { background: rgba(0,0,0,0.8); }
.pl-detail-hdr {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; margin-bottom: 12px;
}
.pl-detail-art {
  width: 72px; height: 72px; border-radius: 12px;
  background: var(--card); display: flex; align-items: center;
  justify-content: center; font-size: 2rem; flex-shrink: 0;
}
.pl-detail-name { font-size: 1.05rem; font-weight: 700; }
.pl-detail-meta { font-size: .75rem; color: var(--text-sub); margin-top: 3px; }

/* ── Sort Select ─────────────────────────────────────────── */
#sortSelect { max-width: 132px; }

/* ── Queue: Remove + Clear ───────────────────────────────── */
.queue-clear-btn {
  display: block; width: calc(100% - 32px); margin: 10px 16px 4px;
  padding: 9px; border-radius: 10px;
  background: rgba(255,69,58,0.1); color: var(--red);
  font-size: .82rem; font-weight: 600; text-align: center;
  border: 1px solid rgba(255,69,58,0.2); cursor: pointer;
  transition: background .15s;
}
.queue-clear-btn:hover { background: rgba(255,69,58,0.22); }
.qi-remove {
  color: var(--text-dim); font-size: .85rem; padding: 4px 8px;
  flex-shrink: 0; transition: color .15s; cursor: pointer;
  background: none; border: none;
}
.qi-remove:hover { color: var(--red); }

/* ── New Releases Badge ───────────────────────────────────── */
.new-releases-badge {
  background: var(--red); color: #fff; border-radius: 99px;
  font-size: .58rem; font-weight: 800; padding: 2px 6px;
  margin-left: 5px; vertical-align: middle;
}
