.my-blog-related-links__item {
  display: flex;
  min-width: 0;
}

.my-blog-related-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--valki-blog-detail-surface);
  border-radius: var(--valki-blog-card-radius);
  transition: background-color 160ms ease;
}

.my-blog-related-card__media {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  overflow: hidden;
  aspect-ratio: var(--valki-blog-media-aspect-ratio);
  background: var(--color-surface-muted);
}

.my-blog-related-card__media img,
.my-blog-related-card__media svg,
.my-blog-related-card__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--valki-blog-media-transition);
}

.my-blog-related-card__video {
  pointer-events: none;
}

.my-blog-related-card--placeholder {
  cursor: default;
}

.my-blog-related-card__play {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--color-white);
  pointer-events: none;
}

.my-blog-related-card__play svg {
  width: 48px;
  height: 48px;
}

.my-blog-related-card__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px;
}

.my-blog-related-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.my-blog-related-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  padding: 3px 10px;
  overflow-wrap: anywhere;
  color: var(--color-white);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  background: var(--color-black-1);
  border-radius: var(--valki-blog-card-radius);
}

.my-blog-related-card__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.my-blog-related-card__title,
.my-blog-related-card__excerpt,
.my-blog-related-card__date {
  margin: 0;
  overflow-wrap: anywhere;
}

.my-blog-related-card__title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-black-1);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.my-blog-related-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.my-blog-related-card__date {
  margin-top: auto;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.my-blog-related-card:focus-visible {
  outline: 2px solid var(--color-main);
  outline-offset: 3px;
}

@media (hover: hover) {
  a.my-blog-related-card:hover {
    background-color: var(--valki-blog-detail-card-hover);
  }

  a.my-blog-related-card:hover .my-blog-related-card__media img,
  a.my-blog-related-card:hover .my-blog-related-card__media svg,
  a.my-blog-related-card:hover .my-blog-related-card__media video {
    transform: scale(var(--valki-blog-media-hover-scale));
  }

  a.my-blog-related-card:hover .my-blog-related-card__title {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

@media (max-width: 991px) {
  .my-blog-related-card {
    height: auto;
  }

  .my-blog-related-card__play {
    right: 12px;
    bottom: 12px;
  }

  .my-blog-related-card__date {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .my-blog-related-card {
    transition: none;
  }
}
