:root{
  --bg:#070b14;
  --panel:#0b1222;
  --panel2:#0f1a33;
  --text:#e7ecff;
  --muted:#98a6d4;
  --blue:#2d6bff;
  --blue2:#1d3fa8;
  --stroke:rgba(255,255,255,.08);
}

*{ box-sizing:border-box; }
html,body{ height:100%; margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial; background:var(--bg); color:var(--text); }

.topbar{
  position:sticky; top:0; z-index:10;
  display:flex; gap:16px; align-items:center;
  padding:14px 16px;
  background:linear-gradient(180deg, rgba(11,18,34,.95), rgba(7,11,20,.75));
  border-bottom:1px solid var(--stroke);
  backdrop-filter: blur(10px);
}
.brand{
  font-weight:800; letter-spacing:.5px;
  color:var(--text);
  padding:8px 12px;
  border:1px solid var(--stroke);
  border-radius:14px;
  background:rgba(255,255,255,.03);
}
.tabs{ display:flex; gap:8px; }
.tab{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.03);
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  transition: transform .08s ease, background .2s ease;
}
.tab:hover{ transform: translateY(-1px); }
.tab.active{
  border-color: rgba(45,107,255,.55);
  background: linear-gradient(180deg, rgba(45,107,255,.25), rgba(45,107,255,.08));
}
.searchWrap{ margin-left:auto; width:min(520px, 40vw); }
#search{
  width:100%;
  background:rgba(255,255,255,.04);
  border:1px solid var(--stroke);
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  outline:none;
}
#search:focus{ border-color: rgba(45,107,255,.65); }

.layout{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap:14px;
  padding:14px;
  height: calc(100vh - 70px);
}

.sidebar{
  background:linear-gradient(180deg, rgba(15,26,51,.7), rgba(11,18,34,.55));
  border:1px solid var(--stroke);
  border-radius:18px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.sidebarHeader{
  padding:12px;
  border-bottom:1px solid var(--stroke);
  display:flex;
  gap:10px;
  align-items:center;
}
.sidebarTitle{ font-weight:800; }
.categorySelect{
  margin-left:auto;
  max-width: 200px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--stroke);
  color:var(--text);
  padding:8px 10px;
  border-radius:14px;
  outline:none;
}

.list{
  overflow:auto;
  padding:8px;
  height:100%;
}

.item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 10px;
  border-radius:14px;
  cursor:pointer;
  border:1px solid transparent;
}
.item:hover{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.06);
}
.item.active{
  background: linear-gradient(180deg, rgba(45,107,255,.18), rgba(45,107,255,.06));
  border-color: rgba(45,107,255,.45);
}
.item .title{ font-weight:650; }
.item .meta{ color:var(--muted); font-size:12px; }

.playerPane{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.playerCard{
  background:linear-gradient(180deg, rgba(15,26,51,.6), rgba(11,18,34,.55));
  border:1px solid var(--stroke);
  border-radius:18px;
  padding:12px;
  height:100%;
  display:flex;
  flex-direction:column;
}

.playerHeader{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:6px 4px 12px 4px;
}
.nowPlayingLabel{ color:var(--muted); font-size:12px; }
.nowPlaying{ font-weight:800; font-size:18px; }

.video{
  width:100%;
  height: calc(100% - 90px);
  background:#000;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
}

.hint{
  color:var(--muted);
  font-size:12px;
  padding:10px 4px 0 4px;
}
