.jukebox-player {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(460px, 1.18fr);
  gap: clamp(20px, 2.6vw, 42px);
  margin: clamp(24px, 3vw, 46px) var(--page-gutter) 0;
  padding: clamp(22px, 3vw, 44px);
  overflow: hidden;
  border: 1px solid #31536a;
  border-radius: 48px 8px 48px 8px;
  background:
    radial-gradient(circle at 8% 16%, rgb(25 200 255 / 12%), transparent 26rem),
    radial-gradient(circle at 94% 88%, rgb(213 165 65 / 10%), transparent 24rem),
    #07121d;
  box-shadow: 0 28px 70px rgb(0 0 0 / 34%);
  color: #eef5fa;
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.jukebox-player::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgb(25 200 255 / 22%), transparent 36% 64%, rgb(213 165 65 / 18%)) top / 100% 1px no-repeat;
  content: "";
  pointer-events: none;
}

.jukebox-player__selection {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(130px, 190px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 2vw, 30px);
}

.jukebox-player__cover {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgb(163 219 245 / 30%);
  border-radius: 32px 6px 32px 6px;
  background: #04090e;
  box-shadow: 0 20px 42px rgb(0 0 0 / 38%);
}

.jukebox-player__cover::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 14px;
  height: 14px;
  border: 2px solid #06110b;
  border-radius: 50%;
  background: #1ed760;
  box-shadow: 0 0 20px rgb(30 215 96 / 58%);
  content: "";
}

.jukebox-player__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.jukebox-player__copy {
  min-width: 0;
}

.jukebox-player__eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: #9fb3c2;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.jukebox-player__eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1ed760;
  box-shadow: 0 0 14px rgb(30 215 96 / 55%);
}

.jukebox-player.is-changing .jukebox-player__eyebrow span {
  animation: jukebox-pulse 440ms ease both;
}

.jukebox-player__number {
  margin: 0 0 8px;
  color: #62d9ff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.jukebox-player__copy h2 {
  margin: 0;
  color: #f7fbff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(38px, 4vw, 62px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.94;
}

.jukebox-player__genre {
  margin: 12px 0 0;
  color: #b6c5d0;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 650;
}

.jukebox-player__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.jukebox-player__link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid #345169;
  border-radius: 999px;
  color: #dce9f2;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.jukebox-player__link--spotify {
  border-color: rgb(30 215 96 / 65%);
  background: rgb(30 215 96 / 10%);
  color: #7cf1a5;
}

.jukebox-player__link:hover,
.jukebox-player__link:focus-visible {
  border-color: #68dcff;
  background: rgb(25 200 255 / 10%);
  color: #fff;
  outline: 0;
}

.jukebox-player__embed {
  min-width: 0;
  align-self: center;
  padding: 7px;
  border: 1px solid #29465a;
  border-radius: 26px;
  background: #03070b;
  box-shadow: 0 20px 48px rgb(0 0 0 / 28%);
}

.jukebox-player__embed iframe {
  display: block;
  width: 100%;
  height: 352px;
  border: 0;
  border-radius: 19px;
  background: #121212;
}

.playlist-grid {
  border-top: 0;
}

.playlist-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid #2b4559;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: translate 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.playlist-card::after {
  display: none;
}

.playlist-card:hover {
  translate: 0 -4px;
  border-color: #4d7895;
  background: #0a1722;
}

.playlist-card:focus-visible {
  z-index: 2;
  border-color: #69dcff;
  outline: 3px solid rgb(25 200 255 / 35%);
  outline-offset: 2px;
}

.playlist-card--active {
  border-color: rgb(30 215 96 / 68%);
  background:
    linear-gradient(90deg, rgb(30 215 96 / 8%), transparent 46%),
    #09151f;
  box-shadow: inset 3px 0 #1ed760, 0 18px 42px rgb(0 0 0 / 28%);
}

.playlist-art {
  position: relative;
  display: block;
  width: 156px;
  height: 156px;
  overflow: hidden;
  background: #050a0f;
}

.playlist-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.playlist-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 50%;
  background: rgb(3 9 14 / 82%);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 10px 24px rgb(0 0 0 / 42%);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.playlist-card:hover .playlist-play,
.playlist-card--active .playlist-play {
  border-color: #1ed760;
  background: #1ed760;
  color: #041108;
}

.playlist-meta {
  color: #eef5fa;
}

.playlist-meta > span:nth-child(2) {
  min-width: 0;
}

.playlist-name {
  display: block;
}

.playlist-genre {
  display: block;
  grid-column: auto;
}

.playlist-listen {
  grid-column: 2;
  align-self: end;
  margin-top: 12px;
  color: #77dffb;
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.playlist-card--active .playlist-listen {
  color: #63e892;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes jukebox-pulse {
  0% { scale: 0.7; opacity: 0.45; }
  55% { scale: 1.55; opacity: 1; }
  100% { scale: 1; opacity: 1; }
}

@media (max-width: 1120px) {
  .jukebox-player {
    grid-template-columns: 1fr;
  }

  .jukebox-player__selection {
    grid-template-columns: minmax(130px, 170px) minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  .jukebox-player {
    margin: 18px var(--page-gutter) 0;
    padding: 18px;
    border-radius: 36px 7px 36px 7px;
  }

  .jukebox-player__selection {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 18px;
  }

  .jukebox-player__copy h2 {
    font-size: clamp(38px, 9vw, 54px);
  }

  .jukebox-player__eyebrow {
    margin-bottom: 14px;
  }

  .jukebox-player__actions {
    margin-top: 18px;
  }

  .playlist-art {
    width: 118px;
    height: 118px;
  }
}

@media (max-width: 560px) {
  .jukebox-player {
    margin-inline: 14px;
    padding: 14px;
    border-radius: 30px 6px 30px 6px;
  }

  .jukebox-player__selection {
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
  }

  .jukebox-player__cover {
    border-radius: 22px 5px 22px 5px;
  }

  .jukebox-player__cover::after {
    right: 8px;
    bottom: 8px;
    width: 11px;
    height: 11px;
  }

  .jukebox-player__eyebrow {
    margin-bottom: 10px;
    font-size: 9px;
  }

  .jukebox-player__number {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .jukebox-player__copy h2 {
    font-size: clamp(31px, 9.5vw, 42px);
  }

  .jukebox-player__genre {
    margin-top: 7px;
    font-size: 13px;
  }

  .jukebox-player__actions {
    grid-column: 1 / -1;
    margin-top: 14px;
  }

  .jukebox-player__link {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 10px;
  }

  .jukebox-player__embed {
    margin-top: 2px;
    padding: 5px;
    border-radius: 21px;
  }

  .jukebox-player__embed iframe {
    height: 352px;
    border-radius: 16px;
  }

  .playlist-art {
    width: 96px;
    height: 96px;
  }

  .playlist-play {
    right: 7px;
    bottom: 7px;
    width: 32px;
    height: 32px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jukebox-player__eyebrow span,
  .playlist-card {
    animation: none;
    transition: none;
  }
}
