:root{
  --bg0:#06070b;
  --bg1:#0b0d16;
  --txt:#e9e9ee;
  --fg: whitesmoke;
  --mut:rgba(233,233,238,.62);
  --line:rgba(255,255,255,.10);
  --glass:rgba(255,255,255,.06);
  --glass2:rgba(255,255,255,.10);
  --shadow:0 18px 50px rgba(0,0,0,.55);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--fg);
  overflow-x:hidden;
  overflow-y:auto;
  background: linear-gradient(180deg, var(--bg0), var(--bg1));
}

/* MAIN LIQUID MASS */
body::before{
  content:"";
  position:fixed;
  inset:-35vmax;
  z-index:-2;
  pointer-events:none;

  background:
    radial-gradient(1400px 900px at 15% 25%, rgba(255,90,90,.25), transparent 60%),
    radial-gradient(1200px 900px at 85% 35%, rgba(0,210,255,.22), transparent 60%),
    radial-gradient(1400px 900px at 50% 90%, rgba(255,120,180,.20), transparent 65%),
    linear-gradient(180deg, var(--bg0), var(--bg1));

  background-repeat:no-repeat;
  background-size:200% 200%;

  animation:
    bgDrift 18s cubic-bezier(.45,0,.2,1) infinite alternate,
    bgPulse 6s ease-in-out infinite;
  
  transform:
    translateY(var(--scroll-shift, 0))
    scale(1.15)
    rotate(0.3deg);
}

/* PARALLAX + GRAIN */
body::after{
  content:"";
  position:fixed;
  inset:-40vmax;
  z-index:-1;
  pointer-events:none;

  background:
    radial-gradient(900px 900px at 10% 80%, rgba(80,160,255,.18), transparent 60%),
    radial-gradient(800px 800px at 90% 20%, rgba(255,80,140,.16), transparent 60%),
    repeating-radial-gradient(
      circle at 50% 50%,
      rgba(255,255,255,.035),
      rgba(255,255,255,.035) 1px,
      transparent 1px,
      transparent 3px
    );

  mix-blend-mode: overlay;
  opacity:.75;
  filter: blur(22px) saturate(1.35);

  animation:
    bgParallax 45s linear infinite,
    grainMove 0.9s steps(8) infinite;
}

@keyframes bgParallax{
  from{
    background-position: 0% 100%, 100% 0%;
    transform: translateY(-5%) scale(1.1);
  }
  to{
    background-position: 100% 0%, 0% 100%;
    transform: translateY(5%) scale(1.2);
  }
}

@keyframes bgDrift{
  0%{
    background-position:
      0% 0%,
      100% 10%,
      50% 100%,
      0% 0%;
    transform: scale(1.05) rotate(-0.6deg);
  }
  50%{
    background-position:
      20% 15%,
      80% 35%,
      55% 85%,
      0% 0%;
    transform: scale(1.12) rotate(0.6deg);
  }
  100%{
    background-position:
      10% 30%,
      90% 20%,
      45% 95%,
      0% 0%;
    transform: scale(1.18) rotate(-0.4deg);
  }
}


@keyframes grainMove{
  0%   { transform: translate3d(0,0,0); }
  10%  { transform: translate3d(-1%, 1%,0); }
  20%  { transform: translate3d(-2%, -1%,0); }
  30%  { transform: translate3d(1%, -2%,0); }
  40%  { transform: translate3d(2%, 1%,0); }
  50%  { transform: translate3d(-2%, 2%,0); }
  60%  { transform: translate3d(2%, -1%,0); }
  70%  { transform: translate3d(1%, 2%,0); }
  80%  { transform: translate3d(-1%, -2%,0); }
  90%  { transform: translate3d(2%, 0%,0); }
  100% { transform: translate3d(0,0,0); }
}


.glass{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 18px;
}

.btn{
  appearance:none;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--txt);
  border-radius:999px;
  padding:8px 12px;
  cursor:pointer;
  font-weight:800;
}
.btn:hover{ background: rgba(255,255,255,.10); }
.btn--primary{
  background: rgba(255,255,255,.12);
}
.btn--tiny{
  padding:6px 10px;
  font-size:12px;
}

.iconBtn{
  width:40px; height:40px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--txt);
  cursor:pointer;
  display:grid;
  place-items:center;
  font-weight:900;
}
.iconBtn:hover{ background: rgba(255,255,255,.10); }
.iconBtn--big{ width:46px; height:46px; font-size:16px; }

.input, .search, .textarea{
  width:100%;
  border:1px solid var(--line);
  background: rgba(0,0,0,.25);
  color:var(--txt);
  padding:10px 12px;
  border-radius: 14px;
  outline:none;
}
.textarea{ resize: vertical; }
.search{ border-radius:999px; min-width: 280px; }

.muted{ color: var(--mut); }

.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 22px 26px 12px;
  gap:16px;
}
.brand__title{ font-weight:900; letter-spacing:.2px; }
.brand__sub{ margin-top:4px; color:var(--mut); font-weight:700; }

.top__right{
  display:flex;
  align-items:center;
  gap:10px;
}

.layout{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap:16px;
  padding: 8px 16px 140px;
}

.side{
  padding:16px;
  position: sticky;
  top: 10px;
  height: calc(100vh - 170px);
  overflow:auto;
}
.side__section{ margin-bottom: 14px; }
.side__label{
  font-size:12px;
  font-weight:900;
  letter-spacing:.6px;
  color: rgba(255,255,255,.65);
  margin: 10px 0 8px;
}
.pillRow{ display:flex; gap:8px; flex-wrap:wrap; }
.pill{
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  color:var(--txt);
  border-radius:999px;
  padding:8px 10px;
  cursor:pointer;
  font-weight:900;
  font-size:12px;
}
.pill.is-active{
  background: rgba(255,255,255,.14);
}
.side__mini{ display:flex; gap:8px; align-items:center; margin-top:8px; }
.side__footer{ margin-top:16px; padding-top:12px; border-top:1px solid var(--line); }

.chips{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  color:var(--txt);
  border-radius:999px;
  padding:7px 10px;
  cursor:pointer;
  font-weight:900;
  font-size:12px;
  opacity:.9;
}
.chip.is-active{ background: rgba(255,255,255,.14); opacity:1; }

.content{ padding:6px 8px; }
.content__bar{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  padding: 6px 10px 14px;
}
.content__title{ font-size:34px; font-weight:950; letter-spacing:-.6px; }
.content__count{ color:var(--mut); font-weight:800; }

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  padding: 0 8px 8px;
}

.card{
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  cursor:pointer;
  transition: transform .18s ease, background .18s ease;
}
.card:hover{
  transform: translateY(-3px);
  background: rgba(255,255,255,.06);
}
.card__img{
  width:100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display:block;
  background: rgba(255,255,255,.03);
}
.card__body{ padding:10px 10px 12px; }
.card__title{ font-weight:950; font-size:14px; }
.card__sub{
  margin-top:6px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color: var(--mut);
  font-weight:800;
  font-size:12px;
}
.badge{
  border:1px solid var(--line);
  background: rgba(0,0,0,.22);
  padding:5px 8px;
  border-radius:999px;
  font-weight:900;
  font-size:11px;
  color: rgba(255,255,255,.86);
}

.tracks{ padding: 0 8px; display:flex; flex-direction:column; gap:8px; }
.trackRow{
  display:grid;
  grid-template-columns: 48px 1fr auto auto;
  gap: 12px;
  align-items:center;
  padding: 10px 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  cursor:pointer;
}
.trackRow:hover{ background: rgba(255,255,255,.06); }
.trackRow__cover{
  width:48px; height:48px; border-radius:12px; object-fit:cover; background: rgba(255,255,255,.03);
}
.trackRow__title{ font-weight:950; }
.trackRow__sub{ color: var(--mut); font-weight:800; font-size:12px; margin-top:4px; }
.trackRow__type{
  color: rgba(255,255,255,.65);
  font-weight:900;
  font-size:12px;
  text-transform: uppercase;
  letter-spacing:.5px;
}
.trackRow__actions{ display:flex; gap:8px; }
.miniBtn{
  width:34px; height:34px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  color:var(--txt);
  display:grid;
  place-items:center;
  cursor:pointer;
  font-weight:950;
}
.miniBtn:hover{ background: rgba(255,255,255,.10); }

.playerWrap{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px 14px;
  z-index: 10;
}
.player{
  display:grid;
  grid-template-columns: 360px 1fr 380px 190px;
  gap: 12px;
  padding: 12px;
  align-items:center;
}

.now{ display:flex; gap:12px; align-items:center; min-width:0; }
.now__cover{ width:56px; height:56px; border-radius:14px; object-fit:cover; background: rgba(255,255,255,.03); }
.now__meta{ min-width:0; }
.now__title{ font-weight:950; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.now__sub{ margin-top:4px; color:var(--mut); font-weight:800; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.controls{ display:flex; align-items:center; gap:8px; }
.spacer{ flex:1; }

.seekWrap{ display:flex; flex-direction:column; gap:6px; }
.seek{
  width:100%;
  accent-color: rgba(255,255,255,.75);
}
.time{ color:var(--mut); font-weight:900; font-size:12px; text-align:right; }

.volWrap{ display:flex; align-items:center; gap:10px; justify-content:flex-end; }
.vol{ width: 120px; accent-color: rgba(255,255,255,.75); }

.overlay, .modal{
  position: fixed;
  inset: 0;
  z-index: 50;
  display:grid;
  place-items:center;
}
.hidden{ display:none !important; }
.overlay__back, .modal__back{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}
.overlay__panel{
  position:relative;
  width: min(1000px, 92vw);
  padding: 12px;
}
.overlay__top{ display:flex; justify-content:space-between; align-items:center; padding: 6px 6px 10px; }
.overlay__title{ font-weight:950; font-size:18px; }
.overlay__sub{ color:var(--mut); font-weight:800; font-size:12px; margin-top:4px; }
.overlay__video{ width:100%; border-radius: 14px; border:1px solid var(--line); background:black; }

.modal__panel{
  position:relative;
  width: min(720px, 92vw);
  padding: 14px;
}
.modal__panel--wide{ width: min(900px, 92vw); }
.modal__title{ font-size:18px; font-weight:950; }
.modal__mini{ margin-top:6px; color:var(--mut); font-weight:800; font-size:12px; }
.modal__body{ margin-top:10px; color: rgba(255,255,255,.86); font-weight:700; }
.modal__actions{ margin-top: 12px; display:flex; justify-content:flex-end; gap:8px; }

.cmBox{ margin-top: 12px; display:flex; flex-direction:column; gap:8px; }
.cmActions{ display:flex; gap:8px; justify-content:flex-end; }
.cmList{ margin-top: 12px; display:flex; flex-direction:column; gap:8px; max-height: 42vh; overflow:auto; padding-right:4px; }
.cmItem{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding: 10px;
}
.cmItem__t{ font-weight:900; font-size:12px; color: rgba(255,255,255,.72); }
.cmItem__m{ margin-top:6px; font-weight:700; }

.plList{ display:flex; flex-direction:column; gap:8px; margin-top:10px; }
.plItem{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding: 10px;
  cursor:pointer;
}
.plItem:hover{ background: rgba(255,255,255,.06); }
.plItem__t{ font-weight:950; }
.plItem__s{ margin-top:6px; color:var(--mut); font-weight:800; font-size:12px; display:flex; justify-content:space-between; gap:8px; }

.plPick{ margin-top: 12px; display:flex; flex-direction:column; gap:8px; }
.plPickBtn{
  width:100%;
  text-align:left;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  color:var(--txt);
  cursor:pointer;
  font-weight:900;
}
.plPickBtn:hover{ background: rgba(255,255,255,.10); }

/* PASSWORD GATE */
.gate{
  position: fixed;
  inset: 0;
  z-index: 100;
  display:grid;
  place-items:center;
  background: rgba(0,0,0,.45);
}
.gate__panel{ width: min(520px, 92vw); padding: 16px; }
.gate__title{ font-weight:950; font-size:22px; }
.gate__sub{ margin-top:6px; color:var(--mut); font-weight:800; }
.gate__row{ margin-top:14px; display:flex; gap:10px; }
.gate__err{ margin-top:10px; color: rgba(255,120,120,.95); font-weight:900; min-height: 18px; }
.gate__hint{ margin-top:10px; color:var(--mut); font-weight:800; font-size:12px; }

@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
  .side{ position:relative; height:auto; }
  .player{ grid-template-columns: 1fr; gap:10px; }
  .search{ min-width: 180px; }
}

