/* MangaVerse v7.0 Production UI
   Original implementation using common professional manga-store interaction patterns. */
:root{
 --mv7-header:64px;--mv7-nav:42px;--mv7-drawer:390px;
 --mv7-bg:#f3f4f5;--mv7-surface:#fff;--mv7-ink:#23262a;--mv7-muted:#7c8188;
 --mv7-line:#e3e5e8;--mv7-soft:#f8f8f9;
}
body{background:var(--mv7-bg)}
.mva-site-shell,.mva-main-shell{background:var(--mv7-surface)}
.mva-site-header{background:#fff;border-bottom:1px solid var(--mv7-line)}
.mva-header-inner{height:var(--mv7-header);min-height:var(--mv7-header);grid-template-columns:68px minmax(0,1fr) 68px;padding:0 10px}
.mva-logo{justify-self:center;max-width:min(60vw,280px)}
.mva-logo-text{font-size:24px;font-weight:850;letter-spacing:-.6px}
.mva-icon-btn{width:56px;height:54px;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#34373b}
.mva-icon-btn:hover{background:#fafafa;color:var(--mva-accent)}
.mva-icon-btn svg{width:23px;height:23px}
.mva-header-action-label{font-size:8px;font-weight:750;line-height:1}
.mva-category-strip{height:var(--mv7-nav);background:#fff;border-bottom:1px solid var(--mv7-line)}
.mva-category-inner{height:var(--mv7-nav);min-height:var(--mv7-nav);overflow-x:auto;scrollbar-width:none;display:flex}
.mva-category-inner::-webkit-scrollbar{display:none}
.mva-category-inner>a{flex:0 0 auto;min-height:var(--mv7-nav);padding:0 14px;display:inline-flex;align-items:center;border-right:1px solid #f0f1f2;color:#50545a;font-size:10.5px;font-weight:700;white-space:nowrap}
.mva-category-inner>a:hover{background:#fff9f1;color:var(--mva-accent)}

.mva-drawer-bg{background:rgba(19,21,24,.58);backdrop-filter:blur(2px)}
.mva-drawer-panel{width:min(94vw,var(--mv7-drawer));max-width:var(--mv7-drawer);background:#fff;box-shadow:14px 0 44px rgba(0,0,0,.2);display:flex;flex-direction:column}
.mva-drawer-head{height:64px;flex:0 0 64px;padding:0 16px;border-bottom:1px solid var(--mv7-line);background:#fff}
.mva-drawer-scroll{flex:1;overflow:auto;padding:12px 0 max(24px,env(safe-area-inset-bottom))}
.mva-drawer-close{width:42px;height:42px;border-radius:50%;font-size:25px}
.mva-drawer-close:hover{background:#f3f4f5}
.mva-find-titles-card{padding:0 14px 12px}
.mva-find-titles-card button{width:100%;min-height:60px;border:1px solid #d9dbde;border-radius:6px;background:#fff;display:grid;grid-template-columns:26px minmax(0,1fr) 14px;align-items:center;gap:10px;padding:10px 12px;text-align:left;cursor:pointer}
.mva-find-titles-card button:hover{border-color:var(--mva-accent);box-shadow:0 4px 14px rgba(0,0,0,.05)}
.mva-menu-section{padding:15px 14px;border-top:1px solid #eceef0}
.mva-menu-section>h3,.mva-menu-section-head h3{margin:0;color:#8a8f96;font-size:8.5px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
.mva-menu-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.mva-menu-list{margin-top:7px;border-top:1px solid #eff0f1}
.mva-menu-list>a{min-height:47px;display:grid;grid-template-columns:23px minmax(0,1fr) 12px;align-items:center;gap:9px;border-bottom:1px solid #eff0f1;color:#2b2e33;font-size:11.5px;font-weight:750}
.mva-menu-list>a:hover{color:var(--mva-accent)}
.mva-menu-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.mva-menu-chips>a{min-height:30px;padding:0 9px;display:inline-flex;align-items:center;border:1px solid #dfe1e4;border-radius:4px;background:#fff;color:#5d6167;font-size:9px;font-weight:650}
.mva-menu-chips>a:hover{border-color:var(--mva-accent);color:var(--mva-accent)}
.mva-menu-text-links{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;margin-top:6px}
.mva-menu-text-links a{padding:8px 0;border-bottom:1px solid #f0f1f2;color:#62666c;font-size:9.5px}

.mva-content-preference{background:#fbfbfc}
.mva-adult-toggle-row{width:100%;min-height:60px;border:1px solid #dcdfe2;border-radius:6px;background:#fff;padding:9px 11px;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;cursor:pointer}
.mva-adult-toggle-copy strong{display:block;font-size:11.5px;font-weight:800}
.mva-adult-toggle-copy small{display:block;margin-top:3px;color:#858a91;font-size:8.8px;line-height:1.4}
.mva-switch{position:relative;flex:0 0 42px;width:42px;height:24px;border-radius:999px;background:#c9cdd1;transition:.18s}
.mva-switch i{position:absolute;width:20px;height:20px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.22);transition:.18s}
.mva-switch.is-on{background:var(--mva-accent)}
.mva-switch.is-on i{transform:translateX(18px)}

.mva-searchpanel{background:rgba(20,22,25,.6);backdrop-filter:blur(3px)}
.mva-searchbox{width:min(94vw,700px);max-height:min(86vh,760px);margin:64px auto 20px;padding:0;overflow:auto;background:#fff;border:1px solid rgba(255,255,255,.75);border-radius:7px;box-shadow:0 28px 78px rgba(0,0,0,.28)}
.mva-search-head{min-height:68px;padding:12px 17px;border-bottom:1px solid #e7e9eb;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:#fff;z-index:2}
.mva-search-eyebrow{display:block;color:#9a9ea4;font-size:8px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
.mva-search-title{font-size:19px;font-weight:850;letter-spacing:-.25px}
.mva-search-close{width:40px;height:40px;border:0;border-radius:50%;background:#f3f4f5;color:#555;font-size:23px;cursor:pointer}
.mva-find-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:14px 17px 12px;border-bottom:1px solid #eceef0}
.mva-find-form input{height:46px;border:1px solid #ccd0d4;border-radius:4px;padding:0 12px;font-size:12px;outline:none}
.mva-find-form input:focus{border-color:var(--mva-accent);box-shadow:0 0 0 2px rgba(242,138,0,.12)}
.mva-find-form button{min-width:104px;height:46px;border:0;border-radius:4px;background:#24272b;color:#fff;font-size:10px;font-weight:800;cursor:pointer}
.mva-find-form button:hover{background:var(--mva-accent)}
.mva-search-menu{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #eceef0}
.mva-search-menu>a{min-height:44px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-right:1px solid #eceef0;border-bottom:1px solid #eceef0;color:#50545a;font-size:10px;font-weight:700}
.mva-search-menu>a:nth-child(2n){border-right:0}
.mva-search-menu>a:hover{background:#fff9f1;color:var(--mva-accent)}
.mva-search-keywords,.mva-search-recent{padding:13px 17px;border-bottom:1px solid #eceef0}
.mva-search-keywords h3,.mva-search-recent h3{margin:0 0 8px;color:#8b9096;font-size:8.5px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.mva-search-keywords>div,.mva-search-recent>div{display:flex;flex-wrap:wrap;gap:6px}
.mva-search-keywords a,.mva-search-recent button{min-height:28px;padding:0 9px;display:inline-flex;align-items:center;border:1px solid #dfe1e3;border-radius:999px;background:#fff;color:#5f646a;font-size:9px;cursor:pointer}
.mva-search-recent-head{display:flex;align-items:center;justify-content:space-between}
.mva-search-recent-clear{border:0;background:transparent;color:#9a5a5a;font-size:8px;cursor:pointer}
.mva-search-results{max-height:390px;overflow:auto}

.mva-section-head{border-bottom:1px solid #eceef0;padding-bottom:9px;margin-bottom:14px}
.mva-section-head h2{font-weight:850;letter-spacing:-.25px}
.r18-title-card-cover,.r18-story-cover{border-radius:4px;overflow:hidden;border:1px solid #e2e4e7;background:#f2f3f4;box-shadow:none}
.r18-title-card:hover .r18-title-card-cover,.r18-story-card:hover .r18-story-cover{border-color:#c8cbd0;box-shadow:0 6px 18px rgba(0,0,0,.08)}
.r18-card-chapter{border:1px solid #ead3b5;border-radius:3px;background:#fff9f1;color:#895417;font-weight:750}
.r18-feature-viewport{border:1px solid #dde0e3;border-radius:5px;overflow:hidden;background:#fff}
.r18-feature-cta{border-radius:3px;background:#24272b}
.r18-feature-cta:hover{background:var(--mva-accent)}

.mva-home-continue[hidden]{display:none}
.mva-home-continue .mva-library-item{background:#fff}

.mva-bottom-nav{background:rgba(255,255,255,.98);border-color:#dfe1e3;backdrop-filter:blur(10px)}
.mva-bottom-nav-inner>a{color:#696e74}
.mva-bottom-nav-inner>a.active{color:var(--mva-accent)}

:focus-visible{outline:2px solid var(--mva-accent);outline-offset:2px}
@media(max-width:680px){
 :root{--mv7-header:58px;--mv7-nav:39px}
 .mva-header-inner{grid-template-columns:56px minmax(0,1fr) 56px;padding:0 4px}
 .mva-logo-text{font-size:20px}
 .mva-icon-btn{width:52px;height:52px}
 .mva-category-inner>a{padding:0 11px;font-size:9.8px}
 .mva-drawer-panel{width:100vw;max-width:100vw;box-shadow:none}
 .mva-drawer-head{height:58px;flex-basis:58px;padding:0 12px}
 .mva-menu-section{padding:13px 12px}
 .mva-searchbox{width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;box-shadow:none}
 .mva-search-head{min-height:58px;padding:9px 12px}
 .mva-find-form{padding:10px 12px;grid-template-columns:minmax(0,1fr) 50px}
 .mva-find-form button{min-width:50px;padding:0}
 .mva-find-form button span{display:none}
 .mva-search-menu>a{min-height:42px;padding:0 12px;font-size:9.5px}
 .mva-search-keywords,.mva-search-recent{padding:12px}
 .mva-search-results{max-height:none}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}
