.turntable {
  position: relative;
  margin: clamp(16px, 3.5vw, 24px) 0 0;
  width: 100%;
  aspect-ratio: 1 / 0.94;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.plinth {
  position: absolute;
  inset: 3.5% 0 6.5% 0;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), transparent 44%),
    linear-gradient(180deg, var(--plinth), var(--plinth-dark));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -2px 6px rgba(0, 0, 0, 0.45),
    0 16px 28px -11px rgba(23, 24, 26, 0.5),
    0 38px 66px -18px rgba(23, 24, 26, 0.36);
}

.power {
  position: absolute;
  left: 5.5%;
  bottom: 7%;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 3px 8px;
  font-family: "Courier Prime", monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

.power-lever {
  grid-row: 1 / 3;
  width: 12px;
  height: 34px;
  border-radius: 7px;
  background: linear-gradient(180deg, #17181b, #3b3d42);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.75),
    0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
}

.power-lever::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 3px;
  height: 12px;
  border-radius: 5px;
  background: linear-gradient(180deg, #5a5c62, #2e3034);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.is-playing .power-lever::after,
.is-loading .power-lever::after {
  transform: translateY(14px);
}

.power-light {
  position: absolute;
  right: 6%;
  bottom: 9.5%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.is-playing .power-light {
  background: var(--orange);
  box-shadow: 0 0 10px 2px rgba(247, 148, 29, 0.55);
}

.has-error .power-light {
  background: var(--red);
  box-shadow: 0 0 10px 2px rgba(213, 56, 44, 0.45);
}

/* vinyl */

.vinyl {
  position: absolute;
  left: 5%;
  top: 0;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle,
      transparent 0 30.5%,
      rgba(255, 255, 255, 0.06) 31% 31.6%,
      transparent 32% 45%,
      rgba(255, 255, 255, 0.055) 45.4% 46%,
      transparent 46.4% 62%,
      rgba(255, 255, 255, 0.06) 62.4% 63%,
      transparent 63.4% 79%,
      rgba(255, 255, 255, 0.06) 79.4% 80%,
      transparent 80.4%),
    repeating-radial-gradient(circle,
      #0c0d0f 0 1.1px,
      #191a1e 1.1px 2.4px),
    var(--vinyl);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 3px 0 rgba(255, 255, 255, 0.06),
    0 18px 36px -6px rgba(0, 0, 0, 0.72);
  will-change: transform;
}

.is-playing .vinyl,
.is-loading .vinyl {
  animation: vinylSpin 1.8s linear infinite;
}

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

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

.vinyl-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 20deg,
    transparent 0deg 26deg,
    rgba(255, 255, 255, 0.09) 52deg,
    transparent 78deg 200deg,
    rgba(255, 255, 255, 0.07) 230deg,
    transparent 260deg 360deg);
}

.label {
  position: absolute;
  inset: 33%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 38% 30%, #ffffff, #f2f0ec 62%, #e4e1db);
  box-shadow:
    0 0 0 3px var(--orange),
    0 0 0 5px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(23, 24, 26, 0.08);
}

.label img {
  width: 62%;
  display: block;
}

.spindle {
  position: absolute;
  width: 9%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8e8e6, #9a9a98 60%, #6a6a68);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

/* tonearm — brushed steel */

.tonearm {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.arm-pivot {
  position: absolute;
  top: 5.5%;
  right: 7%;
  width: 13.5%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #3f4147, #26282c 58%, #191a1d);
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.arm-pivot::after {
  content: "";
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, #f4f5f6, #c2c4c8 45%, #85888d 78%, #6d7075);
  box-shadow:
    inset 0 -1px 2px rgba(0, 0, 0, 0.45),
    0 1px 3px rgba(0, 0, 0, 0.5);
}

.arm {
  position: absolute;
  top: 12%;
  right: 13.75%;
  width: 2.6%;
  height: 56%;
  transform-origin: 50% 0%;
  transform: rotate(-13deg);
  transition: transform 1.15s cubic-bezier(0.35, 0.75, 0.25, 1);
}

.is-loading .arm {
  transform: rotate(-2deg);
}

.is-playing .arm {
  transform: rotate(20deg);
}

.arm-rod {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background:
    linear-gradient(90deg,
      #8e9196 0%,
      #e9eaec 26%,
      #f8f9fa 42%,
      #c7c9cd 62%,
      #84878c 100%);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.5),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.4);
}

.arm-counterweight {
  position: absolute;
  top: -9%;
  left: 50%;
  width: 260%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 5px;
  background:
    linear-gradient(90deg, #6f7277 0%, #d7d9db 35%, #eceded 48%, #a9acb0 72%, #63666b 100%);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 3px rgba(0, 0, 0, 0.3);
}

.arm-counterweight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 42%;
  height: 16%;
  background: rgba(20, 21, 24, 0.55);
}

.arm-headshell {
  position: absolute;
  bottom: -2%;
  left: 50%;
  width: 320%;
  height: 9%;
  transform: translateX(-50%) rotate(24deg);
  transform-origin: 50% 0;
  border-radius: 3px;
  background:
    linear-gradient(90deg, #7c7f84 0%, #d3d5d8 40%, #b4b6ba 60%, #6e7176 100%);
  box-shadow:
    0 5px 10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.arm-headshell::after {
  content: "";
  position: absolute;
  left: 30%;
  right: 30%;
  bottom: -36%;
  height: 40%;
  border-radius: 2px;
  background: linear-gradient(180deg, #202124, #0d0e10);
}

