/* Right Spot – Spotify-mobile inspired layout (no copyrighted assets) */
:root{
  --bg:#000; --panel:#121212; --panel2:#181818;
  --card:#1a1a1a; --line:#2a2a2a;
  --text:#fff; --muted:#b3b3b3; --green:#1db954;
  --shadow:0 8px 24px rgba(0,0,0,.35);
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,system-ui,sans-serif;overflow:hidden}
.app{display:flex;height:100vh}

/* Desktop sidebar */
.sidebar{width:260px;background:var(--panel);padding:18px 16px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:14px}
.logo{display:flex;align-items:center;gap:10px;padding:6px 8px}
.logo-dot{width:10px;height:10px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(29,185,84,.15)}
.logo-text{font-weight:800}
.nav-menu{display:flex;flex-direction:column;gap:4px}
.nav-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;color:var(--muted);text-decoration:none;transition:background .15s ease,color .15s ease}
.nav-item:hover{background:rgba(255,255,255,.06);color:var(--text)}
.nav-item.active{background:rgba(255,255,255,.08);color:var(--text)}
.nav-ic{width:22px;display:inline-flex;justify-content:center}
.divider{height:1px;background:var(--line);margin:6px 0}
.section-title{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);margin:6px 8px 4px}
.playlist-item{padding:10px 12px;border-radius:10px;color:var(--muted);cursor:pointer}
.playlist-item:hover{background:rgba(255,255,255,.06);color:var(--text)}

/* Main */
.main{flex:1;display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(180deg,#111 0%,#000 50%)}
.top{padding:14px 16px 10px;background:linear-gradient(180deg, rgba(24,24,24,.92) 0%, rgba(0,0,0,.02) 100%);border-bottom:1px solid rgba(255,255,255,.06)}
.top-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.greeting{font-size:28px;font-weight:900;letter-spacing:-.02em}
.top-actions{display:flex;align-items:center;gap:10px}
.icon-btn{width:38px;height:38px;border-radius:999px;border:0;background:rgba(255,255,255,.08);display:inline-flex;align-items:center;justify-content:center;color:#fff}
.icon-btn svg{width:18px;height:18px;fill:currentColor;opacity:.95}
.avatar{width:38px;height:38px;border-radius:999px;border:0;background:var(--green);color:#071b0c;font-weight:900;display:inline-flex;align-items:center;justify-content:center}

.searchbar{margin-top:12px;display:none;gap:10px;align-items:center;padding:12px 14px;border-radius:999px;background:#fff;color:#111}
.searchbar input{border:0;outline:0;background:transparent;width:100%;font-size:15px}
.search-ic{width:18px;height:18px;fill:#111;opacity:.85}
.chips{display:none;margin-top:10px;gap:10px;overflow:auto;padding-bottom:6px}
.chip{border:0;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.10);color:#fff;font-weight:700;white-space:nowrap}
.chip.active{background:#fff;color:#111}

.content{flex:1;overflow:auto;padding:14px 16px 140px}
.page{display:none}
.page.active{display:block}
.grid-title{margin:10px 2px 10px;font-size:16px;color:#fff;font-weight:900}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.05);border-radius:12px;padding:10px;display:flex;gap:10px;align-items:center;cursor:pointer;transition:transform .08s ease,background .15s ease}
.card:hover{background:rgba(255,255,255,.10)}
.card:active{transform:scale(.985)}
.card img{width:44px;height:44px;border-radius:10px;object-fit:cover;background:#222}
.card-title{font-weight:900;font-size:13px;line-height:1.2}
.card-sub{font-size:12px;color:var(--muted);margin-top:2px}

/* Search list */
.search-results{display:flex;flex-direction:column;gap:6px}
.track{display:flex;align-items:center;gap:12px;padding:10px;border-radius:12px;cursor:pointer;transition:background .15s ease}
.track:hover{background:rgba(255,255,255,.06)}
.track img{width:48px;height:48px;border-radius:10px;object-fit:cover;background:#222}
.track-meta{flex:1;min-width:0}
.track-name{font-weight:900;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.track-artist{margin-top:2px;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.track-btn{width:38px;height:38px;border-radius:999px;border:0;background:rgba(255,255,255,.10);color:#fff;display:flex;align-items:center;justify-content:center}
.track-btn svg{width:18px;height:18px;fill:#fff}

/* Library */
.lib-header{padding:8px 2px 12px}
.lib-title{font-size:22px;font-weight:900}
.lib-sub{color:var(--muted);margin-top:6px;font-size:13px}
.lib-list{display:flex;flex-direction:column;gap:8px}
.lib-item{display:flex;gap:12px;align-items:center;padding:10px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.05)}
.lib-item img{width:44px;height:44px;border-radius:10px;object-fit:cover;background:#222}

/* Mini player */
.mini-player{position:fixed;left:8px;right:8px;bottom:64px;height:64px;border-radius:14px;background:linear-gradient(180deg, rgba(40,40,40,.95) 0%, rgba(25,25,25,.95) 100%);border:1px solid rgba(255,255,255,.08);box-shadow:var(--shadow);display:flex;align-items:center;justify-content:space-between;padding:10px;gap:10px;z-index:10}
.mini-left{display:flex;align-items:center;gap:10px;min-width:0}
.mini-art{width:44px;height:44px;border-radius:10px;object-fit:cover;background:#222}
.mini-meta{min-width:0}
.mini-title{font-weight:900;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini-artist{margin-top:2px;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini-right{display:flex;align-items:center;gap:8px}
.mini-btn{width:38px;height:38px;border-radius:999px;border:0;background:rgba(255,255,255,.10);color:#fff;display:flex;align-items:center;justify-content:center}
.mini-btn.play{background:#fff;color:#111}
.mini-btn svg{width:18px;height:18px;fill:currentColor}
.mini-progress{position:absolute;left:10px;right:10px;bottom:6px;height:2px;border-radius:999px;background:rgba(255,255,255,.18);overflow:hidden}
.mini-progress-fill{height:100%;width:0%;background:#fff}

/* Bottom nav */
.mobile-nav{position:fixed;left:0;right:0;bottom:0;height:56px;padding-bottom:env(safe-area-inset-bottom);background:rgba(10,10,10,.96);border-top:1px solid rgba(255,255,255,.08);display:flex;align-items:center;justify-content:space-around;z-index:11}
.tab{border:0;background:transparent;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:11px;font-weight:800;width:33.33%;padding-top:6px}
.tab svg{width:22px;height:22px;fill:currentColor}
.tab.active{color:#fff}

/* Desktop tweaks */
@media (min-width:769px){
  .mobile-nav{display:none}
  .mini-player{left:16px;right:16px;bottom:16px;height:74px}
  .mini-progress{bottom:8px}
  .content{padding-bottom:110px}
}

/* 1:1 Mobile overrides */
@media (max-width:768px){
  body{min-height:100svh}
  .sidebar{display:none}
  .searchbar{display:flex}
  .chips{display:flex}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .content{padding-bottom:160px}
}

@media (max-width:380px){
  .cards{grid-template-columns:1fr}
}
