/* Bookmark Card */
.bookmark-card {
  display: flex;
  justify-content: space-between;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  margin: 1.5rem 0;
}

.bookmark-content {
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.bookmark-title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.bookmark-description {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bookmark-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #888;
  margin-top: auto;
}

.bookmark-favicon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.bookmark-image {
  width: 160px;
  min-width: 160px;
  max-height: 130px;
  overflow: hidden;
}

.bookmark-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 600px) {
  .bookmark-card {
    flex-direction: column;
  }
  .bookmark-image {
    width: 100%;
    min-width: unset;
    max-height: 180px;
  }
}

/* Embed Block */
.embed-wrapper iframe {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9;
}

/* Mastodon Feed */
.mastodon-feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 680px;
}
.toot {
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 8px;
  padding: 1.2rem;
}
.toot--boost {
  opacity: 0.8;
  border-style: dashed;
}
.toot__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.toot__avatar {
  border-radius: 50%;
  flex-shrink: 0;
}
.toot__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.85rem;
}
.toot__author {
  font-weight: 600;
}
.toot__username,
.toot__date {
  color: #888;
  font-size: 0.8rem;
}
.toot__boost-label {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
}
.toot__content {
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.toot__reblog {
  border-left: 3px solid var(--color-accent, #aaa);
  padding-left: 0.75rem;
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #666;
}
.toot__media {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.toot__media img,
.toot__media video {
  max-width: 100%;
  border-radius: 6px;
}
.toot__footer {
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 0.5rem;
}
