/* ════════════════════════════════════════════
   DESIGN TOKENS
════════════════════════════════════════════ */
:root {
  --accent-1:   #00f2fe;
  --accent-2:   #8b5cf6;
  --a1-glow:    rgba(0,242,254,.22);
  --a1-dim:     rgba(0,242,254,.09);
  --a2-dim:     rgba(139,92,246,.09);

  /* True AMOLED black palette */
  --bg:         #000000;
  --bg2:        #0a0a0a;
  --bg3:        #111111;
  --bg4:        #181818;
  --surface:    rgba(255,255,255,.05);
  --surface2:   rgba(255,255,255,.09);
  --border:     rgba(255,255,255,.08);
  --border2:    rgba(255,255,255,.14);

  --white:      #ffffff;
  --off-white:  #e8e8e8;
  --muted:      #6b6b6b;
  --muted2:     #a7a7a7;

  --clash:      'Space Grotesk', sans-serif;
  --satoshi:    'Plus Jakarta Sans', sans-serif;

  --ease:       cubic-bezier(.25,.8,.25,1);
  --spring:     cubic-bezier(.34,1.56,.64,1);
  --player-h:   90px;
  --sidebar-w:  240px;
}

/* ════════════════════════════════════════════
   BASE
════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100vh; overflow: hidden;
  font-family: var(--satoshi);
  background: var(--bg); color: var(--white);
  -webkit-font-smoothing: antialiased;
  position: relative;
}
body::before,
body::after{
  content:'';
  position:fixed;
  inset:auto;
  pointer-events:none;
  z-index:0;
  filter:blur(100px);
  opacity:.5;
}
body::before{
  width:32rem;height:32rem;left:-10rem;top:10rem;
  background:radial-gradient(circle, rgba(255,122,89,.16), transparent 68%);
}
body::after{
  width:36rem;height:36rem;right:-12rem;bottom:4rem;
  background:radial-gradient(circle, rgba(40,231,255,.14), transparent 70%);
}

/* ════════════════════════════════════════════
   TOAST
════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  left: 50%;
  bottom: calc(var(--player-h) + 28px);
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background:
    linear-gradient(180deg, rgba(17,22,31,.96), rgba(9,12,18,.94)),
    radial-gradient(circle at center, rgba(var(--vibe-rgb), .18), transparent 58%);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(24px) saturate(150%);
  border-radius: 18px;
  padding: 13px 18px;
  font-size: 13.5px;
  color: var(--off-white);
  pointer-events: auto;
  animation: toast-in .35s var(--spring) both;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 16px 44px rgba(0,0,0,.48), 0 0 0 1px rgba(var(--vibe-rgb), .10) inset;
  min-width: 220px;
  max-width: 420px;
  justify-content: center;
}
.toast.success { border-color:rgba(0,200,100,.25); }
.toast.heart   { border-color:rgba(255,50,80,.25); }
.toast.error   { border-color:rgba(255,50,50,.3); }
.toast.out     { animation:toast-out .22s var(--ease) forwards; }
@keyframes toast-in  { from{opacity:0;transform:translateY(20px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)} }
@keyframes toast-out { to{opacity:0;transform:translateY(14px) scale(.96)} }

@media (max-width: 768px) {
  .toast-container {
    bottom: calc(var(--player-h) + 94px);
    width: calc(100% - 24px);
  }
  .toast {
    min-width: 0;
    width: 100%;
    max-width: 360px;
  }
}

/* ════════════════════════════════════════════
   MODAL
════════════════════════════════════════════ */
.modal-overlay {
  position:fixed;inset:0;background:rgba(0,0,0,.85);backdrop-filter:blur(20px);
  z-index:500;display:flex;align-items:center;justify-content:center;padding:20px;
}
.modal-card {
  background:var(--bg3);border:1px solid var(--border2);border-radius:16px;
  padding:28px;width:100%;max-width:380px;
  box-shadow:0 40px 80px rgba(0,0,0,.9);
  animation:modal-rise .2s var(--spring);
}
@keyframes modal-rise { from{transform:translateY(20px) scale(.97);opacity:0}to{transform:none;opacity:1} }
.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.modal-header h3{font-family:var(--clash);font-size:17px;font-weight:600}
.modal-close{background:none;border:none;color:var(--muted);font-size:18px;cursor:pointer;transition:color .2s}
.modal-close:hover{color:var(--white)}
.modal-playlist-list{display:flex;flex-direction:column;gap:4px;max-height:220px;overflow-y:auto;margin-bottom:16px}
.modal-playlist-item{
  padding:11px 14px;border-radius:8px;background:var(--surface);
  cursor:pointer;font-size:14px;color:var(--muted2);transition:background .15s,color .15s;
}
.modal-playlist-item:hover{background:var(--surface2);color:var(--white)}
.modal-divider{height:1px;background:var(--border);margin-bottom:16px}
.modal-new-playlist{display:flex;gap:8px}
.modal-input{
  flex:1;background:var(--surface);border:1px solid var(--border);border-radius:8px;
  padding:10px 14px;color:var(--white);font-family:var(--satoshi);font-size:14px;outline:none;
  transition:border-color .2s;
}
.modal-input:focus{border-color:var(--accent-1)}
.modal-input::placeholder{color:var(--muted)}
.modal-create-btn{
  background:var(--accent-1);color:#000;border:none;border-radius:8px;
  padding:10px 16px;font-family:var(--satoshi);font-size:13px;font-weight:700;
  cursor:pointer;white-space:nowrap;transition:opacity .2s;
}
.modal-create-btn:hover{opacity:.85}

/* ════════════════════════════════════════════
   QUEUE PANEL
════════════════════════════════════════════ */
.queue-panel {
  position:fixed;right:-360px;top:0;bottom:var(--player-h);width:340px;
  background:var(--bg2);border-left:1px solid var(--border);
  z-index:200;transition:right .35s cubic-bezier(.4,0,.2,1);
  display:flex;flex-direction:column;
}
.queue-panel.open{right:0}
.queue-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:199;display:none}
.queue-overlay.show{display:block}
.queue-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:20px;border-bottom:1px solid var(--border);
  font-family:var(--clash);font-size:15px;font-weight:600;letter-spacing:-.2px;
}
.queue-close{background:none;border:none;color:var(--muted);font-size:18px;cursor:pointer;transition:color .2s}
.queue-close:hover{color:var(--white)}
.queue-list{flex:1;overflow-y:auto;padding:8px;display:flex;flex-direction:column;gap:1px}
.queue-list::-webkit-scrollbar{width:4px}
.queue-list::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1);border-radius:2px}
.queue-item{
  display:flex;align-items:center;gap:12px;
  padding:8px 10px;border-radius:8px;cursor:pointer;transition:background .15s;
}
.queue-item:hover{background:var(--surface)}
.queue-item.active{background:var(--a1-dim)}
.queue-item-num{width:18px;font-size:11px;color:var(--muted);text-align:center;flex-shrink:0}
.queue-item.active .queue-item-num{color:var(--accent-1)}
.queue-item-cover{width:40px;height:40px;border-radius:6px;object-fit:cover;flex-shrink:0}
.queue-item-info{flex:1;min-width:0}
.queue-item-title{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.queue-item-artist{font-size:11px;color:var(--muted2);margin-top:1px}
.queue-item.active .queue-item-title{color:var(--accent-1)}
.queue-btn{display:none}

/* ════════════════════════════════════════════
   LAYOUT
════════════════════════════════════════════ */
.app-layout {
  display:flex;height:calc(100vh - var(--player-h));width:100%;
}

/* ════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  height: 100%;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(16,14,22,0.94), rgba(10,9,15,0.90));
  backdrop-filter: blur(38px) saturate(180%);
  display: flex;
  flex-direction: column;
  padding: 28px 16px 18px;
  overflow: hidden;
  z-index: 10;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.04);
}
.sidebar::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.06), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 26%);
}
.sidebar > *{
  position:relative;
  z-index:1;
}

.logo a{text-decoration:none}
/* LucaVerse wordmark — matches official logo style */
.logo-wordmark {
  font-family: 'Dancing Script', cursive;
  font-size: 34px; font-weight: 700;
  color: #ffffff; letter-spacing: -0.5px;
  line-height: 1; padding-left: 8px;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.logo-wordmark span { color: #00e5cc; }
.logo-tagline {
  font-family: var(--satoshi);
  font-size: 9px; letter-spacing: 4px;
  color: #00e5cc; text-transform: uppercase;
  padding-left: 10px; margin-top: 6px;
  opacity:.86;
}

.nav-links{list-style:none;display:flex;flex-direction:column;gap:1px;margin-top:16px}
.nav-links li {
  padding:12px 14px;border-radius:16px;
  color:var(--muted2);font-size:13.5px;font-weight:500;
  cursor:pointer;display:flex;align-items:center;gap:14px;
  transition:color .2s,background .2s,transform .2s,border-color .2s;position:relative;
  border:1px solid transparent;
}
.nav-links li .icon{font-size:17px;flex-shrink:0}
.nav-links li:hover{color:var(--white);background:rgba(255,255,255,.05);transform:translateX(2px);border-color:rgba(255,255,255,.05)}
.nav-links li.active{
  color:var(--white);
  background:linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  font-weight:700;
  border-color:rgba(255,255,255,.08)
}
.nav-links li.active::before{
  content:'';position:absolute;left:0;top:20%;bottom:20%;
  width:3px;border-radius:0 2px 2px 0;
  background:var(--accent-1);box-shadow:0 0 10px var(--a1-glow);
}
.nav-links.small li{font-size:13px;padding:8px 12px}

.divider{height:1px;background:rgba(255,255,255,.06);margin:6px 4px;flex-shrink:0}

.sidebar-section{display:flex;flex-direction:column;flex:1;overflow:hidden;min-height:0;margin-top:4px}
.sidebar-section-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:4px 12px;
  font-size:10px;font-weight:700;color:var(--muted);
  text-transform:uppercase;letter-spacing:1.5px;
}
.add-playlist-btn{
  background:none;border:none;color:var(--muted);font-size:20px;
  cursor:pointer;width:22px;height:22px;display:flex;align-items:center;
  justify-content:center;border-radius:4px;transition:color .2s,background .2s;
}
.add-playlist-btn:hover{color:var(--white);background:var(--surface)}

.sidebar-playlists{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:0;margin-top:4px}
.sidebar-playlists::-webkit-scrollbar{width:0}
.sidebar-playlists p{
  font-size:13px;color:var(--muted2);cursor:pointer;
  padding:7px 12px;border-radius:6px;transition:color .14s,background .14s;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.sidebar-playlists p:hover{color:var(--white);background:var(--surface)}
.sidebar-playlists p.active-playlist{color:var(--accent-1)}
.playlist-empty-msg{font-size:11.5px!important;color:var(--muted)!important;cursor:default!important;line-height:1.6}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 14px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.24);
}
.sidebar-user::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: .6s;
}
.sidebar-user:hover {
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-2px);
  border-color: var(--accent-1);
}
.sidebar-user:hover::before { left: 100%; }

.sidebar-scroll-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 24px;
  padding-bottom: 24px;
  scrollbar-width: none;
}
.sidebar-scroll-content::-webkit-scrollbar { display: none; }

.su-avatar{
  width:32px;height:32px;border-radius:50%;
  background:linear-gradient(135deg,var(--accent-2),var(--accent-1));
  color:#000;display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:13px;font-family:var(--clash);flex-shrink:0;
  background-size:cover;background-position:center;
}
.su-meta{flex:1;min-width:0}
.su-name{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.su-action{font-size:11px;color:var(--muted);margin-top:1px}

/* ════════════════════════════════════════════
   MAIN VIEW
════════════════════════════════════════════ */
.main-view{
  flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0;background:var(--bg2);
  position:relative;
}
.main-view::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 16% 12%, rgba(255,122,89,.10), transparent 22%),
    radial-gradient(circle at 86% 20%, rgba(40,231,255,.08), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.015), transparent 28%);
  z-index:0;
}
.main-view > *{
  position:relative;
  z-index:1;
}

.top-bar{
  display:flex;align-items:center;padding:18px 28px;
  background:linear-gradient(180deg, rgba(17,14,22,.72), rgba(14,12,18,.42));
  backdrop-filter:blur(28px);flex-shrink:0;
  border-bottom:1px solid rgba(255,255,255,0.05);position:relative;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.02);
}
.search-container{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  display:flex;align-items:center;gap:12px;
  background:linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border:1px solid rgba(255,255,255,0.08);
  border-radius:20px;padding:12px 24px;width:100%;max-width:640px;
  transition:all .3s var(--ease);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.search-container:focus-within{
  background:linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  border-color:var(--accent-1);
  box-shadow:0 0 0 1px rgba(255,255,255,.04), 0 0 26px var(--a1-glow);
}
.search-icon{font-size:14px;opacity:0.6;flex-shrink:0}
.search-input{
  flex:1;background:none;border:none;color:var(--white);
  font-family:var(--satoshi);font-size:15px;font-weight:500;outline:none;
}
.search-input::placeholder{color:rgba(255,255,255,0.4)}

.top-bar-actions{display:flex;align-items:center;gap:8px}
.queue-btn{
  background:var(--bg4);border:1px solid var(--border);color:var(--muted2);
  border-radius:8px;padding:8px 12px;cursor:pointer;font-size:16px;
  transition:color .15s,background .15s;display:none;
}
.queue-btn:hover{color:var(--white);background:var(--surface2)}

.user-profile{
  position:fixed;top:16px;right:24px;z-index:999;
  width:46px;height:46px;border-radius:50%;
  background:linear-gradient(135deg,var(--accent-2),var(--accent-1));
  color:#000;display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:15px;font-family:var(--clash);
  cursor:pointer;flex-shrink:0;transition:transform .25s var(--spring),box-shadow .2s;
  box-shadow:0 18px 44px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,.25);
}
.user-profile:hover{transform:scale(1.08);box-shadow:0 0 24px var(--a1-glow)}
.user-profile.has-avatar{
  color: transparent !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
}

.mobile-sync-btn{
  display:none;
}

.content-scroll{flex:1;overflow-y:auto;overflow-x:hidden}
.content-scroll::-webkit-scrollbar{width:6px}
.content-scroll::-webkit-scrollbar-track{background:transparent}
.content-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1);border-radius:3px}
.content-scroll::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.2)}

/* ════════════════════════════════════════════
   SECTION TITLES
════════════════════════════════════════════ */
.section-title{
  font-family:var(--clash);font-size:30px;font-weight:700;
  letter-spacing:-1.2px;color:var(--white);
  padding:34px 28px 0;margin-bottom:22px;
}

/* ════════════════════════════════════════════
   SKELETON
════════════════════════════════════════════ */
.loading-indicator{display:none}
.skeleton-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px;padding:28px 24px}
.skeleton-card{background:var(--bg4);border-radius:8px;padding:12px}
.sk-img{aspect-ratio:1;border-radius:6px;background:rgba(255,255,255,.06);margin-bottom:14px;animation:sk-pulse 1.5s ease-in-out infinite}
.sk-line{height:11px;border-radius:4px;background:rgba(255,255,255,.06);animation:sk-pulse 1.5s ease-in-out infinite}
.sk-line.l1{width:80%;margin-bottom:7px;animation-delay:.1s}
.sk-line.l2{width:55%;animation-delay:.2s}
@keyframes sk-pulse{0%,100%{opacity:.4}50%{opacity:.8}}

/* ════════════════════════════════════════════
   HOME ROWS (Netflix-style)
════════════════════════════════════════════ */
.home-row{margin-bottom:28px}
.home-row:first-child{margin-top:20px}

.home-row-title{
  font-family:var(--clash);font-size:28px;font-weight:700;letter-spacing:-1px;
  color:var(--white);padding:0 28px;margin-bottom:16px;
  display:flex;align-items:center;justify-content:space-between;
}
.home-row-see-all{
  font-size:12px;font-weight:700;color:var(--accent-1);
  font-family:var(--satoshi);cursor:pointer;transition:color .2s;letter-spacing:0;
  text-transform:uppercase;
}
.home-row-see-all:hover{color:var(--white)}

.home-row-cards{
  display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;
  padding:6px 28px 18px;scrollbar-width:none;
  scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
}
.home-row-cards::-webkit-scrollbar{display:none}

/* ════════════════════════════════════════════
   SONG CARDS (in rows + grid)
════════════════════════════════════════════ */
/* ════════ CARD PERSPECTIVE CONTAINER ═══════ */
.home-row-cards { perspective: 1200px; }
.cards-grid      { perspective: 1200px; }

.poster-card, .home-row-cards .poster-card {
  flex-shrink:0;
  width:176px;
  scroll-snap-align:start;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border-radius:24px;
  padding:14px;
  cursor:pointer;
  position:relative;
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.2s, border-color 0.2s;
  border: 1px solid rgba(255,255,255,.06);
  will-change: transform;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.poster-card:hover{
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 26px 70px rgba(0,0,0,.30), 0 0 32px rgba(0,242,254,.06);
  transform: translateY(-8px) scale(1.018);
}

/* Grid cards full width */
.cards-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(172px,1fr));
  gap:18px;
  padding:0 28px 28px;
}
.cards-grid .poster-card{width:100%;flex-shrink:unset}

.poster-card .image-wrapper{
  position:relative;border-radius:18px;overflow:hidden;
  aspect-ratio:1;margin-bottom:12px;
  box-shadow: inset 0 -24px 44px rgba(0,0,0,.16);
}
.poster-card .poster-img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .4s var(--ease),filter .3s;
  border-radius:0;margin-bottom:0;box-shadow:none;
}
.poster-card:hover .poster-img{transform:scale(1.04);filter:brightness(1.06)}

.poster-card .play-btn-overlay{
  position:absolute;
  bottom:10px;right:10px;
  width:52px;height:52px;
  background:linear-gradient(135deg,var(--accent-1),var(--accent-2));
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:#000;font-size:18px;
  opacity:0;transform:translateY(8px);
  transition:opacity .25s,transform .25s var(--spring);
  box-shadow:0 14px 36px rgba(0,0,0,.34);
  z-index:10;padding-left:3px;
}
.poster-card:hover .play-btn-overlay{opacity:1;transform:translateY(0)}
.poster-card .play-btn-overlay svg{width:20px;height:20px;fill:#000}

.poster-card .card-like-btn{
  position:absolute;top:8px;right:8px;z-index:5;
  background:rgba(7,7,11,.72);border:1px solid rgba(255,255,255,.08);border-radius:50%;
  width:30px;height:30px;display:flex;align-items:center;justify-content:center;
  cursor:pointer;font-size:13px;padding:0;
  opacity:0;transition:opacity .18s;
  backdrop-filter: blur(12px);
}
.poster-card:hover .card-like-btn,.poster-card .card-like-btn.active{opacity:1}
.poster-card .card-like-btn.active{background:rgba(255,50,80,.15)}

.poster-card .card-add-btn{
  position:absolute;top:8px;left:8px;z-index:5;
  background:rgba(7,7,11,.72);border:1px solid rgba(255,255,255,.1);border-radius:10px;
  color:var(--muted2);cursor:pointer;font-size:12px;padding:3px 8px;
  opacity:0;transition:opacity .18s,color .18s;font-family:var(--satoshi);
  backdrop-filter: blur(12px);
}
.poster-card:hover .card-add-btn{opacity:1}
.poster-card .card-add-btn:hover{color:var(--accent-1)}

.poster-title{
  font-family:var(--satoshi);font-weight:700;font-size:14px;
  margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  letter-spacing:-.2px;
}
.poster-artist{font-size:12px;color:var(--muted2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.82}

.like-btn{background:transparent;border:none;font-size:17px;color:var(--muted2);cursor:pointer;transition:transform .2s,color .2s;z-index:25}
.like-btn.active{color:#ff3355}
.like-btn:hover{transform:scale(1.28)}

/* ════════════════════════════════════════════
   TRACK LIST
════════════════════════════════════════════ */
.track-list-header{
  display:grid;grid-template-columns:40px 1fr 1fr 60px 60px;
  padding:0 20px 10px 20px;border-bottom:1px solid var(--border);
  color:var(--muted);font-size:11px;margin:0 4px 8px;
  text-transform:uppercase;letter-spacing:1.2px;font-weight:600;
}
.col-time{text-align:right}
.track-list{display:flex;flex-direction:column}
.track-item{
  display:grid;grid-template-columns:40px 1fr 1fr 60px 60px;
  align-items:center;padding:12px 20px;border-radius:18px;margin:0 10px 8px;
  cursor:pointer;transition:background .18s,border-color .18s,transform .18s;gap:10px;
  border:1px solid rgba(255,255,255,.05);
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
}
.track-item:hover{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.08);transform:translateX(2px)}
.track-item.active{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.10)}
.track-item.active .ti-title{color:var(--accent-1)}
.ti-index{color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}
.ti-info{display:flex;align-items:center;gap:12px;min-width:0;overflow:hidden}
.ti-cover{width:42px;height:42px;border-radius:4px;object-fit:cover;flex-shrink:0}
.ti-title{font-weight:500;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ti-artist{color:var(--muted2);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ti-time{color:var(--muted);font-size:13px;text-align:right;font-variant-numeric:tabular-nums}
.ti-like{display:flex;align-items:center;justify-content:center;gap:4px}
.ti-add-btn{
  background:none;border:none;color:var(--muted);cursor:pointer;
  font-size:16px;opacity:0;transition:opacity .14s,color .14s;padding:3px;font-family:var(--satoshi);
}
.track-item:hover .ti-add-btn{opacity:1}
.ti-add-btn:hover{color:var(--accent-1)}

/* ════════════════════════════════════════════
   PROFILE
════════════════════════════════════════════ */
.profile-hero{
  display:flex;align-items:center;gap:28px;
  padding:40px 28px 30px;
  background:linear-gradient(135deg,rgba(255,255,255,.07) 0%,rgba(255,255,255,.03) 100%);
  border:1px solid rgba(255,255,255,.06);
  border-radius:28px;
  margin:20px 24px 24px;
  box-shadow:0 20px 50px rgba(0,0,0,.18);
  flex-wrap:wrap;
}
.profile-avatar-wrapper{
  position:relative;flex-shrink:0;cursor:pointer;border-radius:50%;overflow:hidden;
  width:90px;height:90px;
}
.profile-avatar-big{
  width:100%;height:100%;border-radius:50%;
  background:linear-gradient(135deg,var(--accent-2),var(--accent-1));
  color:#000;display:flex;align-items:center;justify-content:center;
  font-size:36px;font-weight:800;font-family:var(--clash);
  background-size:cover;background-position:center;
}
.avatar-edit-overlay{
  position:absolute;inset:0;border-radius:50%;background:rgba(0,0,0,.7);
  display:flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:600;color:var(--white);opacity:0;transition:opacity .2s;
}
.profile-avatar-wrapper:hover .avatar-edit-overlay{opacity:1}
.profile-details{flex:1;min-width:0;overflow:hidden}
.profile-badge-row{display:flex;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.profile-type{font-size:10px;text-transform:uppercase;letter-spacing:1.5px;color:var(--muted)}
.pro-badge{
  display:inline-flex;align-items:center;gap:5px;
  background:linear-gradient(90deg,var(--accent-2),var(--accent-1));
  border-radius:99px;padding:3px 10px;font-size:10px;font-weight:700;
  color:#000;letter-spacing:1px;
}
.pro-dot{width:5px;height:5px;background:#000;border-radius:50%;animation:pro-pulse 2s ease-in-out infinite}
@keyframes pro-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.4)}}
/* Profile name */
.profile-name{
  font-family:var(--clash);font-size:28px;font-weight:700;
  letter-spacing:-0.5px;margin-bottom:6px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  max-width:100%;
}
.profile-email{font-size:13px;color:var(--muted2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}

.live-visualizer{
  margin-left:auto;display:flex;align-items:center;gap:6px;flex-shrink:0;
  padding:8px 14px;background:var(--a1-dim);border:1px solid rgba(0,242,254,.12);
  border-radius:99px;
}
.live-visualizer span{font-size:10px;color:var(--accent-1);font-weight:600;letter-spacing:.5px}
.lv-bar{width:3px;border-radius:2px;background:var(--accent-1);animation:lv-dance 1.2s ease-in-out infinite}
.lv-bar:nth-child(1){height:8px;animation-delay:0s}
.lv-bar:nth-child(2){height:18px;animation-delay:.12s}
.lv-bar:nth-child(3){height:12px;animation-delay:.24s}
.lv-bar:nth-child(4){height:20px;animation-delay:.36s}
.lv-bar:nth-child(5){height:10px;animation-delay:.18s}
@keyframes lv-dance{0%,100%{transform:scaleY(1)}50%{transform:scaleY(1.8)}}

.profile-stats-row{
  display:flex;margin:0 24px 24px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-radius:24px;overflow:hidden;
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 16px 36px rgba(0,0,0,.14);
}
.pstat{flex:1;text-align:center;padding:20px 12px;border-right:1px solid var(--border)}
.pstat:last-child{border-right:none}
.pstat span{display:block;font-family:var(--clash);font-size:28px;font-weight:700;color:var(--accent-1);margin-bottom:3px;line-height:1}
.pstat p{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:1px}

.premium-features-card{
  margin:0 24px 24px;padding:22px;
  background:linear-gradient(135deg,var(--a2-dim),var(--a1-dim));
  border:1px solid var(--border);border-radius:24px;
  box-shadow:0 18px 40px rgba(0,0,0,.16);
}
.premium-features-card h3{font-family:var(--clash);font-size:16px;font-weight:600;margin-bottom:18px;letter-spacing:-.3px}
.feature-toggle-row{
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:13px 0;border-bottom:1px solid rgba(255,255,255,.05);
}
.feature-toggle-row:last-child{border-bottom:none;padding-bottom:0}
.feature-toggle-row h4{font-size:13.5px;font-weight:600;margin-bottom:3px}
.feature-toggle-row p{font-size:12px;color:var(--muted2);line-height:1.4}

.switch{position:relative;display:inline-block;width:42px;height:22px;flex-shrink:0}
.switch input{opacity:0;width:0;height:0}
.slider{position:absolute;cursor:pointer;inset:0;background:rgba(255,255,255,.15);border-radius:99px;transition:background .25s}
.slider::before{
  content:'';position:absolute;height:16px;width:16px;border-radius:50%;
  left:3px;bottom:3px;background:var(--white);transition:transform .25s var(--spring);
}
input:checked+.slider{background:var(--accent-1)}
input:checked+.slider::before{transform:translateX(20px);background:#000}

.settings-matrix{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:14px;margin:0 24px 24px;
}
.settings-card{
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  border:1px solid var(--border);border-radius:24px;padding:22px;
  transition:border-color .2s,transform .2s,box-shadow .2s;
  box-shadow:0 16px 36px rgba(0,0,0,.14);
}
.settings-card:hover{border-color:var(--border2);transform:translateY(-2px);box-shadow:0 20px 46px rgba(0,0,0,.20)}
.settings-card h3{font-family:var(--clash);font-size:15px;font-weight:600;margin-bottom:14px;letter-spacing:-.3px}
.input-group{display:flex;flex-direction:column;gap:5px;margin-bottom:14px}
.input-group label{font-size:11.5px;color:var(--muted2);font-weight:500;letter-spacing:.3px}
.settings-input, select.settings-input {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 13px; color: var(--white); font-family: var(--satoshi); font-size: 14px;
  outline: none; transition: all 0.2s ease; width: 100%;
  appearance: none; -webkit-appearance: none;
}
select.settings-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px;
}
.settings-input:focus { border-color: var(--accent-1); box-shadow: 0 0 12px var(--a1-glow); background: var(--bg3); }
.settings-input::placeholder { color: var(--muted); }
.settings-btn{
  background:var(--white);color:#000;border:none;border-radius:8px;
  padding:10px 18px;font-family:var(--satoshi);font-size:13.5px;font-weight:700;
  cursor:pointer;transition:background .2s,transform .2s;width:100%;
}
.settings-btn:hover{background:var(--off-white);transform:scale(1.01)}
.settings-btn.warning{background:rgba(255,80,80,.1);color:#ff5060;border:1px solid rgba(255,80,80,.2)}
.settings-btn.warning:hover{background:rgba(255,80,80,.18)}

.theme-swatches{display:flex;gap:10px;flex-wrap:wrap}
.swatch{
  width:30px;height:30px;border-radius:50%;border:2px solid transparent;
  cursor:pointer;transition:transform .2s,border-color .2s;
}
.swatch:hover{transform:scale(1.18)}
.swatch.active{border-color:var(--white);transform:scale(1.12)}
.swatch.cyan-purple{background:linear-gradient(135deg,#00f2fe,#8b5cf6)}
.swatch.neon-green {background:linear-gradient(135deg,#bcff00,#1db954)}
.swatch.crimson-red{background:linear-gradient(135deg,#ff0f7b,#f89b29)}
.swatch.gold-amber {background:linear-gradient(135deg,#ffc837,#ff8008)}

.profile-actions{display:flex;gap:12px;margin:0 24px 32px;flex-wrap:wrap}
.profile-btn-primary,.profile-btn-danger{
  padding:11px 26px;border-radius:99px;border:none;
  font-family:var(--satoshi);font-size:14px;font-weight:700;
  cursor:pointer;transition:transform .2s,box-shadow .2s;
}
.profile-btn-primary{background:var(--accent-1);color:#000}
.profile-btn-primary:hover{transform:translateY(-1px);box-shadow:0 8px 24px var(--a1-glow)}
.profile-btn-danger{background:rgba(255,80,80,.1);color:#ff5060;border:1px solid rgba(255,80,80,.2)}
.profile-btn-danger:hover{background:rgba(255,80,80,.18)}

/* ════════════════════════════════════════════
   PLAYLIST DETAIL
════════════════════════════════════════════ */
.playlist-detail-header{
  display:flex;align-items:flex-end;gap:24px;padding:28px 24px 24px;
  background:linear-gradient(180deg,rgba(79,172,254,.08) 0%,transparent 100%);
  border-bottom:1px solid var(--border);margin-bottom:16px;
}
.pd-cover{
  width:112px;height:112px;border-radius:10px;
  background:linear-gradient(135deg,var(--accent-2),var(--accent-1));
  display:flex;align-items:center;justify-content:center;
  font-size:40px;flex-shrink:0;overflow:hidden;
  box-shadow:0 20px 50px rgba(0,0,0,.7);
}
.pd-cover img{width:100%;height:100%;object-fit:cover}
.pd-info h1{font-family:var(--clash);font-size:28px;font-weight:700;margin-bottom:6px;letter-spacing:-1px}
.pd-count{font-size:14px;color:var(--muted2);margin-bottom:16px}
.pd-actions{display:flex;gap:10px}
.pd-play-btn{
  background:var(--accent-1);color:#000;border:none;border-radius:99px;
  padding:11px 26px;font-family:var(--satoshi);font-size:14px;font-weight:700;
  cursor:pointer;transition:transform .2s,box-shadow .2s;
}
.pd-play-btn:hover{transform:scale(1.04);box-shadow:0 8px 24px var(--a1-glow)}
.pd-del-btn{
  background:none;border:1px solid rgba(255,80,80,.2);color:#ff5060;
  border-radius:99px;padding:11px 20px;font-family:var(--satoshi);font-size:14px;
  cursor:pointer;transition:background .2s;
}
.pd-del-btn:hover{background:rgba(255,80,80,.08)}

/* ════════════════════════════════════════════
   VISUALIZER + FX BAR
════════════════════════════════════════════ */
.viz-canvas-wrap{
  position:fixed;left:50%;transform:translateX(-50%);
  bottom:calc(var(--player-h) + 1px);
  width:380px;height:58px;pointer-events:none;z-index:99;
  opacity:0;transition:opacity .5s;
}
.viz-canvas-wrap.visible{opacity:1}
#vizCanvas{width:100%;height:100%;display:block}

.audio-effects-bar{
  position:fixed;left:50%;transform:translateX(-50%);
  bottom:var(--player-h);display:flex;align-items:center;gap:6px;
  background:rgba(10,10,10,.96);border:1px solid var(--border2);border-bottom:none;
  border-radius:12px 12px 0 0;padding:10px 18px;
  z-index:99;opacity:0;pointer-events:none;transition:opacity .22s;white-space:nowrap;
}
.audio-effects-bar.visible{opacity:1;pointer-events:auto}
.fx-btn{
  background:var(--bg4);border:1px solid var(--border);border-radius:6px;
  color:var(--muted2);font-family:var(--satoshi);font-size:12px;font-weight:600;
  padding:5px 12px;cursor:pointer;transition:all .15s;white-space:nowrap;
}
.fx-btn:hover{color:var(--white);background:var(--bg3)}
.fx-btn.active{background:var(--a1-dim);border-color:rgba(0,242,254,.3);color:var(--accent-1)}
.fx-btn.bass-active{background:rgba(139,92,246,.12);border-color:rgba(139,92,246,.3);color:#c084fc}
.fx-toggle-btn{
  background:none;border:none;color:var(--muted2);font-size:12.5px;
  cursor:pointer;padding:4px 8px;border-radius:6px;
  font-family:var(--satoshi);font-weight:700;letter-spacing:.5px;transition:color .15s;
}
.fx-toggle-btn:hover{color:var(--white)}
.fx-toggle-btn.active{color:var(--accent-1)}

/* ════════════════════════════════════════════
   PLAYER BAR — Premium
════════════════════════════════════════════ */
.player-bar{
  position:fixed;bottom:20px;left:50%;transform:translateX(-50%);
  width:calc(100% - 56px);max-width:1280px;height:96px;
  background:linear-gradient(135deg, rgba(19,16,24,0.86), rgba(13,11,18,0.78));
  backdrop-filter:blur(34px);
  border:1px solid rgba(255,255,255,0.08);border-radius:30px;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 34px;z-index:100;
  box-shadow:0 28px 90px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,.06);
}

.now-playing-info{display:flex;align-items:center;gap:14px;width:30%;min-width:180px}
.cover-small{
  width:62px;height:62px;border-radius:18px;object-fit:cover;
  box-shadow:0 14px 34px rgba(0,0,0,.28);transition:transform .35s var(--ease);
  flex-shrink:0;
}
.cover-small:hover{transform:scale(1.06)}
.meta-small{display:flex;flex-direction:column;gap:2px;overflow:hidden;flex:1}
.title-small{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.2px}
.artist-small{font-size:12px;color:var(--muted2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.78}

.player-controls-center{display:flex;flex-direction:column;align-items:center;width:40%;max-width:560px;gap:10px}
.controls{display:flex;align-items:center;gap:16px}

.icon-btn{
  background:transparent;border:none;color:var(--muted2);font-size:17px;
  cursor:pointer;transition:color .15s,transform .15s,background .15s;padding:8px;
  border-radius:999px;
}
.icon-btn:hover{color:var(--white);transform:scale(1.08);background:rgba(255,255,255,.05)}
.icon-btn.active-state{color:var(--accent-1);filter:drop-shadow(0 0 8px var(--a1-glow))}

.primary-btn{
  width:38px;height:38px;border-radius:50%;border:none;
  background:var(--white);color:#000;
  font-size:15px;display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:transform .2s,box-shadow .2s;padding-left:2px;flex-shrink:0;
}
.primary-btn:hover{transform:scale(1.08);box-shadow:0 0 20px rgba(255,255,255,.25)}

.progress-wrap{display:flex;align-items:center;width:100%;gap:10px}
.progress-wrap span{font-size:11px;color:var(--muted);min-width:34px;font-variant-numeric:tabular-nums;opacity:.7}
.progress-wrap span:last-child{text-align:right}
.progress-container{
  flex:1;height:4px;background:rgba(255,255,255,.15);border-radius:2px;
  cursor:pointer;position:relative;transition:height .15s;
}
.progress-container:hover{height:6px}
.progress{height:100%;width:0%;border-radius:2px;background:var(--white);transition:width .1s linear}
.progress-container:hover .progress{background:var(--accent-1)}

/* Thumb on hover */
.progress-container::after{
  content:'';position:absolute;right:0;top:50%;transform:translate(50%,-50%) scale(0);
  width:14px;height:14px;border-radius:50%;background:var(--white);
  transition:transform .15s var(--spring);pointer-events:none;
  margin-right:calc(100% - var(--progress, 0%));
}
.progress-container:hover::after{transform:translate(50%,-50%) scale(1)}

.vol-container{display:flex;align-items:center;gap:10px;width:30%;justify-content:flex-end}

/* Smooth volume slider */
input[type="range"]{
  appearance:none;-webkit-appearance:none;
  width:90px;height:4px;
  background:rgba(255,255,255,.2);border-radius:2px;outline:none;cursor:pointer;
  transition:background .2s;
}
input[type="range"]:hover{background:rgba(255,255,255,.3)}
input[type="range"]::-webkit-slider-thumb{
  appearance:none;-webkit-appearance:none;
  width:14px;height:14px;border-radius:50%;
  background:var(--white);cursor:pointer;
  transition:transform .15s var(--spring),box-shadow .15s;
  box-shadow:0 2px 6px rgba(0,0,0,.6);
}
input[type="range"]:hover::-webkit-slider-thumb{
  transform:scale(1.3);
  box-shadow:0 0 10px rgba(0,242,254,.4);
}
input[type="range"]:active::-webkit-slider-thumb{
  transform:scale(1.1);
  background:var(--accent-1);
}

/* ════════════════════════════════════════════
   HERO BANNER (kept for compatibility, hidden)
════════════════════════════════════════════ */
.home-hero{display:none!important}

/* ════════════════════════════════════════════
   MOBILE
════════════════════════════════════════════ */
@media(max-width:768px){
  :root{--player-h:62px}
  .app-layout{flex-direction:column;height:100dvh}
  .sidebar{
    position:fixed;bottom:0;left:0;width:100%;height:62px;flex-direction:row;
    justify-content:space-around;padding:0 8px;border-right:none;
    border-top:1px solid var(--border);background:rgba(0,0,0,.98);
    backdrop-filter:blur(40px);z-index:1000;gap:0;
  }
  .logo,.divider,.sidebar-section,.sidebar-user{display:none}
  .nav-links,.nav-links.small{
    display:flex;flex-direction:row;gap:0;padding:0;margin:0;
    align-items:center;justify-content:space-around;
  }
  .nav-links{flex:3}
  .nav-links.small{flex:1;border-left:1px solid var(--border);margin-left:6px;padding-left:6px}
  .nav-links li,.nav-links.small li{
    flex-direction:column;justify-content:center;gap:3px;padding:5px 4px;
    font-size:9px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);
  }
  .nav-links li .icon{font-size:20px}
  .nav-links li::before{display:none}
  .nav-links li.active{background:transparent;color:var(--accent-1);transform:translateY(-2px)}
  .nav-links li.active .icon{filter:drop-shadow(0 0 5px var(--accent-1))}

  .main-view{height:100dvh;background:var(--bg)}
  .top-bar{padding:12px 16px}
  .content-scroll{padding-bottom:150px}

  .home-row-title{padding:0 16px;font-size:17px}
  .home-row-cards{padding:4px 16px 14px}
  .poster-card,.home-row-cards .poster-card{width:136px}

  .cards-grid{grid-template-columns:repeat(2,1fr);gap:12px;padding:0 16px 20px}
  .section-title{padding:20px 16px 0}

  .track-list-header{display:none}
  .track-item{grid-template-columns:26px 1fr 34px;padding:9px 12px;margin:0 4px;border-radius:8px}
  .ti-time,.ti-artist{display:none}
  .ti-cover{width:40px;height:40px}

  .player-bar{
    position:fixed;bottom:72px;left:10px;width:calc(100% - 20px);
    height:60px;border-radius:16px;padding:0 12px;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(10,10,14,.97);
    backdrop-filter:blur(30px);
    box-shadow:0 8px 32px rgba(0,0,0,.85),inset 0 1px 0 rgba(255,255,255,.04);
    transform:none;left:10px;
  }
  .now-playing-info{width:auto;flex:1;gap:10px}
  .cover-small{width:38px;height:38px;border-radius:6px}
  .vol-container,#shuffleBtn,#prevBtn,#repeatBtn{display:none}
  .player-controls-center{width:auto;flex-direction:row;position:absolute;right:12px;top:11px}
  .controls{gap:12px}
  .primary-btn{width:34px;height:34px;font-size:14px}
  .progress-wrap{position:absolute;bottom:0;left:0;width:100%;height:2px;gap:0}
  .progress-wrap span{display:none}
  .progress-container{height:2px;border-radius:0 0 14px 14px;width:100%}
  .progress{border-radius:0 0 0 14px}
  .progress-container:hover{height:2px}
  .progress-container::after{display:none}

  .profile-hero{flex-direction:column;align-items:flex-start;padding:24px 16px;gap:16px}
  .profile-name{font-size:26px}
  .live-visualizer{margin-left:0}
  .profile-stats-row,.premium-features-card,.settings-matrix,.profile-actions{margin-left:16px;margin-right:16px}
  .settings-matrix{grid-template-columns:1fr}
  .playlist-detail-header{flex-direction:column;align-items:flex-start;padding:24px 16px}
  .queue-panel{width:100%;right:-100%}
  .queue-btn{display:flex!important}
  .audio-effects-bar{width:calc(100% - 20px);left:10px;transform:none;border-radius:10px 10px 0 0;overflow-x:auto;bottom:calc(var(--player-h) + 68px)}
  .viz-canvas-wrap{width:220px;height:42px;bottom:calc(var(--player-h) + 70px)}
}

/* ════════════════════════════════════════════
   BEAST MODE: SETTINGS LAYOUT
════════════════════════════════════════════ */
.input-row { display: flex; gap: 12px; margin-bottom: 12px; }
.input-row > .input-group { flex: 1; margin-bottom: 0; }
.theme-options { display: flex; flex-direction: column; gap: 8px; }
.theme-btn { 
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  padding: 12px 14px; border-radius: 14px; cursor: pointer;
  color: var(--white); font-weight: 500; font-family: var(--satoshi);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.theme-btn::before{
  content:'';
  position:absolute;inset:0;
  background:linear-gradient(110deg,transparent 20%,rgba(255,255,255,0.08) 50%,transparent 80%);
  transform:translateX(-130%);
  transition:transform .7s ease;
}
.theme-btn:hover::before{transform:translateX(130%)}
.theme-btn:hover {
  background: var(--bg3);
  border-color: var(--border2);
  transform: translateY(-1px);
}
.theme-btn.active {
  border-color: var(--accent-1);
  background:
    linear-gradient(135deg, var(--a1-dim), rgba(255,255,255,0.03));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 12px 28px rgba(0,0,0,0.22);
}
.t-circle {
  width: 18px; height: 18px; border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
.theme-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.theme-copy strong{
  font-size:13.5px;font-weight:700;letter-spacing:-0.15px;color:var(--white);
}
.theme-copy span{
  font-size:11px;line-height:1.45;color:var(--muted2);
}
.luca-theme { background: linear-gradient(135deg, #00f2fe, #8b5cf6); }
.obsidian-theme { background: linear-gradient(135deg, #d1d5db, #64748b); }
.aurora-theme { background: linear-gradient(135deg, #d9f99d, #22c55e); }
.velvet-theme { background: linear-gradient(135deg, #fb7185, #be123c); }
.sunset-theme { background: linear-gradient(135deg, #fb923c, #facc15); }
textarea.settings-input { resize: vertical; min-height: 80px; }

html, body, .sidebar, .main-view, .top-bar, .player-bar, .settings-card, .poster-card, .track-item, .queue-item, .search-container {
  transition:
    background .45s ease,
    background-color .45s ease,
    border-color .45s ease,
    box-shadow .45s ease,
    color .3s ease;
}

/* ════════════════════════════════════════════
   GLOBAL THEME MODES
════════════════════════════════════════════ */
html.theme-luca {
  --bg: #000000;
  --bg2: #090d14;
  --bg3: #111723;
  --bg4: #141c29;
  --surface: rgba(255,255,255,.05);
  --surface2: rgba(255,255,255,.09);
  --border: rgba(108, 225, 255, 0.14);
  --border2: rgba(255,255,255,.18);
  --accent-1: #28e7ff;
  --accent-2: #8b5cf6;
  --a1-glow: rgba(40,231,255,.28);
  --a1-dim: rgba(40,231,255,.10);
  --theme-ring: rgba(40,231,255,.18);
}
html.theme-luca .main-view{
  background:
    radial-gradient(circle at top right, rgba(40,231,255,.12), transparent 32%),
    radial-gradient(circle at bottom left, rgba(139,92,246,.10), transparent 28%),
    linear-gradient(180deg, #0b1018 0%, #06080d 100%);
}
html.theme-luca .sidebar,
html.theme-luca .player-bar{
  background: linear-gradient(180deg, rgba(9,13,20,.95), rgba(8,10,16,.86));
}
html.theme-luca .top-bar,
html.theme-luca .settings-card,
html.theme-luca .poster-card,
html.theme-luca .track-item,
html.theme-luca .queue-item,
html.theme-luca .search-container{
  background: linear-gradient(180deg, rgba(15,20,31,.86), rgba(10,14,22,.78));
}

html.theme-obsidian {
  --bg: #07090d;
  --bg2: #0c1016;
  --bg3: #141922;
  --bg4: #191f29;
  --surface: rgba(203,213,225,.04);
  --surface2: rgba(148,163,184,.10);
  --border: rgba(148,163,184,.14);
  --border2: rgba(226,232,240,.18);
  --accent-1: #cbd5e1;
  --accent-2: #64748b;
  --a1-glow: rgba(203,213,225,.18);
  --a1-dim: rgba(203,213,225,.08);
  --muted2: #b6bfcb;
  --theme-ring: rgba(203,213,225,.14);
}
html.theme-obsidian .main-view{
  background:
    linear-gradient(180deg, rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px),
    radial-gradient(circle at 78% 16%, rgba(203,213,225,.08), transparent 24%),
    linear-gradient(180deg, #141922 0%, #07090d 100%);
  background-size: 28px 28px, 28px 28px, auto, auto;
}
html.theme-obsidian .sidebar,
html.theme-obsidian .player-bar,
html.theme-obsidian .settings-card{
  background: linear-gradient(180deg, rgba(17,22,30,.96), rgba(9,12,18,.92));
}
html.theme-obsidian .poster-card,
html.theme-obsidian .track-item,
html.theme-obsidian .queue-item,
html.theme-obsidian .search-container,
html.theme-obsidian .top-bar{
  background: linear-gradient(180deg, rgba(20,25,34,.92), rgba(13,17,24,.86));
  border-color: rgba(148,163,184,.10);
}
html.theme-obsidian .player-bar{
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.72), inset 0 1px 0 rgba(255,255,255,.04);
}

html.theme-aurora {
  --bg: #040706;
  --bg2: #07100d;
  --bg3: #0d1912;
  --bg4: #122118;
  --surface: rgba(163,230,53,.05);
  --surface2: rgba(34,197,94,.10);
  --border: rgba(163,230,53,.14);
  --border2: rgba(187,247,208,.18);
  --accent-1: #bef264;
  --accent-2: #22c55e;
  --a1-glow: rgba(190,242,100,.22);
  --a1-dim: rgba(190,242,100,.10);
  --muted2: #c5ddb7;
  --theme-ring: rgba(190,242,100,.14);
}
html.theme-aurora .main-view{
  background:
    linear-gradient(180deg, rgba(190,242,100,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190,242,100,.03) 1px, transparent 1px),
    radial-gradient(circle at 84% 14%, rgba(190,242,100,.12), transparent 24%),
    linear-gradient(180deg, #0e1b13 0%, #040706 100%);
  background-size: 34px 34px, 34px 34px, auto, auto;
}
html.theme-aurora .sidebar,
html.theme-aurora .player-bar{
  background: linear-gradient(180deg, rgba(8,17,12,.96), rgba(5,11,8,.90));
  backdrop-filter: blur(18px);
}
html.theme-aurora .artist-card.playing .artist-img-wrap,
html.theme-aurora .poster-card:hover{ box-shadow: 0 0 24px rgba(52,211,153,.18), 0 14px 36px rgba(0,0,0,.5); }
html.theme-aurora .top-bar,
html.theme-aurora .settings-card,
html.theme-aurora .poster-card,
html.theme-aurora .track-item,
html.theme-aurora .queue-item,
html.theme-aurora .search-container{
  background: linear-gradient(180deg, rgba(15,28,18,.88), rgba(9,17,11,.82));
}
html.theme-aurora .player-bar{
  border-radius: 28px;
}

html.theme-velvet {
  --bg: #12070d;
  --bg2: #1c0d15;
  --bg3: #281220;
  --bg4: #32172a;
  --surface: rgba(251,113,133,.05);
  --surface2: rgba(124,58,237,.09);
  --border: rgba(251,113,133,.13);
  --border2: rgba(196,115,255,.22);
  --accent-1: #fb7185;
  --accent-2: #7c3aed;
  --a1-glow: rgba(251,113,133,.26);
  --a1-dim: rgba(251,113,133,.10);
  --muted2: #e0bfd2;
  --theme-ring: rgba(251,113,133,.14);
}
html.theme-velvet .main-view{
  background:
    radial-gradient(circle at 18% 12%, rgba(251,113,133,.15), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(124,58,237,.14), transparent 28%),
    linear-gradient(180deg, #220d17 0%, #12070d 100%);
}
html.theme-velvet .sidebar,
html.theme-velvet .player-bar,
html.theme-velvet .settings-card{
  background: linear-gradient(180deg, rgba(26,9,18,.96), rgba(18,7,13,.90));
}
html.theme-velvet .player-bar{
  box-shadow: 0 30px 80px rgba(81,16,59,.35), inset 0 1px 0 rgba(255,255,255,.05);
}
html.theme-velvet .top-bar,
html.theme-velvet .poster-card,
html.theme-velvet .track-item,
html.theme-velvet .queue-item,
html.theme-velvet .search-container{
  background: linear-gradient(180deg, rgba(40,14,27,.88), rgba(25,9,17,.84));
}
html.theme-velvet .sidebar{
  border-right-color: rgba(251,113,133,.09);
}

html.theme-sunset {
  --bg: #130a05;
  --bg2: #1d1108;
  --bg3: #28170c;
  --bg4: #321d0f;
  --surface: rgba(249,115,22,.05);
  --surface2: rgba(250,204,21,.09);
  --border: rgba(249,115,22,.14);
  --border2: rgba(250,204,21,.22);
  --accent-1: #f97316;
  --accent-2: #facc15;
  --a1-glow: rgba(249,115,22,.28);
  --a1-dim: rgba(249,115,22,.11);
  --muted2: #e8caa5;
  --theme-ring: rgba(249,115,22,.16);
}
html.theme-sunset .main-view{
  background:
    radial-gradient(circle at top center, rgba(250,204,21,.13), transparent 24%),
    radial-gradient(circle at 75% 85%, rgba(249,115,22,.14), transparent 30%),
    linear-gradient(180deg, #241307 0%, #130a05 100%);
}
html.theme-sunset .sidebar,
html.theme-sunset .player-bar{
  background: linear-gradient(180deg, rgba(29,17,8,.95), rgba(18,10,5,.90));
}
html.theme-sunset .poster-card .card-add-btn,
html.theme-sunset .artist-play-icon{ box-shadow: 0 0 18px rgba(249,115,22,.32); }
html.theme-sunset .top-bar,
html.theme-sunset .settings-card,
html.theme-sunset .poster-card,
html.theme-sunset .track-item,
html.theme-sunset .queue-item,
html.theme-sunset .search-container{
  background: linear-gradient(180deg, rgba(43,24,10,.88), rgba(26,15,7,.84));
}
html.theme-sunset .player-bar{
  border-radius: 18px;
}

html.theme-luca .sidebar,
html.theme-obsidian .sidebar,
html.theme-aurora .sidebar,
html.theme-velvet .sidebar,
html.theme-sunset .sidebar{
  position: relative;
}
html.theme-luca .sidebar::after,
html.theme-obsidian .sidebar::after,
html.theme-aurora .sidebar::after,
html.theme-velvet .sidebar::after,
html.theme-sunset .sidebar::after{
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, var(--theme-ring), transparent 28%);
  opacity: .9;
}

/* ════════════════════════════════════════════
   CONTACT US STYLES
   Fixing the "ugly" layout as requested.
════════════════════════════════════════════ */
.contact-links { display: flex; flex-direction: column; gap: 10px; margin-top: 5px; }
.contact-link {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg2); border: 1px solid var(--border);
  padding: 10px 14px; border-radius: 10px;
  text-decoration: none; color: var(--white);
  transition: all 0.2s;
}
.contact-link:hover {
  background: var(--bg3); border-color: var(--accent-1);
  transform: translateX(4px);
}
.cl-icon { font-size: 18px; flex-shrink: 0; }
.cl-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cl-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.cl-val { font-size: 13px; color: var(--muted2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-link:hover .cl-val { color: var(--accent-1); }
/* ════════════════════════════════════════════
   POPULAR ARTISTS SECTION
════════════════════════════════════════════ */
.artists-section {
  padding: 20px 0 8px;
}
.artists-section-header {
  display: flex; align-items: baseline;
  justify-content: space-between;
  padding: 0 28px; margin-bottom: 16px;
}
.artists-section-title {
  font-family: var(--clash); font-size: 28px;
  font-weight: 700; letter-spacing: -1px; color: var(--white);
}
.artists-see-all {
  font-size: 12px; color: var(--muted2); cursor: pointer;
  font-weight: 500; background: none; border: none;
  padding: 0; font-family: var(--satoshi);
  transition: color 0.2s;
}
.artists-see-all:hover { color: var(--white); }

.artists-scroll {
  display: flex; gap: 18px; overflow-x: auto;
  padding: 6px 24px 16px; scrollbar-width: none;
  -ms-overflow-style: none; scroll-behavior: smooth;
}
.artists-scroll::-webkit-scrollbar { display: none; }

.artist-card {
  flex-shrink: 0; width: 130px; text-align: center;
  cursor: pointer; transition: transform 0.25s var(--spring);
  position: relative;
}
.artist-card:hover { transform: translateY(-6px); }

.artist-img-wrap {
  width: 130px; height: 130px; border-radius: 50%;
  overflow: hidden; position: relative; margin: 0 auto 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.6);
  border: 2px solid rgba(255,255,255,0.06);
  transition: border-color 0.3s, box-shadow 0.3s;
  background: var(--bg4);
}
.artist-card:hover .artist-img-wrap {
  border-color: var(--accent-1);
  box-shadow: 0 0 24px rgba(0,242,254,0.2), 0 10px 36px rgba(0,0,0,0.7);
}
.artist-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.artist-card:hover .artist-img { transform: scale(1.08); }

.artist-fallback {
  width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
  color: #000; font-size: 44px; font-weight: 800;
  font-family: var(--clash); display: flex;
  align-items: center; justify-content: center;
}

.artist-play-overlay {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0,0,0,0.5); display: flex;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
.artist-card:hover .artist-play-overlay { opacity: 1; }

.artist-play-icon {
  width: 40px; height: 40px; background: var(--accent-1);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; transform: scale(0.7);
  transition: transform 0.25s var(--spring);
  box-shadow: 0 0 18px rgba(0,242,254,0.5);
}
.artist-card:hover .artist-play-icon { transform: scale(1); }

.artist-name {
  font-family: var(--satoshi); font-size: 13px; font-weight: 600;
  color: var(--off-white); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; transition: color 0.2s;
}
.artist-card:hover .artist-name { color: var(--accent-1); }
.artist-genre {
  font-size: 11px; color: var(--muted); margin-top: 3px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* Skeleton for artists */
.artist-card.skel .artist-img-wrap {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--bg4) 50%, var(--bg3) 75%);
  background-size: 200% 100%; animation: skel-artist 1.5s infinite;
}
.artist-card.skel .artist-name {
  height: 11px; border-radius: 5px; background: var(--bg4);
  width: 70%; margin: 0 auto 5px; color: transparent;
  animation: skel-artist 1.5s infinite 0.1s;
}
.artist-card.skel .artist-genre {
  height: 9px; border-radius: 4px; background: var(--bg4);
  width: 45%; margin: 0 auto; color: transparent;
  animation: skel-artist 1.5s infinite 0.2s;
}
@keyframes skel-artist {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* Pulse when artist is active/playing */
.artist-card.playing .artist-img-wrap {
  border-color: var(--accent-1);
  animation: artist-pulse 2s ease-in-out infinite;
}
@keyframes artist-pulse {
  0%,100% { box-shadow: 0 0 14px rgba(0,242,254,0.2); }
  50%      { box-shadow: 0 0 28px rgba(0,242,254,0.45); }
}

/* Mobile artists */
@media(max-width:768px) {
  .artists-section { padding: 16px 0 4px; }
  .artists-section-header { padding: 0 16px; }
  .artists-scroll { padding: 4px 16px 12px; gap: 14px; }
  .artist-card { width: 110px; }
  .artist-img-wrap { width: 110px; height: 110px; }
}
/* ════════════════════════════════════════════
   HOME GREETING
════════════════════════════════════════════ */
.home-greeting {
  font-family: var(--satoshi);
  font-size: 14px;
  font-weight: 700;
  color: var(--off-white);
  white-space: nowrap;
  letter-spacing: -0.2px;
  opacity: 0.92;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}

/* ════════════════════════════════════════════
   LYRICS BUTTON
════════════════════════════════════════════ */
.lyrics-btn {
  font-size: 15px !important;
  display: flex !important;
}

/* ════════════════════════════════════════════
   LYRICS PANEL
════════════════════════════════════════════ */
.lyrics-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: var(--player-h);
  width: 360px;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 198;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}
.lyrics-panel.open {
  transform: translateX(0);
}

.lyrics-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.lyrics-track-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}
.lyrics-song-title {
  font-family: var(--clash);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--white);
}
.lyrics-artist-name {
  font-size: 11.5px;
  color: var(--muted2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lyrics-close-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s;
  flex-shrink: 0;
  padding: 4px;
}
.lyrics-close-btn:hover { color: var(--white); }

.lyrics-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.lyrics-panel-body::-webkit-scrollbar { width: 4px; }
.lyrics-panel-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

.lyrics-text {
  font-family: var(--satoshi);
  font-size: 15px;
  line-height: 2;
  color: var(--off-white);
  white-space: pre-wrap;
  letter-spacing: 0.1px;
}

.lyrics-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 200px;
  color: var(--muted2);
  font-size: 13px;
}
.lyr-spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--border2);
  border-top-color: var(--accent-1);
  border-radius: 50%;
  animation: lyr-spin 0.7s linear infinite;
}
@keyframes lyr-spin { to { transform: rotate(360deg); } }

.lyrics-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 200px;
  color: var(--muted2);
  text-align: center;
  font-size: 13px;
}
.lyrics-empty span { font-size: 36px; }
.lyrics-empty p { line-height: 1.6; }

/* ════════════════════════════════════════════
   PLAYER BAR — Anti-Glitch Fixes
════════════════════════════════════════════ */

/* Remove jarring coverEl scale animation — use gentle glow instead */
.cover-small {
  transition: box-shadow 0.4s ease !important;
  transform: none !important;
}
.cover-small:hover {
  box-shadow: 0 0 20px rgba(0,242,254,0.25) !important;
  transform: none !important;
}

/* Progress bar — smooth and crisp */
.progress-container {
  cursor: pointer;
  position: relative;
  transition: height 0.2s ease !important;
}
.progress {
  transition: width 0.1s linear !important;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2)) !important;
  border-radius: 2px;
}
.progress-container:hover .progress {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2)) !important;
}

/* Remove the ::after thumb which causes visual glitch */
.progress-container::after { display: none !important; }

/* Smooth thumb on actual hover */
.progress-container:hover::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(255,255,255,0.4);
}

/* ── UPDATED PLAYER BAR ───────────────────────────── */
.player-bar {
  background: rgba(8, 10, 15, 0.92);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  height: 76px;
  padding: 0 20px;
  display: grid !important;
  grid-template-columns: 260px 1fr 260px;
  align-items: center;
  z-index: 1000;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.8),
    0 0 0 0.5px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.05);
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1100px;
}

/* ── NOW PLAYING INFO ── */
.now-playing-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.cover-small {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.6);
  transition: box-shadow 0.3s;
}
.cover-small:hover { box-shadow: 0 0 18px rgba(0,242,254,0.25); }
.meta-small { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.title-small { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.1px; }
.artist-small { font-size: 11px; color: var(--muted2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── CENTER CONTROLS ── */
.player-controls-center {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-self: center;
}

.controls-main {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s, transform 0.15s;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover { color: #fff; transform: scale(1.1); }
.icon-btn.active-state { color: var(--accent-1); }

.sub-ctrl { opacity: 0.5; font-size: 13px !important; }
.sub-ctrl:hover { opacity: 1; }

/* Play button — glowing white pill */
.primary-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding-left: 2px;
  flex-shrink: 0;
  transition: transform 0.2s var(--spring), box-shadow 0.2s;
  box-shadow: 0 0 0 0 rgba(255,255,255,0);
}
.primary-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}
.primary-play-btn:active { transform: scale(0.93); }

/* Progress bar */
.progress-container-alt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.time-label {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  min-width: 32px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}
.progress-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  cursor: pointer;
  position: relative;
  transition: height 0.2s;
}
.progress-track:hover { height: 5px; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 99px;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 20px var(--a1-glow);
}

/* ── RIGHT SIDE: Volume + Actions ── */
.vol-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Volume icon button */
.icon-btn-vol {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font-size: 15px;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s;
  display: flex;
  align-items: center;
}
.icon-btn-vol:hover { color: #fff; }

/* Slim volume slider */
.vol-slider-alt {
  width: 80px;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.12);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
  transition: width 0.2s;
}
.vol-slider-alt:hover { width: 90px; }
.vol-slider-alt::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0,242,254,0.4);
  transition: transform 0.15s;
}
.vol-slider-alt:hover::-webkit-slider-thumb { transform: scale(1.3); }
.vol-slider-alt::-moz-range-thumb {
  width: 11px; height: 11px;
  background: #fff; border-radius: 50%;
  border: none; cursor: pointer;
}

/* Queue button — pill style */
.icon-btn-q {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 14px;
  padding: 5px 10px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}
.icon-btn-q:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.15);
}

/* ── HOME ROW HEADERS ───────────────────────────────── */
.row-header, .artists-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 16px;
  padding: 0 16px;
}
.see-all-link {
  background: none;
  border: none;
  color: var(--accent-1);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.see-all-link:hover {
  background: rgba(0, 242, 254, 0.1);
  letter-spacing: 1.5px;
}

/* Volume slider — smoother */
input[type="range"] {
  transition: none !important;
}

/* Mobile fixes for lyrics panel */
@media(max-width:768px) {
  .lyrics-panel {
    width: 100%;
    top: 0;
    bottom: calc(var(--player-h) + 68px);
    transform: translateY(100%);
  }
  .lyrics-panel.open {
    transform: translateY(0);
  }
  .lyrics-panel-body, .np-lyrics-body {
    white-space: pre-wrap !important;
    overflow-y: auto !important;
    height: 100%;
    scroll-behavior: smooth;
  }
  .home-greeting {
    display: none;
  }
}

/* ════════════════════════════════════════════
   NOW PLAYING — ULTRA PREMIUM POPUP
════════════════════════════════════════════ */

body.np-active { overflow: hidden; }

/* ── Overlay shell ── */
.np-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(20px);
  overflow: hidden;
  padding: 18px 24px 24px;
}
.np-overlay.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* ── Backgrounds ── */
.np-bg-blur {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(90px) saturate(1.8) brightness(0.28);
  transform: scale(1.15);
  transition: background-image 0.7s ease;
  z-index: 0;
}
.np-bg-grain {
  position: absolute; inset: 0; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}
.np-bg-vignette {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
}

/* ── Close chevron ── */
.np-close-btn {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--white);
  backdrop-filter: blur(10px);
  transition: background 0.2s, transform 0.25s;
}
.np-close-btn:hover {
  background: rgba(255,255,255,0.16);
  transform: translateX(-50%) translateY(-3px);
}
.np-close-btn svg { width: 18px; height: 18px; }

/* ── Inner flex container ── */
.np-inner {
  position: relative; z-index: 10;
  display: flex;
  align-items: stretch;
  gap: 0;
  width: min(calc(100vw - 48px), 980px);
  padding: 52px 28px 28px;
  max-height: none;
  min-height: calc(100dvh - 42px);
  overflow: hidden;
}

/* ── Left column (main player) ── */
.np-left {
  flex: 0 1 470px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 0;
  padding-bottom: 24px;
  max-width: 100%;
}

/* Device label */
.np-device-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 9px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}
.np-device-ico { width: 14px; height: 14px; }

/* ── Album Art ── */
.np-art-outer {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
}
.np-stage-orbit{
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.08);
  pointer-events:none;
  z-index:0;
  backdrop-filter: blur(10px);
}
.np-stage-orbit.orbit-a{
  width: 356px;
  height: 356px;
  top: -28px;
  background: radial-gradient(circle at center, rgba(var(--vibe-rgb),0.18), transparent 62%);
  box-shadow: 0 0 80px rgba(var(--vibe-rgb),0.18);
  animation: npOrbitPulse 7s ease-in-out infinite;
}
.np-stage-orbit.orbit-b{
  width: 420px;
  height: 420px;
  top: -58px;
  border-style: dashed;
  border-color: rgba(255,255,255,0.05);
  animation: npOrbitRotate 18s linear infinite;
}
.np-stage-badge{
  position:absolute;
  z-index:2;
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.08);
  background: rgba(8,11,18,0.52);
  color: rgba(255,255,255,0.88);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  backdrop-filter: blur(16px);
}
.np-stage-badge.badge-live{left: 18px; top: 24px;}
.np-stage-badge.badge-hires{right: 18px; bottom: 24px;}
.np-art-wrapper {
  width: 280px; height: 280px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.60),
              0 0 0 1px rgba(255,255,255,0.06);
  animation: np-float 5s ease-in-out infinite;
  flex-shrink: 0;
  position: relative;
  z-index:1;
}
.np-art-wrapper::before{
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 28%, transparent 70%, rgba(0,0,0,0.22));
  pointer-events:none;
  z-index:2;
}
.np-art-reflection{
  position:absolute;
  inset:auto 12% -18%;
  height: 30%;
  border-radius:50%;
  background: radial-gradient(circle at center, rgba(var(--vibe-rgb),0.34), transparent 72%);
  filter: blur(20px);
  opacity:.7;
  z-index:0;
}
.np-cover-art {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes np-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-8px) scale(1.01); }
}

/* ── Song meta row ── */
.np-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 12px;
  gap: 12px;
  position: relative;
  z-index: 6;
  padding: 12px 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(8,11,18,0.72), rgba(8,11,18,0.24));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
}
.np-song-info { flex: 1; min-width: 0; position: relative; z-index: 2; }
.np-song-title {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.4px; color: #fff;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 2px;
  font-family: var(--clash, 'Outfit', sans-serif);
  line-height: 1.12;
  max-width: 100%;
  filter: none !important;
  backdrop-filter: none !important;
  text-shadow: 0 10px 26px rgba(0,0,0,0.48);
}
.np-song-artist {
  font-size: 13px; color: rgba(255,255,255,0.62);
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.45;
  max-width: 100%;
  filter: none !important;
  backdrop-filter: none !important;
  text-shadow: 0 8px 22px rgba(0,0,0,0.4);
}
.np-cinema-strip{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.np-cinema-pill{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 10px;
  border-radius:999px;
  background: rgba(255,255,255,0.045);
  border:1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.68);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* Like button */
.np-like-btn {
  width: 34px; height: 34px;
  border-radius: 50%; border: none;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  position: relative;
  z-index: 3;
}
.np-like-btn svg { width: 16px; height: 16px; }
.np-like-btn:hover { background: rgba(255,255,255,0.12); color: #fff; transform: scale(1.12); }
.np-like-btn.np-liked { color: #ff3355; background: rgba(255,51,85,0.12); }

/* ── Progress bar ── */
.np-progress-section { width: 100%; margin-bottom: 14px; }
.np-progress-track {
  width: 100%; height: 5px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  cursor: pointer; position: relative;
  margin-bottom: 10px;
  transition: height 0.15s;
}
.np-progress-track:hover { height: 6px; }
.np-progress-fill {
  height: 100%; width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-1, #00f2fe), var(--accent-2, #8b5cf6));
  transition: width 0.1s linear;
  position: relative;
}
.np-progress-thumb {
  position: absolute;
  right: -7px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  background: #fff; border-radius: 50%;
  opacity: 0; transition: opacity 0.15s;
  box-shadow: 0 0 8px rgba(255,255,255,0.5);
}
.np-progress-track:hover .np-progress-thumb { opacity: 1; }
.np-time-row {
  display: flex; justify-content: space-between;
  font-size: 10px; color: rgba(255,255,255,0.4);
  font-variant-numeric: tabular-nums;
}

/* ── Controls ── */
.np-controls {
  display: flex; align-items: center;
  justify-content: center;
  gap: 10px; margin-bottom: 14px;
  width: 100%;
}
.np-ctrl-btn {
  width: 36px; height: 36px;
  border-radius: 50%; border: none;
  background: transparent;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s, transform 0.2s, background 0.2s;
}
.np-ctrl-btn svg { width: 18px; height: 18px; }
.np-ctrl-btn:hover { color: #fff; transform: scale(1.14); }
.np-ctrl-btn.np-ctrl-active { color: var(--accent-1, #00f2fe); }
.np-prev svg, .np-next svg { width: 20px; height: 20px; }

/* Big play button */
.np-play-main {
  width: 68px; height: 68px;
  border-radius: 50%; border: none;
  background: #fff; color: #000;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(0,0,0,0.50);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
}
.np-play-main:hover { transform: scale(1.08); box-shadow: 0 12px 38px rgba(255,255,255,0.12); }
.np-play-main:active { transform: scale(0.95); }
.np-pbtn-icon { width: 28px; height: 28px; }

.np-repeat-badge {
  position: absolute; bottom: 2px; right: 2px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent-1, #00f2fe);
  color: #000; font-size: 7px; font-weight: 800;
  display: none; align-items: center; justify-content: center;
}

/* ── Footer row (volume + extra buttons) ── */
.np-footer-row {
  display: flex; align-items: center;
  justify-content: space-between;
  width: 100%; gap: 16px;
  margin-bottom: 8px;
}
.np-volume-row {
  flex: 1; display: flex; align-items: center; gap: 8px;
}
.np-vol-icon {
  color: rgba(255,255,255,0.45);
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center;
  transition: color 0.15s;
}
.np-vol-icon:hover { color: #fff; }
.np-vol-slider {
  flex: 1; width: auto !important;
  height: 4px;
}

/* Extra icon buttons (EQ, Lyrics, Queue) */
.np-extra-btns { display: flex; gap: 4px; }
.np-extra-btn {
  width: 36px; height: 36px;
  border-radius: 8px; border: none;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.np-extra-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.np-extra-btn.np-action-active {
  background: rgba(0,242,254,0.12);
  color: var(--accent-1, #00f2fe);
  border: 1px solid rgba(0,242,254,0.25);
}

/* ── EQ Panel ── */
.np-eq-panel {
  width: 100%;
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
  opacity: 0;
}
.np-eq-panel.np-eq-visible {
  max-height: 120px; opacity: 1;
}
.np-eq-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 8px;
  padding-top: 2px;
}
.np-eq-grid {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.np-eq-btn {
  padding: 5px 12px;
  border-radius: 99px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  font-size: 11px; font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.np-eq-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }
.np-eq-btn.active {
  background: var(--accent-1, #00f2fe);
  border-color: var(--accent-1, #00f2fe);
  color: #000; font-weight: 700;
}

/* ── Lyrics Panel ── */
.np-lyrics-panel {
  flex: 0 0 0px;
  overflow: hidden;
  display: flex; flex-direction: column;
  opacity: 0;
  transition: flex-basis 0.4s cubic-bezier(0.4,0,0.2,1),
              opacity 0.3s ease,
              margin-left 0.4s;
  margin-left: 0;
}
.np-lyrics-panel.np-lyrics-visible {
  flex-basis: 290px;
  opacity: 1;
  margin-left: 24px;
  min-width: 0;
}
.np-lyrics-top {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  background: rgba(255,255,255,0.03);
  border-radius: 14px 14px 0 0;
}
.np-lyrics-heading {
  font-size: 13px; font-weight: 700;
  color: var(--accent-1, #00f2fe);
  letter-spacing: 0.5px;
  font-family: var(--clash, 'Outfit', sans-serif);
}
.np-lyr-close-btn {
  width: 28px; height: 28px;
  border: none; background: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}
.np-lyr-close-btn svg { width: 14px; height: 14px; }
.np-lyr-close-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }

.np-lyrics-body {
  flex: 1; overflow-y: auto;
  padding: 16px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
  border-radius: 0 0 14px 14px;
  backdrop-filter: blur(16px);
}
.np-lyrics-body::-webkit-scrollbar { width: 3px; }
.np-lyrics-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* Lyrics text styles */
.np-lyrics-text { line-height: 1; }
.lyric-line {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
  margin: 0; padding: 0;
}
.lyric-line:hover { color: #fff; }

/* Lyrics loading spinner */
.lyrics-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 0; }
.lyr-spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent-1, #00f2fe);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.lyrics-loading p { font-size: 13px; color: rgba(255,255,255,0.4); }

/* ── Synced Lyrics Aesthetics ── */
.np-lyrics-text.synced {
  padding: 120px 0;
  text-align: left;
  perspective: 1200px;
}
.lyric-line-synced {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 42px;
  transition: all 0.7s cubic-bezier(0.2, 1, 0.2, 1);
  cursor: pointer;
  line-height: 1.1;
  filter: blur(4px);
  opacity: 0.15;
  transform: scale(0.92) translateX(-20px);
  transform-origin: left;
}
.lyric-line-synced.active {
  color: #ffffff;
  transform: scale(1.2) translateX(0);
  filter: blur(0);
  opacity: 1;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.35);
}
.lyric-line-synced.prev {
  opacity: 0.35;
  filter: blur(1px);
  transform: scale(0.95) translateX(-10px);
}
@keyframes lyric-pulse {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 10px rgba(255,255,255,0.2)); }
  50% { opacity: 0.85; filter: drop-shadow(0 0 20px rgba(255,255,255,0.4)); }
}

/* ── Sidebar synced lyric lines ── */
.lyrics-text.synced { padding: 60px 0; }
.lyrics-text .lyric-line-synced {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
  color: rgba(255,255,255,0.25);
  margin: 0; padding: 4px 0;
  transition: all 0.45s cubic-bezier(0.2, 1, 0.2, 1);
  cursor: pointer;
}
.lyrics-text .lyric-line-synced.active {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-shadow: 0 0 16px rgba(255,255,255,0.3);
}
.lyrics-text .lyric-line-synced.prev {
  color: rgba(255,255,255,0.45);
}

/* ── SONIC GLOW (Ambient Mesh Gradient) ── */
.np-sonic-glow {
  position: absolute;
  inset: -10%;
  z-index: 1;
  opacity: 0.75;
  filter: blur(140px) saturate(2.5);
  pointer-events: none;
  transition: background 2s var(--ease);
  /* Mesh effect */
  background: radial-gradient(circle at 20% 30%, var(--glow-c1, #222), transparent 50%),
              radial-gradient(circle at 80% 70%, var(--glow-c2, #111), transparent 50%),
              radial-gradient(circle at 50% 50%, var(--glow-c3, #000), transparent 50%);
}

/* ── FLOWING GRADIENT SLIDER ── */
.gradient-slider {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px;
  height: 6px !important;
  outline: none;
  position: relative;
  overflow: hidden;
}
.gradient-slider::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-1));
  background-size: 200% 100%;
  animation: gradient-flow 3s linear infinite;
  height: 100%;
  border-radius: 10px;
}
@keyframes gradient-flow {
  0% { background-position: 0% 0%; }
  100% { background-position: -200% 0%; }
}
.gradient-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-1);
  cursor: pointer;
  margin-top: -3px; /* Center it */
}
.gradient-slider::-moz-range-thumb {
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-1);
  cursor: pointer;
  border: none;
}

/* ── LYRIC MODE DYNAMIC LAYOUT ── */
.np-inner {
  transition: all 0.75s cubic-bezier(0.2, 1, 0.2, 1);
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.np-left {
  transition: transform 0.75s cubic-bezier(0.2, 1, 0.2, 1), opacity 0.5s;
}
.np-overlay.lyrics-active .np-left {
  transform: none;
  flex: none;
  width: min(100%, 720px);
  max-width: 720px;
}
.np-overlay.lyrics-active .np-inner {
  display: grid !important;
  grid-template-columns: minmax(320px, 340px) minmax(0, 1fr);
  width: min(calc(100vw - 48px), 1180px);
  max-width: 1180px;
  justify-content: initial;
  align-items: center;
  gap: 24px;
}
.np-overlay.lyrics-active .np-lyrics-panel.np-lyrics-visible {
  order: -1;
  flex: none;
  width: 340px;
  margin-left: 0;
  margin-right: 0;
  max-height: calc(100dvh - 110px);
  align-self: stretch;
}
/* If NOT in lyrics mode, force art to center */
.np-overlay:not(.lyrics-active) .np-left {
  transform: translateX(0) scale(1);
}

/* ── GRID NAVIGATION (Back Button) ── */
.grid-header {
  display: flex !important;
  align-items: center !important;
  gap: 20px;
  margin: 0 28px 24px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 16px 36px rgba(0,0,0,.14);
}
.grid-back-btn {
  width: 42px !important;
  height: 42px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.grid-back-btn:hover {
  background: var(--accent-1) !important;
  color: #000 !important;
  transform: scale(1.05);
}
.grid-back-btn svg { width: 20px !important; height: 20px !important; display: block !important; }

/* ── TOP BAR REFINEMENT ── */
.top-bar {
  padding: 16px 28px !important;
}
.search-container {
  max-width: 500px !important;
}

/* ── HIDDEN PLAYER BAR ── */
.player-bar.hidden {
  transform: translateY(120%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.player-bar {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s;
}

/* ── MINI WAVEFORM (player bar) ── */
.np-waveform {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
  opacity: 0.7;
  flex-shrink: 0;
}
.wave-bar {
  width: 2.5px;
  min-height: 3px;
  background: linear-gradient(to top, var(--accent-2), var(--accent-1));
  border-radius: 99px;
  transition: height 0.08s ease;
}

/* ── Player bar click hint ── */
#nowPlayingClickable { cursor: pointer; border-radius: 8px; padding: 4px 6px; margin: -4px -6px; transition: background 0.2s; }
#nowPlayingClickable:hover { background: rgba(255, 255, 255, 0.06); }

/* ════════════════════════════════════════════
   MOBILE — NOW PLAYING
════════════════════════════════════════════ */
@media (max-width: 768px) {
  .np-inner {
    flex-direction: column;
    padding: 62px 16px 24px;
    overflow-y: auto;
    max-height: 100dvh;
    align-items: center;
    min-height: auto;
  }
  .np-left { width: 100%; flex: none; }
  .np-art-wrapper { width: 200px; height: 200px; }
  .np-lyrics-panel.np-lyrics-visible {
    flex-basis: auto;
    width: 100%;
    height: 260px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 16px;
    flex-shrink: 0;
    order: initial;
    max-height: none;
  }
}

.sidebar-user {
  margin-top: auto;
  padding: 16px 16px;
  border-top: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 18px 40px rgba(0,0,0,.24);
}
.su-avatar {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #000; font-size: 16px;
}

/* ════════════════════════════════════════════
   HYBRID BEAST — DISCOVERY UI
   ════════════════════════════════════════════ */

.global-search-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
  transition: all 0.25s var(--ease);
  margin-left: 8px;
}
.global-search-btn:hover {
  background: var(--surface2);
  border-color: var(--accent-1);
  transform: scale(1.05);
}

.discovery-section {
  margin-bottom: 42px;
  padding: 0 16px;
}
.discovery-subtitle {
  font-family: var(--clash);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
  border-left: 4px solid var(--accent-1);
  padding-left: 15px;
  letter-spacing: -.6px;
}

/* Circular Artists for Global Search */
.artist-circular .image-wrapper {
  border-radius: 50% !important;
  aspect-ratio: 1/1;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}
.artist-circular:hover .image-wrapper {
  border-color: var(--accent-1);
}
.artist-circular .poster-img {
  border-radius: 50% !important;
}

.discovery-loading-skeleton {
  height: 200px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: 12px;
  margin: 10px 0;
}
@keyframes loading-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Horizontal Row Styling for Trending Albums */
.home-row-cards {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 8px 16px 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.home-row-cards::-webkit-scrollbar { display: none; }
.home-row-cards .poster-card {
  flex: 0 0 160px;
}

/* Back button premium style */
.grid-back-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
  margin-right: 15px;
}
.grid-back-btn:hover { background: var(--surface2); color: var(--accent-1); }
/* ════════════════════════════════════════════
   NEW ADDITIONS — LucaVerse Beast Edition
════════════════════════════════════════════ */

/* ── Artist Card Circular Fix (replaces inline style !important) ── */
.artist-circular {
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.artist-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.artist-name-label {
  text-align: center;
  margin-top: 10px;
}
.artist-genre-label {
  text-align: center;
  font-size: 12px;
  color: var(--muted2);
}

/* ── Confirm Modal ─────────────────────────── */
.confirm-card {
  max-width: 320px;
  text-align: center;
}
.confirm-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.confirm-card h3 {
  font-family: var(--clash);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.confirm-message {
  font-size: 13.5px;
  color: var(--muted2);
  line-height: 1.5;
  margin-bottom: 24px;
}
.confirm-actions {
  display: flex;
  gap: 10px;
}
.confirm-cancel-btn {
  flex: 1;
  background: var(--surface);
  color: var(--white);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 11px 16px;
  font-family: var(--satoshi);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
}
.confirm-cancel-btn:hover { background: var(--surface2); }
.confirm-ok-btn {
  flex: 1;
  background: #e53935;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 16px;
  font-family: var(--satoshi);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
.confirm-ok-btn:hover { opacity: .85; }

/* ── New Playlist Modal input enter-key UX ── */
#newPlaylistModal .modal-card {
  animation: modal-rise .2s var(--spring);
}
#newPlaylistNameInput:focus {
  border-color: var(--accent-1);
  background: var(--a1-dim);
}

:root {
  --vibe-rgb: 0, 242, 254;
  --vibe-rgb-soft: 0, 145, 152;
}

.main-view {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.94), rgba(0, 0, 0, 0.98)),
    radial-gradient(circle at top, rgba(var(--vibe-rgb-soft), 0.18), transparent 60%);
}

.main-view::before {
  content: '';
  position: absolute;
  inset: -18% -10% auto;
  height: 72%;
  background:
    radial-gradient(circle at 28% 22%, rgba(var(--vibe-rgb), 0.30), transparent 36%),
    radial-gradient(circle at 72% 18%, rgba(var(--vibe-rgb-soft), 0.22), transparent 34%),
    radial-gradient(circle at center, rgba(255,255,255,0.06), transparent 58%);
  filter: blur(36px);
  opacity: 0.95;
  pointer-events: none;
  transition: background 0.8s ease, opacity 0.5s ease;
  z-index: 0;
}

.main-view::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.12'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.main-view > * {
  position: relative;
  z-index: 1;
}

.player-bar,
.top-bar,
.sidebar,
.modal-card {
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
}

.poster-card.skel,
.track-item-skeleton {
  pointer-events: none;
}

.poster-card.skel {
  border-color: rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.04);
  box-shadow: none;
}

.sk-img,
.sk-line,
.sk-block {
  background: linear-gradient(100deg, rgba(255,255,255,0.05) 20%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0.05) 80%);
  background-size: 220% 100%;
  animation: luca-shimmer 1.4s linear infinite;
}

.sk-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  margin-bottom: 14px;
}

.sk-img.is-circle,
.poster-card.circular-skeleton .sk-img,
.artist-card.skel .artist-img-wrap,
.artist-circular,
.artist-circular .poster-img,
.artist-img,
.artist-img-wrap {
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;
}

.sk-line {
  display: block;
  height: 11px;
  border-radius: 999px;
}

.sk-line.l1 {
  width: 78%;
  margin-bottom: 8px;
}

.sk-line.l2 {
  width: 52%;
  opacity: 0.75;
}

.cards-grid .poster-card.skel {
  width: 100%;
}

.track-item-skeleton {
  display: grid;
  align-items: center;
}

.track-item-skeleton .ti-cover {
  border-radius: 10px;
}

.track-item-skeleton .ti-text-skeleton {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.track-item-skeleton .ti-text-skeleton .sk-line.l1 {
  width: 68%;
  margin-bottom: 0;
}

.track-item-skeleton .ti-text-skeleton .sk-line.l2,
.track-item-skeleton .ti-artist,
.track-item-skeleton .ti-time {
  width: 44%;
}

.track-item-skeleton .ti-like {
  min-height: 20px;
}

.artist-card,
.artist-circular-card,
.artist-circular-card .image-wrapper {
  border-radius: 50%;
}

.title-small-wrap {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.title-small {
  font-weight: 700;
  letter-spacing: -0.18px;
}

.title-small.marquee {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  min-width: max-content;
  animation: luca-marquee 12s linear infinite;
}

.title-small.marquee span {
  flex: 0 0 auto;
}

.artist-small {
  opacity: 0.7;
  color: rgba(255,255,255,0.7);
}

.volume-hover-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 10px 0 4px;
  min-width: 132px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.vol-slider-alt {
  width: 72px;
  min-width: 72px;
  opacity: 0.92;
  margin-left: 10px;
  pointer-events: auto;
  transition: width .22s ease, opacity .22s ease, margin-left .22s ease;
}

.volume-hover-wrap:hover .vol-slider-alt,
.volume-hover-wrap:focus-within .vol-slider-alt {
  width: 104px;
  opacity: 1;
  margin-left: 10px;
  pointer-events: auto;
}

.np-volume-row {
  max-width: 142px;
}

.np-vol-slider {
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  pointer-events: none;
  transition: max-width .22s ease, opacity .22s ease, margin-left .22s ease;
}

.np-volume-row:hover .np-vol-slider,
.np-volume-row:focus-within .np-vol-slider {
  max-width: 108px;
  opacity: 1;
  margin-left: 8px;
  pointer-events: auto;
}

.sync-modal-card {
  max-width: 520px;
}

.sync-modal-copy {
  color: var(--muted2);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.sync-room-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
}

.sync-room-action,
.sync-room-panel {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
}

.sync-room-action {
  padding: 18px;
  text-align: left;
  color: var(--white);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .2s var(--spring), border-color .2s ease, background .2s ease;
}

.sync-room-action:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--vibe-rgb), 0.55);
  background: rgba(var(--vibe-rgb), 0.10);
}

.sync-room-action strong {
  font-family: var(--clash);
  font-size: 18px;
}

.sync-room-action span:last-child {
  color: var(--muted2);
  font-size: 13px;
  line-height: 1.5;
}

.sync-room-icon {
  font-size: 22px;
}

.sync-room-panel {
  padding: 18px;
}

.sync-room-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 10px;
}

.sync-room-input {
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.sync-room-join {
  width: 100%;
}

.sync-room-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.78);
  font-size: 13px;
}

.sync-room-status[data-kind="success"] {
  background: rgba(34,197,94,0.12);
  color: rgba(220,252,231,0.94);
}

.sync-room-status[data-kind="error"] {
  background: rgba(239,68,68,0.12);
  color: rgba(254,226,226,0.96);
}

.sync-room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.sync-room-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.84);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sync-room-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.sync-room-leave {
  display: none;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.sync-room-leave:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
}

.content-scroll {
  scroll-behavior: smooth;
}

@keyframes luca-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@keyframes luca-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 1rem)); }
}

@media (max-width: 768px) {
  .sync-room-grid {
    grid-template-columns: 1fr;
  }

  .sync-room-actions {
    justify-content: stretch;
  }

  .sync-room-leave {
    width: 100%;
  }

  .title-small.marquee {
    animation-duration: 10s;
  }

  .volume-hover-wrap:hover .vol-slider-alt,
  .volume-hover-wrap:focus-within .vol-slider-alt {
    width: 72px;
  }

  .volume-hover-wrap {
    min-width: 98px;
    padding-right: 8px;
  }

  .vol-slider-alt {
    width: 44px;
    min-width: 44px;
  }
}

.artists-section {
  margin-bottom: 26px;
}

.artists-scroll {
  gap: 18px;
}

.artist-card {
  width: 168px;
  padding: 18px 14px 16px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 18px 40px rgba(0,0,0,0.32);
  backdrop-filter: blur(14px);
}

.artist-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(var(--vibe-rgb), 0.45);
  box-shadow: 0 24px 56px rgba(0,0,0,0.42), 0 0 0 1px rgba(var(--vibe-rgb), 0.14) inset;
}

.artist-img-wrap {
  width: 136px;
  height: 136px;
  margin-bottom: 14px;
  border: 3px solid rgba(255,255,255,0.07);
  box-shadow: 0 18px 36px rgba(0,0,0,0.34);
}

.artist-name,
.artist-name-label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.artist-genre,
.artist-genre-label {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.64);
  text-transform: none;
  letter-spacing: 0;
}

.player-bar {
  max-width: 1360px;
  height: 94px;
  border-radius: 28px;
  padding: 0 24px;
  background:
    linear-gradient(180deg, rgba(7, 10, 18, 0.94), rgba(5, 7, 13, 0.90)),
    radial-gradient(circle at left, rgba(var(--vibe-rgb), 0.16), transparent 38%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 28px 90px rgba(0,0,0,0.58);
}

.now-playing-info {
  width: 34%;
  min-width: 320px;
  gap: 16px;
  padding-right: 16px;
}

.cover-small {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 28px rgba(0,0,0,0.42), 0 0 20px rgba(var(--vibe-rgb), 0.16);
}

.meta-small {
  min-width: 0;
  flex: 1;
}

.title-small-wrap {
  max-width: 100%;
}

.title-small,
.title-small.marquee {
  font-size: 16px;
  line-height: 1.25;
}

.artist-small {
  font-size: 13px;
  margin-top: 4px;
}

#nowPlayingLikeBtn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
}

.player-controls-center {
  width: 42%;
  gap: 12px;
}

.progress-container-alt {
  width: 100%;
}

.progress-track {
  height: 4px;
}

.vol-container {
  width: 24%;
  justify-content: flex-end;
  gap: 12px;
}

.icon-btn-vol,
.icon-btn-q,
.icon-btn-sync {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
}

.icon-btn-sync {
  width: 44px;
  min-width: 44px;
  border: 1px solid rgba(var(--vibe-rgb), 0.28);
  color: rgba(255,255,255,0.92);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, rgba(var(--vibe-rgb), 0.22), rgba(255,255,255,0.03));
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.icon-btn-sync:hover {
  background: linear-gradient(180deg, rgba(var(--vibe-rgb), 0.30), rgba(255,255,255,0.06));
  transform: translateY(-1px);
}

.lyrics-empty small {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,0.46);
}

@media (max-width: 768px) {
  .artist-card {
    width: 136px;
    padding: 12px;
    border-radius: 20px;
  }

  .artist-img-wrap {
    width: 112px;
    height: 112px;
  }

  .player-bar {
    height: 74px;
    padding: 0 12px;
  }

  .now-playing-info {
    min-width: 0;
    width: 46%;
    gap: 10px;
  }

  .cover-small {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .title-small,
  .title-small.marquee {
    font-size: 13px;
  }

  .artist-small {
    font-size: 11px;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 900px) {
  .app-shell {
    min-height: 100dvh;
    padding-bottom: calc(132px + env(safe-area-inset-bottom, 0));
  }

  .main-view {
    padding-bottom: calc(160px + env(safe-area-inset-bottom, 0));
  }

  .player-bar {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0));
    width: auto;
    max-width: none;
  }

  .sidebar {
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0));
  }
}

@media (max-width: 768px) {
  .app-shell {
    padding-bottom: calc(146px + env(safe-area-inset-bottom, 0));
  }

  .main-view {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: calc(168px + env(safe-area-inset-bottom, 0));
  }

  .top-bar {
    padding-top: calc(10px + env(safe-area-inset-top, 0));
  }

  .content-wrap,
  .home-view,
  .search-view,
  .lyrics-view,
  .history-view,
  .liked-view,
  .profile-view {
    padding-bottom: calc(154px + env(safe-area-inset-bottom, 0));
  }

  .player-bar {
    height: auto;
    min-height: 84px;
    padding: 10px 12px;
    border-radius: 24px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .now-playing-info,
  .player-controls-center,
  .vol-container {
    width: 100%;
    min-width: 0;
  }

  .player-controls-center {
    order: 3;
  }

  .vol-container {
    order: 2;
    justify-content: space-between;
  }
}

.mobile-dock {
  display: none;
}

.install-app-btn {
  display: none;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(var(--vibe-rgb), 0.20), rgba(255,255,255,0.06));
  color: rgba(255,255,255,0.94);
  border-radius: 999px;
  padding: 0 14px;
  height: 36px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}

@media (max-width: 768px) {
  :root {
    --mobile-dock-h: 84px;
  }

  body {
    background:
      radial-gradient(circle at top center, rgba(var(--vibe-rgb), 0.16), transparent 26%),
      linear-gradient(180deg, #04060b 0%, #020307 100%);
  }

  .sidebar {
    display: none !important;
  }

  .app-layout {
    height: auto;
    min-height: calc(100dvh - var(--mobile-dock-h));
  }

  .main-view {
    min-height: 100dvh;
    border-radius: 0;
    background:
      radial-gradient(circle at top left, rgba(var(--vibe-rgb), 0.12), transparent 24%),
      radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 20%),
      linear-gradient(180deg, rgba(5,8,15,0.98), rgba(2,3,8,0.98)) !important;
  }

  .top-bar {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "greeting sync profile"
      "search search";
    gap: 12px;
    padding: calc(14px + env(safe-area-inset-top, 0)) 14px 12px !important;
    background: linear-gradient(180deg, rgba(8,11,18,0.94), rgba(8,11,18,0.70));
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 40;
  }

  .top-bar-actions {
    grid-area: greeting;
    order: 1;
    min-width: 0;
  }

  .mobile-sync-btn{
    grid-area: sync;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:42px;
    min-width:42px;
    padding:0 12px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
    color:#fff;
    font-size:11px;
    font-weight:900;
    letter-spacing:.12em;
    box-shadow: 0 16px 34px rgba(0,0,0,.28);
  }

  .home-greeting {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.07);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.92);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .queue-btn {
    display: none !important;
  }

  .install-app-btn.is-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .user-profile {
    grid-area: profile;
    position: static;
    width: 42px;
    height: 42px;
    justify-self: end;
    box-shadow: 0 16px 30px rgba(0,0,0,0.32), 0 0 24px rgba(var(--vibe-rgb), 0.18);
  }

  .search-container {
    grid-area: search;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    max-width: none !important;
    width: 100%;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    box-shadow: 0 18px 40px rgba(0,0,0,0.26);
  }

  .search-input {
    font-size: 14px;
  }

  .global-search-btn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .content-scroll {
    padding-bottom: calc(176px + env(safe-area-inset-bottom, 0)) !important;
  }

  #homeRowsContainer {
    padding-top: 8px;
  }

  .home-showcase {
    margin: 10px 0 26px;
    padding: 20px 16px;
    border-radius: 28px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-showcase-copy {
    gap: 14px;
  }

  .home-showcase-title {
    font-size: clamp(28px, 9vw, 40px);
    line-height: 0.96;
  }

  .home-showcase-subtext {
    max-width: none;
    font-size: 13px;
    line-height: 1.7;
  }

  .showcase-chip-row,
  .showcase-meta-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .showcase-stage {
    min-height: 280px;
    padding: 16px;
    border-radius: 26px;
  }

  .home-row {
    margin-bottom: 24px;
  }

  .home-row-title,
  .section-title {
    padding: 0 14px !important;
    font-size: 24px !important;
    letter-spacing: -0.04em;
  }

  .row-header,
  .grid-header {
    margin: 0 14px 18px !important;
    gap: 12px;
    align-items: center;
  }

  .see-all-link {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
  }

  .home-row-cards {
    gap: 14px;
    padding: 6px 14px 18px !important;
    scroll-padding-left: 14px;
  }

  .poster-card,
  .home-row-cards .poster-card {
    width: 146px !important;
    border-radius: 22px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 0 14px 22px !important;
  }

  .artist-card {
    width: 146px;
    padding: 14px 12px;
  }

  .artist-img-wrap {
    width: 118px;
    height: 118px;
  }

  .track-item {
    margin: 0 10px 10px;
    padding: 12px 12px;
    border-radius: 18px;
    grid-template-columns: 28px minmax(0, 1fr) 44px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  }

  .ti-cover {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .lyrics-panel {
    bottom: calc(156px + env(safe-area-inset-bottom, 0));
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -20px 60px rgba(0,0,0,0.46);
  }

  .player-bar {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(var(--mobile-dock-h) + 10px + env(safe-area-inset-bottom, 0)) !important;
    width: auto !important;
    min-height: 78px;
    padding: 10px 12px !important;
    border-radius: 24px !important;
    background:
      linear-gradient(180deg, rgba(8,10,16,0.94), rgba(7,9,14,0.90)),
      radial-gradient(circle at left, rgba(var(--vibe-rgb), 0.18), transparent 32%) !important;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 20px 46px rgba(0,0,0,0.38);
  }

  .now-playing-info {
    align-items: center;
    gap: 12px;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    padding-right: 10px;
  }

  .cover-small {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .title-small,
  .title-small.marquee {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.08;
  }

  .artist-small {
    font-size: 11px;
    opacity: 0.76;
  }

  .player-controls-center {
    width: auto !important;
    flex: 0 0 auto !important;
    gap: 0 !important;
  }

  .controls-main {
    justify-content: center;
    gap: 0 !important;
  }

  .primary-play-btn {
    width: 50px !important;
    height: 50px !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.36), 0 0 20px rgba(var(--vibe-rgb), .14);
  }

  .vol-container {
    display: none !important;
  }

  .mobile-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0));
    height: var(--mobile-dock-h);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px;
    border-radius: 28px;
    background:
      linear-gradient(180deg, rgba(8,10,16,0.95), rgba(6,8,13,0.92)),
      radial-gradient(circle at center, rgba(var(--vibe-rgb), 0.16), transparent 38%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03) inset;
    backdrop-filter: blur(26px) saturate(160%);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
    z-index: 1100;
  }

  .mobile-dock-btn {
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.56);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
  }

  .mobile-dock-btn.active {
    color: #fff;
    background: linear-gradient(180deg, rgba(var(--vibe-rgb), 0.26), rgba(255,255,255,0.05));
    box-shadow: 0 10px 24px rgba(0,0,0,0.24), 0 0 16px rgba(var(--vibe-rgb), 0.16);
    transform: translateY(-4px);
  }

  .mobile-dock-btn-accent {
    color: rgba(255,255,255,0.88);
  }

  .mobile-dock-icon {
    font-size: 18px;
    line-height: 1;
  }

  .mobile-dock-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

.sheet-grabber {
  display: none;
}

.mobile-install-banner {
  display: none;
}

@media (max-width: 768px) {
  .sheet-grabber {
    display: block;
    width: 56px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,0.22);
    margin: 10px auto 0;
    flex-shrink: 0;
  }

  .mobile-install-banner {
    display: block;
    margin: 10px 14px 0;
    padding: 16px;
    border-radius: 24px;
    background:
      linear-gradient(135deg, rgba(var(--vibe-rgb), 0.20), rgba(255,255,255,0.05)),
      rgba(10,12,18,0.92);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 44px rgba(0,0,0,0.28);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease, transform 0.32s ease;
  }

  .mobile-install-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-install-copy strong {
    display: block;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #fff;
  }

  .mobile-install-copy p {
    font-size: 12px;
    line-height: 1.65;
    color: rgba(255,255,255,0.66);
  }

  .mobile-install-eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(var(--vibe-rgb), 1);
  }

  .mobile-install-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
  }

  .mobile-install-primary,
  .mobile-install-dismiss {
    border: 0;
    border-radius: 999px;
    height: 40px;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  .mobile-install-primary {
    background: linear-gradient(135deg, rgba(var(--vibe-rgb), 1), rgba(255,255,255,0.92));
    color: #02040a;
    box-shadow: 0 14px 24px rgba(0,0,0,0.18);
  }

  .mobile-install-dismiss {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.88);
    border: 1px solid rgba(255,255,255,0.08);
  }

  .queue-panel,
  .lyrics-panel {
    width: calc(100% - 12px);
    left: 6px;
    right: 6px;
    top: auto;
    bottom: calc(156px + env(safe-area-inset-bottom, 0));
    border-radius: 28px 28px 0 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-bottom: none;
    background:
      linear-gradient(180deg, rgba(10,13,20,0.96), rgba(6,8,14,0.96)),
      radial-gradient(circle at top, rgba(var(--vibe-rgb), 0.14), transparent 28%);
    box-shadow: 0 -20px 50px rgba(0,0,0,0.42);
    backdrop-filter: blur(26px) saturate(170%);
    -webkit-backdrop-filter: blur(26px) saturate(170%);
  }

  .queue-panel {
    height: min(56dvh, 460px);
    right: 6px;
    transform: translateY(calc(100% + 18px));
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .queue-panel.open {
    right: 6px;
    transform: translateY(0);
  }

  .lyrics-panel {
    transform: translateY(calc(100% + 18px));
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .lyrics-panel.open {
    transform: translateY(0);
  }

  .queue-header,
  .lyrics-panel-header {
    padding: 16px 18px 14px;
  }

  .queue-header span,
  .lyrics-song-title {
    font-size: 16px;
    font-weight: 800;
  }

  .queue-list,
  .lyrics-panel-body {
    padding-bottom: 20px;
  }

  .queue-overlay {
    background: rgba(0,0,0,0.38);
    backdrop-filter: blur(4px);
  }

  .np-overlay {
    padding: calc(10px + env(safe-area-inset-top, 0)) 12px calc(14px + env(safe-area-inset-bottom, 0));
    align-items: flex-end;
  }

  .np-close-btn {
    top: calc(8px + env(safe-area-inset-top, 0));
    width: 36px;
    height: 36px;
  }

  .np-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-height: min(88dvh, 760px);
    max-height: min(88dvh, 760px);
    padding: 54px 16px 18px !important;
    border-radius: 32px;
    background:
      linear-gradient(180deg, rgba(12,15,22,0.96), rgba(7,10,16,0.92)),
      radial-gradient(circle at top, rgba(var(--vibe-rgb), 0.18), transparent 30%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 80px rgba(0,0,0,0.48);
    overflow: hidden;
  }

  .np-left {
    width: 100% !important;
    max-width: none !important;
    padding-bottom: 0;
  }

  .np-device-label {
    margin-bottom: 10px;
    font-size: 9px;
  }

  .np-art-outer {
    margin-bottom: 14px;
  }

  .np-art-wrapper {
    width: min(52vw, 220px) !important;
    height: min(52vw, 220px) !important;
    border-radius: 24px;
    box-shadow: 0 20px 48px rgba(0,0,0,0.5);
  }

  .np-meta-row {
    margin-bottom: 10px;
    align-items: center;
  }

  .np-song-title {
    font-size: clamp(22px, 7vw, 30px);
    line-height: 1.03;
    -webkit-line-clamp: 2;
  }

  .np-song-artist {
    font-size: 14px;
    opacity: 0.72;
  }

  .np-like-btn {
    width: 40px;
    height: 40px;
  }

  .np-progress-section {
    margin-bottom: 12px;
  }

  .np-progress-track {
    height: 6px;
    margin-bottom: 8px;
  }

  .np-controls {
    gap: 12px;
    margin-bottom: 12px;
  }

  .np-ctrl-btn {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.04);
  }

  .np-play-main {
    width: 74px;
    height: 74px;
  }

  .np-footer-row {
    gap: 12px;
    align-items: center;
  }

  .np-volume-row {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 999px;
    padding: 0 10px;
    min-height: 40px;
  }

  .np-extra-btns {
    gap: 8px;
  }

  .np-extra-btn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
  }

  .np-eq-panel.np-eq-visible {
    max-height: 132px;
    padding-top: 2px;
  }

  .np-overlay.lyrics-active .np-inner {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
  }

  .np-overlay.lyrics-active .np-left {
    transform: none;
  }

  .np-overlay.lyrics-active .np-lyrics-panel.np-lyrics-visible {
    width: 100%;
    max-height: min(34dvh, 280px);
    margin: 14px 0 0;
    border-radius: 24px;
  }

  .np-lyrics-panel {
    background: rgba(255,255,255,0.03);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.06);
  }

  .np-lyrics-top {
    padding: 14px 16px;
    border-radius: 24px 24px 0 0;
  }

  .np-lyrics-body {
    padding: 14px 16px 18px;
  }

  .lyric-line {
    font-size: 14px;
    line-height: 1.7;
  }
}

@keyframes lucaTapPop {
  0% { transform: scale(1); }
  45% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

@keyframes lucaWavePulse {
  0%, 100% { transform: scaleY(0.35); opacity: 0.42; }
  50% { transform: scaleY(1); opacity: 1; }
}

.mobile-tap-pop {
  animation: lucaTapPop 0.22s ease;
}

.mobile-onboarding {
  display: none;
}

@media (max-width: 768px) {
  html, body, input, button, textarea, select {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
  }

  .logo-wordmark,
  .home-row-title,
  .section-title,
  .grid-header h2,
  .np-song-title {
    font-family: 'Space Grotesk', sans-serif !important;
  }

  .install-app-btn,
  .mobile-install-banner {
    display: none !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
  }

  .home-showcase {
    display: none !important;
  }

  .main-view::before,
  .main-view::after {
    opacity: 0.42;
  }

  .top-bar {
    gap: 10px !important;
    padding: calc(12px + env(safe-area-inset-top, 0)) 16px 10px !important;
  }

  .home-greeting {
    font-size: 12px !important;
    min-height: 36px !important;
    padding: 0 14px !important;
  }

  .search-container {
    padding: 10px 12px !important;
    border-radius: 18px !important;
  }

  .global-search-btn {
    width: 38px !important;
    height: 38px !important;
  }

  .content-scroll {
    padding: 12px 0 calc(164px + env(safe-area-inset-bottom, 0)) !important;
  }

  #homeRowsContainer {
    padding-top: 0 !important;
  }

  .artists-section,
  .home-row:first-child {
    margin-top: 0 !important;
  }

  .row-header,
  .grid-header {
    margin: 0 16px 14px !important;
    gap: 10px !important;
  }

  .home-row-title,
  .section-title {
    padding: 0 16px !important;
    font-size: 20px !important;
    line-height: 1.08 !important;
    margin-bottom: 12px !important;
  }

  .home-row-cards {
    gap: 12px !important;
    padding: 4px 16px 18px !important;
  }

  .poster-card,
  .home-row-cards .poster-card,
  .artist-card {
    width: 138px !important;
    min-width: 138px !important;
    border-radius: 20px !important;
    padding: 12px !important;
  }

  .artist-img-wrap {
    width: 112px !important;
    height: 112px !important;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 0 16px 22px !important;
  }

  .track-item {
    margin: 0 10px 10px !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }

  .player-bar {
    left: 12px !important;
    right: auto !important;
    width: calc(100vw - 24px) !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    height: 68px !important;
    min-height: 68px !important;
    padding: 8px 10px !important;
    gap: 8px !important;
    border-radius: 20px !important;
    bottom: calc(82px + env(safe-area-inset-bottom, 0)) !important;
    z-index: 1095 !important;
  }

  .now-playing-info {
    width: auto !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    gap: 10px !important;
    padding-right: 4px !important;
  }

  .cover-small {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
  }

  .meta-small {
    min-width: 0;
  }

  .title-small,
  .title-small.marquee {
    font-size: 13px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    animation: none !important;
  }

  .artist-small {
    font-size: 11px !important;
  }

  #nowPlayingLikeBtn,
  #shuffleBtn,
  #prevBtn,
  #nextBtn,
  #repeatBtn,
  .progress-container-alt,
  .volume-hover-wrap,
  #listenTogetherPlayerBtn {
    display: none !important;
  }

  .player-controls-center {
    width: auto !important;
    flex: 0 0 auto !important;
    gap: 0 !important;
  }

  .controls-main {
    gap: 0 !important;
  }

  .primary-play-btn {
    width: 42px !important;
    height: 42px !important;
  }

  .vol-container {
    width: auto !important;
    flex: 0 0 auto !important;
    gap: 8px !important;
  }

  .np-waveform {
    display: flex !important;
    width: 22px;
    height: 18px;
    gap: 2px;
  }

  .wave-bar {
    width: 3px !important;
    border-radius: 999px !important;
    transform-origin: bottom center;
    animation: lucaWavePulse 0.95s ease-in-out infinite;
  }

  .wave-bar:nth-child(2) { animation-delay: 0.08s; }
  .wave-bar:nth-child(3) { animation-delay: 0.16s; }
  .wave-bar:nth-child(4) { animation-delay: 0.24s; }
  .wave-bar:nth-child(5) { animation-delay: 0.32s; }

  #queueBtn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 12px !important;
  }

  .mobile-dock {
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    grid-template-columns: repeat(4, 1fr) !important;
    height: 72px !important;
    padding: 8px !important;
    border-radius: 24px !important;
  }

  .mobile-dock-btn {
    gap: 4px !important;
    border-radius: 16px !important;
  }

  .mobile-dock-label {
    font-size: 9px !important;
    letter-spacing: 0.06em !important;
  }

  .lyrics-panel,
  .queue-panel {
    bottom: calc(164px + env(safe-area-inset-bottom, 0)) !important;
  }

  .queue-list {
    gap: 10px !important;
    padding: 10px 12px 18px !important;
  }

  .queue-item {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 0;
    transition: transform .26s cubic-bezier(.22,1,.36,1), box-shadow .26s ease, border-color .26s ease, background .26s ease;
  }

  .queue-item-main {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    transition: transform 0.28s cubic-bezier(.22,1,.36,1);
  }

  .queue-list.queue-reordering .queue-item:not(.queue-dragging) {
    transform: scale(.985);
  }

  .queue-item.swiped .queue-item-main {
    transform: translateX(-82px);
  }

  .queue-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    bottom: 8px;
    width: 74px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #ff6b6b, #ff3b5f);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  .queue-item-cover {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
  }

  .mobile-onboarding {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(3,4,8,0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 20px;
    align-items: flex-end;
    justify-content: center;
  }

  .mobile-onboarding.is-visible {
    display: flex;
  }

  .mobile-onboarding-card {
    width: 100%;
    border-radius: 28px;
    padding: 22px 18px 18px;
    background:
      linear-gradient(180deg, rgba(14,17,24,0.96), rgba(8,10,16,0.96)),
      radial-gradient(circle at top, rgba(var(--vibe-rgb), 0.22), transparent 34%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 70px rgba(0,0,0,0.45);
  }

  .mobile-onboarding-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
  }

  .mobile-onboarding-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
  }

  .mobile-onboarding-dot.active {
    width: 26px;
    background: rgba(var(--vibe-rgb), 1);
  }

  .mobile-onboarding-slide {
    display: none;
  }

  .mobile-onboarding-slide.active {
    display: block;
  }

  .mobile-onboarding-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(var(--vibe-rgb), 1);
  }

  .mobile-onboarding-slide h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    line-height: 1.05;
    margin-bottom: 10px;
    color: #fff;
  }

  .mobile-onboarding-slide p {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
  }

  .mobile-onboarding-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
  }

  .mobile-onboarding-skip,
  .mobile-onboarding-next {
    height: 44px;
    border-radius: 999px;
    border: 0;
    padding: 0 18px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  .mobile-onboarding-skip {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.86);
    border: 1px solid rgba(255,255,255,0.08);
  }

  .mobile-onboarding-next {
    background: linear-gradient(135deg, rgba(var(--vibe-rgb), 1), rgba(255,255,255,0.92));
    color: #05070d;
    flex: 1;
  }

  .mobile-onboarding-art {
    position: relative;
    height: 124px;
    margin-bottom: 14px;
    border-radius: 24px;
    overflow: hidden;
    background:
      radial-gradient(circle at top, rgba(var(--vibe-rgb), 0.22), transparent 44%),
      linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.07);
  }
  .onboarding-illustration{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    opacity:.98;
    pointer-events:none;
  }

  .onboarding-vinyl {
    position: absolute;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    left: 18px;
    top: 20px;
    background:
      radial-gradient(circle at center, #0f1724 0 10px, transparent 10px),
      radial-gradient(circle at center, transparent 0 26px, rgba(255,255,255,0.06) 26px 28px, transparent 28px),
      linear-gradient(135deg, rgba(var(--vibe-rgb), 0.92), rgba(255,255,255,0.12));
    box-shadow: 0 12px 30px rgba(0,0,0,0.26);
    animation: lucaOnboardSpin 8s linear infinite;
  }

  .onboarding-spark {
    position: absolute;
    right: 22px;
    top: 26px;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(var(--vibe-rgb), 0.34));
    transform: rotate(12deg);
    animation: lucaSparkFloat 5s ease-in-out infinite;
  }

  .spark-two {
    right: 74px;
    top: 56px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    transform: rotate(-14deg);
    opacity: 0.72;
    animation-delay: -1.8s;
  }

  .gesture-phone {
    position: absolute;
    inset: 18px auto 18px 50%;
    width: 84px;
    transform: translateX(-50%);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(9,12,18,0.96), rgba(18,22,34,0.92));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 26px rgba(0,0,0,0.22);
    overflow: hidden;
  }
  .gesture-phone::before{
    content:'';
    position:absolute;
    inset:10px 14px 18px;
    border-radius:16px;
    background: linear-gradient(180deg, rgba(var(--vibe-rgb),0.30), rgba(255,255,255,0.04));
  }

  .gesture-swipe {
    position: absolute;
    top: 52px;
    width: 56px;
    height: 2px;
    background: rgba(var(--vibe-rgb), 1);
    box-shadow: 0 0 12px rgba(var(--vibe-rgb), 0.5);
  }

  .gesture-swipe::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -3px;
    width: 10px;
    height: 10px;
    border-top: 2px solid rgba(var(--vibe-rgb), 1);
    border-right: 2px solid rgba(var(--vibe-rgb), 1);
    transform: rotate(45deg);
  }

  .gesture-left {
    left: 28px;
  }

  .gesture-right {
    right: 28px;
    transform: scaleX(-1);
  }

  .install-card-glow {
    position: absolute;
    inset: 22px 50px;
    border-radius: 30px;
    background: radial-gradient(circle at center, rgba(var(--vibe-rgb), 0.34), transparent 66%);
  }

  .install-card-shell {
    position: absolute;
    inset: 18px 84px 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(11,14,22,0.96), rgba(18,22,34,0.92));
    border: 1px solid rgba(255,255,255,0.09);
    display: grid;
    place-items: center;
    box-shadow: 0 16px 34px rgba(0,0,0,0.22);
    overflow: hidden;
  }
  .install-card-shell::before{
    content:'';
    position:absolute;
    inset:10px;
    border-radius:18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 42%);
  }

  .install-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(var(--vibe-rgb), 1), rgba(255,255,255,0.86));
    color: #05070d;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.16em;
  }

  button,
  .mobile-dock-btn,
  .poster-card,
  .artist-card,
  .queue-item-main,
  .queue-item-remove,
  .see-all-link,
  .global-search-btn {
    -webkit-tap-highlight-color: transparent;
  }

  .np-mobile-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }

  .np-mobile-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.86);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .np-inner {
    position: relative;
  }

  .np-inner::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 54px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,0.26);
  }

  .np-song-title {
    letter-spacing: -0.06em;
  }

  .np-progress-track {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  }

  .np-controls {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 999px;
    padding: 8px 10px;
  }

  .np-ctrl-btn {
    background: transparent !important;
  }

  .np-play-main {
    box-shadow: 0 14px 30px rgba(255,255,255,0.08), 0 14px 28px rgba(0,0,0,0.34) !important;
  }

  .np-footer-row {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 10px 12px;
  }

  .queue-item-grab {
    color: rgba(255,255,255,0.45);
    font-size: 16px;
    font-weight: 800;
    margin-left: auto;
    padding-left: 8px;
  }

  .queue-item.queue-dragging {
    opacity: 0.84;
    transform: scale(1.035) rotate(-1deg);
    box-shadow: 0 22px 42px rgba(0,0,0,0.34), 0 0 0 1px rgba(var(--vibe-rgb),0.22);
    border-color: rgba(var(--vibe-rgb),0.34);
  }
}

@media (max-width: 768px) {
  .top-bar,
  .player-bar,
  .mobile-dock,
  .queue-panel,
  .lyrics-panel {
    backdrop-filter: blur(14px) saturate(135%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(135%) !important;
  }

  .player-bar {
    padding-bottom: 14px !important;
  }

  .progress-container-alt {
    display: flex !important;
    position: absolute !important;
    left: 70px !important;
    right: 48px !important;
    bottom: 8px !important;
    width: auto !important;
    z-index: 2 !important;
    gap: 0 !important;
  }

  .time-label {
    display: none !important;
  }

  .progress-track {
    height: 3px !important;
  }

  .install-app-btn.mobile-install-show {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
  }

  .np-light-trail {
    position: absolute;
    width: 120px;
    height: 280px;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.34;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(var(--vibe-rgb), 0.85), transparent);
    animation: lucaTrailFloat 9s ease-in-out infinite;
  }

  .trail-a {
    left: 10%;
    top: 16%;
    transform: rotate(-18deg);
  }

  .trail-b {
    right: 12%;
    top: 8%;
    transform: rotate(16deg);
    animation-delay: -3s;
  }

  .mobile-onboarding {
    touch-action: auto;
  }

  .np-overlay {
    touch-action: pan-y;
  }

  .np-inner{
    width:min(calc(100vw - 20px), 560px);
    min-height: calc(100dvh - 22px);
    padding: 56px 18px 26px;
  }

  .np-left{
    flex:1 1 auto;
    width:100%;
    padding: 0 2px 20px;
  }

  .np-art-outer{
    margin-bottom: 22px;
  }

  .np-stage-orbit.orbit-a{
    width: 330px;
    height: 330px;
    top: -18px;
  }

  .np-stage-orbit.orbit-b{
    width: 392px;
    height: 392px;
    top: -48px;
  }

  .np-stage-badge{
    min-height: 28px;
    padding: 0 10px;
    font-size: 9px;
  }

  .np-art-wrapper{
    width: min(72vw, 312px);
    height: min(72vw, 312px);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0,0,0,.48), 0 0 0 1px rgba(255,255,255,.06);
  }

  .np-song-title{
    font-size: 28px;
    line-height: 1.02;
    letter-spacing: -.05em;
  }

  .np-song-artist{
    font-size: 14px;
    color: rgba(255,255,255,.74);
  }

  .np-progress-section{
    margin-bottom: 18px;
  }

  .np-progress-track{
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
  }

  .np-progress-fill{
    box-shadow: 0 0 18px rgba(var(--vibe-rgb), .28);
  }

  .np-controls{
    gap: 12px;
    margin-bottom: 18px;
  }

  .np-ctrl-btn{
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,.04);
  }

  .np-play-main{
    width: 78px;
    height: 78px;
    box-shadow: 0 18px 48px rgba(0,0,0,.46), 0 0 32px rgba(255,255,255,.10);
  }

  .np-footer-row{
    padding: 12px 14px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.07);
  }

  .top-bar{
    padding: 14px 16px 12px;
    background: linear-gradient(180deg, rgba(7,10,16,.94), rgba(7,10,16,.78));
  }

  .search-container{
    border-radius: 24px;
    box-shadow: 0 22px 46px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.04);
  }

  .poster-card,
  .home-row-cards .poster-card,
  .artist-card,
  .track-item{
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
}

@keyframes lucaTrailFloat {
  0%, 100% { transform: translateY(0) rotate(-14deg); opacity: 0.16; }
  50% { transform: translateY(28px) rotate(-20deg); opacity: 0.4; }
}

@keyframes npOrbitPulse {
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes npOrbitRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes lucaOnboardSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes lucaSparkFloat {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
}

@media (max-width: 768px) {
  body::before,
  body::after {
    display: none !important;
  }

  .main-view::before,
  .main-view::after {
    filter: none !important;
    opacity: 0.18 !important;
  }

  .content-scroll,
  .home-row-cards,
  .cards-grid {
    will-change: auto !important;
  }
}

@media (max-width: 768px) {
  html.mobile-shell-active,
  body.mobile-shell-active {
    height: 100% !important;
    min-height: 100% !important;
    overflow: hidden !important;
  }

  body.mobile-shell-active {
    overscroll-behavior: none !important;
  }

  body.mobile-shell-active .app-layout {
    height: var(--mobile-safe-h, 100dvh) !important;
    min-height: var(--mobile-safe-h, 100dvh) !important;
    display: block !important;
    overflow: hidden !important;
  }

  body.mobile-shell-active .main-view {
    height: var(--mobile-safe-h, 100dvh) !important;
    min-height: var(--mobile-safe-h, 100dvh) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  body.mobile-shell-active .content-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior-y: contain !important;
    padding-bottom: calc(var(--mobile-player-stack, 176px) + env(safe-area-inset-bottom, 0px)) !important;
    scroll-padding-bottom: calc(var(--mobile-player-stack, 176px) + 14px) !important;
  }

  body.mobile-shell-active .progress-track,
  body.mobile-shell-active #progressContainer,
  body.mobile-shell-active .np-progress-track,
  body.mobile-shell-active #npProgressContainer {
    touch-action: none !important;
  }

  body.mobile-shell-active .player-bar,
  body.mobile-shell-active .controls-main,
  body.mobile-shell-active .player-bar .btn,
  body.mobile-shell-active .player-bar button,
  body.mobile-shell-active .mobile-dock,
  body.mobile-shell-active .mobile-dock button {
    touch-action: manipulation !important;
  }

  body.mobile-shell-active .queue-panel,
  body.mobile-shell-active .lyrics-panel,
  body.mobile-shell-active .mobile-onboarding,
  body.mobile-shell-active .queue-overlay,
  body.mobile-shell-active .np-overlay {
    pointer-events: none;
  }

  body.mobile-shell-active .queue-panel.open,
  body.mobile-shell-active .lyrics-panel.open,
  body.mobile-shell-active .mobile-onboarding.is-visible,
  body.mobile-shell-active .queue-overlay.show,
  body.mobile-shell-active .np-overlay.open {
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  body.mobile-shell-active .player-bar {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(var(--mobile-dock-h) + 8px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    min-height: 72px !important;
    height: 72px !important;
    padding: 10px 12px !important;
    border-radius: 22px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    background: linear-gradient(180deg, rgba(7,10,16,0.96), rgba(7,10,16,0.90)) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    box-shadow: 0 18px 36px rgba(0,0,0,0.34) !important;
    z-index: 1098 !important;
  }

  body.mobile-shell-active .now-playing-info {
    width: auto !important;
    min-width: 0 !important;
    flex: unset !important;
    gap: 10px !important;
    align-items: center !important;
    padding-right: 0 !important;
  }

  body.mobile-shell-active .cover-small {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    flex-shrink: 0 !important;
  }

  body.mobile-shell-active .meta-small {
    min-width: 0 !important;
    gap: 2px !important;
  }

  body.mobile-shell-active .title-small,
  body.mobile-shell-active .title-small.marquee {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
    max-width: 100% !important;
  }

  body.mobile-shell-active .artist-small {
    font-size: 11px !important;
    opacity: 0.72 !important;
  }

  body.mobile-shell-active #nowPlayingLikeBtn,
  body.mobile-shell-active #shuffleBtn,
  body.mobile-shell-active #prevBtn,
  body.mobile-shell-active #nextBtn,
  body.mobile-shell-active #repeatBtn,
  body.mobile-shell-active .progress-container-alt,
  body.mobile-shell-active .vol-container,
  body.mobile-shell-active #listenTogetherPlayerBtn {
    display: none !important;
  }

  body.mobile-shell-active .player-controls-center {
    width: auto !important;
    max-width: none !important;
    flex: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  body.mobile-shell-active .controls-main {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  body.mobile-shell-active .controls-main > :not(#playPauseBtn) {
    display: none !important;
  }

  body.mobile-shell-active .primary-play-btn {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 50% !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.30), 0 0 18px rgba(var(--vibe-rgb), 0.12) !important;
  }

  body.mobile-shell-active .content-scroll {
    padding-bottom: calc(var(--mobile-dock-h) + 92px + env(safe-area-inset-bottom, 0px)) !important;
    scroll-padding-bottom: calc(var(--mobile-dock-h) + 92px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    grid-template-areas:
      "greeting sync profile"
      "search search search" !important;
    gap: 12px !important;
    align-items: center !important;
  }

  .top-bar-actions {
    grid-area: greeting !important;
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
  }

  #mobileSyncBtn,
  .mobile-sync-btn {
    grid-area: sync !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    background: linear-gradient(180deg, rgba(var(--vibe-rgb),0.22), rgba(255,255,255,0.06)) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .12em !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.22) !important;
    z-index: 2 !important;
  }

  .user-profile {
    grid-area: profile !important;
  }

  #playerBar,
  .player-bar {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(var(--mobile-dock-h) + 8px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    height: 72px !important;
    min-height: 72px !important;
    padding: 10px 12px !important;
    border-radius: 22px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    background: linear-gradient(180deg, rgba(7,10,16,0.96), rgba(7,10,16,0.90)) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    box-shadow: 0 18px 36px rgba(0,0,0,0.34) !important;
    z-index: 1098 !important;
  }

  #playerBar .now-playing-info,
  .player-bar .now-playing-info {
    width: auto !important;
    min-width: 0 !important;
    flex: unset !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding-right: 0 !important;
  }

  #playerBar .cover-small,
  .player-bar .cover-small {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    flex-shrink: 0 !important;
  }

  #playerBar .meta-small,
  .player-bar .meta-small {
    min-width: 0 !important;
    gap: 2px !important;
  }

  #playerBar .title-small,
  #playerBar .title-small.marquee,
  .player-bar .title-small,
  .player-bar .title-small.marquee {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
    max-width: 100% !important;
  }

  #playerBar .artist-small,
  .player-bar .artist-small {
    font-size: 11px !important;
    opacity: 0.72 !important;
  }

  #playerBar #nowPlayingLikeBtn,
  #playerBar #shuffleBtn,
  #playerBar #prevBtn,
  #playerBar #nextBtn,
  #playerBar #repeatBtn,
  #playerBar .progress-container-alt,
  #playerBar .vol-container,
  #playerBar #listenTogetherPlayerBtn,
  .player-bar #nowPlayingLikeBtn,
  .player-bar #shuffleBtn,
  .player-bar #prevBtn,
  .player-bar #nextBtn,
  .player-bar #repeatBtn,
  .player-bar .progress-container-alt,
  .player-bar .vol-container,
  .player-bar #listenTogetherPlayerBtn {
    display: none !important;
  }

  #playerBar .player-controls-center,
  .player-bar .player-controls-center {
    width: auto !important;
    max-width: none !important;
    flex: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  #playerBar .controls-main,
  .player-bar .controls-main {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  #playerBar .controls-main > :not(#playPauseBtn),
  .player-bar .controls-main > :not(#playPauseBtn) {
    display: none !important;
  }

  #playerBar .primary-play-btn,
  .player-bar .primary-play-btn {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 50% !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.30), 0 0 18px rgba(var(--vibe-rgb), 0.12) !important;
  }

  .content-scroll {
    padding-bottom: calc(var(--mobile-dock-h) + 92px + env(safe-area-inset-bottom, 0px)) !important;
    scroll-padding-bottom: calc(var(--mobile-dock-h) + 92px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 16px !important;
    position: relative !important;
    overflow: visible !important;
  }

  .top-bar-actions {
    display: flex !important;
    align-items: center !important;
    width: calc(100% - 118px) !important;
    min-height: 46px !important;
    gap: 8px !important;
  }

  #homeGreeting {
    max-width: 100% !important;
  }

  .search-container {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  #mobileSyncBtn,
  .mobile-sync-btn {
    all: unset !important;
    box-sizing: border-box !important;
    position: absolute !important;
    top: 15px !important;
    right: 66px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
    line-height: 1 !important;
    color: #f8fbff !important;
    background: linear-gradient(180deg, rgba(var(--vibe-rgb), 0.34), rgba(255,255,255,0.08)) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.24) !important;
    z-index: 6 !important;
    cursor: pointer !important;
  }

  .user-profile {
    position: absolute !important;
    top: 14px !important;
    right: 16px !important;
    z-index: 4 !important;
  }

  .user-profile.has-avatar {
    box-shadow: 0 16px 30px rgba(0,0,0,0.32), 0 0 20px rgba(var(--vibe-rgb), 0.12) !important;
  }

  #playerBar,
  .player-bar {
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    bottom: calc(var(--mobile-dock-h) + 10px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 64px !important;
    height: 64px !important;
    padding: 8px 10px 8px 12px !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, rgba(7,10,16,0.97), rgba(7,10,16,0.92)) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    box-shadow: 0 16px 30px rgba(0,0,0,0.34) !important;
    z-index: 1098 !important;
  }

  #playerBar .now-playing-info,
  .player-bar .now-playing-info {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 64px) !important;
    gap: 10px !important;
    padding-right: 0 !important;
  }

  #playerBar .cover-small,
  .player-bar .cover-small {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
  }

  #playerBar .meta-small,
  .player-bar .meta-small,
  #playerBar .title-small-wrap,
  .player-bar .title-small-wrap {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  #playerBar .title-small,
  #playerBar .title-small.marquee,
  .player-bar .title-small,
  .player-bar .title-small.marquee {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
  }

  #playerBar .artist-small,
  .player-bar .artist-small {
    font-size: 11px !important;
    opacity: 0.72 !important;
  }

  #playerBar .np-waveform,
  .player-bar .np-waveform,
  #playerBar #nowPlayingLikeBtn,
  #playerBar #shuffleBtn,
  #playerBar #prevBtn,
  #playerBar #nextBtn,
  #playerBar #repeatBtn,
  #playerBar .progress-container-alt,
  #playerBar .vol-container,
  #playerBar #listenTogetherPlayerBtn,
  .player-bar #nowPlayingLikeBtn,
  .player-bar #shuffleBtn,
  .player-bar #prevBtn,
  .player-bar #nextBtn,
  .player-bar #repeatBtn,
  .player-bar .progress-container-alt,
  .player-bar .vol-container,
  .player-bar #listenTogetherPlayerBtn {
    display: none !important;
  }

  #playerBar .player-controls-center,
  .player-bar .player-controls-center {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  #playerBar .player-controls-center > :not(.controls-main),
  .player-bar .player-controls-center > :not(.controls-main) {
    display: none !important;
  }

  #playerBar .controls-main,
  .player-bar .controls-main {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  #playerBar .controls-main > :not(#playPauseBtn),
  .player-bar .controls-main > :not(#playPauseBtn) {
    display: none !important;
  }

  #playerBar .primary-play-btn,
  .player-bar .primary-play-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    font-size: 18px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.26) !important;
  }

  .content-scroll {
    padding-bottom: calc(var(--mobile-dock-h) + 86px + env(safe-area-inset-bottom, 0px)) !important;
    scroll-padding-bottom: calc(var(--mobile-dock-h) + 86px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
