.fc-detail-page .fd-related.portal-panel {
  width: 100%;
  min-width: 0;
  padding: clamp(18px, 2vw, 26px);
  margin: 24px 0;
  border: 1px solid var(--portal-border, #30343c);
  border-radius: 12px;
  background: var(--portal-panel, #1b1e23);
}
.fd-related-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 20px;
}
.fd-related-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--portal-muted, #9298a3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.fc-detail-page .fd-related h2 {
  margin: 0;
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.25;
}
.fd-related .fd-related-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  color: var(--portal-accent, #f5a53b);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.fd-related-more svg, .fd-related-stat svg {
  display: block;
  flex: none;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fd-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}
.fd-related-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--portal-border, #30343c);
  border-radius: 9px;
  background: var(--portal-sidebar, #15171b);
  transition: border-color .18s, box-shadow .18s;
}
.fd-related-card:hover, .fd-related-card:focus-within {
  border-color: color-mix(in srgb, var(--portal-accent, #f5a53b) 50%, var(--portal-border, #30343c));
  box-shadow: 0 7px 22px #0002;
}
.fd-related-link { display: flex; flex-direction: column; height: 100%; }
.fd-related-link:focus-visible { outline-offset: -3px; }
.fd-related-cover {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--portal-raised, #22262d);
  border-bottom: 1px solid var(--portal-border, #30343c);
}
.fd-related-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.fd-related-card:hover .fd-related-cover img { transform: scale(1.035); }
.fd-related-placeholder svg { width: 39px; height: 39px; fill: none; stroke: var(--portal-muted, #9298a3); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .65; }
.fd-related-body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 15px; }
.fd-related-category { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 8px; color: var(--portal-accent, #f5a53b); font-size: 10px; }
.fc-detail-page .fd-related-card h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0 0 10px; font-size: 15px; line-height: 1.4; letter-spacing: -.02em; overflow-wrap: anywhere; }
.fd-related-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0 0 15px; color: #a6adb8; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.fd-related-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--portal-border, #30343c); }
.fd-related-stat { display: inline-flex; align-items: center; gap: 6px; min-height: 29px; padding: 5px 8px; border: 1px solid var(--portal-border, #30343c); border-radius: 6px; background: var(--portal-panel, #1b1e23); color: #bec4cd; font-size: 11px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.fd-related-stat svg { width: 15px; height: 15px; color: var(--portal-accent, #f5a53b); opacity: .9; }
.fd-related-stat-label { display: none; }
@container file-detail (max-width: 850px) { .fd-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container file-detail (max-width: 480px) { .fd-related-grid { grid-template-columns: minmax(0, 1fr); } .fd-related-stat-label { display: inline; } }
@supports not (container-type: inline-size) {
  @media (max-width: 1500px) { .fd-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 550px) { .fd-related-grid { grid-template-columns: minmax(0, 1fr); } .fd-related-stat-label { display: inline; } }
}
@media (prefers-reduced-motion: reduce) { .fd-related-card, .fd-related-cover img { transition: none; } .fd-related-card:hover .fd-related-cover img { transform: none; } }
