:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --surface2: #17171f;
  --surface3: #1e1e28;
  --border: rgba(255,255,255,0.07);
  --accent: #c084fc;
  --accent2: #818cf8;
  --accent3: #38bdf8;
  --text: #f0f0f8;
  --text2: #9090b0;
  --text3: #606080;
  --danger: #f87171;
  --success: #4ade80;
  --radius: 16px;
  --player-h: 88px;
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
body {
  font-family: 'Syne', sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  height: 100dvh;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 10% -10%, rgba(129,140,248,.2), transparent 35%),
              radial-gradient(circle at 90% 0%, rgba(56,189,248,.14), transparent 28%);
  pointer-events: none;
  z-index: -1;
}
/* ─── SCREENS ─────────────────────────────────── */
.screen { 
  position: absolute; inset: 0;
  display: none; flex-direction: column;
  transition: opacity .25s, transform .25s;
}
.screen.active { display: flex; }

/* ─── LOGIN SCREEN ───────────────────────────── */
#login-screen {
  background: radial-gradient(ellipse 120% 80% at 50% 110%, #2e1065 0%, #0a0a0f 60%);
  justify-content: center; align-items: center;
  padding: 32px 24px;
  gap: 0;
}

.login-logo {
  font-size: 42px; font-weight: 800; letter-spacing: -2px;
  background: linear-gradient(135deg, #c084fc 0%, #818cf8 50%, #38bdf8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.login-sub {
  font-family: 'DM Mono', monospace;
  font-size: 12px; color: var(--text3); letter-spacing: 2px;
  margin-bottom: 48px; text-transform: uppercase;
}

.login-card {
  width: 100%; max-width: 360px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 24px;
  backdrop-filter: blur(20px);
}

.field-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px; color: var(--text3); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 8px;
}
.field-wrap { position: relative; margin-bottom: 16px; }
.field-wrap input {
  width: 100%;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,132,252,0.15);
}
.field-wrap input::placeholder { color: var(--text3); }

.field-hint {
  font-family: 'DM Mono', monospace;
  font-size: 10px; color: var(--text3);
  margin-top: 6px; margin-bottom: 16px;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  border: none; border-radius: 12px;
  padding: 16px; color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 15px; font-weight: 700;
  letter-spacing: .5px; cursor: pointer;
  transition: opacity .15s, transform .1s;
  position: relative; overflow: hidden;
}
.btn-primary:active { transform: scale(.98); opacity: .9; }
.btn-primary.loading::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,.3);
}

.btn-install {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 24px;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.btn-install:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--accent);
}

.error-msg {
  background: rgba(248,113,113,0.12);
  border: 1px solid rgba(248,113,113,0.3);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px; color: var(--danger);
  margin-top: 14px; display: none;
}

/* ─── MAIN APP ───────────────────────────────── */
#app-screen { background: var(--bg); }

.ambient-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  pointer-events: none;
  animation: float-glow 9s ease-in-out infinite;
}

.ambient-glow-1 {
  top: -120px;
  right: -90px;
  background: rgba(167,139,250,0.75);
}

.ambient-glow-2 {
  bottom: 90px;
  left: -130px;
  background: rgba(56,189,248,0.6);
  animation-delay: -4s;
}

@keyframes float-glow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(0, 12px) scale(1.08); }
}

/* ─── TOP NAV ────────────────────────────────── */
.topbar {
  display: flex; align-items: center;
  padding: 16px 20px 12px;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.topbar-title { 
  font-size: 22px; font-weight: 800; letter-spacing: -1px;
  flex: 1;
}
.topbar-title span { 
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.icon-btn {
  width: 38px; height: 38px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
  flex-shrink: 0;
}
.icon-btn:active { background: var(--surface3); }
.icon-btn svg { width: 18px; height: 18px; stroke: var(--text2); }

/* ─── TABS ───────────────────────────────────── */
.tabs {
  display: flex; gap: 4px;
  padding: 0 20px 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.tab {
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13px; font-weight: 600;
  color: var(--text3);
  cursor: pointer;
  transition: all .2s;
  border: 1px solid transparent;
}
.tab.active {
  background: var(--surface3);
  border-color: var(--border);
  color: var(--text);
}

/* ─── SCROLL CONTAINER ───────────────────────── */
.scroll-area {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 0 20px;
  padding-bottom: calc(var(--player-h) + 80px);
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 2;
}
.scroll-area::-webkit-scrollbar { display: none; }

/* ─── SECTION HEADER ─────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; margin-top: 8px;
}

.home-hero {
  margin: 6px 0 20px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(150deg, rgba(124,58,237,.35), rgba(79,70,229,.2) 45%, rgba(15,23,42,.65));
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 16px 45px rgba(12,12,20,.45);
}

.home-hero-sub {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(240,240,248,.72);
  margin-bottom: 8px;
}

.home-hero-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.home-hero-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.home-pill {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(15,23,42,.35);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: rgba(240,240,248,.88);
  letter-spacing: .5px;
}
.section-title {
  font-size: 16px; font-weight: 700; letter-spacing: -.3px;
}
.section-more {
  font-family: 'DM Mono', monospace;
  font-size: 10px; color: var(--accent); letter-spacing: 1px;
  text-transform: uppercase; cursor: pointer;
}

/* ─── ALBUM CARDS ────────────────────────────── */
.album-row {
  display: flex; gap: 14px;
  overflow-x: auto; overflow-y: hidden;
  margin: 0 -20px; padding: 4px 20px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.album-row::-webkit-scrollbar { display: none; }

.album-card {
  flex-shrink: 0; width: 140px; cursor: pointer;
}
.album-art {
  width: 140px; height: 140px;
  border-radius: 12px;
  overflow: hidden; position: relative;
  background: var(--surface3);
  margin-bottom: 8px;
}
.album-art img { width: 100%; height: 100%; object-fit: cover; }
.album-art-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.album-play-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.album-card:active .album-play-overlay { opacity: 1; }
.album-play-overlay svg { width: 32px; height: 32px; fill: #fff; }
.album-name { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--text); 
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-artist { font-size: 11px; color: var(--text2); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── SONG LIST ──────────────────────────────── */
.song-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
  border-radius: 10px;
  padding: 10px 8px;
  margin: 0 -8px;
}
.song-item:active { background: var(--surface2); }
.song-item.playing .song-name { color: var(--accent); }

.song-thumb {
  width: 48px; height: 48px; border-radius: 8px;
  background: var(--surface3);
  flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.song-thumb img { width: 100%; height: 100%; object-fit: cover; }
.song-info { flex: 1; min-width: 0; }
.song-name { font-size: 14px; font-weight: 600; 
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-meta { font-size: 12px; color: var(--text2); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-dur { 
  font-family: 'DM Mono', monospace;
  font-size: 11px; color: var(--text3); flex-shrink: 0;
}

/* Playing wave animation */
.wave-anim {
  display: flex; align-items: flex-end; gap: 2px;
  height: 16px; flex-shrink: 0;
}
.wave-anim span {
  width: 3px; background: var(--accent); border-radius: 2px;
  animation: wave .8s ease-in-out infinite;
}
.wave-anim span:nth-child(2) { animation-delay: .15s; }
.wave-anim span:nth-child(3) { animation-delay: .3s; }
@keyframes wave {
  0%,100% { height: 4px; }
  50% { height: 14px; }
}

/* ─── ARTIST CHIPS ───────────────────────────── */
.artist-row {
  display: flex; gap: 12px;
  overflow-x: auto;
  margin: 0 -20px; padding: 4px 20px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.artist-row::-webkit-scrollbar { display: none; }
.artist-chip {
  flex-shrink: 0; width: 80px;
  text-align: center; cursor: pointer;
}
.artist-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface3), var(--surface2));
  margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; border: 2px solid var(--border);
  overflow: hidden;
}
.artist-avatar img { width: 100%; height: 100%; object-fit: cover; }
.artist-chip-name { font-size: 11px; font-weight: 600; 
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── BOTTOM PLAYER ──────────────────────────── */
.player-bar {
  position: fixed; bottom: 60px; left: 8px; right: 8px;
  height: var(--player-h);
  background: rgba(17,17,24,0.9);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex; align-items: center;
  padding: 0 16px; gap: 12px;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04);
  cursor: pointer;
  transition: transform .2s;
}
.player-bar:active { transform: scale(.99); }
.player-bar.hidden { display: none; }

.player-thumb {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--surface3); flex-shrink: 0;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  position: relative;
}
.player-thumb img { width: 100%; height: 100%; object-fit: cover; }
.player-thumb-spin {
  animation: spin-album 8s linear infinite;
  animation-play-state: paused;
}
.player-thumb-spin.playing { animation-play-state: running; }
@keyframes spin-album { to { transform: rotate(360deg); } }

.player-info { flex: 1; min-width: 0; }
.player-title { font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { font-size: 12px; color: var(--text2); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.player-progress {
  position: absolute; bottom: 0; left: 16px; right: 16px;
  height: 2px; background: var(--surface3); border-radius: 1px;
  overflow: hidden;
}
.player-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 1px; width: 0%;
  transition: width .5s linear;
}

.player-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ctrl-btn {
  width: 34px; height: 34px;
  border: none; background: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 50%;
  transition: background .15s;
}
.ctrl-btn:active { background: var(--surface3); }
.ctrl-btn svg { stroke: var(--text); }
.ctrl-btn.play-btn {
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 50%;
}
.ctrl-btn.play-btn:active { background: #a855f7; }
.ctrl-btn.play-btn svg { stroke: #fff; fill: #fff; }

/* ─── BOTTOM NAV ─────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 101;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; cursor: pointer;
  transition: color .15s;
}
.nav-item svg { width: 20px; height: 20px; stroke: var(--text3); transition: stroke .15s; }
.nav-item span { font-size: 9px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--text3); font-family: 'DM Mono', monospace; }
.nav-item.active svg { stroke: var(--accent); }
.nav-item.active span { color: var(--accent); }

/* ─── FULL PLAYER SCREEN ─────────────────────── */
#player-screen {
  background: var(--bg);
  z-index: 200;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.32,.72,0,1);
}
#player-screen.open {
  display: flex;
  transform: translateY(0);
}

.player-full-header {
  padding: 20px 20px 0;
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}
.drag-handle {
  width: 40px; height: 4px; background: var(--border);
  border-radius: 2px; margin: 0 auto 16px;
  flex-shrink: 0;
  cursor: pointer;
}
.pull-bar { padding: 12px 0 0; display: flex; justify-content: center; flex-shrink: 0; }

.player-full-art {
  flex: 0 0 auto;
  margin: 16px auto;
  width: calc(100vw - 64px);
  max-width: 320px;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.player-full-art img {
  width: 100%; height: 100%; object-fit: cover;
}
.player-full-art-placeholder {
  width: 100%; height: 100%;
  background: var(--surface3);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
}

.player-full-meta { 
  padding: 0 28px; flex-shrink: 0;
  display: flex; align-items: center; gap: 10px;
}
.player-full-info { flex: 1; min-width: 0; }
.player-full-title {
  font-size: 22px; font-weight: 800; letter-spacing: -.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-full-artist { 
  font-size: 15px; color: var(--text2); margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fav-btn { flex-shrink: 0; }
.fav-btn svg { width: 22px; height: 22px; stroke: var(--text3); transition: all .15s; }
.fav-btn.active svg { stroke: var(--danger); fill: var(--danger); }

.player-full-seek { 
  padding: 20px 28px 0; flex-shrink: 0;
}
.seek-bar {
  width: 100%; height: 4px; 
  background: var(--surface3);
  border-radius: 2px; cursor: pointer;
  position: relative; overflow: hidden;
}
.seek-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px; width: 0%; pointer-events: none;
  transition: width .5s linear;
}
.seek-times {
  display: flex; justify-content: space-between;
  font-family: 'DM Mono', monospace;
  font-size: 10px; color: var(--text3); margin-top: 8px;
}

.player-full-controls {
  padding: 20px 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
}
.fc-btn {
  width: 44px; height: 44px;
  border: none; background: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 50%; transition: background .15s;
}
.fc-btn:active { background: var(--surface3); }
.fc-btn svg { stroke: var(--text2); transition: stroke .15s; }
.fc-btn.on svg { stroke: var(--accent); }

.fc-play-btn {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 50%;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(192,132,252,.4);
  transition: transform .1s;
}
.fc-play-btn:active { transform: scale(.95); }
.fc-play-btn svg { stroke: #fff; fill: #fff; }

.player-full-volume {
  padding: 0 28px 20px; flex-shrink: 0;
  display: flex; align-items: center; gap: 10px;
}
.player-full-volume svg { width: 16px; height: 16px; stroke: var(--text3); flex-shrink: 0; }
.vol-bar {
  flex: 1; height: 3px; background: var(--surface3);
  border-radius: 2px; cursor: pointer; position: relative; overflow: hidden;
}
.vol-fill {
  height: 100%;
  background: var(--text2);
  border-radius: 2px; width: 80%;
}

/* ─── SEARCH PAGE ────────────────────────────── */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 14px;
  margin-bottom: 20px;
}
.search-bar svg { width: 16px; height: 16px; stroke: var(--text3); flex-shrink: 0; }
.search-bar input {
  flex: 1; background: none; border: none;
  color: var(--text); font-family: 'Syne', sans-serif; font-size: 15px;
  outline: none;
}
.search-bar input::placeholder { color: var(--text3); }

/* ─── LIBRARY GRID ───────────────────────────── */
.lib-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px; margin-bottom: 16px;
}
.lib-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 16px;
  cursor: pointer; transition: background .15s;
  aspect-ratio: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
}
.lib-card:active { background: var(--surface3); }
.lib-card-icon { font-size: 32px; margin-bottom: 8px; }
.lib-card-title { font-size: 14px; font-weight: 700; }
.lib-card-count { font-size: 11px; color: var(--text2); margin-top: 3px; }
.lib-card-bg {
  position: absolute; top: -10px; right: -10px;
  font-size: 64px; opacity: .1; pointer-events: none;
}

/* ─── SETTINGS SCREEN ────────────────────────── */
#settings-screen { 
  z-index: 300; 
  background: var(--bg);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
}
#settings-screen.open {
  display: flex;
  transform: translateX(0);
}

.settings-header {
  padding: 20px 20px 16px;
  display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.back-btn {
  width: 36px; height: 36px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.back-btn svg { width: 16px; height: 16px; stroke: var(--text); }

.settings-scroll { 
  flex: 1; overflow-y: auto; padding: 20px;
  padding-bottom: 40px;
}
.settings-scroll::-webkit-scrollbar { display: none; }

.settings-section { margin-bottom: 28px; }
.settings-section-title {
  font-family: 'DM Mono', monospace;
  font-size: 10px; color: var(--text3); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 12px;
}
.settings-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 16px;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
}
.settings-item-info { flex: 1; }
.settings-item-title { font-size: 14px; font-weight: 600; }
.settings-item-sub { font-size: 12px; color: var(--text2); margin-top: 3px; 
  font-family: 'DM Mono', monospace; }
.settings-item-val { 
  font-family: 'DM Mono', monospace;
  font-size: 11px; color: var(--text3); 
}
.toggle {
  width: 44px; height: 26px;
  background: var(--surface3);
  border-radius: 13px; position: relative;
  cursor: pointer; transition: background .2s; flex-shrink: 0;
}
.toggle.on { background: var(--accent); }
.toggle::after {
  content: ''; position: absolute;
  width: 20px; height: 20px; background: #fff;
  border-radius: 50%; top: 3px; left: 3px;
  transition: transform .2s; box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.toggle.on::after { transform: translateX(18px); }

/* ─── LOADING ────────────────────────────────── */
.loading-spinner {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; padding: 40px 0;
}
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--text3); }

/* ─── EMPTY STATE ────────────────────────────── */
.empty-state {
  padding: 40px 20px; text-align: center;
}
.empty-state-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.empty-state-sub { font-size: 13px; color: var(--text2); }

/* ─── CONNECTED BADGE ────────────────────────── */
.server-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(74,222,128,.1);
  border: 1px solid rgba(74,222,128,.25);
  border-radius: 100px; padding: 4px 10px;
  font-family: 'DM Mono', monospace;
  font-size: 10px; color: var(--success);
}
.server-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; } 50% { opacity: .4; }
}

/* ─── TOAST ──────────────────────────────────── */
.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-80px);
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 100px; padding: 10px 20px;
  font-size: 13px; font-weight: 600;
  z-index: 999; transition: transform .3s cubic-bezier(.32,.72,0,1);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ─── QUEUE PANEL ────────────────────────────── */
.queue-panel {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  border: 1px solid var(--border);
  z-index: 400;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.32,.72,0,1);
  max-height: 70dvh;
  display: flex; flex-direction: column;
}
.queue-panel.open { transform: translateY(0); }
.queue-panel-header {
  padding: 16px 20px; display: flex; align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.queue-panel-title { font-size: 16px; font-weight: 700; }
.queue-panel-body { flex: 1; overflow-y: auto; padding: 8px 0; }
.queue-panel-body::-webkit-scrollbar { display: none; }
.queue-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; cursor: pointer;
  transition: background .15s;
}
.queue-item:active { background: var(--surface2); }
.queue-item.current { background: rgba(192,132,252,.08); }
.queue-num {
  font-family: 'DM Mono', monospace; font-size: 12px; color: var(--text3);
  width: 20px; text-align: right; flex-shrink: 0;
}
.queue-item.current .queue-num { color: var(--accent); }
