/* 18315: phone home reference layout. Desktop and reader layout stay owned by existing CSS. */
.mobile-home-only,.mobile-home-genres,.mobile-home-more,.mobile-book-genre,.mobile-book-hook{display:none}
.hero-desktop-cta{display:flex;align-items:center;gap:11px}
html.shortbook-phone-ui{--mobile-home-gold:#ad844b}
html.shortbook-phone-ui .mobile-home-only{display:inline}
html.shortbook-phone-ui .hero-desktop-cta{display:none}
html.shortbook-phone-ui .topbar.topbar-ott{height:66px;min-height:66px;padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right));border-bottom:1px solid var(--line)}
html.shortbook-phone-ui .topbar-left{gap:8px}
html.shortbook-phone-ui .search-toggle-button{border:1px solid var(--line);border-radius:50%}
html.shortbook-phone-ui .hero-section{margin-top:0!important;padding-top:0!important;background:var(--bg)}
html.shortbook-phone-ui .hero-content{position:relative;display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);align-items:center;gap:16px;padding:26px 20px 48px;min-height:330px}
/* Keep the pager anchored to hero-content; animate only the phone copy children. */
html.shortbook-phone-ui .hero-section .hero-copy{align-self:center;min-width:0;padding:0!important;opacity:1;transform:none;filter:none;transition:none}
html.shortbook-phone-ui .hero-copy>:not(.hero-pager){transition:opacity .30s ease,transform .46s cubic-bezier(.2,.75,.25,1),filter .30s ease}
html.shortbook-phone-ui .hero-section.is-hero-switching .hero-copy>:not(.hero-pager){opacity:0;transform:translateY(11px);filter:blur(2px)}
html.shortbook-phone-ui .eyebrow{margin:0 0 12px;font-size:12px;font-weight:750;color:var(--mobile-home-gold)}
html.shortbook-phone-ui .hero-copy h1{margin:0 0 13px;font-family:inherit;font-size:clamp(24px,6.5vw,36px);line-height:1.28;letter-spacing:-.045em;font-weight:800;word-break:keep-all;overflow-wrap:anywhere}
html.shortbook-phone-ui .hero-copy h2{margin:0;font-size:clamp(12px,3.4vw,16px);line-height:1.65;font-weight:400;color:var(--muted);display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
html.shortbook-phone-ui .hero-description,
html.shortbook-phone-ui .hero-meta,
html.shortbook-phone-ui .hero-actions>.hero-personal-status-button{display:none!important}
html.shortbook-phone-ui .hero-actions{display:block;margin-top:19px}
html.shortbook-phone-ui .hero-actions>#heroReadButton{width:100%;height:44px;min-height:44px;padding:0 10px;border:0;border-radius:28px;background:linear-gradient(110deg,#b28d58,#a57c43);color:#fff;font-size:14px;box-shadow:0 10px 24px rgba(141,105,55,.16);white-space:nowrap}
html.shortbook-phone-ui .hero-cover-zone{display:flex;order:0;align-self:center;justify-content:center;padding:0!important;min-width:0}
html.shortbook-phone-ui .hero-book-webgl{width:100%!important;max-width:230px;height:auto!important;aspect-ratio:2/3;transform:none!important}
html.shortbook-phone-ui .hero-book-webgl .hero-cover{width:100%!important;height:auto!important;aspect-ratio:2/3;object-fit:contain;border-radius:6px;box-shadow:0 16px 28px rgba(65,45,20,.16)}
html.shortbook-phone-ui .hero-pager{position:absolute;left:0;right:0;bottom:10px;display:flex;justify-content:center;gap:2px;margin:0!important}
html.shortbook-phone-ui .hero-pager button{position:relative;width:26px!important;height:26px!important;border-radius:50%;background:transparent!important;margin:0;padding:0}
html.shortbook-phone-ui .hero-pager button::after{content:'';position:absolute;inset:9px;border-radius:50%;background:#bbbfc4}
html.shortbook-phone-ui .hero-pager button.is-active::after{background:var(--mobile-home-gold)}
html.shortbook-phone-ui .content-section{padding-left:18px;padding-right:18px}
html.shortbook-phone-ui .genre-section{padding-top:22px!important}
html.shortbook-phone-ui .section-head{align-items:center;margin-bottom:14px;gap:8px}
html.shortbook-phone-ui .section-head h3{font-size:18px;font-weight:800;letter-spacing:-.035em}
html.shortbook-phone-ui .genre-section .section-kicker,
html.shortbook-phone-ui .genre-section>.genre-rail{display:none!important}
html.shortbook-phone-ui .mobile-home-more{display:flex;align-items:center;gap:6px;min-height:44px;padding:0;background:none;color:var(--muted);font-size:11px;white-space:nowrap;cursor:pointer}
html.shortbook-phone-ui .mobile-home-more>span{font-size:24px}
html.shortbook-phone-ui .mobile-home-genres{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html.shortbook-phone-ui .mobile-home-genre{display:flex;align-items:center;gap:7px;min-width:0;min-height:68px;padding:10px 8px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);text-align:left;box-shadow:0 5px 14px rgba(30,35,40,.035);cursor:pointer}
html.shortbook-phone-ui .mobile-genre-icon{flex:0 0 23px;font-size:23px;line-height:1}
html.shortbook-phone-ui .mobile-home-genre>span:last-child{min-width:0}
html.shortbook-phone-ui .mobile-home-genre strong{display:block;font-size:12px;line-height:1.4;font-weight:750}
html.shortbook-phone-ui .mobile-home-genre small{display:block;margin-top:3px;font-size:10px;line-height:1.4;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recommendation-section [data-recommendation-title]{margin:8px 0 0;font-size:18px;line-height:1.5;font-weight:600;color:var(--muted)}
html.shortbook-phone-ui .recommendation-section [data-recommendation-title]{font-size:14px}
html.shortbook-phone-ui .recommendation-section{padding-top:26px}
html.shortbook-phone-ui .recommendation-section .book-rail{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 30px)/3.5);gap:10px;overflow-x:auto!important;overflow-y:hidden;padding:12px 0 16px;scroll-snap-type:x proximity}
html.shortbook-phone-ui .recommendation-section .book-card{position:relative;min-width:0;scroll-snap-align:start}
html.shortbook-phone-ui .recommendation-section .book-card img{border-radius:5px;aspect-ratio:2/3;object-fit:cover;box-shadow:0 5px 12px rgba(20,25,30,.07)}
html.shortbook-phone-ui .recommendation-section .book-info{padding-top:8px}
html.shortbook-phone-ui .recommendation-section .book-info strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;font-size:12px;line-height:1.4;word-break:keep-all;overflow-wrap:anywhere}
html.shortbook-phone-ui .recommendation-section .book-copy-stack>span,
html.shortbook-phone-ui .recommendation-section .book-match-inline{display:none}
html.shortbook-phone-ui .mobile-book-hook{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:5px 0 0;font-size:10px;line-height:1.5;font-weight:400;color:var(--muted)}
html.shortbook-phone-ui .ranking-section{padding-top:22px;padding-bottom:24px}
html.shortbook-phone-ui .shortbook-mobile-bottom-nav{min-height:66px;box-shadow:none!important;padding-top:7px;border-top:1px solid var(--line)}
html.shortbook-phone-ui .shortbook-mobile-tab{font-size:11px;gap:5px}
html.shortbook-phone-ui .shortbook-mobile-tab svg{width:23px;height:23px}
html.shortbook-phone-ui .shortbook-mobile-tab.is-active{color:var(--mobile-home-gold)!important}
html.shortbook-phone-ui .shortbook-mobile-tab.is-active::before{display:none}
html.shortbook-phone-ui .shortbook-mobile-tab.is-active svg{stroke-width:2.3}
@media(max-width:359px){
 html.shortbook-phone-ui .hero-content{gap:12px;padding-left:16px;padding-right:16px}
 html.shortbook-phone-ui .hero-copy h1{font-size:23px}
 html.shortbook-phone-ui .mobile-home-genre{flex-direction:column;align-items:flex-start;gap:5px;padding:9px}
 html.shortbook-phone-ui .mobile-home-genre small{font-size:9px}
}
@media(min-width:600px){html.shortbook-phone-ui .hero-content{max-width:720px;margin:auto;gap:26px}html.shortbook-phone-ui .mobile-home-genre small{font-size:11px}}
/* 18316: remove inherited desktop geometry rather than compensating with spacers. */
.mobile-rank-copy{display:none}
html.shortbook-phone-ui .topbar.topbar-ott,
html.shortbook-phone-ui .topbar.topbar-ott.is-depth-route{margin-bottom:0!important;position:sticky;top:0;z-index:50;box-shadow:none!important}
html.shortbook-phone-ui .hero-section{height:auto!important;min-height:0!important;max-height:none;margin:0!important;padding:0!important}
html.shortbook-phone-ui .topbar.topbar-ott.is-depth-route + .hero-section{margin:0!important;padding:0!important}
html.shortbook-phone-ui .hero-content{min-height:0!important;padding:24px 18px 40px;gap:16px}
html.shortbook-phone-ui .hero-bg{opacity:.55}
html.shortbook-phone-ui .hero-copy h1{font-size:clamp(24px,6.5vw,34px);line-height:1.27}
html.shortbook-phone-ui .hero-copy h2{font-size:13px;line-height:1.6;-webkit-line-clamp:4}
html.shortbook-phone-ui .hero-actions{margin-top:20px}
html.shortbook-phone-ui .hero-book-webgl .hero-cover{box-shadow:0 12px 28px rgba(55,40,20,.12)}
html.shortbook-phone-ui .topbar-ott .account-preview{width:44px!important;min-width:44px!important;max-width:44px;height:44px;padding:0!important;border:0;border-radius:50%;background:transparent;flex:0 0 44px;justify-content:center}
html.shortbook-phone-ui .topbar-ott .account-preview .account-name,
html.shortbook-phone-ui .topbar-ott .account-preview .chevron{display:none!important}
html.shortbook-phone-ui .topbar-ott .account-preview .avatar{width:38px;height:38px;flex-basis:38px;border-radius:50%;overflow:hidden}
html.shortbook-phone-ui .topbar-ott .account-preview .avatar svg{width:22px;height:22px}
html.shortbook-phone-ui .topbar-search-cluster{margin-left:auto}
html[data-theme="light"].shortbook-phone-ui .search-toggle-button{color:#252b33!important;background:#fff!important;border-color:#e6e7e9!important}
html.shortbook-phone-ui .topbar-ott .account-popover{top:54px;right:0;width:min(294px,calc(100vw - 28px));padding:10px;border-radius:18px;max-height:calc(100dvh - 152px);overflow-y:auto}
html.shortbook-phone-ui .account-popover-head{padding:12px 10px 16px}
html.shortbook-phone-ui .account-popover-head strong{font-size:14px}
html.shortbook-phone-ui .account-popover-head span{font-size:11px;line-height:1.4}
html.shortbook-phone-ui .mobile-account-actions{gap:0;margin:0;padding:6px 0;border-top:1px solid var(--line);border-bottom:0}
html.shortbook-phone-ui .mobile-account-actions .is-mobile-account-action{min-height:44px;padding:10px;font-size:13px;gap:10px}
html.shortbook-phone-ui .account-menu-item{min-height:44px;font-size:13px}
html.shortbook-phone-ui .genre-section{padding-top:18px!important}
html.shortbook-phone-ui .mobile-home-genres{gap:8px}
html.shortbook-phone-ui .mobile-home-genre{min-height:60px;border-color:var(--line-soft);box-shadow:0 6px 16px rgba(35,35,35,.03)}
html.shortbook-phone-ui .mobile-genre-icon{color:#b18b59;font-size:0;flex:0 0 20px}
html.shortbook-phone-ui .mobile-genre-icon svg{display:block;width:20px;height:24px}
html.shortbook-phone-ui .recommendation-section{padding-top:22px}
/* Share the heading row with the action; the genre subtitle owns the second row. */
html.shortbook-phone-ui .recommendation-section .section-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;margin-bottom:8px}
html.shortbook-phone-ui .recommendation-section .section-head>div{display:contents}
html.shortbook-phone-ui .recommendation-section .section-head h3{grid-column:1;grid-row:1}
html.shortbook-phone-ui .recommendation-section .section-head>.mobile-home-more{grid-column:2;grid-row:1}
html.shortbook-phone-ui .recommendation-section [data-recommendation-title]{grid-column:1 / -1;grid-row:2;margin:0}
html.shortbook-phone-ui .recommendation-section .book-rail{padding-top:4px;padding-bottom:8px;gap:12px;grid-auto-columns:calc((100% - 36px)/3.6)}
/* Titles occupy their actual one or two lines instead of reserving an empty second line. */
html.shortbook-phone-ui .recommendation-section .book-info strong{min-height:0;line-height:1.4}
html.shortbook-phone-ui .mobile-book-hook{margin-top:0;line-height:1.5;-webkit-line-clamp:2}
/* Ranked list: three compact rows per swipeable column, in server rank order. */
html.shortbook-phone-ui .ranking-section{margin:0!important;padding:24px 18px 22px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;min-height:0!important}
html.shortbook-phone-ui .ranking-section .section-head{margin:0 0 12px!important;padding:0!important}
html.shortbook-phone-ui .ranking-section .section-head h3{font-size:18px}
html.shortbook-phone-ui .ranking-section .ranking-rail{display:grid!important;grid-template-rows:repeat(3,94px);grid-auto-flow:column;grid-auto-columns:min(82vw,340px);gap:8px 16px;height:auto!important;min-height:0!important;padding:0 0 6px!important;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding:0;cursor:auto}
html.shortbook-phone-ui .ranking-section .rank-card{display:grid;grid-template-columns:22px 54px minmax(0,1fr);align-items:center;gap:10px;position:relative;width:auto!important;height:94px!important;min-height:0!important;padding:6px 0!important;margin:0!important;scroll-snap-align:start;overflow:hidden;transform:none!important;border-bottom:1px solid var(--line-soft)}
html.shortbook-phone-ui .ranking-section .rank-card[hidden]{display:none!important}
html.shortbook-phone-ui .ranking-section .rank-card .rank-number{position:static!important;inset:auto!important;display:block;width:22px;font-family:inherit;font-size:17px!important;font-weight:800;line-height:1!important;letter-spacing:0!important;color:var(--muted)!important;-webkit-text-stroke:0!important;transform:none!important;text-align:center}
html.shortbook-phone-ui .ranking-section .rank-card:first-child .rank-number{color:var(--mobile-home-gold)!important}
html.shortbook-phone-ui .ranking-section .rank-card .rank-hero3d-preview{position:relative!important;inset:auto!important;width:54px!important;height:81px!important;min-width:0!important;margin:0!important;transform:none!important;filter:none!important;perspective:none!important;box-shadow:none!important}
html.shortbook-phone-ui .ranking-section .rank-card .rank-hero3d-preview>img{position:static!important;display:block!important;inset:auto!important;width:54px!important;height:81px!important;opacity:1!important;visibility:visible!important;object-fit:cover;border-radius:4px;transform:none!important;box-shadow:none!important}
html.shortbook-phone-ui .ranking-section .rank-hero3d-canvas,
html.shortbook-phone-ui .ranking-section .rank-hero3d-preview::before,
html.shortbook-phone-ui .ranking-section .rank-hero3d-preview::after,
html.shortbook-phone-ui .ranking-section .shortbook-cover-like-button:not(.is-liked){display:none!important}
html.shortbook-phone-ui .mobile-rank-copy{display:flex;flex-direction:column;gap:5px;min-width:0;text-align:left}
html.shortbook-phone-ui .mobile-rank-copy strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4;font-size:13px;color:var(--text);word-break:keep-all;overflow-wrap:anywhere}
html.shortbook-phone-ui .mobile-rank-copy span{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.shortbook-phone-ui .mobile-rank-copy small{font-size:10px;color:var(--mobile-home-gold)}
