:root{--paper:#f5f4f4;--coral:#ff565a;--coral-dark:#ef4d51;--ink:#222;--line:#dedede}
body{background:#f5f4f4;color:#171717;font-family:"Inter",Arial,sans-serif}
.shell{width:min(1315px,calc(100% - 30px))}
.site-header{background:#fff;border-bottom:1px solid #ddd;box-shadow:0 5px 12px #00000012;backdrop-filter:none}
.topbar{height:68px;grid-template-columns:170px minmax(260px,1fr) auto;gap:25px}
.brand{justify-self:end}.brand-name{color:#ff575a;font-size:24px}.brand-name>span{color:#333;font-size:8px}.brand-mark{color:#ff575a}
.search-box{border:0;border-radius:0;background:transparent;max-width:430px;height:43px}.search-box:focus-within{box-shadow:none}.search-box input{font-size:16px}.search-box svg{width:25px;height:25px;stroke:var(--coral)}
.header-actions{flex-direction:row-reverse;justify-content:flex-start;gap:10px}
.header-actions>.button{height:44px;padding-inline:21px;font-size:15px;border-radius:12px}
.button-soft{background:#ffca00;color:#161616}.button-soft:hover{background:#f2c100}.button-dark{background:#222;color:white}
.menu-toggle{display:flex;flex-direction:column;justify-content:center;gap:4px;width:38px;height:42px;padding:6px;margin-left:15px}
.menu-toggle span{height:2px;width:22px;background:#ff565a;border-radius:2px}
.subnav{height:74px;border-top:1px solid #ddd}.nav-inner{justify-content:space-around;gap:18px}.nav-link{flex-direction:column;justify-content:center;gap:1px;color:#333;font-size:12px;min-width:90px}.nav-link>span{font-size:24px;line-height:1.05}.nav-link.active{color:var(--coral)}.nav-link.active:after{display:none}
.main-content{padding-top:10px}
.welcome-banner,.category-strip,.reading-note{display:none!important}
.quick-note{min-height:72px;margin:0 0 17px;padding:14px 20px;border:1px solid #0c8aa4;border-radius:10px;background:#b4d9f6;color:#073d65;gap:13px}
.quick-note .note-icon{width:28px;height:28px;background:#11869b;color:#fff;border-radius:50%}.quick-note p{font-size:16px;color:#063b60}.quick-note .text-button{color:#063b60;font-size:13px}
.library-section{padding-top:0}.library-section>.section-topline{display:none}.filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:18px;padding:0 0 25px;background:transparent;border:0;border-radius:0}
.filter-field{min-width:0;gap:7px}.filter-field>span:first-child{font-size:15px;font-weight:500;color:#232323}.select-wrap{height:49px;border:1px solid #cbd0d5;border-radius:15px;padding-inline:16px;background:#fff}.select-wrap select{font-size:14px;color:#333}.select-wrap>span{font-size:17px}
.sort-control,.reset-filters{display:none!important}.result-meta{padding:0 0 10px;color:#777}.result-meta .view-toggle{display:none}
.book-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:34px}
.catalog-card{min-width:0;min-height:374px;display:flex;flex-direction:column;align-items:stretch;padding:14px 12px 12px;background:#fff;border:1px solid #d5d5d5;border-radius:22px;box-shadow:0 8px 22px #00000012;transition:transform .18s,box-shadow .18s}
.catalog-card:hover{transform:translateY(-2px);box-shadow:0 13px 26px #00000019}
.catalog-card-main{display:flex;flex:1;min-width:0;flex-direction:column;align-items:center;text-align:center}
.catalog-cover-wrap{width:150px;height:220px;max-width:100%;display:grid;place-items:center;overflow:hidden;border:1px solid #d7dce1;border-radius:12px;background:#fff}
.catalog-cover-image{width:100%;height:100%;object-fit:cover}
.catalog-cover-placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px;background:#f3f4f4;color:#666}
.section-topline h1{font-family:var(--serif);font-size:22px;line-height:1.4;margin:2px 0 4px;font-weight:600}
.catalog-cover-placeholder span{color:#ee6262;font-size:12px}.catalog-cover-placeholder strong{font-size:15px;line-height:1.6}.catalog-cover-placeholder small{font-size:10px;color:#878787}
.catalog-card h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:48px;width:100%;margin:12px 0 3px;font-size:16px;font-weight:500;line-height:1.5}
.catalog-author{margin:0 0 8px;color:#f25255;font-size:15px;line-height:1.45;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.catalog-card-meta{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;padding:0 7px}
.catalog-save{width:24px;height:25px;margin-left:auto;border:0;background:transparent;color:#252525;font-size:22px;line-height:1;cursor:pointer}
.catalog-save.saved{color:#ff565a}.catalog-rating-count{font-size:14px;color:#777}.catalog-rating{font-size:15px;color:#161616}.catalog-rating b{font-size:18px;color:#ff5458}
.catalog-status{grid-column:1/-1;min-height:80px;display:grid;place-items:center;padding:20px;background:#fff;border:1px solid #ddd;border-radius:14px;text-align:center;color:#5d5d5d;font-size:14px}
.catalog-status.is-error{color:#962e32;border-color:#e5b8b9;background:#fff6f6}
.empty-state{border:1px dashed #d5d5d5;border-radius:14px;background:#fff}
.load-more{margin:24px auto 35px;background:#fff;border-color:#ddd}
.authors-section{margin:30px 0}.authors-section .section-topline{margin-bottom:12px}.authors-section h2{font-size:20px}
.authors-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.author-directory-card{background:#fff;border:1px solid #ddd;border-radius:12px;padding:14px;display:flex;align-items:center;gap:12px}
.author-directory-card>span{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:#fff0f0;color:#e85458;font-size:17px}
.author-directory-card strong{display:block;font-size:13px}.author-directory-card small{color:#888}
.site-footer{background:#fff}
.member-dialog{position:relative;width:min(440px,calc(100% - 28px));border:0;border-radius:18px;padding:30px;background:#fff;box-shadow:0 20px 70px #0004;color:#222}
.member-dialog::backdrop,.detail-dialog::backdrop{background:#25242aaa;backdrop-filter:blur(3px)}
.member-dialog h2{font-size:22px;margin:7px 0}.member-dialog p{font-size:13px;color:#777}
.member-auth-form{display:grid;gap:12px}.member-auth-form label{display:grid;gap:5px;font-size:12px;color:#555}.member-auth-form input,.member-auth-form select,.member-auth-form textarea{width:100%;border:1px solid #ddd;border-radius:9px;padding:10px;background:#fff;color:#222;outline:0}
.member-auth-form input:focus,.member-auth-form select:focus,.member-auth-form textarea:focus{border-color:#ff8588}
.member-form-error{padding:8px 10px;background:#fff0f0;border-radius:8px;color:#9a292d!important}
.member-mode-toggle{margin-top:13px;border:0;background:transparent;color:#e64f53;cursor:pointer}
.detail-dialog form label{display:grid;gap:5px;font-size:12px}
.book-cover-real{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:10px}
.detail-cover:before{pointer-events:none}.detail-cover-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:12px;background:#f5f4f4;color:#666;border-radius:10px}
.detail-cover-placeholder span{color:#ed6266}.detail-cover-placeholder strong{font-size:17px;text-align:center;line-height:1.7}.detail-cover-placeholder small{font-size:10px}
.book-shell{width:min(1315px,calc(100% - 80px));margin:31px auto 38px}
.book-heading{margin-bottom:38px}.book-heading h1{font-size:19px}.breadcrumbs{font-size:14px;color:#4d4d4d}
.panel{border:1px solid #d5d5d5;border-radius:22px;box-shadow:0 11px 28px #00000013}
.book-hero{direction:ltr;grid-template-columns:42px minmax(0,1fr) 190px;gap:40px;min-height:350px;padding:20px 85px 20px 15px;margin-bottom:18px}
.book-utility,.hero-copy,.hero-cover{direction:ltr}.book-utility{align-self:start;gap:13px;padding-top:4px}
.detail-icon{font-size:25px;width:30px;height:32px}.hero-copy h1{font-size:22px;margin-bottom:4px}.byline,.taxonomy-row,.book-metadata-row{font-size:16px;line-height:1.95}.book-numbers{font-size:16px;gap:32px}.rating-summary i{color:#ff565a}
.hero-actions{gap:16px;margin-top:22px}.hero-actions .button{height:47px;min-width:174px;font-size:16px;border-radius:12px}
.recommend-row{font-size:17px;gap:15px;margin-top:20px}.recommend-row button{padding:9px 17px;border-radius:13px;font-size:16px}
.recommend-row button.selected{box-shadow:inset 0 0 0 2px #ff595d}
.detail-cover{width:188px;height:276px;border:2px solid #ff696c;border-radius:18px;background:#fff;box-shadow:none}
.details-panel{padding:24px 30px 26px;margin-bottom:18px}.underlined-title{font-size:21px;margin-bottom:23px}.detail-facts{gap:38px;margin:29px 0 14px}.detail-facts div{min-width:60px;font-size:16px}.detail-facts b{font-size:16px}.book-description{font-size:19px;line-height:1.9;color:#111}
.author-panel{padding:18px 24px 17px;margin-bottom:25px}.author-avatar{width:86px;height:86px;font-size:30px}.author-ident>a{font-size:17px}.author-ident>span{font-size:14px}.follow-button{height:42px;min-width:94px;font-size:15px}
.author-panel>p{font-size:16px;line-height:1.8}
.content-section{margin-top:30px}.reader-content,.review-grid{max-width:none}.quote-card,.review-card{border-radius:14px;padding:17px 20px}.quote-text{font-size:16px}.review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.related-grid{gap:18px}.related-card{border-radius:17px;padding:12px}.related-card h3{font-size:14px}.related-cover-image{width:100%;height:200px;object-fit:cover;border-radius:10px}.related-cover-placeholder{background:#f0eeee;color:#777}
@media(max-width:1050px){.book-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.book-hero{padding-right:35px;gap:25px}.related-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){
 .shell{width:calc(100% - 24px)}.topbar{height:64px;grid-template-columns:120px minmax(0,1fr) auto;gap:4px}.brand-name{font-size:18px}.search-box{position:static;top:auto;right:auto;left:auto;width:100%;height:38px;box-shadow:none;padding-inline:5px}.search-box input{font-size:11px}.search-box svg{width:19px;height:19px}.header-actions>.button{display:none}.menu-toggle{margin:0;width:28px}
 .subnav{height:63px;margin:0;overflow:hidden;border-top:1px solid #ddd}.nav-inner{display:flex;width:100%;min-width:0;height:100%;gap:0;justify-content:space-around}.nav-link{display:flex;min-width:56px;flex:1;font-size:9px}.nav-link>span{font-size:19px}.nav-author{display:flex}.quick-note{min-height:58px;padding:9px 12px;margin-bottom:13px}.quick-note p{font-size:11px}.quick-note .text-button{font-size:10px}
 .filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding-bottom:17px}.filter-field>span:first-child{font-size:11px}.select-wrap{height:40px;border-radius:11px}.select-wrap select{font-size:11px}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.catalog-card{min-height:325px;border-radius:16px;padding:10px}.catalog-cover-wrap{width:125px;height:183px}.catalog-card h3{font-size:13px;min-height:40px;margin-top:9px}.catalog-author{font-size:12px}.catalog-rating,.catalog-rating-count{font-size:12px}.catalog-rating b{font-size:15px}
 .authors-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .book-shell{width:calc(100% - 24px);margin-top:17px}.book-heading{margin-bottom:16px}.book-heading h1{font-size:14px}.breadcrumbs{font-size:10px}
 .book-hero{grid-template-columns:27px minmax(0,1fr) 112px;gap:10px;padding:13px;min-height:226px}.detail-cover{width:105px;height:157px;border-radius:11px}.hero-copy h1{font-size:14px}.byline,.taxonomy-row,.book-metadata-row,.book-numbers{font-size:9px}.book-numbers{gap:10px}.hero-actions{gap:6px;margin-top:9px}.hero-actions .button{min-width:78px;height:32px;font-size:9px;border-radius:8px}.recommend-row{font-size:9px;gap:5px;flex-wrap:wrap;margin-top:9px}.recommend-row button{padding:4px 8px;font-size:9px}
 .details-panel{padding:15px}.underlined-title{font-size:14px}.detail-facts{gap:10px;justify-content:space-between;margin:20px 0 11px}.detail-facts div,.detail-facts b{font-size:9px}.book-description{font-size:12px}.author-panel{padding:13px}.author-avatar{width:56px;height:56px;font-size:22px}.author-ident>a{font-size:12px}.author-ident>span{font-size:10px}.author-panel>p{font-size:10px}.review-grid{grid-template-columns:1fr}.related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.related-cover-image{height:145px}.related-card:nth-child(n+5){display:none}
}
@media(max-width:390px){.book-hero{grid-template-columns:22px minmax(0,1fr) 88px;gap:6px;padding-inline:9px}.detail-cover{width:84px;height:128px}.hero-copy h1{font-size:12px}.byline,.taxonomy-row,.book-metadata-row,.book-numbers{font-size:8px}.book-numbers{gap:6px}.hero-actions .button{min-width:66px;padding-inline:4px}.recommend-row{font-size:8px}}
