/* 휴대폰 화면 정리(2026-10-30): 아래쪽 메뉴(탭바), 작품 목록 필터 한 줄 + 필터 창, 랭킹 필터 2줄. 컴퓨터 화면은 그대로다. */
.m-tabbar{display:none}
.install-strip{display:none}
.rc-mbar,.msheet-title,.msheet-label,.msheet-done,.msheet-dim{display:none}

@media(max-width:700px){
 /* 아래쪽 메뉴 */
 .m-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:55;display:grid;grid-template-columns:repeat(5,1fr);height:calc(56px + env(safe-area-inset-bottom,0px));padding:0 max(0px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(0px,env(safe-area-inset-left,0px));background:#fff;border-top:1px solid #efefef}
 .m-tabbar[hidden]{display:none}
 .m-tabbar a{display:grid;place-content:center;justify-items:center;gap:2px;min-height:0;color:#262626;font-size:10.5px;font-weight:500;text-decoration:none}
 .m-tabbar svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
 body.editorial .m-tabbar a{color:#9a9a9a}
 body.editorial .m-tabbar a.on{color:#0a0a0a;font-weight:700}
 body.has-tabbar{padding-bottom:calc(56px + env(safe-area-inset-bottom,0px))}
 body.reading-mode .m-tabbar,body.ebook-reading .m-tabbar{display:none}
 body.reading-mode.has-tabbar,body.ebook-reading.has-tabbar{padding-bottom:0}
 body.has-tabbar .toast{bottom:calc(72px + env(safe-area-inset-bottom,0px))!important}
 /* 앱 설치 안내 줄: 아래 메뉴 바로 위 */
 .install-strip{position:fixed;left:0;right:0;bottom:calc(56px + env(safe-area-inset-bottom,0px));z-index:54;display:flex;align-items:center;gap:10px;min-height:44px;padding:4px max(4px,env(safe-area-inset-right,0px)) 4px max(14px,env(safe-area-inset-left,0px));background:#fff;border-top:1px solid #efefef}
 .install-strip[hidden]{display:none}
 .install-strip img{flex:none;width:26px;height:26px;border-radius:6px}
 .install-strip p{flex:1;min-width:0;margin:0;color:#262626;font-size:13px;line-height:1.35}
 body.editorial .install-strip a{flex:none;padding:10px 6px;color:#111;font-size:13px;font-weight:700;text-decoration:none}
 .install-strip button{flex:none;display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;background:none;color:#8e8e8e;cursor:pointer}
 .install-strip svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
 body.has-install-strip{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}
 body.has-install-strip .toast{bottom:calc(116px + env(safe-area-inset-bottom,0px))!important}
 /* 위쪽 홈·작품·랭킹 줄은 아래 메뉴로 옮겼다. 오른쪽 위 계정 아이콘(로그아웃·관리자 메뉴)은 남긴다. */
 body.editorial .site-header .main-nav{display:none!important}

 /* 작품·검색 목록: 큰 추천 상자를 빼고, 검색창은 검색 화면에서만, 필터는 한 줄 + 아래에서 올라오는 창 */
 body.editorial .rc-page .rc-spot{display:none!important}
 body.editorial .rc-page:not(.rc-page-search) .rc-search{display:none!important}
 body.editorial .rc-page .rc-genres{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
 .rc-mbar{display:flex;align-items:center;gap:8px;margin:10px 0 2px;overflow-x:auto;scrollbar-width:none}
 .rc-mbar button{flex:0 0 auto;min-height:36px;padding:0 12px;border-radius:999px;border:1px solid #d9dbe0;background:#fff;color:#1c1d22;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
 .rc-mbar .rc-mbtn b{display:inline-block;margin-left:4px;padding:0 6px;border-radius:999px;background:#1e2a4a;color:#fff;font-size:11px;line-height:17px}
 .rc-mbar .rc-mchip{background:#111;border-color:#111;color:#fff}
 .rc-mbar .rc-msort{margin-left:auto;border:0;padding:0 4px}
 body.editorial .rc-page .rc-filters{display:none!important}
 body.editorial .rc-page.msheet-open .rc-filters{display:grid!important;position:fixed;left:0;right:0;bottom:0;z-index:80;gap:8px;max-height:80vh;overflow:auto;margin:0;padding:18px 18px calc(18px + env(safe-area-inset-bottom,0px));background:#fff;border-radius:18px 18px 0 0;box-shadow:0 -10px 30px rgba(0,0,0,.18)}
 .rc-page.msheet-open .msheet-dim{display:block;position:fixed;inset:0;z-index:79;background:rgba(0,0,0,.35)}
 .rc-page.msheet-open .msheet-title{display:block;margin:0 0 4px;font-size:16px;font-weight:800}
 .rc-page.msheet-open .msheet-label{display:block;margin:8px 0 0;font-size:12px;font-weight:700;color:#6b6f78}
 .rc-page.msheet-open .rc-group{display:flex;flex-wrap:wrap;gap:8px}
 .rc-page.msheet-open .msheet-done{display:block;margin-top:12px;min-height:46px;border:0;border-radius:12px;background:#111;color:#fff;font:inherit;font-size:15px;font-weight:700;cursor:pointer}
 body.has-tabbar .rc-page.msheet-open .rc-filters{bottom:0}

 /* 랭킹: 기간·기준을 한 줄로, 장르와 무료/유료/완결/신작을 한 줄로(옆으로 넘김) */
 body.editorial .rk .rk-modes{display:flex!important;flex-wrap:nowrap!important;gap:8px;overflow-x:auto;scrollbar-width:none}
 body.editorial .rk .rk-modes .rk-seg{flex:0 0 auto}
 body.editorial .rk .rk-filters{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:8px;overflow-x:auto;scrollbar-width:none}
 body.editorial .rk .rk-filters .rk-genres,body.editorial .rk .rk-filters .rk-toggles{display:flex!important;flex-wrap:nowrap!important;flex:0 0 auto!important;width:auto!important;overflow:visible!important;gap:8px}
}

/* 내 서재 새 회차 점(2026-11-19) */
#mobileTabbar a[data-tab="library"]{position:relative}
#mobileTabbar a.has-new::after{content:"";position:absolute;top:6px;left:calc(50% + 9px);width:8px;height:8px;border-radius:50%;background:#1d2b4a;box-shadow:0 0 0 2px #fff}
