.book-like-row{min-height:48px;font-size:12px;gap:10px}
.book-like-row .book-like{display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;min-height:42px;padding:7px;border:0;border-radius:50%;background:transparent;color:#c4bbc0;cursor:pointer;touch-action:manipulation}
.book-like svg{width:28px;height:28px;fill:transparent;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:fill .15s,color .15s,transform .15s}
.book-like.active{color:#ff2046!important}
.book-like.active svg{fill:currentColor;stroke:currentColor}
.book-like:hover{background:#ffffff0c}
.book-like:active svg{transform:scale(.88)}
.book-like:focus-visible,.share-close:focus-visible{outline:2px solid #ff7389;outline-offset:2px}
.detail-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.detail-tools #share-book{display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px}
#share-book svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.book-share-dialog{width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 40px);box-sizing:border-box;overflow:auto;margin:auto;padding:22px;color:#f5f1f3;background:#19161b;border:1px solid #62414b;border-radius:20px;box-shadow:0 18px 70px #000a;font:inherit}
.book-share-dialog::backdrop{background:#000a;backdrop-filter:blur(4px)}
.book-share-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.book-share-dialog h2{margin:0;font-size:21px;line-height:1.25}
.book-share-dialog .share-close{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;padding:0;background:#29242b;color:#fff;border:1px solid #524750;border-radius:50%;font-size:25px;cursor:pointer}
.book-share-dialog .share-book-title{font-weight:650;line-height:1.4;overflow-wrap:anywhere}
.book-share-dialog .share-help{font-size:14px;line-height:1.5;color:#ccc2ca}
.book-share-dialog label{display:block;font-size:13px;margin:18px 0 8px;color:#ddd3db}
.book-share-dialog input{box-sizing:border-box;width:100%;min-width:0;padding:12px;font-size:14px;background:#100f12;color:#fff;border:1px solid #5e505a;border-radius:10px}
.book-share-dialog .share-copy{display:block;width:100%;margin-top:12px;min-height:44px}
.book-share-dialog .share-status{min-height:20px;margin:12px 0 0;font-size:13px;line-height:1.4;color:#e4dce1}
.share-apps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}
.book-share-dialog .share-app{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:78px;padding:9px 4px;border:1px solid #51414c;border-radius:13px;background:#252028;color:#f8f3f6;text-decoration:none;font:inherit;font-size:13px;line-height:1.2;cursor:pointer;touch-action:manipulation}
.book-share-dialog .share-app:hover{background:#352832;border-color:#d55770}
.book-share-dialog .share-app:focus-visible,.book-share-dialog .share-native:focus-visible{outline:2px solid #ff7389;outline-offset:2px}
.share-app svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.share-app-whatsapp svg{color:#43e985}.share-app-gmail svg{color:#ff766f}.share-app-facebook svg{color:#7cb4ff}
.share-app-instagram svg{color:#ff85c5}.share-app-tiktok svg{color:#83f5ef}.share-app-email svg{color:#ddd3ff}
.share-app small{font-size:10px;color:#c9bec6}
.book-share-dialog .share-native{width:100%;min-height:42px}
.book-share-dialog .share-native[hidden]{display:none}
.book-share-dialog .share-local-note{font-size:12px;line-height:1.45;color:#c9bec6;margin:10px 0}
.book-share-dialog .share-open-app{color:#ff9fb0;text-decoration:underline}
@media(prefers-reduced-motion:reduce){.book-like svg{transition:none}}
.book-like-caption{display:flex;flex-direction:column;gap:4px}
.book-like-count{color:#c9bec6;font-size:12px;font-variant-numeric:tabular-nums}
.detail-language{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.detail-language-flag{display:inline-flex;align-items:center;flex:none;width:1.5em;height:1em;line-height:1}
.detail-language-flag:empty{display:none}
.detail-language-flag svg{display:block;width:100%;height:100%;border-radius:1px}
.detail-cover-stack{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0}
.compact-detail .detail-cover-stack .detail-cover{width:100%;margin:0;align-self:start}
/* Title beside the cover, with a separate full-width likes row. */
.compact-detail.detail-heading-inline{grid-template-columns:144px minmax(0,1fr);row-gap:9px;align-items:start}
.detail-heading-inline .detail-cover-stack{min-width:0}
.detail-heading-inline .detail-info{display:flex;flex-direction:column;justify-content:flex-start;min-height:0;align-self:stretch;min-width:0}
.detail-heading-inline .detail-taxonomy{padding-right:32px;white-space:normal;flex-wrap:wrap}
.detail-heading-inline .book-summary{display:flex;flex-wrap:wrap;gap:4px 8px;margin:6px 0 0}
.compact-detail.detail-heading-inline .meta{display:grid;grid-template-columns:1fr;gap:5px;margin:6px 0 0}
.compact-detail.detail-heading-inline .meta>div{height:auto;max-height:none;min-height:0;overflow:visible;padding:6px 8px;overflow-wrap:anywhere}
.compact-detail.detail-heading-inline #detail-title{display:block;-webkit-line-clamp:unset;overflow:visible;overflow-wrap:anywhere;max-height:none;margin:6px 0 0;padding:0 22px 0 0;font-size:24px;line-height:1.2}
.detail-heading-inline>.book-like-row{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:42px;margin:0;padding:3px 9px;box-sizing:border-box}
.detail-heading-inline>.book-like-row .book-like-caption{gap:2px;line-height:1.15}
.detail-heading-inline>.book-like-row .book-like-count{font-size:11px;line-height:1.15}
.detail-heading-inline>.book-like-row .book-like{flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:5px}
.detail-heading-inline>.book-like-row .book-like svg{width:25px;height:25px}
.compact-detail.detail-heading-inline .detail-actions{margin:0}
@media(max-width:760px){
 .compact-detail.detail-heading-inline{grid-template-columns:clamp(96px,28vw,116px) minmax(0,1fr);column-gap:10px;row-gap:8px}
 .compact-detail.detail-heading-inline #detail-title{font-size:20px;line-height:1.22}
 .detail-heading-inline .book-summary{font-size:11px;line-height:1.3}
}
/* Reserve the same space above progress, including on unread books. */
.book-like-total{position:absolute;right:8px;bottom:30px;z-index:7;display:flex;align-items:center;gap:4px;padding:5px 8px;border:1px solid #c94b63;border-radius:20px;background:#211318ed;color:#fff;font-size:13px;box-shadow:0 2px 7px #0008;pointer-events:none}
.book-like-total svg{width:16px;height:16px;fill:#ff2046;stroke:#ff2046;stroke-width:1.5}
.likes-page .search{max-width:560px;width:100%;box-sizing:border-box;margin-bottom:4px}
.likes-result-count,.likes-message{font-size:14px;color:#c9bec6;line-height:1.5}
.likes-page .liked-remove{top:auto;bottom:30px;background:#29141c;color:#ff3657;border-color:#cb3e5b}
.likes-page .liked-remove svg{fill:currentColor;stroke:currentColor}
.likes-page .section-head p{max-width:600px;line-height:1.5}
.likes-page .empty-icon{color:#ff3657}
