:root{
  --bg:#0c1116;
  --bg-raised:#141c23;
  --bg-sunken:#0a0f13;
  --border:#243039;
  --text:#e6edf1;
  --text-muted:#93a4af;
  --text-faint:#5d6d78;
  --accent:#4fd1dd;
  --amber:#e8923f;
  --sans: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: Charter, "Iowan Old Style", Georgia, serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, monospace;
}
*{box-sizing:border-box;}
html,body{margin:0; height:100%;}
body{
  background:var(--bg); color:var(--text); font-family:var(--sans);
  font-size:15px; line-height:1.5;
}
button{font-family:inherit; cursor:pointer;}
a{color:inherit;}

.shell{display:flex; flex-direction:column; min-height:100vh;}

.topbar{
  display:flex; align-items:center; gap:24px; padding:14px 28px;
  border-bottom:1px solid var(--border); background:var(--bg-sunken);
  position:sticky; top:0; z-index:5;
}
.brand{font-family:var(--serif); font-weight:700; font-size:1.15rem;}
.brand .mark{color:var(--accent);}
.searchwrap{flex:1; max-width:420px;}
#search{
  width:100%; background:var(--bg-raised); border:1px solid var(--border); color:var(--text);
  padding:8px 14px; border-radius:100px; font-size:.86rem; outline:none;
}
#search:focus{border-color:var(--accent);}

.view{flex:1; padding:28px; max-width:1100px; margin:0 auto; width:100%;}

.crumb{font-size:.78rem; color:var(--text-faint); margin-bottom:14px;}
.crumb a{color:var(--accent); text-decoration:none;}

h1{font-family:var(--serif); font-size:1.8rem; margin:0 0 4px;}
h2{font-family:var(--serif); font-size:1.15rem; margin:28px 0 10px; color:var(--text);}
.sub{color:var(--text-muted); font-size:.9rem; margin-bottom:20px;}

/* artist grid */
.grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:16px;}
.artist-card{
  background:var(--bg-raised); border:1px solid var(--border); border-radius:10px; padding:16px;
  text-align:left; color:var(--text); display:block; text-decoration:none;
}
.artist-card:hover{border-color:var(--accent);}
.artist-card .av{
  width:56px; height:56px; border-radius:50%; margin-bottom:10px;
  background:linear-gradient(140deg, var(--accent), #17323a);
  display:flex; align-items:center; justify-content:center; font-family:var(--serif); font-weight:700; color:#06131a;
}
.artist-card .name{font-weight:600; font-size:.94rem;}
.artist-card .count{color:var(--text-faint); font-size:.76rem; margin-top:2px;}

/* release rows grouped by type */
.release-group{margin-bottom:8px;}
.release-list{display:flex; flex-direction:column; gap:8px;}
.release-row{
  display:flex; align-items:center; gap:14px; background:var(--bg-raised); border:1px solid var(--border);
  border-radius:8px; padding:10px 14px; text-decoration:none; color:var(--text);
}
.release-row:hover{border-color:var(--accent);}
.release-art{width:44px; height:44px; border-radius:5px; flex:0 0 auto;}
.release-info .t{font-size:.9rem; font-weight:600;}
.release-info .s{font-size:.76rem; color:var(--text-faint);}

/* tracklist */
.tracklist{border:1px solid var(--border); border-radius:10px; overflow:hidden;}
.track-row{
  display:grid; grid-template-columns:32px 1fr auto auto; align-items:center; gap:12px;
  padding:10px 16px; border-bottom:1px solid var(--border); background:none; border-left:none; border-right:none; border-top:none;
  width:100%; text-align:left; color:var(--text);
}
.track-row:last-child{border-bottom:none;}
.track-row:hover{background:var(--bg-sunken);}
.track-row .n{color:var(--text-faint); font-family:var(--mono); font-size:.78rem;}
.track-row .title{font-size:.9rem;}
.track-row .codec{font-family:var(--mono); font-size:.68rem; color:var(--text-faint); text-transform:uppercase;}
.track-row .dur{font-family:var(--mono); font-size:.78rem; color:var(--text-muted); font-variant-numeric:tabular-nums;}

.badge{font-size:.64rem; text-transform:uppercase; letter-spacing:.05em; padding:2px 7px; border-radius:100px; border:1px solid var(--border); color:var(--text-faint);}
.badge.live{color:var(--amber); border-color:var(--amber);}
.badge.bootleg{color:var(--accent); border-color:var(--accent);}

.empty{color:var(--text-faint); font-size:.9rem; padding:40px 0; text-align:center;}

/* search results */
.results-section{margin-bottom:24px;}

/* now playing bar */
.nowplaying{
  display:flex; align-items:center; gap:14px; padding:10px 20px; border-top:1px solid var(--border);
  background:var(--bg-sunken); position:sticky; bottom:0;
}
.np-art{width:42px; height:42px; border-radius:5px; background:linear-gradient(140deg,#1c3b42,#0b1116); flex:0 0 auto;}
.np-meta{flex:1; min-width:0;}
.np-title{font-size:.84rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.np-sub{font-size:.72rem; color:var(--text-faint); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.np-bar{height:3px; background:var(--border); border-radius:2px; margin-top:6px; max-width:320px;}
.np-bar-fill{height:100%; width:0%; background:var(--accent); border-radius:2px; transition:width .2s linear;}
.np-controls{display:flex; gap:14px; align-items:center;}
.np-controls button{background:none; border:none; color:var(--text-muted); font-size:1rem;}
.np-controls .play{
  width:32px; height:32px; border-radius:50%; background:var(--accent); color:#06131a;
  display:flex; align-items:center; justify-content:center; font-size:.85rem;
}
