.star-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.star-card:hover {
  transform: translateY(-3px);
}

.star-card-photo {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 50% 38%, transparent 0 9%, rgb(255 255 255 / 12%) 9.5% 10.5%, transparent 11%),
    radial-gradient(ellipse at 50% 58%, transparent 0 15%, rgb(255 255 255 / 12%) 15.5% 16.5%, transparent 17%),
    linear-gradient(135deg, var(--gradient-start, #2a0518), var(--gradient-end, #7a1050));
}

.star-card-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.star-card-photo::after {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(180deg, transparent, rgb(0 0 0 / 84%));
  content: "";
}

.star-rank,
.star-flag {
  position: absolute;
  z-index: 2;
  top: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgb(0 0 0 / 35%);
  color: #fff;
  font-size: 10px;
}

.star-rank {
  right: 8px;
}

.star-flag {
  left: 8px;
}

.star-card-name {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 13px;
  left: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.star-card-meta {
  margin: 7px 0;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.star-follow {
  width: 100%;
  min-height: 30px;
  margin-top: auto;
  border-radius: 8px;
  font-size: 12px;
}

.star-card.is-compact .star-card-photo {
  min-height: 0;
  aspect-ratio: 4 / 5;
}

.star-card.is-compact > strong,
.star-card.is-compact > small {
  display: block;
}

.star-card.is-compact > strong {
  margin: 8px 0 2px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.star-card.is-compact > small {
  overflow: hidden;
  color: var(--color-faint);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .star-card-photo {
    min-height: 0;
  }

  .star-card.is-compact .star-card-photo {
    min-height: 0;
  }
}
