/* Recently-doing thread card: title, then media, then a three-line deck.
   Loaded after the main stylesheet so it can override the card layout. */

.home-thread-main { min-width: 0; }

.home-thread-preview {
  position: relative;
  display: block;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 12px 0 10px;
  overflow: hidden;
  border: 1px solid var(--border-primary);
  border-radius: 4px;
  background: #14110e;
}

.home-thread-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.home-thread-deck {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .home-thread-preview { max-width: none; }
}

/* Thread page: full-size playable embed. */
.thread-preview {
  margin: 18px 0 0;
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  overflow: hidden;
  background: #14110e;
}

.thread-preview-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.thread-preview iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.thread-preview figcaption {
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-primary);
}

.thread-preview figcaption a { color: var(--accent); }
