@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,500;1,9..144,600&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root{
  --black:#000000;
  --near-black:#0a0a0a;
  --panel:#121212;
  --panel-2:#181818;
  --line: rgba(255,255,255,0.08);
  --line-soft: rgba(255,255,255,0.14);
  --white:#ffffff;
  --accent:#ffffff;
  --grey-1:#b3b3b3;
  --grey-2:#7a7a7a;
  --sidebar-w:280px;
  --np-w:340px;
  --player-h:0px;
  --topbar-h:64px;
  --radius:8px;
}
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; overflow-x:hidden; }
body{
  background:var(--black);
  color:var(--white);
  font-family:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: 'zero' 0;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
  width:100%;
  user-select:none;
  -webkit-user-select:none;
}
a{ color:inherit; text-decoration:none; user-select:none; }
img{ display:block; max-width:100%; user-select:none; -webkit-user-drag:none; }
button{ font-family:inherit; user-select:none; }
input, textarea{ font-family:inherit; user-select:text; -webkit-user-select:text; }
::selection{ background:rgba(255,255,255,0.25); color:var(--white); }
/* Hide all scrollbars site-wide while keeping scroll functional */
::-webkit-scrollbar{ width:0 !important; height:0 !important; background:transparent; }
::-webkit-scrollbar-thumb{ background:transparent; }
::-webkit-scrollbar-track{ background:transparent; }
* { scrollbar-width:none; -ms-overflow-style:none; }

h1,h2,h3{ font-family:'Fraunces', serif; font-weight:600; }

/* ---------- app shell ---------- */
.app{
  height:100vh;
  width:100%;
  max-width:100vw;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:8px 8px 8px;
  background:var(--black);
}
.app-body{
  flex:1;
  min-height:0;
  display:flex;
  gap:8px;
}
#sidebar-root{
  width:var(--sidebar-w);
  flex-shrink:0;
  background:var(--near-black);
  border-radius:var(--radius);
  padding:16px 0 0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.main-scroll{
  flex:1;
  min-width:0;
  overflow-y:auto;
  overflow-x:hidden;
  border-radius:var(--radius);
  background:linear-gradient(180deg, #262223 0%, #121212 340px, #121212 100%);
  position:relative;
}
.nowplaying{
  width:var(--np-w);
  flex-shrink:0;
  overflow-y:auto;
  overflow-x:hidden;
  border-radius:var(--radius);
  background:#121212;
}
.nowplaying.open{ width:var(--np-w); overflow-y:auto; }
#player-root{
  display:none;
}

/* ---------- sidebar ---------- */
.side-brand{ padding:0 20px 20px; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand-badge{
  width:36px; height:36px; border-radius:50%; background:#ffffff;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; box-shadow:0 2px 8px rgba(0,0,0,0.35);
  transition:transform .2s ease;
}
.brand:hover .brand-badge{ transform:scale(1.05); }
.brand-badge img{ height:22px; width:22px; object-fit:contain; filter:none; }
.brand img{
  width:36px; height:36px; border-radius:50%; background:#ffffff;
  padding:6px; object-fit:contain; filter:none; box-shadow:0 2px 8px rgba(0,0,0,0.35);
  transition:transform .2s ease; flex-shrink:0;
}
.brand:hover img{ transform:scale(1.05); }
.brand-word{ font-family:'Fraunces', serif; font-weight:600; font-size:16px; letter-spacing:0.01em; }
.brand-word em{ font-style:italic; color:var(--grey-1); font-weight:400; }

.side-nav{ display:flex; flex-direction:column; gap:4px; padding:0 12px; margin-bottom:12px; }
.nav-link{
  display:flex; align-items:center; gap:16px;
  padding:12px 14px; border-radius:8px;
  font-size:15px; font-weight:700; color:var(--grey-1);
  transition:color .2s ease, background .2s ease;
}
.nav-icon{ display:flex; align-items:center; justify-content:center; width:26px; height:26px; text-align:center; opacity:0.95; flex-shrink:0; }
.nav-icon svg{ width:24px; height:24px; }
.nav-link:hover{ color:var(--white); }
.nav-link.active{ color:var(--white); background:var(--panel-2); }

.side-library{
  flex:1; min-height:0; display:flex; flex-direction:column;
  border-top:1px solid var(--line); margin-top:4px; padding-top:10px;
}
.side-lib-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:0 12px; margin-bottom:12px;
}
.side-lib-title{
  display:flex; align-items:center; gap:12px;
  background:none; border:none; color:var(--grey-1); cursor:pointer;
  font-size:15px; font-weight:700; padding:8px 6px; transition:color .2s ease;
}
.side-lib-title .nav-icon svg{ width:24px; height:24px; }
.side-lib-title:hover{ color:var(--white); }
.side-lib-actions{ display:flex; align-items:center; gap:4px; }
.side-create-btn{
  display:flex; align-items:center; gap:6px;
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); color:#ffffff; cursor:pointer;
  font-size:13px; font-weight:800; padding:6px 12px; border-radius:100px;
  transition:all .2s ease;
}
.side-create-btn svg{ stroke-width:3 !important; }
.side-create-btn:hover{ color:#000000; background:#ffffff; box-shadow:0 0 16px rgba(255,255,255,0.5); transform:scale(1.03); }
#sidebar-root.compact{ width:72px !important; min-width:72px; max-width:72px; transition:width .2s ease; align-items:center; }
#sidebar-root.compact .brand-word,
#sidebar-root.compact .side-credits-link,
#sidebar-root.compact .side-filter-row,
#sidebar-root.compact .side-lib-search,
#sidebar-root.compact .side-item-text,
#sidebar-root.compact .side-create-btn,
#sidebar-root.compact .side-empty,
#sidebar-root.compact .side-text{ display:none !important; }

#sidebar-root.compact .side-brand{ padding:0 0 14px; width:100%; display:flex; justify-content:center; }
#sidebar-root.compact .side-nav{ width:100%; padding:0 10px; display:flex; flex-direction:column; align-items:center; gap:6px; }
#sidebar-root.compact .nav-link{ justify-content:center; padding:0; width:44px; height:44px; border-radius:10px; display:flex; align-items:center; }
#sidebar-root.compact .nav-link .nav-icon{ margin:0; display:flex; align-items:center; justify-content:center; }
#sidebar-root.compact .nav-link .nav-icon svg{ width:24px; height:24px; }

#sidebar-root.compact .side-library{ width:100%; align-items:center; }
#sidebar-root.compact .side-compact-toggle{ display:flex !important; }
#sidebar-root.compact .side-lib-head{ justify-content:center; padding:0; margin-bottom:2px; width:100%; display:flex; }
#sidebar-root.compact .side-lib-title{ padding:0; width:44px; height:44px; justify-content:center; border-radius:10px; display:flex; align-items:center; }
#sidebar-root.compact .side-lib-title .nav-icon{ display:flex; align-items:center; justify-content:center; }
#sidebar-root.compact .side-lib-title .nav-icon svg{ width:24px; height:24px; }
#sidebar-root.compact .side-lib-title:hover{ background:var(--panel-2); }
#sidebar-root.compact .side-lib-actions{ display:none !important; }
#sidebar-root.compact .side-compact-create{ display:flex !important; }

#sidebar-root.compact .side-playlists{ width:100%; padding:6px 0; display:flex; flex-direction:column; align-items:center; }
#sidebar-root.compact .side-playlist-item{ justify-content:center; padding:4px 0; width:44px; height:44px; border-radius:8px; margin-bottom:6px; }
#sidebar-root.compact .side-playlist-item:hover{ background:var(--panel-2); }
#sidebar-root.compact .side-item-art{ width:44px; height:44px; border-radius:6px; }
#sidebar-root.compact .side-item-art.liked-art{ width:44px; height:44px; border-radius:6px; }

.side-filter-row{ display:flex; gap:8px; padding:0 12px; margin-bottom:12px; flex-wrap:wrap; }
.side-filter-pill{
  padding:6px 12px; border-radius:100px; background:var(--panel-2);
  font-size:12.5px; font-weight:700; cursor:pointer; white-space:nowrap;
  transition:background .2s ease;
}
.side-filter-pill.active{ background:var(--white); color:var(--black); }
.side-filter-pill:not(.active):hover{ background:#232323; }

.side-lib-search{
  margin:0 12px 10px; position:relative;
}
.side-lib-search input{
  width:100%; background:transparent; border:none; color:var(--white);
  font-size:13px; padding:6px 8px 6px 26px; outline:none;
}
.side-lib-search .icon{ position:absolute; left:8px; top:50%; transform:translateY(-50%); font-size:12px; opacity:0.6; }

.side-playlists{
  flex:1; overflow-y:auto;
  padding:0 8px 12px;
  display:flex; flex-direction:column; gap:2px;
  scrollbar-width:none; /* Firefox */
  -ms-overflow-style:none; /* IE 10+ */
}
.side-playlists::-webkit-scrollbar{ display:none; width:0; height:0; }
.side-empty{ color:var(--grey-2); font-size:13px; padding:12px; }
.side-playlist-item{
  display:flex; align-items:center; gap:12px;
  padding:8px; border-radius:6px;
  transition:background .2s ease;
}
.side-playlist-item:hover{ background:var(--panel-2); }
.side-item-art{
  width:44px; height:44px; border-radius:4px; flex-shrink:0; overflow:hidden;
  position:relative; background:#181818;
}
.side-item-art.round{ border-radius:50%; }
.side-item-art img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.side-item-art.liked-art{
  background:linear-gradient(135deg,#450af5,#c4efd9);
  display:flex; align-items:center; justify-content:center; font-size:17px; color:var(--white);
}
.side-item-title{ font-size:13.5px; font-weight:600; color:var(--white); }
.side-item-sub{ font-size:12px; color:var(--grey-2); margin-top:2px; }

.btn-pill{
  background:var(--white); color:var(--black);
  font-size:13px; font-weight:800;
  padding:9px 18px; border-radius:100px;
  transition:transform .2s ease;
  display:inline-block;
}
.btn-pill:hover{ transform:scale(1.04); }
.btn-outline{
  border:1px solid var(--line-soft); color:var(--white);
  font-size:13px; font-weight:800;
  padding:9px 18px; border-radius:100px;
  background:transparent;
  display:inline-block;
  transition:border-color .2s ease, transform .2s ease;
}
.btn-outline:hover{ border-color:var(--white); transform:scale(1.03); }

/* ---------- topbar (inside main) ---------- */
.topbar{
  position:sticky; top:0; z-index:5;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 24px;
  backdrop-filter:blur(20px);
  background:rgba(12,9,9,0.85);
  border-bottom:1px solid rgba(255,255,255,0.06);
  gap:16px;
  min-height:64px;
}
.topbar .arrows{ display:flex; gap:8px; align-items:center; flex-shrink:0; }
.round-btn{
  width:34px; height:34px; border-radius:50%;
  background:rgba(255,255,255,0.1); border:none; color:var(--white);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  font-size:16px; transition:background .18s ease;
}
.round-btn:hover{ background:rgba(255,255,255,0.2); }
.round-btn:active{ background:rgba(255,255,255,0.28); }
.home-btn{
  background:rgba(255,255,255,0.15);
  font-size:17px;
}
.search-input-wrap{
  flex:1; max-width:380px; margin:0;
  position:relative;
}
.search-input-wrap input{
  width:100%;
  background:rgba(255,255,255,0.08); border:1.5px solid rgba(255,255,255,0.14);
  border-radius:100px; padding:10px 18px 10px 42px;
  color:var(--white); font-size:14px; outline:none;
  transition:border-color .18s, background .18s;
}
.search-input-wrap input:focus{ border-color:rgba(255,255,255,0.65); background:rgba(255,255,255,0.12); }
.search-input-wrap input::placeholder{ color:rgba(255,255,255,0.45); }
.search-input-wrap .icon{ position:absolute; left:16px; top:50%; transform:translateY(-50%); opacity:0.6; font-size:13px; z-index:3; }

/* ---------- search suggestions dropdown ---------- */
.search-suggest{
  display:none; position:absolute; left:0; right:0; top:calc(100% + 8px);
  background:#282828; border-radius:10px; padding:6px;
  box-shadow:0 16px 40px rgba(0,0,0,0.65); border:1px solid rgba(255,255,255,0.1);
  z-index:50; max-height:70vh; overflow-y:auto;
  pointer-events:none;
}
.search-suggest[style*="display: block"],
.search-suggest[style*="display:block"]{
  pointer-events:auto;
}
.suggest-hint{
  display:flex; align-items:center; gap:6px; padding:8px 10px 10px;
  font-size:11px; color:var(--grey-2); border-bottom:1px solid rgba(255,255,255,0.08); margin-bottom:4px;
}
.hint-keys{ display:flex; gap:3px; }
.hint-key{
  background:rgba(255,255,255,0.1); border-radius:4px; padding:2px 6px;
  font-size:10px; color:var(--grey-1); font-family:'Inter', -apple-system, sans-serif; font-weight:600;
}
.hint-spacer{ flex:1; }
.suggest-row{
  width:100%; display:flex; align-items:center; gap:12px;
  background:none; border:none; color:var(--white); text-align:left;
  padding:8px 10px; border-radius:6px; cursor:pointer; font-size:13.5px;
}
.suggest-row:hover{ background:rgba(255,255,255,0.08); }
.suggest-icon{ color:var(--grey-2); flex-shrink:0; display:flex; }
.suggest-text{ color:var(--grey-1); }
.suggest-text b{ color:var(--white); font-weight:700; }
.suggest-divider{ height:1px; background:rgba(255,255,255,0.08); margin:4px 6px; }
.suggest-thumb{ width:40px; height:40px; border-radius:4px; object-fit:cover; flex-shrink:0; }
.suggest-track-info{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.suggest-track-title{ font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.suggest-track-sub{ font-size:12px; color:var(--grey-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.suggest-track-action{ color:var(--grey-2); flex-shrink:0; display:flex; }
.suggest-track-action.liked{ color:var(--accent); }
.suggest-recent-head{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:8px 10px 10px; font-size:12px; font-weight:700; color:var(--white);
  border-bottom:1px solid rgba(255,255,255,0.08); margin-bottom:4px;
}
.suggest-clear-all{
  background:none; border:none; color:var(--grey-2); font-size:11.5px;
  font-weight:600; cursor:pointer; padding:2px 0; text-decoration:none;
}
.suggest-clear-all:hover{ color:var(--white); text-decoration:underline; }
.suggest-row.recent .suggest-thumb{ border-radius:4px; }
.suggest-remove{
  flex-shrink:0; display:flex; align-items:center; justify-content:center;
  width:22px; height:22px; border-radius:50%; color:var(--grey-2);
  font-size:16px; line-height:1; opacity:0; transition:opacity .1s;
}
.suggest-row.recent:hover .suggest-remove{ opacity:1; }
.suggest-remove:hover{ color:var(--white); background:rgba(255,255,255,0.12); }
.side-credits-link{
  display:block; padding:10px 20px 16px; font-size:11px; color:var(--grey-2);
  flex-shrink:0;
}
.side-credits-link:hover{ color:var(--grey-1); text-decoration:underline; }
.topbar-auth{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.icon-btn{
  width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,0.08); border:none;
  color:rgba(255,255,255,0.75); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:color .18s ease, background .18s ease;
}
.icon-btn:hover{ color:var(--white); background:rgba(255,255,255,0.16); }
.icon-btn.small{ width:32px; height:32px; background:none; }
.icon-btn.small:hover{ background:rgba(255,255,255,0.1); }
.icon-btn.small.on{ color:var(--accent); }
.avatar-btn{
  width:34px; height:34px; border-radius:50%;
  background:linear-gradient(135deg,#7b2ff7,#f107a3);
  color:var(--white); font-weight:800; font-size:13px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,0.5);
  transition:transform .15s ease;
}
.avatar-btn:hover{ transform:scale(1.06); }

/* Spotify-Style Guest Actions (Visitor mode) */
.topbar-guest-actions{
  display:flex; align-items:center; gap:14px;
}
.topbar-signup-btn{
  font-family:inherit; font-size:14px; font-weight:700; color:#b3b3b3;
  text-decoration:none; background:transparent; border:none; cursor:pointer;
  padding:8px 12px; transition:color .18s ease, transform .15s ease;
  white-space:nowrap;
}
.topbar-signup-btn:hover{ color:#ffffff; transform:scale(1.04); }
.topbar-login-btn{
  font-family:inherit; font-size:14px; font-weight:700; color:#000000 !important;
  background:#ffffff; text-decoration:none; border:none; border-radius:500px;
  padding:10px 26px; cursor:pointer; transition:background-color .18s ease, transform .15s ease;
  white-space:nowrap; display:inline-flex; align-items:center; justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,0.25);
}
.topbar-login-btn:hover{ background:#f0f0f0; transform:scale(1.04); }
.topbar-login-btn:active{ transform:scale(0.98); }

@media (max-width:600px){
  .topbar-signup-btn{ display:none; }
  .topbar-login-btn{ padding:7px 18px; font-size:13px; }
}

/* ---------- content sections ---------- */
.content{ padding:8px 32px 60px; }
.section{ margin-bottom:44px; }
.section-title{ font-size:22px; margin-bottom:4px; }
.section-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:18px; }
.see-all{ font-size:12px; font-weight:700; color:var(--grey-1); letter-spacing:0.03em; }
.see-all:hover{ color:var(--white); text-decoration:underline; }

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(170px, 1fr));
  gap:20px;
}
.card{
  background:var(--panel);
  border-radius:10px;
  padding:14px;
  transition:background .25s ease, transform .25s ease;
  cursor:pointer;
  position:relative;
}
.card:hover{ background:#1e1e1e; }
.card-art{
  width:100%; aspect-ratio:1/1; border-radius:6px; margin-bottom:14px;
  position:relative; overflow:hidden; background:#181818;
}
.card.round .card-art{ border-radius:50%; }
.card-art img.cover-img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover;
}
.card-title{ font-size:14.5px; font-weight:700; margin-bottom:6px; }
.card-sub{ font-size:12.5px; color:var(--grey-2); line-height:1.5; }
.card-play{
  position:absolute; right:14px; bottom:64px;
  width:44px; height:44px; border-radius:50%;
  background:#ffffff; color:#000000;
  display:flex; align-items:center; justify-content:center;
  font-size:15px;
  opacity:0; transform:translateY(8px);
  transition:opacity .25s ease, transform .25s ease, background .2s ease;
  box-shadow:0 8px 20px rgba(0,0,0,0.5);
  border:none; cursor:pointer;
}
.card:hover .card-play{ opacity:1; transform:translateY(0); }
.card-play:hover{ transform:scale(1.06); background:#f4f4f5; }

/* quick-pick row (small horizontal cards) */
.quick-grid{ display:grid; grid-template-columns:repeat(2, 1fr); gap:14px; }
@media(min-width:1080px){ .quick-grid{ grid-template-columns:repeat(3,1fr);} }
.quick-card{
  display:flex; align-items:center; gap:14px;
  background:rgba(255,255,255,0.05);
  border-radius:8px; overflow:hidden;
  cursor:pointer; transition:background .25s ease;
  position:relative;
}
.quick-card:hover{ background:rgba(255,255,255,0.1); }
.quick-card .thumb{ width:64px; height:64px; flex-shrink:0; position:relative; background:#181818; }
.quick-card .thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.quick-card .label{ font-size:14px; font-weight:700; padding-right:12px; }

/* ---------- hero (home) ---------- */
.hero-banner{
  display:flex; align-items:flex-end; gap:28px;
  padding:56px 32px 40px;
  background:linear-gradient(180deg, #2b2b2b 0%, #000 100%);
  margin:-8px -32px 24px;
}
.hero-art{
  width:220px; height:220px; border-radius:10px;
  box-shadow:0 24px 60px rgba(0,0,0,0.6);
  position:relative; overflow:hidden; flex-shrink:0; background:#181818;
}
.hero-art img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hero-info .eyebrow{
  font-family:inherit; font-size:12px; font-weight:800; letter-spacing:0.12em; text-transform:uppercase; color:var(--grey-1); margin-bottom:12px;
}
.hero-info h1{ font-size:clamp(38px,6vw,72px); line-height:1; margin-bottom:16px; }
.hero-info .meta{ font-size:13.5px; color:var(--grey-1); display:flex; gap:8px; align-items:center; font-weight:500; }
.hero-info .meta b{ color:var(--white); font-weight:700; }

.hero-actions{ display:flex; align-items:center; gap:20px; padding:0 32px 20px; }
.play-lg{
  width:58px; height:58px; border-radius:50%;
  background:#ffffff; color:#000000;
  display:flex; align-items:center; justify-content:center;
  border:none; cursor:pointer; transition:transform .2s ease, background .2s ease, box-shadow .2s ease;
  box-shadow:0 0 26px rgba(255,255,255,0.45), 0 8px 24px rgba(0,0,0,0.6);
}
.play-lg svg{ width:24px; height:24px; margin-left:3px; fill:#000000; }
.play-lg:hover{ transform:scale(1.08); background:#ffffff; box-shadow:0 0 36px rgba(255,255,255,0.75), 0 8px 28px rgba(0,0,0,0.7); }

/* ---------- track table ---------- */
.track-table{ width:100%; border-collapse:collapse; margin-top:8px; }
.track-table thead th{
  text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:0.08em;
  color:var(--grey-2); border-bottom:1px solid var(--line); padding:0 12px 10px;
  font-weight:700;
}
.track-table tbody tr{
  cursor:pointer; transition:background .2s ease;
}
.track-table tbody tr:hover{ background:rgba(255,255,255,0.06); }
.track-table td{ padding:11px 12px; font-size:14px; color:var(--grey-1); border-bottom:1px solid transparent; }
.track-table .col-num{ width:38px; color:#a1a1aa; font-family:inherit; font-size:13px; font-weight:700; }
.track-table .col-num .p{ display:none; }
.track-table .col-title{ color:var(--white); font-weight:600; }
.track-table .col-title-wrap{ display:flex; align-items:center; gap:12px; }
.track-table .track-info{ min-width:0; }
.track-table .col-title small{ display:block; color:var(--grey-2); font-weight:400; font-size:12.5px; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.track-table .col-heart{ width:32px; text-align:center; opacity:0; transition:opacity .2s ease; }
.track-table tr:hover .col-heart, .track-table .col-heart.liked{ opacity:1; }
.track-table .col-len{ width:60px; text-align:right; font-family:inherit; font-size:13px; font-weight:600; color:#a1a1aa; }
.track-table tr.playing .col-title{ color:var(--accent); }
.track-table tr.playing .col-num{ color:var(--accent); }

/* Track thumbnail play overlay (like search cards) */
.track-thumb-wrap{
  position:relative; width:40px; height:40px; flex-shrink:0; border-radius:4px; overflow:hidden; cursor:pointer;
}
.track-thumb-wrap .track-thumb{
  width:40px; height:40px; border-radius:4px; object-fit:cover; display:block; background:#181818;
  transition:filter .18s ease;
}
.track-thumb-wrap .thumb-play-overlay{
  position:absolute; inset:0; background:rgba(0,0,0,0.55);
  display:flex; align-items:center; justify-content:center;
  opacity:0; transition:opacity .18s ease; border-radius:4px;
  color:#fff;
}
.track-table tbody tr:hover .track-thumb-wrap .track-thumb{ filter:brightness(0.55); }
.track-table tbody tr:hover .track-thumb-wrap .thumb-play-overlay{ opacity:1; }
.track-table tbody tr.playing .track-thumb-wrap .track-thumb{ filter:brightness(0.55); }
.track-table tbody tr.playing .track-thumb-wrap .thumb-play-overlay{ opacity:1; color:var(--accent); }

/* ---------- player bar ---------- */
.player-now{ display:flex; align-items:center; gap:14px; width:300px; min-width:200px; }
.player-art-wrap{
  position:relative; width:56px; height:56px; display:flex; align-items:center; justify-content:center;
  flex-shrink:0; cursor:pointer;
}
.player-art-thumb{
  width:56px; height:56px; border-radius:8px; object-fit:cover;
  box-shadow:0 4px 12px rgba(0,0,0,0.6); transition:transform .2s ease;
}
.player-art-wrap:hover .player-art-thumb{ transform:scale(1.05); }

.player-title{ font-size:14px; font-weight:700; color:var(--white); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:170px; }
.player-artist{ font-size:12px; color:var(--grey-2); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:170px; }
.player-artist a{ color:var(--grey-2); transition:color .2s; }
.player-artist a:hover{ color:var(--white); text-decoration:underline; }
.like-btn{
  background:none; border:none; color:var(--grey-1); cursor:pointer; margin-left:8px;
  display:inline-flex; align-items:center; justify-content:center; padding:4px;
  transition:color .2s ease, transform .2s ease;
}
.like-btn:hover{ color:var(--white); transform:scale(1.1); }
.like-btn.liked{ color:#ffffff; }

.player-center{ flex:1; display:flex; flex-direction:column; align-items:center; gap:8px; max-width:720px; margin:0 auto; }
.player-controls{ display:flex; align-items:center; gap:22px; }
.ctrl{ background:none; border:none; color:var(--grey-1); cursor:pointer; transition:color .2s ease, transform .2s ease; display:flex; align-items:center; justify-content:center; padding:4px; }
.ctrl svg{ width:22px; height:22px; }
.ctrl.small svg{ width:20px; height:20px; }
.ctrl:hover{ color:var(--white); transform:scale(1.1); }
.ctrl.small{ opacity:0.75; }
.ctrl.small:hover{ opacity:1; }
.ctrl.small.on{ color:#ffffff; opacity:1; }
.ctrl.play{
  width:48px; height:48px; border-radius:50%;
  background:#ffffff;
  color:var(--black);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 12px rgba(0,0,0,0.5);
  transition:transform .15s ease, background .15s ease;
}
.ctrl.play svg{ width:22px; height:22px; margin-left:2px; }
.ctrl.play:hover{ transform:scale(1.06); background:#f4f4f5; }

.player-progress-row{ display:flex; align-items:center; gap:12px; width:100%; }
.time{ font-family:inherit; font-size:12px; font-weight:700; color:#b3b3b3; width:44px; letter-spacing:0.3px; user-select:none; }
.time:last-child{ text-align:left; }
.progress-track{
  flex:1; height:4px; background:rgba(255,255,255,0.25); border-radius:4px; cursor:pointer; position:relative;
  transition:height .15s ease;
}
.progress-track:hover{ height:6px; }
.progress-track.small{ cursor:pointer; width:96px; flex:none; height:4px; }
.progress-track.small:hover{ height:6px; }
.progress-fill{
  height:100%;
  background:#ffffff;
  border-radius:4px; position:relative;
  transition:background .15s ease;
}
.progress-track:hover .progress-fill{
  background:#ffffff;
}
.progress-fill::after{
  content:""; position:absolute; right:-5px; top:50%; transform:translateY(-50%);
  width:12px; height:12px; border-radius:50%; background:#ffffff;
  box-shadow:0 2px 6px rgba(0,0,0,0.6);
  opacity:0; transition:opacity .15s ease, transform .15s ease;
}
.progress-track:hover .progress-fill::after{ opacity:1; transform:translateY(-50%) scale(1.1); }

.player-volume{
  display:flex; align-items:center; gap:6px; justify-content:flex-end; flex-shrink:0;
  min-width:320px;
}
.player-volume .icon-btn.small{
  padding:6px; border-radius:50%;
  transition:transform .15s ease, color .15s ease, background .15s ease;
}
.player-volume .icon-btn.small:hover{
  transform:scale(1.15); color:#ffffff; background:rgba(255,255,255,0.08);
}
.vol-icon{ font-size:13px; color:var(--grey-1); }
.player-empty{ color:var(--grey-2); font-size:13px; }

/* Liked songs header art */
.liked-cover-art{
  width:100%; height:100%; border-radius:12px;
  background:linear-gradient(135deg, #450af5 0%, #8e8ee5 50%, #c4b5fd 100%);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 12px 36px rgba(69,10,245,0.4);
}
.liked-cover-art svg{ width:64px; height:64px; fill:#ffffff; filter:drop-shadow(0 4px 8px rgba(0,0,0,0.3)); }


/* ---------- misc pages ---------- */
.filter-row{ display:flex; gap:10px; margin-bottom:24px; flex-wrap:wrap; }
.filter-pill{
  padding:8px 16px; border-radius:100px; background:var(--panel-2);
  font-size:13px; font-weight:700; cursor:pointer; border:1px solid transparent;
  transition:background .2s ease, border-color .2s ease;
}
.filter-pill.active{ background:var(--white); color:var(--black); }
.filter-pill:not(.active):hover{ border-color:var(--line-soft); }

.genre-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:18px; }
.genre-tile{
  position:relative; height:130px; border-radius:10px; overflow:hidden; cursor:pointer;
  display:flex; align-items:flex-start; padding:16px 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight:700; font-size:17px; line-height:1.2; color:#ffffff;
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
  user-select:none; box-shadow:0 4px 14px rgba(0,0,0,0.3);
}
.genre-tile:hover{ transform:scale(1.03); box-shadow:0 12px 28px rgba(0,0,0,0.5); filter:brightness(1.08); }
.genre-tile-title{
  position:relative; z-index:2; max-width:65%; word-break:break-word;
  text-shadow:0 2px 8px rgba(0,0,0,0.4);
}
.genre-tile-img{
  position:absolute; bottom:0; right:0; width:75px; height:75px;
  object-fit:cover; border-radius:6px;
  transform:rotate(25deg) translate(14%, -2%);
  box-shadow:0 6px 16px rgba(0,0,0,0.6);
  pointer-events:none; z-index:1;
}

.detail-header{
  display:flex; align-items:flex-end; gap:28px; padding:48px 32px 32px;
  background:linear-gradient(180deg, #2b2b2b, #000);
  margin:-8px 0 0;
}
.detail-art{ width:232px; height:232px; border-radius:8px; box-shadow:0 24px 60px rgba(0,0,0,0.6); position:relative; overflow:hidden; flex-shrink:0; background:#181818; }
.detail-art img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.detail-art.round{ border-radius:50%; }
.detail-kind{ font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:0.06em; margin-bottom:12px; }
.detail-title{ font-size:clamp(34px,6vw,64px); line-height:1.02; margin-bottom:16px; }
.detail-desc{ color:var(--grey-1); font-size:14px; margin-bottom:12px; max-width:560px; }
.detail-meta{ font-size:13.5px; color:var(--grey-1); }
.detail-meta b{ color:var(--white); }
.detail-actions{ display:flex; align-items:center; gap:24px; padding:24px 32px; }

.artist-banner{
  height:340px; position:relative; display:flex; align-items:flex-end; padding:32px;
  background:radial-gradient(circle at 30% 20%, #2c2c2c, #000 70%);
}
.artist-banner .verified{ display:flex; align-items:center; gap:8px; font-size:13px; margin-bottom:10px; color:var(--grey-1); }
.artist-banner h1{ font-size:clamp(40px,7vw,88px); }
.artist-banner .listeners{ margin-top:14px; font-size:14px; color:var(--grey-1); }

.about-box{ background:var(--panel); border-radius:10px; padding:28px; max-width:720px; }
.about-box p{ color:var(--grey-1); font-size:14.5px; line-height:1.8; }

/* ---------- search ---------- */
.search-status{ color:var(--grey-2); font-size:14px; padding:6px 0 4px; }
.search-note{ color:var(--grey-2); font-size:12px; margin:-10px 0 20px; }
.song-row{
  display:flex; align-items:center; gap:14px; padding:8px 10px; border-radius:6px;
  cursor:pointer; transition:background .2s ease;
}
.song-row:hover{ background:rgba(255,255,255,0.06); }
.song-row .row-art{
  width:46px; height:46px; border-radius:5px; overflow:hidden; flex-shrink:0;
  position:relative; background:#181818; cursor:pointer;
}
.song-row .row-art img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.song-row .row-art .row-play{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,0.55); color:var(--white); opacity:0; transition:opacity .2s ease;
  border-radius:5px;
}
.song-row .row-art .row-play svg{ width:20px; height:20px; margin-left:2px; }
.song-row:hover .row-art .row-play{ opacity:1; }
/* currently-playing row: the pause icon stays visible without hovering */
.song-row.row-playing .row-art .row-play{ opacity:1; }
.song-row.row-playing .row-title{ color:var(--accent); }
.song-row .row-title{ font-size:14px; font-weight:700; }
.song-row .row-sub{ font-size:12.5px; color:var(--grey-2); margin-top:2px; }
.song-row .row-len{ margin-left:auto; font-family:inherit; font-size:13px; font-weight:600; color:#a1a1aa; }
.song-list{ display:flex; flex-direction:column; gap:2px; }

/* Track table: entire row triggers playback */
.track-table tbody tr{ cursor:pointer; }
.track-table tbody tr:hover{ background:rgba(255,255,255,0.06); }
.track-table .col-num{ cursor:pointer; }

.auth-page{
  min-height:100vh; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:28px;
  padding:40px 20px;
}
.auth-card{
  width:100%; max-width:400px; background:var(--near-black); border:1px solid var(--line);
  border-radius:8px; padding:40px 32px; text-align:center;
}
.auth-card .brand{ justify-content:center; margin-bottom:28px; }
.auth-card img{ height:38px; filter:invert(1); }
.auth-card h1{ font-size:22px; margin-bottom:24px; }
.auth-field{ text-align:left; margin-bottom:16px; }
.auth-field label{ font-size:12.5px; font-weight:700; display:block; margin-bottom:7px; }
.auth-field input{
  width:100%; background:var(--panel); border:1px solid var(--line-soft); border-radius:6px;
  padding:12px 14px; color:var(--white); font-size:14px; outline:none;
}
.auth-field input:focus{ border-color:var(--white); }

/* Clean rounded circle dots for password inputs (removes Windows square blocks) */
input[type="password"] {
  font-family: caption, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  -webkit-text-security: disc !important;
  letter-spacing: 2.5px;
  font-size: 15px;
}
input[type="password"]::placeholder {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  letter-spacing: normal;
  font-size: 14px;
}
.password-wrap input[type="text"] {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  letter-spacing: normal;
  font-size: 14px;
}
.auth-submit{
  width:100%; background:var(--white); color:var(--black); border:none; border-radius:100px;
  padding:13px; font-weight:800; font-size:14.5px; cursor:pointer; margin-top:8px; transition:transform .2s ease;
}
.auth-submit:hover{ transform:scale(1.02); }
.auth-divider{ display:flex; align-items:center; gap:12px; margin:22px 0; color:var(--grey-2); font-size:12px; }
.auth-divider::before, .auth-divider::after{ content:""; flex:1; height:1px; background:var(--line); }
.auth-alt{ font-size:13.5px; color:var(--grey-1); }
.auth-alt a{ color:var(--white); font-weight:700; text-decoration:underline; }

/* ---------- now playing (right) panel ---------- */
.nowplaying{
  position:relative;
  transition:width .25s cubic-bezier(0.16, 1, 0.3, 1), background .4s ease;
  background:#121212;
}
.np-ambient-glow{
  position:absolute;
  top:0; left:0; right:0;
  height:580px;
  background:radial-gradient(circle at 50% 12%, var(--np-ambient-color, #4a1525) 0%, rgba(18,18,18,0.75) 50%, rgba(18,18,18,0) 100%);
  pointer-events:none;
  z-index:0;
  transition:background 0.6s ease;
}
.np-inner-wrap{ position:relative; z-index:1; display:flex; flex-direction:column; min-height:100%; }
.np-head{ display:flex; align-items:center; justify-content:space-between; padding:14px 18px 8px; }
.np-head-title{ font-size:13.5px; font-weight:800; color:rgba(255,255,255,0.9); letter-spacing:0.02em; }
.np-empty{ padding:40px 24px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:10px; }
.np-empty-logo{ width:40px; height:40px; filter:invert(1); opacity:0.5; margin-bottom:6px; }
.np-empty-title{ font-weight:700; font-size:15px; }
.np-empty-sub{ font-size:13px; color:var(--grey-2); line-height:1.5; }

/* Redesigned Cover Art */
.np-art{
  margin:10px 18px 16px;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 16px 40px rgba(0,0,0,0.65), 0 0 30px rgba(0,0,0,0.4);
  aspect-ratio:1/1;
  position:relative;
  background:#181818;
  border:1px solid rgba(255,255,255,0.08);
}
.np-art img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }

/* Track Info + Actions Header */
.np-track-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:0 18px 14px;
}
.np-track{ min-width:0; flex:1; padding-right:12px; }
.np-title{ font-size:18px; font-weight:800; margin-bottom:4px; color:#ffffff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.np-artist{ font-size:13px; color:rgba(255,255,255,0.65); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.np-artist a:hover{ color:var(--white); text-decoration:underline; }
.np-track-actions{ display:flex; align-items:center; gap:8px; flex-shrink:0; }
.np-act-btn{
  background:none; border:none; color:rgba(255,255,255,0.65); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  width:32px; height:32px; border-radius:50%; transition:transform .15s, color .15s, background .15s;
}
.np-act-btn:hover{ color:#ffffff; background:rgba(255,255,255,0.1); transform:scale(1.1); }
.np-act-btn.liked{ color:#ffffff; }

/* Integrated Controls in Panel */
.np-player-section{
  padding:0 18px 16px;
  display:flex; flex-direction:column; gap:12px;
}
.np-progress-bar{
  width:100%; height:4px; background:rgba(255,255,255,0.15); border-radius:4px; cursor:pointer; position:relative;
}
.np-progress-fill{
  height:100%; background:#ffffff; border-radius:4px; position:relative;
}
.np-time-row{
  display:flex; justify-content:space-between; font-size:11px; font-weight:700; color:rgba(255,255,255,0.5);
  margin-top:-6px;
}
.np-ctrls-row{
  display:flex; align-items:center; justify-content:space-between; padding:2px 4px;
}
.np-ctrl-btn{
  background:none; border:none; color:rgba(255,255,255,0.7); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:50%; transition:transform .15s, color .15s;
}
.np-ctrl-btn:hover{ color:#ffffff; transform:scale(1.1); }
.np-ctrl-btn.active{ color:#ffffff; }
.np-ctrl-play{
  width:46px; height:46px; border-radius:50%;
  background:#ffffff; color:#000000;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 0 20px rgba(255,255,255,0.4), 0 4px 12px rgba(0,0,0,0.5);
  border:none; cursor:pointer; transition:transform .15s ease, background .15s ease;
}
.np-ctrl-play:hover{ transform:scale(1.08); background:#f4f4f5; }
.np-ctrl-play svg{ width:20px; height:20px; margin-left:2px; fill:#000000; }

.np-volume-card:hover{
  background:#202020 !important;
  border-color:rgba(255,255,255,0.2) !important;
}
#npVolTrack:hover #npVolFill{
  background:#ffffff !important;
}
#npVolTrack:hover .np-thumb-circle{
  opacity:1 !important;
  transform:translateY(-50%) scale(1.15) !important;
}

/* Frosted Lyrics / About Card */
.np-preview-card{
  margin:0 18px 20px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:12px;
  padding:16px;
  backdrop-filter:blur(12px);
  cursor:pointer;
  transition:background .2s, transform .2s, border-color .2s;
}
.np-preview-card:hover{
  background:rgba(255,255,255,0.09);
  border-color:rgba(255,255,255,0.2);
  transform:translateY(-2px);
}
.np-preview-card-title{
  font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:0.06em;
  color:rgba(255,255,255,0.55); margin-bottom:10px; display:flex; align-items:center; justify-content:space-between;
}
.np-preview-card-text{
  font-size:14px; font-weight:700; line-height:1.6; color:#ffffff;
}
.np-preview-card-text .dim{ color:rgba(255,255,255,0.4); }

.np-tabs{ display:flex; gap:4px; padding:0 18px 10px; border-bottom:1px solid rgba(255,255,255,0.08); margin-bottom:12px; }
.np-tab{
  background:none; border:none; color:var(--grey-2); font-size:12.5px; font-weight:700;
  padding:6px 10px 10px; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-11px;
}
.np-tab:hover{ color:var(--grey-1); }
.np-tab.active{ color:var(--white); border-bottom-color:var(--white); }
.np-lyrics-empty{ padding:0 18px 24px; }
.np-lyrics-empty p{ font-size:13.5px; color:var(--grey-1); line-height:1.6; margin-bottom:16px; }

/* Synchronized Live Lyrics Box (Spotify Karaoke Style) */
.np-lyrics-box{
  position:relative;
  width:calc(100% - 36px);
  height:calc(100vh - 220px);
  min-height:360px;
  background:rgba(0,0,0,0.35);
  border-radius:12px;
  padding:24px 18px 100px;
  overflow-y:auto;
  scroll-behavior:smooth;
  margin:0 18px 20px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.08);
}
.np-lyrics-container{
  display:flex;
  flex-direction:column;
  gap:16px;
  padding-bottom:120px;
}
.np-lyric-line{
  font-size:22px;
  font-weight:700;
  line-height:1.45;
  color:rgba(255,255,255,0.32);
  transition:color .25s ease, transform .25s ease, opacity .25s ease;
  cursor:pointer;
  user-select:none;
  transform-origin:left center;
}
.np-lyric-line:hover{
  color:rgba(255,255,255,0.7);
}
.np-lyric-line.active{
  color:#ffffff;
  font-weight:800;
  opacity:1;
  transform:scale(1.04);
  text-shadow:0 2px 12px rgba(0,0,0,0.5);
}
.np-lyric-line.passed{
  color:rgba(255,255,255,0.55);
}
.np-lyrics-loading{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  height:240px;
  color:#a1a1aa;
  font-size:14px;
}
.np-lyrics-loading .spinner{
  width:28px;
  height:28px;
  border:3px solid rgba(255,255,255,0.2);
  border-top-color:#ffffff;
  border-radius:50%;
  animation:spin 0.8s linear infinite;
}
@keyframes spin{
  to{ transform:rotate(360deg); }
}
.np-queue{ padding:0 16px 24px; }
.np-queue-section-title{ font-size:12px; font-weight:700; color:var(--grey-1); margin:16px 0 8px; }
.np-queue-section-title:first-child{ margin-top:0; }
.np-queue-row{
  display:flex; align-items:center; gap:10px; width:100%; background:none; border:none;
  padding:6px 4px; border-radius:6px; cursor:pointer; text-align:left;
}
.np-queue-row:hover{ background:rgba(255,255,255,0.06); }
.np-queue-row.current{ cursor:default; }
.np-queue-row.current:hover{ background:none; }
.np-queue-row img{ width:40px; height:40px; border-radius:4px; object-fit:cover; flex-shrink:0; }
.np-queue-row-title{ font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.np-queue-row.current .np-queue-row-title{ color:var(--accent); }
.np-queue-row-sub{ font-size:11.5px; color:var(--grey-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.np-queue-empty{ font-size:13px; color:var(--grey-2); padding:8px 4px; }

/* ---------- track context menu & submenus ---------- */
.ctx-menu{
  display:none; position:fixed; z-index:2000; min-width:240px;
  background:#282828; border-radius:6px; padding:6px;
  box-shadow:0 16px 40px rgba(0,0,0,0.65); border:1px solid rgba(255,255,255,0.1);
  user-select: none;
}
.ctx-item{
  display:flex; align-items:center; gap:12px; width:100%; text-align:left;
  background:none; border:none; color:var(--white, #ffffff); font-size:13.5px; font-weight:500;
  padding:8px 10px; border-radius:4px; cursor:pointer; position: relative;
  transition: background 0.15s ease;
}
.ctx-item:hover{ background:rgba(255,255,255,0.12); }
.ctx-item-icon{ display:flex; align-items:center; justify-content:center; width:18px; height:18px; color:#a1a1aa; flex-shrink:0; }
.ctx-item:hover .ctx-item-icon{ color:#ffffff; }
.ctx-item-label{ flex: 1; }
.ctx-item-arrow{ display:flex; align-items:center; margin-left:auto; color:#a1a1aa; font-size:10px; }
.ctx-divider{ height:1px; background:rgba(255,255,255,0.1); margin:5px 4px; }

/* Submenu flyout */
.ctx-submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: -6px;
  min-width: 220px;
  max-width: 280px;
  max-height: 320px;
  overflow-y: auto;
  background: #282828;
  border-radius: 6px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 2001;
}
.ctx-item.has-submenu:hover .ctx-submenu,
.ctx-item.has-submenu.open .ctx-submenu {
  display: block;
}
.ctx-sub-search {
  width: 100%;
  background: #1e1e1e;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  color: #ffffff;
  font-size: 12.5px;
  padding: 6px 10px;
  margin-bottom: 6px;
  outline: none;
}
.ctx-sub-search:focus {
  border-color: rgba(255,255,255,0.3);
}
.ctx-sub-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 8px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ctx-sub-item:hover {
  background: rgba(255,255,255,0.12);
}

/* trailing "..." trigger — hidden until the row/card is hovered */
.ctx-trigger{
  background:none; border:none; color:var(--grey-2); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:50%; flex-shrink:0;
  opacity:0; transition:opacity .15s ease, color .15s ease, background .15s ease;
}
tr:hover .ctx-trigger, .song-row:hover .ctx-trigger{ opacity:1; }
.ctx-trigger:hover{ color:var(--white); background:rgba(255,255,255,0.1); }

/* Quick heart favourite button in song rows */
.row-heart-btn{
  background:none; border:none; color:var(--grey-2); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:50%; flex-shrink:0;
  opacity:0; transition:opacity .15s ease, color .15s ease, background .15s ease, transform .15s ease;
}
tr:hover .row-heart-btn, .song-row:hover .row-heart-btn{ opacity:1; }
.row-heart-btn.liked{ opacity:1 !important; color:#ffffff; }
.row-heart-btn:hover{ color:var(--white); background:rgba(255,255,255,0.1); transform:scale(1.1); }
.row-heart-btn.liked:hover{ color:#ffffff; background:rgba(255,255,255,0.2); transform:scale(1.1); }
.col-kebab{ width:36px; text-align:center; }

@media (max-width:1180px){
  /* nowplaying panel is always visible — no collapse */
}

@media (max-width:920px){
  .app-body{ flex-direction:column; }
  #sidebar-root{ display:none; }
  .nowplaying{ display:none; }
  .player-volume{ display:none; }
}

/* ---------- mini player: aurora-glass skin ----------
   Shared by the floating desktop widget (widget.html, Electron) and the
   browser mini player (Document Picture-in-Picture, built in components.js).
   Soft blurred colour blobs behind a frosted dark panel — same idea as the
   reference mockup: rose / amber / violet light bleeding through glass. */
.floating-widget-card,
.pip-widget-card{
  --fwb-1:#ffffff;
  --fwb-2:#a1a1aa;
  --fwb-3:#27272a;
  position:relative; overflow:hidden;
  display:flex; flex-direction:column;
  color:var(--white);
  font-family:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-user-select:none; user-select:none;
  background: linear-gradient(165deg, rgba(20, 20, 26, 0.98) 0%, rgba(9, 9, 12, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.floating-widget-card::before,
.pip-widget-card::before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events:none;
  z-index:0;
}
.floating-widget-card > *,
.pip-widget-card > *{ position:relative; z-index:1; }

.floating-widget-card{
  position:fixed; bottom:20px; right:20px; z-index:999;
  display:none; gap:14px;
  width:340px; padding:18px 18px 16px;
  border-radius:26px;
  border:1px solid rgba(255,255,255,0.14);
  box-shadow:0 24px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08);
  -webkit-app-region:drag;
}
.floating-widget-card.visible{ display:flex; }

.pip-widget-card{
  width:100%; height:100%; box-sizing:border-box;
  gap:14px; padding:18px 18px 16px;
}

/* topbar: loop toggle on the left, volume + close on the right */
.fw-topbar{ display:flex; align-items:flex-start; justify-content:space-between; }
.fw-topbar-right{ display:flex; align-items:center; gap:6px; }

.fw-icon-btn{
  display:flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:50%; border:none; cursor:pointer;
  background:rgba(255,255,255,0.1); color:rgba(255,255,255,0.75);
  transition:background .15s ease, color .15s ease;
  -webkit-app-region:no-drag;
}
.fw-icon-btn:hover{ background:rgba(255,255,255,0.2); color:var(--white); }
.fw-icon-btn.active{ background:rgba(124,107,255,0.4); color:var(--white); }
.fw-icon-btn.liked{ color:var(--fwb-1); background:rgba(255,92,134,0.18); }

/* centered title / artist */
.fw-meta-center{ text-align:center; padding:0 8px; min-width:0; }
.fw-song-title{
  font-size:15px; font-weight:800; color:var(--white);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.fw-song-artist{
  font-size:12.5px; font-weight:600; color:rgba(255,255,255,0.68);
  margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* progress */
.fw-progress-wrap{ display:flex; flex-direction:column; gap:6px; }
.fw-progress-track{
  position:relative; width:100%; height:3px; border-radius:4px;
  background:rgba(255,255,255,0.18); cursor:pointer; -webkit-app-region:no-drag;
}
.fw-progress-track:hover{ background:rgba(255,255,255,0.28); }
.fw-progress-fill{
  position:absolute; top:0; left:0; height:100%; border-radius:4px;
  background:#ffffff;
  pointer-events:none;
}
.fw-time-row{
  display:flex; justify-content:space-between; font-size:10.5px;
  color:rgba(255,255,255,0.55); font-variant-numeric:tabular-nums;
}

/* bottom controls: like on the left, transport trio centered */
.fw-controls-row{ display:flex; align-items:center; justify-content:space-between; }
.fw-controls-spacer{ width:28px; height:28px; flex-shrink:0; }
.fw-transport{ display:flex; align-items:center; gap:10px; }

.fw-btn-transport{
  display:flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:50%; border:none; cursor:pointer;
  background:rgba(124,107,255,0.4); color:var(--white);
  transition:background .15s ease, transform .1s ease;
  -webkit-app-region:no-drag;
}
.fw-btn-transport:hover{ background:rgba(124,107,255,0.6); }
.fw-btn-transport:active{ transform:scale(0.92); }

.fw-btn-play{
  display:flex; align-items:center; justify-content:center;
  width:46px; height:46px; border-radius:50%; border:none; cursor:pointer;
  background:var(--white); color:#181818;
  box-shadow:0 6px 16px rgba(0,0,0,0.35);
  transition:transform .1s ease;
  -webkit-app-region:no-drag;
}
.fw-btn-play:hover{ transform:scale(1.05); }
.fw-btn-play:active{ transform:scale(0.94); }

/* volume popup — opens downward from the speaker icon */
.fw-speaker-wrap{ position:relative; }
.fw-vol-popup{
  position:absolute; top:calc(100% + 10px); right:0; transform:translateY(-6px);
  display:flex; flex-direction:column; align-items:center; gap:8px;
  padding:10px 8px 12px; border-radius:12px;
  background:rgba(24,24,32,0.95); border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 10px 26px rgba(0,0,0,0.55);
  opacity:0; pointer-events:none; transition:opacity .15s ease, transform .15s ease;
  z-index:5;
}
.fw-speaker-wrap:hover .fw-vol-popup,
.fw-speaker-wrap:focus-within .fw-vol-popup{
  opacity:1; pointer-events:auto; transform:translateY(0);
}
.fw-vol-pct{ font-size:10.5px; font-weight:700; color:rgba(255,255,255,0.7); }
.fw-vol-track{
  position:relative; width:4px; height:80px; border-radius:4px;
  background:rgba(255,255,255,0.18); display:flex; align-items:flex-end; cursor:pointer;
}
.fw-vol-fill{
  width:100%; border-radius:4px; background:var(--fwb-2); pointer-events:none;
}

/* User Profile Dropdown Menu & Account Switcher */
.user-profile-menu{
  position:fixed; width:196px; background:#282828; border:1px solid rgba(255,255,255,0.07);
  border-radius:4px; padding:4px; box-shadow:0 16px 24px rgba(0,0,0,0.5), 0 6px 10px rgba(0,0,0,0.3);
  animation:popIn 0.12s ease;
  z-index:10000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.up-header{ padding:8px 12px 6px; }
.up-name{ font-size:13px; font-weight:700; color:#ffffff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.up-email{ font-size:11px; color:#b3b3b3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }
.up-divider{ height:1px; background:rgba(255,255,255,0.1); margin:4px 0; }
.up-item{
  display:flex; align-items:center; justify-content:space-between; width:100%; text-align:left; padding:8px 12px; border-radius:2px;
  background:none; border:none; color:#eaeaea; font-size:13px; font-weight:500;
  cursor:pointer; text-decoration:none; transition:background .1s ease, color .1s ease; box-sizing:border-box;
}
.up-item:hover{ background:rgba(255,255,255,0.1); color:#ffffff; }
.up-ext-icon{ color:#b3b3b3; flex-shrink:0; }
.up-item:hover .up-ext-icon{ color:#ffffff; }






.up-badge{ background:rgba(255,255,255,0.12); color:#e4e4e7; font-size:11px; font-weight:700; padding:2px 7px; border-radius:6px; }
.up-arrow{ font-size:13px; color:#71717a; }

/* Flyout Submenu on Hover / Click */
.up-has-submenu{ position:relative; }
.up-submenu{
  position:absolute; right:calc(100% + 6px); top:-6px;
  min-width:250px; background:#18181c; border:1px solid rgba(255,255,255,0.14);
  border-radius:10px; padding:6px; box-shadow:0 24px 60px rgba(0,0,0,0.85);
  display:none; animation:popIn 0.15s ease;
  z-index:10005;
}
/* Invisible hover bridge between menu and submenu so mouse never leaves */
.up-submenu::after{
  content:"";
  position:absolute;
  top:0;
  right:-14px;
  width:16px;
  height:100%;
  background:transparent;
}
.up-has-submenu:hover .up-submenu,
.up-has-submenu.open .up-submenu,
.up-submenu:hover{
  display:block;
}
.up-submenu-header{ font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:0.06em; color:#71717a; padding:6px 10px 4px; }
.up-accounts-scroll{ max-height:240px; overflow-y:auto; display:flex; flex-direction:column; gap:3px; }
.up-acc-row{
  display:flex; align-items:center; gap:10px; padding:7px 9px; border-radius:6px;
  cursor:pointer; transition:background 0.15s ease; user-select:none; width:100%; text-align:left; background:none; border:none;
}
.up-acc-row:hover{ background:rgba(255,255,255,0.08); }
.up-acc-row.active{ background:rgba(255,255,255,0.12); }
.up-acc-avatar{
  width:28px; height:28px; border-radius:6px; background:linear-gradient(135deg, #a855f7, #ec4899);
  color:#fff; font-weight:800; font-size:12.5px; display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.up-acc-info{ min-width:0; flex:1; }
.up-acc-name{ font-size:13px; font-weight:700; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.up-acc-email{ font-size:11px; color:#a1a1aa; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.up-acc-check{ font-size:13px; color:#ffffff; font-weight:900; }
.up-logout{ color:#f87171; }
.up-logout:hover{ background:rgba(239,68,68,0.15); color:#fca5a5; }

/* Confirmation Modals for Remove & Delete Account */
.rm-confirm-modal-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,0.85); backdrop-filter:blur(8px);
  display:flex; align-items:center; justify-content:center; z-index:999999; padding:20px;
  animation:fadeIn 0.2s ease;
}
.rm-confirm-modal-box{
  width:100%; max-width:440px; background:#151518; border:1px solid rgba(255,255,255,0.14);
  border-radius:8px; padding:28px 24px; box-shadow:0 30px 80px rgba(0,0,0,0.9);
  display:flex; flex-direction:column; color:#ffffff; font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  animation:popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1); text-align:center;
}
.rm-confirm-icon{
  width:56px; height:56px; border-radius:8px; display:flex; align-items:center; justify-content:center;
  margin:0 auto 16px; font-size:26px;
}
.rm-confirm-icon.warning{ background:rgba(234,179,8,0.15); border:1px solid rgba(234,179,8,0.3); color:#facc15; }
.rm-confirm-icon.danger{ background:rgba(239,68,68,0.18); border:1px solid rgba(239,68,68,0.35); color:#ef4444; }
.rm-confirm-title{ font-size:20px; font-weight:800; margin:0 0 8px; color:#fff; }
.rm-confirm-desc{ font-size:13.5px; color:#a1a1aa; line-height:1.55; margin:0 0 24px; }
.rm-confirm-actions{ display:flex; gap:10px; }
.rm-btn-confirm-cancel{
  flex:1; padding:11px 16px; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.14);
  border-radius:6px; color:#fff; font-weight:700; font-size:13.5px; cursor:pointer; transition:background .15s;
}
.rm-btn-confirm-cancel:hover{ background:rgba(255,255,255,0.15); }
.rm-btn-confirm-action{
  flex:1; padding:11px 16px; border:none; border-radius:6px; color:#fff; font-weight:800; font-size:13.5px; cursor:pointer; transition:opacity .15s;
}
.rm-btn-confirm-action.warning{ background:#eab308; color:#000; }
.rm-btn-confirm-action.danger{ background:#ef4444; }
.rm-btn-confirm-action:hover{ opacity:0.9; }

/* Google Account Selector Modal (Spotify-style) */
.google-picker-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,0.85); backdrop-filter:blur(10px);
  display:flex; align-items:center; justify-content:center; z-index:99999; padding:20px;
  animation:fadeIn 0.2s ease;
}
.google-picker-modal{
  width:100%; max-width:820px; background:#121212; border:1px solid rgba(255,255,255,0.12);
  border-radius:12px; box-shadow:0 30px 80px rgba(0,0,0,0.9); overflow:hidden;
  display:flex; flex-direction:column; color:#ffffff; font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.gp-topbar{
  display:flex; align-items:center; justify-content:space-between; padding:16px 24px;
  border-bottom:1px solid rgba(255,255,255,0.08); background:rgba(255,255,255,0.02);
}
.gp-google-brand{ display:flex; align-items:center; gap:8px; font-size:14px; font-weight:600; color:#e4e4e7; }
.gp-close-btn{ background:none; border:none; color:#a1a1aa; font-size:22px; cursor:pointer; padding:4px; line-height:1; }
.gp-close-btn:hover{ color:#fff; }
.gp-body{ display:flex; min-height:380px; }
.gp-left{
  flex:1; padding:40px 32px; display:flex; flex-direction:column; justify-content:flex-start;
  border-right:1px solid rgba(255,255,255,0.08);
}
.gp-logo-badge{
  width:52px; height:52px; border-radius:50%; background:#000; border:1px solid rgba(255,255,255,0.2);
  display:flex; align-items:center; justify-content:center; margin-bottom:28px; box-shadow:0 8px 24px rgba(0,0,0,0.5);
}
.gp-logo-badge img{ width:32px; height:32px; filter:invert(1); }
.gp-title{ font-size:28px; font-weight:800; margin:0 0 10px; color:#ffffff; line-height:1.2; }
.gp-subtitle{ font-size:14.5px; color:#a1a1aa; }
.gp-subtitle strong{ color:#ffffff; }
.gp-right{ flex:1.3; padding:18px 24px; display:flex; flex-direction:column; overflow-y:auto; max-height:480px; }
.gp-account-item{
  display:flex; align-items:center; gap:14px; padding:12px 14px; border-radius:10px;
  cursor:pointer; transition:background 0.15s ease; border:none; border-bottom:1px solid rgba(255,255,255,0.06); text-align:left; width:100%; background:none;
}
.gp-account-item:hover{ background:rgba(255,255,255,0.08); }
.gp-account-item:last-child{ border-bottom:none; }
.gp-avatar{
  width:36px; height:36px; border-radius:50%; color:#fff; font-weight:700; font-size:15px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.gp-meta{ flex:1; min-width:0; }
.gp-meta-name{ font-size:14px; font-weight:600; color:#ffffff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gp-meta-email{ font-size:12px; color:#a1a1aa; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }
.gp-meta-status{ font-size:11.5px; color:#71717a; margin-left:auto; padding-left:8px; white-space:nowrap; }
.gp-add-btn{
  display:flex; align-items:center; gap:14px; padding:14px 12px; border-radius:10px; border:none;
  background:none; color:#ffffff; font-size:14px; font-weight:600; cursor:pointer; width:100%; text-align:left;
  transition:background 0.15s ease; margin-top:6px; border-top:1px solid rgba(255,255,255,0.1);
}
.gp-add-btn:hover{ background:rgba(255,255,255,0.08); }
.gp-add-icon{
  width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,0.1);
  display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0;
}
.gp-input-form{
  margin-top:12px; padding:16px; background:#18181c; border-radius:12px; border:1px solid rgba(255,255,255,0.15); display:none;
}
.gp-input-form input{
  width:100%; background:#000; border:1px solid rgba(255,255,255,0.25); border-radius:8px; padding:10px 12px;
  color:#fff; font-size:13.5px; margin-bottom:10px; outline:none; box-sizing:border-box;
}
.gp-input-form button{
  width:100%; background:#fff; color:#000; font-weight:800; border:none; border-radius:100px; padding:10px; cursor:pointer;
}

@media (max-width:700px){
  .gp-body{ flex-direction:column; }
  .gp-left{ border-right:none; border-bottom:1px solid rgba(255,255,255,0.08); padding:24px 20px; }
  .gp-right{ padding:20px; }
}

@keyframes popIn { from { opacity:0; transform:scale(0.95); } to { opacity:1; transform:scale(1); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* SoundTrack Picker List */
.st-pick-list{ display:flex; flex-direction:column; gap:4px; }
.st-pick-item{
  display:flex; align-items:center; gap:12px; padding:10px 14px;
  background:rgba(255,255,255,0.05); border:none; border-radius:8px;
  color:#fff; font-size:14px; font-weight:500; cursor:pointer; text-align:left;
  width:100%; transition:background 0.15s;
}
.st-pick-item:hover{ background:rgba(255,255,255,0.12); }
.st-pick-icon{ font-size:18px; flex-shrink:0; }
.st-pick-name{ flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ── Site-Wide Footer ──────────────────────────────────────────── */
.site-footer{
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 48px 32px 28px;
  margin-top: 40px;
  background: transparent;
  color: #a1a1aa;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.sf-grid{ display:flex; flex-wrap:wrap; gap:32px; justify-content:space-between; margin-bottom:40px; }
.sf-col{ display:flex; flex-direction:column; gap:10px; min-width:120px; }
.sf-col-title{ font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:0.08em; color:#ffffff; margin-bottom:4px; }
.sf-link{ font-size:13.5px; color:#a1a1aa; text-decoration:none; transition:color 0.15s; }
.sf-link:hover{ color:#ffffff; }
.sf-socials{ display:flex; align-items:flex-start; gap:10px; flex-shrink:0; }
.sf-social-btn{ width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,0.1); display:flex; align-items:center; justify-content:center; color:#ffffff; text-decoration:none; transition:background 0.15s, transform 0.15s; }
.sf-social-btn:hover{ background:rgba(255,255,255,0.2); transform:scale(1.08); }
.sf-bottom-bar{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-top:20px; border-top:1px solid rgba(255,255,255,0.07); }
.sf-legal{ display:flex; flex-wrap:wrap; gap:8px 18px; }
.sf-legal-link{ font-size:12px; color:#71717a; text-decoration:none; transition:color 0.15s; }
.sf-legal-link:hover{ color:#ffffff; }
.sf-copy{ font-size:12px; color:#71717a; white-space:nowrap; }

/* ── Settings Page ─────────────────────────────────────────────── */
.settings-wrap{ max-width:720px; margin:0 auto; padding:32px 32px 80px; }
.settings-page-title{ font-size:28px; font-weight:900; color:#ffffff; margin:0 0 32px; letter-spacing:-0.5px; }
.settings-section{ margin-bottom:40px; }
.settings-section-title{ font-size:17px; font-weight:800; color:#ffffff; margin:0 0 4px; }
.settings-row{ display:flex; align-items:center; justify-content:space-between; gap:24px; padding:18px 0; border-bottom:1px solid rgba(255,255,255,0.06); }
.settings-row:last-child{ border-bottom:none; }
.settings-row-info{ flex:1; min-width:0; }
.settings-row-label{ font-size:14px; font-weight:600; color:#ffffff; margin-bottom:3px; }
.settings-row-desc{ font-size:12.5px; color:#71717a; line-height:1.5; }
.settings-toggle{ position:relative; width:44px; height:24px; flex-shrink:0; }
.settings-toggle input{ opacity:0; width:0; height:0; position:absolute; }
.settings-toggle-track{ position:absolute; inset:0; background:rgba(255,255,255,0.15); border-radius:12px; cursor:pointer; transition:background 0.2s; }
.settings-toggle input:checked + .settings-toggle-track{ background:#ffffff; }
.settings-toggle-track::after{ content:''; position:absolute; top:2px; left:2px; width:20px; height:20px; border-radius:50%; background:#ffffff; transition:transform 0.2s; box-shadow:0 1px 4px rgba(0,0,0,0.3); }
.settings-toggle input:checked + .settings-toggle-track::after{ transform:translateX(20px); background:#000000; }
.settings-select{
  background-color: #282828;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 34px 8px 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.15s, background-color 0.15s;
  flex-shrink: 0;
  min-width: 220px;
}
.settings-select:hover{ border-color: rgba(255,255,255,0.35); }
.settings-select:focus{ outline: none; border-color: #ffffff; background-color: #333333; }
.settings-select option{
  background-color: #282828;
  color: #ffffff;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
}

.settings-btn{ background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.15); border-radius:100px; color:#ffffff; font-size:13px; font-weight:700; padding:8px 18px; cursor:pointer; display:inline-flex; align-items:center; gap:6px; transition:background 0.15s; white-space:nowrap; flex-shrink:0; }
.settings-btn:hover{ background:rgba(255,255,255,0.15); }
.settings-divider{ height:1px; background:rgba(255,255,205,0.06); margin:40px 0; }

/* Recent Searches Cards */
.card .card-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #a1a1aa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity .2s ease, color .2s ease, background .2s ease, transform .2s ease;
  z-index: 6;
}
.card:hover .card-close-btn {
  opacity: 1;
  transform: scale(1);
}
.card .card-close-btn:hover {
  background: rgba(0, 0, 0, 0.95);
  color: #ffffff;
  transform: scale(1.15);
}
.btn-text-clear:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Recent Searches Modern Card Grid */
.recent-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}
@media (max-width: 600px) {
  .recent-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
}

.recent-song-card {
  background: var(--panel, #181818);
  border-radius: 10px;
  padding: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  user-select: none;
}
.recent-song-card:hover {
  background: #242424;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.recent-song-art-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  background: #121212;
}
.recent-song-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recent-card-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #a1a1aa;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  z-index: 5;
  backdrop-filter: blur(4px);
}
.recent-song-card:hover .recent-card-close {
  opacity: 1;
  transform: scale(1);
}
.recent-card-close:hover {
  background: rgba(0, 0, 0, 0.95);
  color: #ffffff;
  transform: scale(1.15);
}

.recent-card-more {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #d4d4d8;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  z-index: 5;
  backdrop-filter: blur(4px);
}
.recent-song-card:hover .recent-card-more {
  opacity: 1;
  transform: scale(1);
}
.recent-card-more:hover {
  background: rgba(0, 0, 0, 0.95);
  color: #ffffff;
  transform: scale(1.15);
}

.recent-card-play {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  z-index: 4;
}
.recent-card-play svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
  fill: #000000;
}
.recent-song-card:hover .recent-card-play {
  opacity: 1;
  transform: translateY(0);
}
.recent-card-play:hover {
  transform: scale(1.08) !important;
  background: #f4f4f5;
}

/* Currently-playing recent card: solid white play button + clean white text (no green) */
.recent-song-card.rc-playing .recent-card-play {
  opacity: 1;
  transform: translateY(0);
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 12px rgba(255, 255, 255, 0.35);
}
.recent-song-card.rc-playing .recent-card-play svg { fill: #000000; }
.recent-song-card.rc-playing .recent-card-play:hover { background: #f4f4f5; transform: scale(1.08) !important; }
.recent-song-card.rc-playing .recent-song-title { color: #ffffff; font-weight: 800; }


.recent-song-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-song-sub {
  font-size: 12.5px;
  color: var(--grey-2, #a1a1aa);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
