/* Shared satellite recommendations. ReadToony uses its own application/styles. */
body .detail-shell #related > header {
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
body .detail-shell #related header p { font-size: 14px; line-height: 1.5; }
body .detail-shell #related header > a { font-size: 14px; padding-block: 8px; }
body .detail-shell #related .related-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  gap: 24px 18px;
}
body .detail-shell #related .related-card {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}
body .detail-shell #related .related-cover {
  position: relative;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-alt);
}
body .detail-shell #related .related-cover img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform .2s ease;
}
body .detail-shell #related .related-card > div:last-child { padding: 12px 0 0; min-width: 0; }
body .detail-shell #related .related-card span { font-size: 11px; line-height: 1.5; }
body .detail-shell #related .related-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.45;
  margin: 6px 0;
  color: var(--ink);
}
body .detail-shell #related .related-card p { margin: 0; font-size: 12px; line-height: 1.6; }
body .detail-shell #related .related-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
body .detail-shell #related .related-card:is(:hover, :focus-visible) h3 { color: var(--accent); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body .detail-shell #related .related-card:hover img { transform: scale(1.035); }
}
@media (max-width: 1100px) {
  body .detail-shell #related .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body .detail-shell #related .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  body .detail-shell #related > header { align-items: flex-start; gap: 8px; }
}
