.rich-link-source {
  display: none;
}

.rich-links {
  display: grid;
  gap: 0.75rem;
  max-width: 100%;
  margin: 0.75rem 0 0.5rem;
}

.rich-link {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #deded8;
  border-radius: 12px;
  background: #fafaf7;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.06), 0 8px 24px rgba(17, 17, 17, 0.04);
}

.rich-link--embed {
  background: #111;
  border-color: #262626;
}

.rich-link--apple-music,
.rich-link--soundcloud {
  background: #fff;
  border-color: #e3e3e3;
}

.rich-link__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 0.75rem;
  color: #f6f6f2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
}

.rich-link--spotify .rich-link__heading {
  color: #1ed760;
}

.rich-link--apple-music .rich-link__heading {
  color: #d92740;
}

.rich-link--youtube .rich-link__heading {
  color: #ff625a;
}

.rich-link--soundcloud .rich-link__heading {
  color: #e95c00;
}

.rich-link__open,
.rich-link__open:hover {
  color: inherit;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  opacity: 0.72;
}

.rich-link__open:hover {
  opacity: 1;
}

.rich-link__frame,
.rich-link__frame iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

.rich-link__frame {
  overflow: hidden;
}

.rich-link__frame--video {
  position: relative;
  aspect-ratio: 16 / 9;
}

.rich-link__frame--video iframe {
  position: absolute;
  inset: 0;
  height: 100%;
}

.rich-link--generic {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 70px;
  padding: 0.75rem;
  color: #181815;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.rich-link--generic:hover {
  border-color: #a9b5a3;
  box-shadow: 0 5px 16px rgba(40, 60, 38, 0.1);
  text-decoration: none;
  transform: translateY(-1px);
}

.rich-link__mark {
  display: grid;
  flex: 0 0 42px;
  height: 42px;
  place-items: center;
  border-radius: 9px;
  background: #e4ebdf;
  color: #336e2f;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.rich-link__text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 0.15rem;
}

.rich-link__text strong,
.rich-link__text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rich-link__text strong {
  font-size: 0.84rem;
}

.rich-link__text span {
  color: #77776f;
  font-size: 0.73rem;
}

.rich-link__arrow {
  flex: 0 0 auto;
  color: #336e2f;
  font-size: 1rem;
}

@media (max-width: 480px) {
  .rich-link {
    border-radius: 10px;
  }

  .rich-link__heading {
    min-height: 32px;
    padding: 0 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rich-link--generic {
    transition: none;
  }
}
