/* One-button music control (vinyl) */
.vinyl{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999; /* make sure nothing covers it */

  display:inline-grid;
  place-items:center;

  width:64px;
  height:64px;
  border-radius:50%;
  padding:0;

  background:rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:
    0 8px 24px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,0,0,.22) inset;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  cursor:pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.vinyl:hover{ transform: translateY(-1px); }
.vinyl:active{ transform: translateY(0); }

.vinyl img{
  width: 48px; height: 48px; display:block; pointer-events:none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));
  transform: translateZ(0);
}

/* Spin while playing */
.vinyl.is-playing img{
  animation: spin 2.8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce){
  .vinyl.is-playing img{ animation:none; }
}
