.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--link);
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.back-link:hover { text-decoration: underline; }

.studio-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  margin-top: -0.5rem;
}

/* ── Credits grid ── */
.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.credit-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  overflow: hidden;
}

/* Full-bleed image at top of card */
.credit-img {
  margin: -0.85rem -1rem 0.75rem;
  width: calc(100% + 2rem);
  aspect-ratio: 16 / 9;
  background: var(--bg-tag);
  overflow: hidden;
}

.credit-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.credit-card:hover .credit-img img {
  transform: scale(1.03);
}

.credit-card.featured {
  border-color: var(--text-muted);
}

.credit-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.credit-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.credit-card:not(:has(.credit-detail)) .credit-meta {
  margin-bottom: 0;
}

.credit-detail {
  list-style: none;
  padding: 0;
  margin: 0;
}

.credit-detail li {
  font-size: 0.85rem;
  color: var(--text-body);
  padding-left: 0.9rem;
  position: relative;
  margin-bottom: 0.2rem;
  line-height: 1.45;
}

.credit-detail li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* Section note (e.g. HART SDK callout) */
.credit-note {
  font-size: 0.85rem;
  color: var(--text-body);
  border-left: 2px solid var(--border);
  padding-left: 0.85rem;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.credit-note strong {
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 500px) {
  .credits-grid { grid-template-columns: 1fr; }
}
