.post-embed-card {
  --post-embed-hover-bg: #f7f8fa;
  --post-embed-hover-border: #d7dce3;
}

.post-embed-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 1px solid var(--bg-3);
  border-radius: 1.2rem;
  background: var(--bg);
  overflow: hidden;
}

.post-embed-card:hover {
  border-color: var(--post-embed-hover-border);
  background: var(--post-embed-hover-bg);
  color: var(--tx);
}

.post-embed-card__media {
  overflow: hidden;
  background: var(--bg-3);
  aspect-ratio: 16 / 9;
  border-top: 1px solid var(--bg-3);
}

.post-embed-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.post-embed-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  padding: 1rem;
}

.post-embed-card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--tx-2);
}

.post-embed-card__avatar-frame {
  width: 1.5rem !important;
  height: 1.5rem !important;
  min-width: 1.5rem;
  min-height: 1.5rem;
  max-width: 1.5rem;
  max-height: 1.5rem;
  border-radius: 50%;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--bg-3);
  padding: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.post-embed-card__avatar {
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex: 0 0 auto;
}

.post-embed-card__byline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.post-embed-card__title-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-width: 0;
}

.post-embed-card__author {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--tx);
}

.post-embed-card__kicker {
  color: var(--tx-2);
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: nowrap;
}

.post-embed-card__excerpt {
  color: var(--tx-2);
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (prefers-color-scheme: dark) {
  .post-embed-card {
    --post-embed-hover-bg: #1d1f22;
    --post-embed-hover-border: #32353a;
  }
}
