:root{
  --bg0:#07070a;
  --bg1:#0e0f16;
  --card:#101225cc;
  --card2:#0c0d18cc;
  --txt:#e9eaf2;
  --muted:#a7abc0;
  --line:#252846;
  --acc:#7c5cff;
  --acc2:#17e6b8;
  --danger:#ff4d6d;
  --good:#36d399;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --r:18px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--txt);
  background:
    radial-gradient(1000px 700px at 20% 10%, rgba(124,92,255,.22), transparent 60%),
    radial-gradient(900px 600px at 80% 30%, rgba(23,230,184,.14), transparent 55%),
    radial-gradient(1200px 900px at 50% 110%, rgba(255,77,109,.12), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

.bg::before{
  content:"";
  position:fixed; inset:-2px;
  background:
    radial-gradient(circle at 60% 20%, rgba(124,92,255,.12), transparent 40%),
    radial-gradient(circle at 30% 70%, rgba(23,230,184,.08), transparent 45%);
  filter: blur(20px);
  pointer-events:none;
  z-index:-1;
}

.topbar{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(14px);
  background: rgba(10,10,18,.55);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner{
  max-width:1200px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
}
.left{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.right{ display:flex; gap:10px; align-items:center; }

.container{ max-width:1200px; margin:18px auto; padding:0 16px 40px; }

.shell{ min-height:calc(100vh - 60px); display:flex; align-items:center; justify-content:center; padding:30px 16px; }

.card{
  background: linear-gradient(180deg, rgba(16,18,37,.70), rgba(12,13,24,.60));
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding:16px;
}

.brand{ display:flex; gap:12px; align-items:center; margin-bottom:14px; }
.logo{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background: rgba(124,92,255,.16);
  border:1px solid rgba(124,92,255,.28);
  box-shadow: 0 12px 40px rgba(124,92,255,.18);
  font-size:22px;
}

.h1{ font-size:22px; font-weight:800; letter-spacing:.2px; }
.h2{ font-size:18px; font-weight:800; margin-bottom:10px; }
.h3{ font-size:14px; font-weight:800; margin:10px 0 8px; }
.sub{ color:var(--muted); font-size:13px; }

.muted{ color:var(--muted); }
.small{ font-size:12px; }
.pill{
  padding:6px 10px; border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  font-weight:700;
}

.tag{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  font-size:12px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
}
.tag.good{ background: rgba(54,211,153,.16); border-color: rgba(54,211,153,.28); }

.code{
  font-family: var(--mono);
  padding:3px 8px;
  border-radius:10px;
  background: rgba(124,92,255,.12);
  border:1px solid rgba(124,92,255,.24);
}

.alert{
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,77,109,.10);
  border:1px solid rgba(255,77,109,.22);
  margin:12px 0;
}

.form{ display:flex; flex-direction:column; gap:10px; }
label span{ display:block; color:var(--muted); font-size:12px; margin-bottom:6px; }
input, textarea, select{
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:var(--txt);
  outline:none;
}
textarea{ resize:vertical; min-height:80px; }
input:focus, textarea:focus, select:focus{
  border-color: rgba(124,92,255,.45);
  box-shadow: 0 0 0 4px rgba(124,92,255,.12);
}

.btn{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color:var(--txt);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  font-weight:800;
  text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
}
.btn:hover{ background: rgba(255,255,255,.10); }
.btn:disabled{ opacity:.45; cursor:not-allowed; }
.btn.primary{
  background: linear-gradient(180deg, rgba(124,92,255,.85), rgba(124,92,255,.62));
  border-color: rgba(124,92,255,.35);
  box-shadow: 0 10px 34px rgba(124,92,255,.18);
}
.btn.danger{
  background: rgba(255,77,109,.12);
  border-color: rgba(255,77,109,.24);
}
.btn.danger:hover{ background: rgba(255,77,109,.18); }

.foot{ margin-top:12px; display:flex; gap:12px; color:var(--muted); font-size:13px; }
.foot a{ color:var(--muted); }

.divider{ height:1px; background: rgba(255,255,255,.08); margin:12px 0; }

.grid2{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
.gridApp{ display:grid; grid-template-columns: 360px 1fr 360px; gap:14px; align-items:start; }

@media (max-width: 1100px){
  .gridApp{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns:1fr; }
}

.row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.input{ flex:1; min-width:180px; }

.tableWrap{ overflow:auto; border-radius:14px; border:1px solid rgba(255,255,255,.08); }
.table{
  width:100%; border-collapse:collapse;
  min-width:520px;
}
.table th,.table td{
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.06);
  font-size:13px;
}
.table th{ text-align:left; color:var(--muted); font-weight:800; }
.rowBtns{ display:flex; gap:8px; }

.tabs{ display:flex; gap:8px; margin-bottom:12px; }
.tab{
  padding:10px 12px; border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color:var(--txt);
  cursor:pointer; font-weight:800;
}
.tab.active{
  background: rgba(124,92,255,.14);
  border-color: rgba(124,92,255,.28);
}
.panel{ display:none; }
.panel.active{ display:block; }

.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  padding:6px 10px; border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  font-size:12px;
}

.songList{ display:flex; flex-direction:column; gap:8px; margin-top:8px; }
.songItem{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
}
.songItem:hover{ background: rgba(255,255,255,.10); }
.songTitle{ font-weight:900; }
.songArtist{ color:var(--muted); font-size:12px; }

.queue{ display:flex; flex-direction:column; gap:8px; }
.queueItem{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.06);
  display:flex; justify-content:space-between; gap:10px;
}
.queueMeta{ color:var(--muted); font-size:12px; }

.lyrics{
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
  max-height: 70vh;
  overflow:auto;
}
.line{
  padding:8px 10px;
  border-radius:12px;
  color: rgba(233,234,242,.78);
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.line.active{
  background: rgba(124,92,255,.16);
  border:1px solid rgba(124,92,255,.20);
  color: var(--txt);
  transform: scale(1.02);
}

.playerCard .playerRow{ margin:10px 0; }
.progress{ display:flex; gap:10px; align-items:center; }
.progress input[type="range"]{ flex:1; }

.slider{ display:flex; align-items:center; gap:10px; flex:1; min-width:240px; }
.slider input{ flex:1; }

.visualizer{
  position:relative;
  height:140px;
  border-radius: var(--r);
  border:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(400px 180px at 40% 30%, rgba(124,92,255,.16), transparent 65%),
    radial-gradient(420px 200px at 70% 60%, rgba(23,230,184,.10), transparent 60%),
    rgba(0,0,0,.22);
  overflow:hidden;
  margin-bottom:12px;
}
.bars{
  position:absolute; inset:0;
  display:flex; gap:4px;
  align-items:flex-end;
  padding:14px;
}
.bars span{
  flex:1;
  border-radius:10px;
  background: rgba(255,255,255,.14);
  height: 20%;
  animation: bounce 900ms ease-in-out infinite;
  transform-origin: bottom;
}
.bars span:nth-child(3n){ animation-duration: 780ms; }
.bars span:nth-child(4n){ animation-duration: 1020ms; }
.bars span:nth-child(5n){ animation-duration: 680ms; }

@keyframes bounce{
  0%,100%{ transform: scaleY(.25); opacity:.55; }
  50%{ transform: scaleY(1.0); opacity:.95; }
}

.beatGlow{
  position:absolute; inset:-50px;
  background: radial-gradient(circle at 40% 45%, rgba(124,92,255,.22), transparent 60%);
  animation: glow 1400ms ease-in-out infinite;
  filter: blur(10px);
}
@keyframes glow{
  0%,100%{ transform: scale(1.0); opacity:.55; }
  50%{ transform: scale(1.08); opacity:.85; }
}
