/* Shared compact, cover-led manuscript cards for Browse and profiles. */
.creator-profile .creator-card-grid.creator-books{grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),300px));gap:24px}
.creator-profile .creator-card.creator-card-manuscript{position:relative;display:block;aspect-ratio:3/4;min-height:0;overflow:hidden;background:#141414}
.creator-profile .creator-card-manuscript .creator-card-front{position:relative;display:block;height:100%;min-height:0;isolation:isolate}
.creator-profile .creator-card-manuscript .creator-card-art{position:absolute;inset:0;width:100%;height:100%;min-height:0;padding:0;aspect-ratio:auto;z-index:-1}
.creator-profile .creator-card-manuscript .creator-card-art img{width:100%;height:100%;object-fit:cover;object-position:center 25%;filter:none}
.creator-profile .creator-card-manuscript .creator-card-art::after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 30%,#0a0c1099 55%,#0a0c10f5 100%);pointer-events:none}
.creator-profile .creator-card-manuscript .creator-card-copy,
#profile-theme-surface[data-profile-theme] .creator-profile .creator-card.creator-card-manuscript .creator-card-front .creator-card-copy{position:absolute;bottom:0;left:0;right:0;padding:0 16px 48px;display:grid;grid-template-rows:39px 18px 28px;gap:10px;border:0;background:none}
.creator-profile .creator-card-manuscript .creator-card-copy h3,
#profile-theme-surface[data-profile-theme] .creator-profile .creator-card-manuscript .creator-card-front .creator-card-copy h3{position:relative;isolation:isolate;width:fit-content;max-width:calc(100% + 16px);margin:0 0 0 -16px;padding:8px 28px 8px 16px;font:700 18px/1.25 Lato,Arial,sans-serif;overflow-wrap:anywhere;text-shadow:none}
.creator-profile .creator-card-manuscript .creator-card-copy h3::before{content:'';position:absolute;inset:0 0 0 -80px;z-index:-1;background:#0a0a0a;transform:skewX(-15deg);transform-origin:right top}
.creator-profile .creator-card-manuscript .creator-card-copy h3 a,
#profile-theme-surface[data-profile-theme] .creator-profile .creator-card-manuscript .creator-card-front .creator-card-copy h3 a{color:#ebeef5;font:inherit}
.creator-profile .creator-card-manuscript .creator-card-subtitle,
#profile-theme-surface[data-profile-theme] .creator-profile .creator-card-manuscript .creator-card-front .creator-card-subtitle{margin:0;padding:0;color:#ebeef5;font:400 12px/1.5 Lato,Arial,sans-serif}
.creator-profile .creator-card-manuscript .creator-card-controls{margin:0;padding:8px 0 0;border:0;display:block}
.creator-profile .creator-card-manuscript .creator-card-link{color:#ebeef5;font:700 14px/1.5 Lato,Arial,sans-serif;text-decoration:none}
.creator-profile .creator-card-manuscript a:is(:hover,:focus-visible){color:#f4f1eb!important;text-decoration:none}
@media(max-width:600px){.creator-profile .creator-card-grid.creator-books{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),280px));gap:16px}}

/* Retain the compact book layout while using the shared accessible flip behaviour. */
.creator-profile .creator-card-manuscript{perspective:1400px}
.creator-profile .creator-card-manuscript .creator-card-front,.creator-profile .creator-card-manuscript .creator-card-back{backface-visibility:hidden;-webkit-backface-visibility:hidden;transition:transform .5s cubic-bezier(.22,.7,.25,1);animation:none!important}
.creator-profile .creator-card-manuscript .creator-card-front{transform:rotateY(0)}
.creator-profile .creator-card-manuscript .creator-card-back{position:absolute;inset:0;min-height:0;height:100%;padding:20px 20px 52px;overflow:auto;transform:rotateY(180deg);pointer-events:none}
.creator-profile .creator-card-manuscript.is-flipped .creator-card-front{transform:rotateY(-180deg);pointer-events:none}
.creator-profile .creator-card-manuscript.is-flipped .creator-card-back{transform:rotateY(0);pointer-events:auto}
.creator-profile .creator-card-manuscript .creator-card-back h3{font:700 18px/1.25 Lato,Arial,sans-serif;margin:0 0 14px}
.creator-profile .creator-card-manuscript .creator-card-description{overflow-wrap:anywhere}
.creator-profile .creator-card-manuscript .creator-card-description :is(img,video,iframe){max-width:100%;height:auto}
@media(prefers-reduced-motion:reduce){.creator-profile .creator-card-manuscript .creator-card-front,.creator-profile .creator-card-manuscript .creator-card-back{transition:none}}

.creator-profile .creator-card-manuscript .creator-card-tags{margin:0;gap:6px}
.creator-profile .creator-card-manuscript .creator-card-tags li,
#profile-theme-surface[data-profile-theme] .creator-profile .creator-card-manuscript .creator-card-front .creator-card-tags li{max-width:100%;overflow-wrap:anywhere;padding:4px 9px;background:#222324a8;border:1px solid #71727566;color:#e1e4eb;font:400 12px/1.5 Lato,Arial,sans-serif}

/* Keep every front face aligned, reserving one tag row even when it is empty. */
.creator-profile .creator-card-manuscript .creator-card-copy h3{height:39px;min-width:0;box-sizing:border-box}
.creator-profile .creator-card-manuscript .creator-card-copy h3 a{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.creator-profile .creator-card-manuscript .creator-card-subtitle{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.creator-profile .creator-card-manuscript .creator-card-front .creator-card-tags{height:28px;overflow:hidden;align-content:flex-start;flex-wrap:wrap}
.creator-profile .creator-card-manuscript .creator-card-front .creator-card-tags li{height:28px;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0}
