:root{
  --r: 28px;
  --txt: rgba(255,255,255,.94);
  --muted: rgba(255,255,255,.78);
  --stroke: rgba(255,255,255,.14);
  --shadow: rgba(0,0,0,.55);
  --accent1: rgba(59,130,246,.55);
  --accent2: rgba(168,85,247,.45);
  --accent3: rgba(34,197,94,.35);
  --glass: rgba(0,0,0,.20);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background:#0b0d12;
  display:grid;
  place-items:center;
  padding:18px;
  color:var(--txt);
}
.wrap{width:min(1180px,100%)}
.player{
  position:relative;
  width:100%;
  min-height: 220px;
  border-radius: var(--r);
  overflow:hidden;
  border: 1px solid var(--stroke);
  box-shadow: 0 26px 70px var(--shadow), 0 2px 0 rgba(255,255,255,.06) inset;
  background: rgba(18,18,24,.35);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  display:flex;
  gap: 26px;
  padding: 22px 26px;
  align-items: stretch;
}
.bgCover{
  position:absolute; inset:-30px;
  background-size: cover;
  background-position: center;
  filter: blur(30px) saturate(160%);
  opacity: .55;
  transform: scale(1.04);
  transform-origin:center;
  animation: slowZoom 10.5s ease-in-out infinite;
}
.bgTint{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 380px at 20% 40%, var(--accent1), transparent 60%),
    radial-gradient(900px 380px at 70% 20%, var(--accent2), transparent 60%),
    radial-gradient(900px 380px at 85% 80%, var(--accent3), transparent 62%),
    linear-gradient(180deg, rgba(0,0,0,.00), rgba(0,0,0,.58));
  opacity: .92;
}
.shine{
  position:absolute; inset:0;
  background: linear-gradient(120deg, rgba(255,255,255,.10), rgba(255,255,255,0));
  opacity: .9;
  pointer-events:none;
}
.viz{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  opacity:.85;
  mix-blend-mode: screen;
  filter: blur(.2px);
}

.left{
  width: 240px;
  display:flex;
  flex-direction:column;
  gap: 14px;
  align-items:flex-start;
  position:relative;
  z-index:1;
}
.coverFrame{
  width: 170px;
  height: 170px;
  border-radius: 24px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
  background: rgba(0,0,0,.18);
}
@keyframes slowZoom {
  0%   { transform: scale(1.00); }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1.00); }
}
.coverFrame img{
  width:100%;height:100%;
  object-fit:cover;display:block;
  transform-origin:center;
  animation: slowZoom 7.5s ease-in-out infinite;
}

/* PRO buttons */
.liveBtn{
  width: 170px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.15);
  background: linear-gradient(180deg, rgba(239,68,68,.92), rgba(185,28,28,.92));
  color: #fff;
  font-weight: 900;
  letter-spacing: .6px;
  cursor:pointer;
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, filter .15s ease;
  box-shadow:
    0 18px 40px rgba(0,0,0,.35),
    0 10px 22px rgba(185,28,28,.35),
    0 1px 0 rgba(255,255,255,.16) inset;
}
.liveBtn:before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(220px 90px at 30% 20%, rgba(255,255,255,.28), rgba(255,255,255,0) 60%);
  opacity:.9;
  pointer-events:none;
}
.liveBtn:hover{transform: translateY(-1px); filter: saturate(1.05);}
.liveBtn:active{transform: translateY(0px) scale(.99);}
.liveBtn.on{
  background: linear-gradient(180deg, rgba(34,197,94,.92), rgba(21,128,61,.92));
  box-shadow:
    0 18px 40px rgba(0,0,0,.35),
    0 10px 22px rgba(21,128,61,.35),
    0 1px 0 rgba(255,255,255,.16) inset;
}
.liveDot{
  width:10px;height:10px;border-radius:999px;
  background:#fff;
  box-shadow: 0 0 0 6px rgba(255,255,255,.15);
}
.liveBtn.on .liveDot{
  box-shadow: 0 0 0 6px rgba(255,255,255,.15), 0 0 18px rgba(34,197,94,.65);
}

.volRow{width: 170px;}
.volRow input[type="range"]{width:100%; height: 10px;}
.volRow input[type="range"]::-webkit-slider-runnable-track{
  height: 10px; border-radius: 999px;
  background: rgba(255,255,255,.20);
  border: 1px solid rgba(255,255,255,.14);
}
.volRow input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  width: 18px; height: 18px;
  margin-top: -5px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,.35);
}

.main{
  flex:1;
  min-width: 320px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap: 14px;
  position:relative;
  z-index:1;
}
.kicker{
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .2px;
}

/* Layout stability: fixed meta heights so panel doesn't resize per song */
.meta{ min-height: 150px; }
.title{
  margin-top: 6px;
  font-size: clamp(30px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.02;
  overflow:hidden;
  white-space:nowrap;
  height: 74px;
}
.artist{
  margin-top: 10px;
  font-size: 22px;
  font-weight: 900;
  color: rgba(255,255,255,.86);
  text-transform: uppercase;
  overflow:hidden;
  white-space:nowrap;
  height: 30px;
  line-height: 1.1;
}
.titleInner, .artistInner{
  display:inline-block;
  padding-right: 28px;
  will-change: transform;
}
.title.marquee .titleInner{
  animation: marquee 10s linear infinite;
}
.artist.marquee .artistInner{
  animation: marqueeArtist 9s linear infinite;
}
@keyframes marquee{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(calc(-1 * var(--marqueeShift, 0px))); }
}
@keyframes marqueeArtist{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(calc(-1 * var(--marqueeShiftArtist, 0px))); }
}

.bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding-top: 10px;
}
.socials{display:flex; align-items:center; gap: 10px;}
.s{
  width: 44px; height: 44px;
  border-radius: 14px;
  display:grid; place-items:center;
  border: 1px solid rgba(255,255,255,.14);
  background: var(--glass);
  transition: transform .15s ease, background .15s ease;
  position: relative; overflow:hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.25), 0 1px 0 rgba(255,255,255,.08) inset;
}
.s:before{
  content:""; position:absolute; inset:-2px;
  background: radial-gradient(160px 70px at 30% 20%, rgba(255,255,255,.20), rgba(255,255,255,0) 60%);
  opacity:.8; pointer-events:none;
}
.s:hover{transform: translateY(-1px); background: rgba(0,0,0,.26);}
.s:active{transform: translateY(0) scale(.98);}
.s svg{width:20px;height:20px;fill: rgba(255,255,255,.92);}

.badges{display:flex; align-items:center; gap: 10px;}
.badge{
  display:flex; align-items:center; gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: var(--glass);
  color: var(--txt);
  text-decoration:none;
  transition: transform .15s ease, background .15s ease;
  min-width: 168px;
  position: relative; overflow:hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.25), 0 1px 0 rgba(255,255,255,.08) inset;
}
.badge:before{
  content:""; position:absolute; inset:-2px;
  background: radial-gradient(160px 70px at 30% 20%, rgba(255,255,255,.20), rgba(255,255,255,0) 60%);
  opacity:.8; pointer-events:none;
}
.badge:hover{transform: translateY(-1px); background: rgba(0,0,0,.26);}
.badge:active{transform: translateY(0) scale(.99);}
.badgeIco{
  width: 28px;height:28px;
  display:grid;place-items:center;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
}
.badgeIco svg{width:18px;height:18px;fill: currentColor}
.badgeTxt{display:flex;flex-direction:column;line-height:1}
.badgeTxt .small{font-size:11px;color: rgba(255,255,255,.72); font-weight:800}
.badgeTxt .big{font-size:14px;font-weight:900}

.status{
  font-size: 12px;
  color: rgba(255,255,255,.70);
  font-weight: 800;
  height: 16px; /* stable */
}

@media (max-width: 980px){
  .player{flex-direction:column; padding: 18px;}
  .left{width:100%; flex-direction:row; align-items:center; justify-content:space-between}
  .coverFrame{width:96px;height:96px;border-radius:18px}
  .liveBtn,.volRow{width:auto}
  .main{min-width:0}
  .bottom{flex-wrap:wrap; justify-content:flex-start}
}
@media (max-width: 520px){
  body{padding:10px}
  .meta{min-height: 110px;}
  .title{font-size: 30px; height: 38px;}
  .artist{font-size: 16px; height: 22px;}
  .badge{min-width: 150px}
}
