.ai-feed {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.ai-entry {
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.ai-entry--featured {
  border: 1px solid rgba(110, 123, 255, 0.4);
  background: radial-gradient(
    circle at top,
    rgba(51, 65, 255, 0.08),
    rgba(2, 6, 23, 0.2)
  );
}

.ai-entry__header {
  margin-bottom: 1.25rem;
}

.ai-entry__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.ai-entry__meta {
  font-size: 0.8rem;
  color: var(--muted, #a1a1aa);
}

.ai-entry__body {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.ai-entry__embed {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.ai-entry__media {
  margin-bottom: 1.2rem;
}

.ai-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 0.75rem;
}

.ai-gallery img {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  min-height: 140px;
  background: #0f172a;
}

/* Video */
.ai-video-embed video,
.ai-video-embed iframe {
  border-radius: 1rem;
  overflow: hidden;
  width: 100%;
  display: block;
}

/* Code block */
.ai-code {
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 1rem;
  padding: 1rem 1rem 0.5rem;
  font-family: ui-monospace, SFMono-Regular, SFMono-Regular, SFMono-Regular,
    SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 0.8rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  white-space: pre;
}

/* footer in entry */
.ai-entry__footer {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ai-entry .pill {
  background: rgba(148, 163, 184, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 9999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.7rem;
}

/* responsive */
@media (max-width: 720px) {
  .ai-entry {
    padding: 1.25rem 1rem 1rem;
  }
  .ai-entry__title {
    font-size: 1.1rem;
  }
}
