/* RM VINYL PLAYER INTEGRATION */
.rm-vinyl-player .turntable {
  position: relative;
  width: min(100%, 350px);
  aspect-ratio: 1;
  margin: auto;
  border-radius: 22px;
  background: linear-gradient(145deg,#ead5c7,#d8b9a9);
  box-shadow:
    inset 0 2px 5px rgba(255,255,255,.7),
    inset 0 -4px 10px rgba(95,54,45,.12),
    0 10px 24px rgba(85,52,43,.12);
}

.rm-vinyl-player .platter {
  position: absolute;
  width: 79%;
  aspect-ratio: 1;
  left: 8%;
  top: 10.5%;
  border-radius: 50%;
  background: #bdaaa1;
  box-shadow: 0 3px 8px rgba(0,0,0,.25);
}

.rm-vinyl-player .record {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle,
      transparent 0 3px,
      rgba(255,255,255,.075) 4px,
      transparent 5px 8px
    ),
    conic-gradient(
      from 25deg,
      #151515,
      #303030,
      #111,
      #282828,
      #101010,
      #353535,
      #151515
    );
  box-shadow: inset 0 0 8px #000;
  animation: rmVinylSpin 1.8s linear infinite;
  animation-play-state: paused;
}

.rm-vinyl-player .turntable.playing .record,
.rm-vinyl-player .turntable.cueing .record {
  animation-play-state: running;
}

@keyframes rmVinylSpin {
  to { transform: rotate(360deg); }
}

.rm-vinyl-player .record-label {
  position: absolute;
  inset: 33%;
  border-radius: 50%;
  background: #bc5260;
  border: 3px solid #e8a5a6;
  display: grid;
  place-items: center;
  color: #fff;
  font: bold 10px Georgia, serif;
  letter-spacing: 1px;
  pointer-events: none;
}

.rm-vinyl-player .play-button {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 56px;
  height: 56px;
  border: 3px solid #fff4ef;
  border-radius: 50%;
  background: #fffaf7;
  color: #b94458;
  font-size: 23px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,.22);
}

.rm-vinyl-player .play-button:hover {
  background: #fff0eb;
}

.rm-vinyl-player .tonearm {
  position: absolute;
  z-index: 4;
  width: 12px;
  height: 49%;
  top: 13%;
  right: 12%;
  transform-origin: 50% 8%;
  transform: rotate(-30deg);
  transition: transform 1.1s ease-in-out;
  pointer-events: none;
}

.rm-vinyl-player .tonearm::before {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle,#d6d2cf 25%,#776d68 75%);
  box-shadow: 0 2px 4px rgba(0,0,0,.3);
}

.rm-vinyl-player .tonearm-shaft {
  position: absolute;
  top: 12px;
  left: 4px;
  width: 5px;
  height: 83%;
  border-radius: 4px;
  background: linear-gradient(90deg,#666,#e7e7e7,#777);
  box-shadow: 2px 2px 3px rgba(0,0,0,.2);
}

.rm-vinyl-player .cartridge {
  position: absolute;
  bottom: 0;
  left: -3px;
  width: 18px;
  height: 28px;
  border-radius: 3px;
  background: #353235;
  border-bottom: 5px solid #b94458;
}

.rm-vinyl-player .turntable.engaged .tonearm {
  transform: rotate(7deg);
}


@media (max-width:420px) {
  .rm-vinyl-player .tonearm { right: 11%; }
}

@media (prefers-reduced-motion:reduce) {
  .rm-vinyl-player .record { animation-duration: 6s; }
  .rm-vinyl-player .tonearm { transition-duration: .15s; }
}

/* Keep the vinyl button independent of the original RM button layout. */
.rm-vinyl-player .turntable .play-button {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* Match the approved red Play icon in the actual preview page. */
#step-preview .rm-vinyl-player #audioPlayIcon {
  color: #b94458;
  font-size: 23px;
}