:root {
  --strxie-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

.private-offer {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(22, 24, 32, 0.78);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(22px);
}

.private-toggle {
  transition: background-color 160ms ease, transform 140ms var(--strxie-ease-out);
}

.private-toggle:active {
  transform: scale(0.985);
}

.private-arrow {
  transition: transform 200ms var(--strxie-ease-out);
}

.private-offer.is-open .private-arrow {
  transform: rotate(180deg);
}

.private-panel {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height 220ms var(--strxie-ease-out), opacity 180ms var(--strxie-ease-out);
}

.private-offer.is-open .private-panel {
  opacity: 1;
}

.music-toggle {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(22, 24, 32, 0.9);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.48), 0 0 22px rgba(139, 92, 246, 0.18);
  backdrop-filter: blur(20px);
  transition: transform 140ms var(--strxie-ease-out), border-color 160ms ease;
}

.music-toggle:active {
  transform: scale(0.94);
}

.music-cover {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.18);
}

.music-toggle.is-playing .music-cover {
  animation: strxie-music-spin 14s linear infinite;
}

.music-state-icon {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: #171923;
  color: #fff;
  font-size: 11px !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

@keyframes strxie-music-spin {
  to { transform: rotate(360deg); }
}

@media (hover: hover) and (pointer: fine) {
  .private-toggle:hover {
    background: rgba(139, 92, 246, 0.08);
  }

  .music-toggle:hover {
    border-color: rgba(167, 139, 250, 0.48);
  }
}

@media (prefers-reduced-motion: reduce) {
  .private-panel {
    transition: opacity 150ms ease;
  }

  .private-arrow,
  .private-toggle,
  .music-toggle {
    transition-duration: 0ms;
  }

  .music-toggle.is-playing .music-cover {
    animation: none;
  }
}
