/* Visual spectrum + persistent mini-player. Isolated from the rest of the site. */
body { padding-bottom: 92px; }

.now-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.now-card > *:not(.live-spectrum) {
  position: relative;
  z-index: 2;
}
.live-spectrum {
  position: absolute;
  inset: 18px 18px auto 18px;
  height: 145px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  opacity: .58;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.95), rgba(0,0,0,.3), transparent);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.95), rgba(0,0,0,.3), transparent);
}
.live-spectrum::before {
  content: '';
  position: absolute;
  inset: -22px -22px 0;
  background: radial-gradient(circle at 50% 15%, rgba(73,199,189,.16), transparent 68%);
  z-index: -1;
}
.spectrum-bar {
  flex: 1 1 0;
  max-width: 11px;
  min-width: 3px;
  height: 10%;
  border-radius: 10px 10px 2px 2px;
  background: linear-gradient(to top, rgba(42,157,160,.28), #49c7bd 55%, #f0bd72 100%);
  box-shadow: 0 0 10px rgba(73,199,189,.16);
  transform-origin: bottom;
  transition: height .11s linear, opacity .2s ease;
}
.live-spectrum.is-idle .spectrum-bar { opacity: .28; }

.sticky-player {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 6000;
  width: min(880px, calc(100vw - 24px));
  pointer-events: none;
}
.sticky-player-inner {
  pointer-events: auto;
  min-height: 66px;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) 125px 52px;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 8px;
  border: 1px solid rgba(73,199,189,.25);
  border-radius: 18px;
  background: rgba(8,29,39,.94);
  box-shadow: 0 18px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.sticky-player-cover {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: #0b1e28;
  border: 1px solid rgba(255,255,255,.08);
}
.sticky-player-meta {
  min-width: 0;
  line-height: 1.18;
}
.sticky-player-meta small {
  display: block;
  color: #49c7bd;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-player-meta strong,
.sticky-player-meta span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-player-meta strong { color: #f3e6c5; font-size: 14px; margin-top: 3px; }
.sticky-player-meta span { color: #91a9b2; font-size: 11px; margin-top: 2px; }
.sticky-mini-spectrum {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  opacity: .74;
  overflow: hidden;
}
.sticky-mini-spectrum .spectrum-bar {
  width: 4px;
  min-width: 4px;
  max-width: 4px;
  flex: 0 0 4px;
  border-radius: 4px;
  background: linear-gradient(to top, #2a8e91, #49c7bd, #f0bd72);
  box-shadow: none;
}
.sticky-play {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(73,199,189,.34);
  display: grid;
  place-items: center;
  background: #2a9da0;
  color: #fff;
  font-size: 25px;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.sticky-play:hover { transform: scale(1.04); filter: brightness(1.08); }
.sticky-play.is-playing { background: #ef8c63; }

@media (max-width: 700px) {
  body { padding-bottom: 82px; }
  .sticky-player { bottom: 8px; width: calc(100vw - 16px); }
  .sticky-player-inner { min-height: 58px; grid-template-columns: 42px minmax(0,1fr) 46px; gap: 9px; border-radius: 15px; }
  .sticky-player-cover { width: 42px; height: 42px; border-radius: 10px; }
  .sticky-mini-spectrum { display: none; }
  .sticky-play { width: 44px; height: 44px; font-size: 23px; }
  .sticky-player-meta strong { font-size: 13px; }
  .sticky-player-meta span { font-size: 10px; }
  .live-spectrum { height: 110px; gap: 3px; inset: 12px 12px auto; }
}
