/* =====================================
   ABOUT PAGE LISTENING STYLES
   Vinyl and podcast components
====================================== */
/* About page listening picks — overrides the original audio-player prototype */
.listening-section {
  margin-block: 8rem;
}
.listening-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8%;
  margin-bottom: 3rem;
}
.listening-intro h2 {
  font: 600 clamp(2.8rem, 5vw, 5.3rem) / 0.96 var(--display);
  letter-spacing: -0.05em;
  color: var(--navy);
  margin: 0;
}
.listening-intro > p:last-child {
  max-width: 560px;
  grid-column: 2;
}
.listening-section .turntable {
  margin: 0;
  min-height: 680px;
}
.listening-section .turntable-copy h3,
.podcast-copy h3 {
  font: 600 clamp(2.5rem, 4vw, 4.5rem) / 0.96 var(--display);
  letter-spacing: -0.05em;
  color: var(--navy);
  margin: 1rem 0;
}
.listen-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(100%, 390px);
  background: var(--red);
  color: white;
  padding: 1rem 1.15rem;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s;
}
.listen-button:hover,
.listen-button:focus-visible {
  background: var(--navy);
  transform: translateY(-2px);
}
.listen-button.is-unconfigured {
  background: #777;
  cursor: not-allowed;
}
.player-status.is-hidden {
  display: none;
}
.record-player .vinyl {
  position: relative;
  width: min(100%, 520px);
  display: grid;
  place-items: center;
  transform-origin: 50% 50%;
  will-change: transform;
}
.vinyl-grooves {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.record-label {
  position: relative;
  overflow: hidden;
  width: 48%;
  aspect-ratio: 1;
  grid-area: 1 / 1;
  place-self: center;
  border-radius: 50%;
  transform: translateZ(0);
}
.record-label img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}
.record-label::after {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.album-placeholder {
  position: relative;
  z-index: 1;
}
.album-placeholder.is-hidden,
.podcast-placeholder.is-hidden {
  display: none;
}
.record-player.has-entered .vinyl {
  animation: vinyl-arrival 3.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.record-player.has-entered .tonearm {
  animation: tonearm-arrival 1s 0.5s ease both;
}
.podcast-card {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  margin-top: 2rem;
  background: var(--navy);
  color: var(--paper);
  min-height: 650px;
}
.podcast-art {
  margin: clamp(2rem, 5vw, 5rem);
  background: var(--red);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.podcast-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.podcast-placeholder {
  font: 600 clamp(2rem, 4vw, 4rem) / 0.9 var(--display);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}
.sound-wave {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 8%;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(32, 61, 80, 0.88);
  padding: 10px;
}
.sound-wave i {
  display: block;
  width: 5px;
  height: 18%;
  background: white;
}
.podcast-art.has-entered .sound-wave i {
  animation: wave-arrival 0.8s ease-in-out 2 alternate;
}
.podcast-art.has-entered .sound-wave i:nth-child(2),
.podcast-art.has-entered .sound-wave i:nth-child(7) {
  animation-delay: 0.08s;
}
.podcast-art.has-entered .sound-wave i:nth-child(3),
.podcast-art.has-entered .sound-wave i:nth-child(8) {
  animation-delay: 0.16s;
}
.podcast-art.has-entered .sound-wave i:nth-child(4),
.podcast-art.has-entered .sound-wave i:nth-child(9) {
  animation-delay: 0.24s;
}
.podcast-art.has-entered .sound-wave i:nth-child(5) {
  animation-delay: 0.32s;
}
.podcast-copy {
  padding: clamp(2rem, 6vw, 7rem);
  align-self: center;
}
.podcast-copy h3 {
  color: var(--paper);
}
.episode-title {
  font: 500 clamp(1.25rem, 2vw, 1.8rem) / 1.2 var(--display);
  color: #d5d9aa;
}
.podcast-copy > p:not(.eyebrow):not(.player-status) {
  max-width: 550px;
}
.podcast-copy .listen-button {
  margin-top: 2rem;
  background: var(--red);
}
.podcast-copy .listen-button:hover {
  background: var(--paper);
  color: var(--navy);
}
@keyframes vinyl-arrival {
  0% {
    transform: rotate(0) scale(0.92);
    opacity: 0.4;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: rotate(720deg) scale(1);
  }
}
@keyframes tonearm-arrival {
  from {
    transform: rotate(15deg);
  }
  to {
    transform: rotate(28deg);
  }
}
@keyframes wave-arrival {
  from {
    height: 18%;
  }
  to {
    height: 90%;
  }
}
@media (max-width: 850px) {
  .listening-section {
    margin-block: 5rem;
  }
  .listening-intro,
  .podcast-card {
    grid-template-columns: 1fr;
  }
  .listening-intro > p:last-child {
    grid-column: 1;
  }
  .listening-section .turntable {
    grid-template-columns: 1fr;
  }
  .podcast-art {
    min-height: 75vw;
  }
  .podcast-copy {
    padding: 2.5rem 1.5rem;
  }
  .record-player {
    min-height: 80vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  .record-player.has-entered .vinyl,
  .record-player.has-entered .tonearm,
  .podcast-art.has-entered .sound-wave i {
    animation: none;
  }
}
