.drr-recently-played {
  overflow: visible;
}

.drr-recently-played #drr-current-song {
  font-size: 12px;
  letter-spacing: .12em;
  line-height: 1.45;
}

#hero .now-playing-details > :first-child > :first-child,
.drr-recently-played .now-spinning-label {
  margin-bottom: 8px;
}

.drr-recently-played-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font: inherit;
  letter-spacing: var(--tracking-widest);
  text-align: left;
  text-transform: uppercase;
}

.drr-recently-played-indicator {
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}

.drr-recently-played-list {
  width: min(100%, 30rem);
  max-height: 0;
  margin: 8px 0 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  list-style: none;
  transform: translateY(-4px);
  transition: max-height .24s ease, opacity .16s ease, transform .24s ease;
}

.drr-recently-played-list::before {
  content: '';
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, .16);
}

.drr-recently-played-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
  opacity: 0;
  color: inherit;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.35;
  text-transform: uppercase;
  transform: translateY(-5px);
}

.drr-recently-played-list li:first-child {
  padding-top: 8px;
  border-top: 0;
}

.drr-recently-played-list li > span:first-child {
  letter-spacing: .12em;
}

.drr-recently-played-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.drr-recently-played-title-track {
  display: flex;
  width: max-content;
}

.drr-recently-played-title-text,
.drr-recently-played-title-copy {
  display: block;
  flex: none;
  box-sizing: content-box;
  white-space: nowrap;
}

.drr-recently-played-title-copy {
  display: none;
}

.drr-recently-played-title.is-scrolling .drr-recently-played-title-text,
.drr-recently-played-title.is-scrolling .drr-recently-played-title-copy {
  padding-right: 96px;
}

.drr-recently-played-title.is-scrolling .drr-recently-played-title-copy {
  display: block;
}

.drr-recently-played-list li:nth-child(1) { --recent-cascade-delay: .02s; }
.drr-recently-played-list li:nth-child(2) { --recent-cascade-delay: .08s; }
.drr-recently-played-list li:nth-child(3) { --recent-cascade-delay: .14s; }
.drr-recently-played-list li:nth-child(4) { --recent-cascade-delay: .20s; }
.drr-recently-played-list li:nth-child(5) { --recent-cascade-delay: .26s; }

.drr-recently-played.is-recent-open .drr-recently-played-list {
  max-height: 260px;
  opacity: 1;
  transform: translateY(0);
}

.drr-recently-played.is-recent-open .drr-recently-played-list li {
  animation: recentlyPlayedCascade .26s cubic-bezier(.16, 1, .3, 1) var(--recent-cascade-delay, 0s) both;
}

.drr-recently-played.is-recent-open .drr-recently-played-indicator {
  transform: rotate(225deg) translate(-1px, -1px);
}

.drr-recently-played-time {
  color: inherit;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .05em;
  white-space: nowrap;
}

#hero .now-playing-details > :first-child,
.drr-recently-played .now-spinning-label,
.drr-recently-played-label {
  letter-spacing: .09em;
}

.drr-recently-played #drr-current-song,
.drr-recently-played-list li > span:first-child {
  letter-spacing: .11em;
}

.drr-recently-played-time {
  letter-spacing: .04em;
}

@media (min-width: 768px) {
  #hero .now-playing-details > :first-child,
  .drr-recently-played .now-spinning-label,
  .drr-recently-played-label {
    letter-spacing: .06em;
  }

  .drr-recently-played #drr-current-song,
  .drr-recently-played-list li > span:first-child {
    letter-spacing: .06em;
  }

  .drr-recently-played-time {
    letter-spacing: .02em;
  }
}

.now-playing-details {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

#hero .now-playing-row:has(.drr-recently-played:not(.is-recent-open)) {
  margin-bottom: -12px;
}

@media (min-width: 768px) and (hover: hover) {
  .drr-recently-played-label {
    cursor: pointer;
  }

  .drr-recently-played.is-recent-hover-open .drr-recently-played-list {
    max-height: 260px;
    opacity: 1;
    transform: translateY(0);
  }

  .drr-recently-played.is-recent-hover-open .drr-recently-played-list li {
    animation: recentlyPlayedCascade .26s cubic-bezier(.16, 1, .3, 1) var(--recent-cascade-delay, 0s) both;
  }

  .drr-recently-played.is-recent-hover-open .drr-recently-played-title.is-scrolling .drr-recently-played-title-track {
    animation: recentlyPlayedTitleLoop var(--recent-title-duration, 13.5s) linear(0, 0 var(--recent-title-pause-end, 11.111111%), 1) infinite;
  }

  .drr-recently-played.is-recent-hover-open .drr-recently-played-indicator {
    transform: rotate(225deg) translate(-1px, -1px);
  }

  #hero .now-playing-row:has(.drr-recently-played.is-recent-hover-open) {
    margin-bottom: 0;
  }
}

@keyframes recentlyPlayedCascade {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.drr-recently-played.is-recent-open .drr-recently-played-title.is-scrolling .drr-recently-played-title-track {
  animation: recentlyPlayedTitleLoop var(--recent-title-duration, 13.5s) linear(0, 0 var(--recent-title-pause-end, 11.111111%), 1) infinite;
}

@keyframes recentlyPlayedTitleLoop {
  from { transform: translateX(0); }
  to { transform: translateX(var(--recent-title-offset, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .drr-recently-played-list {
    transition: none;
  }

  .drr-recently-played-indicator {
    transition: none;
  }

  .drr-recently-played-list li {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .drr-recently-played-title-track {
    animation: none;
  }
}
