.streaming-links {
  display: flex;
  align-items: stretch;
  gap: .375rem;
  width: 100%;
  max-width: 21.5rem;
}
.ep-links .streaming-links { margin-top: .625rem; }

.streaming-links a.stream-link {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  padding: .5rem clamp(6px, 1vw, 10px);
  border: 0;
  border-radius: 8px;
  color: #e2e5e8;
  text-decoration: none;
}
/* A background wordmark keeps the whole hit area on the link, including in Safari. */
.streaming-links .stream-link { position: relative; }
.streaming-links .stream-link::before {
  content: "";
  width: var(--wordmark-width);
  max-width: 100%;
  height: 1.25rem;
  background: var(--wordmark-image) center / contain no-repeat;
  opacity: .86;
  pointer-events: none;
}
.streaming-links .stream-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.stream-apple {
  --wordmark-width: 4.6rem;
  --wordmark-image: url("/assets/streaming/apple-music.svg?v=wordmark");
}
.stream-tidal {
  --wordmark-width: 4.7rem;
  --wordmark-image: url("/assets/streaming/tidal.png?v=wordmark");
}
.stream-amazon {
  --wordmark-width: 5.15rem;
  --wordmark-image: url("/assets/streaming/amazon-music.png?v=wordmark");
}

@media (hover: hover) {
  .streaming-links a.stream-link:hover { background: rgb(184 199 216 / 10%); }
}
.streaming-links a.stream-link:focus-visible {
  outline: 2px solid #e4eaf0;
  outline-offset: 3px;
}
@media (forced-colors: active) {
  .streaming-links a.stream-link { color: LinkText; outline: 1px solid LinkText; }
  .streaming-links .stream-link::before { display: none; }
  .streaming-links .stream-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    text-align: center;
  }
  .streaming-links a.stream-link:focus-visible { outline: 3px solid Highlight; }
}

/* With no Studio Edition, Bandcamp and the streaming services share one row. */
.ep-links .streaming-links--with-bandcamp {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.75rem), 1fr));
  max-width: 28.25rem;
  gap: .375rem;
  margin-top: 0;
}

.streaming-links--with-bandcamp .edition-action--bandcamp {
  max-width: none;
  padding-inline: .625rem;
}
