/* ==================================================================
   ARTCELL album page — the spinning record player (js/album.js)
   The record turns slowly all the time; "Play side A" brings the arm
   down, speeds it up to 33⅓ and plays a soft instrumental.
   ================================================================== */

.al-player {
  --al-red: #b42e2d;            /* same red as the record photos */
  --al-cream: #f6eedb;
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(24px, 4vw, 40px);
  margin: clamp(40px, 6vw, 80px) 0;
  padding: clamp(48px, 8vw, 110px) 16px clamp(40px, 6vw, 72px);
  background: var(--al-red);
  overflow: hidden;
}

/* the deck: record + tonearm */
.al-deck {
  position: relative;
  width: min(520px, 78vw);
  aspect-ratio: 1;
}
.al-deck::after {               /* soft shadow under the record, like the photos */
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -9%;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(40, 6, 6, 0.55), rgba(40, 6, 6, 0) 70%);
}

.al-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 0 31%, rgba(255, 255, 255, 0.05) 31.4% 31.8%, transparent 32.2%),
    radial-gradient(circle at center, transparent 0 62%, rgba(255, 255, 255, 0.04) 62.3% 62.7%, transparent 63%),
    radial-gradient(circle at center, transparent 0 80%, rgba(255, 255, 255, 0.035) 80.3% 80.7%, transparent 81%),
    repeating-radial-gradient(circle at center, #121417 0 1px, #1a1e23 1.6px 3px),
    #15181c;
  box-shadow: inset 0 0 0 3px #0c0e10, inset 0 0 0 4px rgba(255, 255, 255, 0.06);
  will-change: transform;
}
/* the label: label-a.jpg, cropped to its circle */
.al-label {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--al-cream);
}
.al-label img {
  position: absolute;
  width: 125%;                  /* the circle is 1120 px of the 1400 px image */
  max-width: none;
  left: -8.84%;
  top: -13.39%;
}
/* light catching the grooves — it stays still while the record turns */
.al-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from 20deg at 50% 50%,
    transparent 0deg, rgba(255, 255, 255, 0.10) 18deg, transparent 40deg,
    transparent 180deg, rgba(255, 255, 255, 0.07) 200deg, transparent 222deg, transparent 360deg);
  -webkit-mask: radial-gradient(circle, transparent 0 33%, #000 33.5%);
          mask: radial-gradient(circle, transparent 0 33%, #000 33.5%);
}

/* tonearm: rests off the record, swings on when playing */
.al-arm {
  position: absolute;
  top: -6%;
  right: -12%;
  width: 46%;
  overflow: visible;
  transform-origin: 78% 12%;
  transform: rotate(-34deg);
  transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.al-player.is-playing .al-arm { transform: rotate(0deg); }

/* play / pause */
.al-play {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px 12px 14px;
  border: 1px solid rgba(246, 238, 219, 0.55);
  border-radius: 999px;
  background: transparent;
  color: var(--al-cream);
  font: inherit;
  font-size: var(--fs-nav);
  letter-spacing: var(--tracking-nav);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.al-play:hover,
.al-play:focus-visible { background: var(--al-cream); color: var(--al-red); }
.al-play__icon {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: currentColor;
}
.al-play__icon::before {        /* ▶ */
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  border-left: 9px solid var(--al-red);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.al-play:hover .al-play__icon::before,
.al-play:focus-visible .al-play__icon::before { border-left-color: var(--al-cream); }
.al-player.is-playing .al-play__icon::before {   /* ❚❚ */
  left: 9px;
  top: 8px;
  width: 10px;
  height: 12px;
  border: 0;
  background: linear-gradient(90deg, var(--al-red) 0 3.5px, transparent 3.5px 6.5px, var(--al-red) 6.5px 10px);
}
.al-player.is-playing .al-play:hover .al-play__icon::before,
.al-player.is-playing .al-play:focus-visible .al-play__icon::before {
  background: linear-gradient(90deg, var(--al-cream) 0 3.5px, transparent 3.5px 6.5px, var(--al-cream) 6.5px 10px);
}
.al-note {
  margin: -8px 0 0;
  color: rgba(246, 238, 219, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

@media (prefers-reduced-motion: reduce) {
  .al-arm { transition: none; }
}
