/* One display policy for story covers. Original files and full-image viewers are preserved. */
html body .story-card .cover,
html body.author-page .story-card .cover,
html body.discovery-detail #cover-box,
html body .rec-thumb,
html body .work-cover-frame,
html body.profile-page .fc-cover-wrap {
  position:relative; aspect-ratio:3/4; height:auto; max-height:none; overflow:hidden;
}
html body .story-card .cover img,
html body.author-page .story-card .cover img,
html body.discovery-detail #cover-box > img,
html body .rec-thumb > img,
html body.profile-page .fc-cover-wrap > img.fc-cover,
html body.profile-page .work-cover-frame > img.work-cover,
html body .work-cover-frame > img.work-cover,
html body.profile-page .history-item .hi-cover > img {
  position:absolute; inset:0; display:block; width:100%; height:100%; max-width:none; max-height:none;
  object-fit:cover; object-position:center; border-radius:0;
}
html body.discovery-detail #cover-box > .cover-letter { aspect-ratio:3/4; height:100%; }
html body.profile-page .history-item .hi-cover { aspect-ratio:3/4; height:auto; flex-shrink:0; align-self:start; }
html body .admin-cover-button img,
html body .admin-story-cover { aspect-ratio:3/4; height:auto; object-fit:cover; object-position:center; }
html body.admin-story-reader .reader-book-face img { object-fit:cover; object-position:center; }
html body .review-cover { width:150px; height:200px; max-width:100%; object-fit:cover; object-position:center; }
/* Player sidebar thumbnails stay compact, using the same portrait frame. */
html body .reader-panel-dialog .story-cover,
html body #story-cover { width:min(100%,165px); aspect-ratio:3/4; max-height:none; margin:0 auto 16px; }
html body #story-cover img { width:100%; height:100%; object-fit:cover; object-position:center; }
html body .head-cover { width:60px; height:80px; object-fit:cover; object-position:center; }

html body img[data-story-cover][hidden] { display:none!important; }
