:root{
  --bg:#070a12;
  --panel:#0e1424;
  --panel2:#0b1020;
  --text:#e9eefc;
  --muted:#a8b3d6;
  --line:#1f2a4a;
  --btn:#1b2a55;
  --btn2:#111a33;
  --accent:#f6c343;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

.topbar{
  position:sticky; top:0; z-index:50;
  background:rgba(7,10,18,.92);
  backdrop-filter: blur(8px);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  max-width:1100px;
  margin:0 auto;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand-title{font-weight:800; letter-spacing:.2px}
.brand-sub{color:var(--accent); font-weight:700; margin-top:2px; font-size:13px}

.nav{display:flex; gap:12px; flex-wrap:wrap; justify-content:flex-end}
.nav a{
  color:var(--muted);
  text-decoration:none;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid transparent;
}
.nav a:hover{border-color:var(--line); color:var(--text)}
.nav a.active{border-color:var(--accent); color:var(--text)}

.wrap{max-width:1100px; margin:0 auto; padding:18px 16px 40px}

.controls{
  display:flex; align-items:flex-end; justify-content:space-between; gap:14px;
  padding:16px;
  background:linear-gradient(180deg, var(--panel), var(--panel2));
  border:1px solid var(--line);
  border-radius:16px;
}
.controls h1{margin:0 0 4px 0; font-size:22px}
.muted{color:var(--muted)}

.right{display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap}
.field{display:flex; flex-direction:column; gap:6px; font-size:12px; color:var(--muted)}
.field input{
  width:220px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#070b17;
  color:var(--text);
  outline:none;
}
.field input:focus{border-color:var(--accent)}

.btn{
  cursor:pointer;
  border:1px solid var(--line);
  background:var(--btn);
  color:var(--text);
  padding:10px 14px;
  border-radius:12px;
  font-weight:700;
}
.btn:hover{border-color:var(--accent)}
.btn:disabled{opacity:.5; cursor:not-allowed}
.btn-lite{background:var(--btn2)}

.player{
  margin-top:14px;
  padding:16px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
}
.player-title{font-weight:800; margin-bottom:10px}
.player-host{
  min-height:140px;
  border-radius:14px;
  border:1px dashed #2b3a67;
  background:#070b17;
  padding:12px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.player-empty{color:var(--muted)}

.list-head{
  margin-top:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.list-title{font-weight:900; font-size:16px}
.pager{display:flex; gap:10px}

.cards{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}
@media (max-width: 920px){ .cards{grid-template-columns: repeat(2, minmax(0, 1fr));} }
@media (max-width: 620px){ .cards{grid-template-columns: 1fr;} .field input{width:100%;} }

.card{
  border:1px solid var(--line);
  background:var(--panel2);
  border-radius:16px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.card-top{
  display:flex;
  gap:12px;
  padding:12px;
}
.art{
  width:74px; height:74px;
  border-radius:14px;
  border:1px solid #24345f;
  background:#050815;
  overflow:hidden;
  flex:0 0 auto;
}
.art img{width:100%; height:100%; object-fit:cover; display:block}
.meta{min-width:0}
.title{
  font-weight:900;
  margin:0 0 6px 0;
  font-size:14px;
  line-height:1.25;
  word-break:break-word;
}
.sub{
  margin:0;
  color:var(--muted);
  font-size:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.card-actions{
  margin-top:auto;
  padding:12px;
  display:flex;
  gap:10px;
}
.play{
  flex:1;
  border:1px solid var(--accent);
  background:rgba(246,195,67,.12);
}
.open{
  flex:0 0 auto;
}

.status{margin-top:10px}
