:root{
  --bg:#0b1220;
  --card:rgba(18,27,48,.75);
  --stroke:rgba(255,255,255,.08);
  --accent:#38bdf8;
  --text:#e2e8f0;
  --muted:#94a3b8;
  --shadow:rgba(0,0,0,.45);
  --radius:18px;
}

*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:system-ui,Segoe UI,Roboto,sans-serif;
  background:radial-gradient(1200px 600px at 10% 10%, rgba(56,189,248,.12), transparent),
             radial-gradient(900px 500px at 90% 0%, rgba(139,92,246,.12), transparent),
             linear-gradient(160deg,#050816,#0b1220);
  color:var(--text);
  min-height:100vh;
}

.card{
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  box-shadow:0 18px 45px var(--shadow);
  backdrop-filter: blur(10px);
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:18px 20px;
}

.brand{display:flex;align-items:center;gap:14px}
.logo{
  width:44px;height:44px;border-radius:14px;
  display:grid;place-items:center;
  background:rgba(56,189,248,.18);
  border:1px solid rgba(56,189,248,.28);
  font-size:22px;
}
.title{font-weight:700}
.subtitle{font-size:.85rem;color:var(--muted)}

.actions{display:flex;align-items:center;gap:10px}
#search{
  width:min(520px,46vw);
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.2);
  color:var(--text);
  outline:none;
}
.chip{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.2);
  color:var(--text);
  cursor:pointer;
  transition:.15s;
}
.chip:hover{border-color:rgba(56,189,248,.35)}

.layout{
  padding:20px;
  display:grid;
  grid-template-columns: 1.4fr 1fr;
  gap:18px;
}

.library-header{
  display:flex;justify-content:space-between;align-items:center;
  padding:14px 16px;
  border-bottom:1px solid var(--stroke);
}

.toolbar{display:flex;gap:10px}
select{
  padding:9px 10px;border-radius:10px;
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.25);color:var(--text);
}

.track-grid{
  padding:14px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
  max-height:72vh;
  overflow:auto;
}

.track{
  display:flex;gap:12px;align-items:center;
  padding:10px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.18);
  cursor:pointer;
  transition:.15s;
}
.track:hover{border-color:rgba(56,189,248,.35)}
.track.active{
  border-color:rgba(56,189,248,.55);
  background:rgba(56,189,248,.08);
}

.thumb{
  width:54px;height:54px;border-radius:12px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.08);
}
.tmeta{display:flex;flex-direction:column;gap:2px;min-width:0}
.tmeta .t{font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tmeta .s{font-size:.88rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.player-card{padding:16px}
.now{display:flex;align-items:center;gap:14px}
.cover{
  width:72px;height:72px;border-radius:16px;
  object-fit:cover;border:1px solid var(--stroke);
}
.meta{flex:1;min-width:0}
.np-title{font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.np-sub{color:var(--muted);font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.like{
  width:44px;height:44px;border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.2);
  color:var(--text);
  font-size:20px;cursor:pointer;
}
.like.liked{color:var(--accent);border-color:rgba(56,189,248,.55)}

.controls{
  display:flex;gap:10px;margin:14px 0 10px;
}
.icon{
  flex:1;
  padding:14px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.25);
  color:var(--text);cursor:pointer;
  font-size:18px;
}
.icon.primary{
  background:rgba(56,189,248,.14);
  border-color:rgba(56,189,248,.25);
}

.progress{
  display:flex;align-items:center;gap:10px;
  color:var(--muted);font-size:.9rem;
}
#seek{flex:1}

.extras{
  display:flex;flex-wrap:wrap;gap:10px;align-items:center;
  margin-top:12px;color:var(--muted)
}
.vol input{width:140px}
.speed select{min-width:90px}

.eq{margin-top:16px;padding-top:12px;border-top:1px solid var(--stroke)}
.eq-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.eq-bands{display:grid;grid-template-columns: repeat(6, minmax(0,1fr)); gap:10px; padding-top: 20px;}
.band{display:flex;flex-direction:column;align-items:center;gap:6px}
.band input{height:120px; writing-mode: bt-lr; -webkit-appearance: slider-vertical; transform: rotate(-90deg); accent-color: #38bdf8; }
.band label{font-size:.78rem;color:var(--muted); padding-top: 20px; }

.viz{
  width:100%;height:90px;margin-top:14px;border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.2);
}

.loading{padding:14px;text-align:center;color:var(--muted)}
.hidden{display:none}
.btn{
  margin:10px auto 16px;
  display:block;
  padding:12px 14px;border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.25);
  color:var(--text);
  cursor:pointer;
}

/* Responsive */
@media (max-width: 980px){
  .layout{grid-template-columns:1fr}
  #search{width:100%}
  .track-grid{grid-template-columns:1fr}
}
