/* MangaVerse v7.6 — classic professional shortcut strip + resilient visibility */

/* Restore the cleaner pre-v7.5 tab-strip language. */
.mva-category-strip{
 height:42px;
 background:#fff;
 border-top:0;
 border-bottom:1px solid #e4e6e8;
}
.mva-category-inner{
 width:var(--mv71-shell,min(1120px,calc(100% - 32px)));
 max-width:1120px;
 height:42px;
 min-height:42px;
 margin:0 auto;
 padding:0;
 display:flex;
 align-items:stretch;
 gap:0;
 overflow-x:auto;
 overflow-y:hidden;
 scrollbar-width:none;
}
.mva-category-inner::-webkit-scrollbar{display:none}
.mva-category-inner>a{
 position:relative;
 flex:0 0 auto;
 min-height:42px;
 padding:0 15px;
 display:inline-flex;
 align-items:center;
 justify-content:center;
 border:0;
 border-right:1px solid #eff0f1;
 background:#fff;
 color:#50555b;
 font-size:10px;
 line-height:1;
 font-weight:700;
 white-space:nowrap;
 text-decoration:none;
 transition:background .16s ease,color .16s ease;
}
.mva-category-inner>a:first-child{
 padding-left:15px;
 border-left:1px solid #eff0f1;
}
.mva-category-inner>a:hover{
 background:#fffaf4;
 color:var(--mva-accent,#f28a00);
}
.mva-category-inner>a.active{
 color:var(--mva-accent,#f28a00);
 background:#fff;
 font-weight:800;
}
.mva-category-inner>a.active::after{
 content:"";
 position:absolute;
 left:12px;
 right:12px;
 bottom:0;
 height:2px;
 border-radius:2px 2px 0 0;
 background:var(--mva-accent,#f28a00);
}
.mva-category-inner .mva-all-genres{
 color:#44494f;
 font-weight:800;
}
.mva-category-inner .mva-all-genres.active,
.mva-category-inner .mva-all-genres:hover{
 color:var(--mva-accent,#f28a00);
}

/* Every available Home section remains independent.
   An empty sibling must never collapse or visually suppress another section. */
.mva-main>.mva-section,
.mva-main>.r18-featured-manga{
 display:block;
}
.mva-main>.mva-section[hidden],
.mva-main>.r18-featured-manga[hidden]{
 display:none;
}

/* Keep the no-18+ state visually identical to the normal catalog. */
body:not(.mva-adult-enabled) .mva-content-shell{
 opacity:1;
 filter:none;
}
.mva-home-adult-cta{
 isolation:isolate;
}

/* Layout safety: long metadata and controls must never widen the page shell. */
html,body{max-width:100%;overflow-x:clip}
.mva-main,.mva-content-shell,.mva-section,.mva-detail,.mva-detail-copy,.mva-story{min-width:0}
.mva-story,.mva-summary,.mva-info dd,.mva-page-content{overflow-wrap:anywhere}
.mva-main input,.mva-main select,.mva-main textarea{max-width:100%}

/* ComixRead wordmark: restrained two-tone brand treatment. */
.mva-logo-text{
 gap:0;
 font-weight:900;
 letter-spacing:-.62px;
 text-rendering:optimizeLegibility;
}
.mva-brand-comix{color:#22262b}
.mva-brand-read{
 margin-left:1px;
 color:var(--mva-accent,#f28a00);
 font-weight:900;
}

/* Side drawer keeps page context visible with a calm, light backdrop. */
.mva-drawer-bg{
 background:rgba(20,23,27,.30);
 backdrop-filter:blur(1px);
 -webkit-backdrop-filter:blur(1px);
}
.mva-drawer-panel{
 border-right:1px solid rgba(30,34,39,.10);
 border-radius:0 12px 12px 0;
 box-shadow:12px 0 36px rgba(18,22,27,.16);
 overflow:hidden;
}
.mva-drawer-scroll{overscroll-behavior:contain}

/* Mobile: same classic tabs, horizontally scrollable. */
@media(max-width:720px){
 .mva-searchpanel{
  padding:clamp(12px,4vh,28px) 12px 16px;
  overflow-y:auto;
  background:rgba(20,23,27,.36);
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
 }
 .mva-searchpanel.open{
  display:flex;
  align-items:flex-start;
  justify-content:center;
 }
 .mva-searchbox{
  width:min(100%,440px);
  height:auto;
  max-height:calc(100dvh - 32px);
  margin:0;
  border:1px solid rgba(255,255,255,.88);
  border-radius:12px;
  box-shadow:0 18px 52px rgba(13,17,22,.24);
  overflow:auto;
 }
 .mva-search-results{max-height:min(56dvh,480px);overflow:auto}
 .mva-search-submit-icon{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  color:#fff;
 }
 .mva-search-submit-icon svg{display:block;width:18px;height:18px;stroke:currentColor}
 .mva-search-submit-text{display:none!important}
 .mva-drawer-panel{
  width:min(86vw,320px);
  max-width:calc(100vw - 44px);
 }
 .mva-home-adult-callout{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
 }
 .mva-home-adult-copy{min-width:0}
 .mva-home-adult-copy h2{white-space:normal;overflow-wrap:normal}
 .mva-home-adult-form{width:auto;min-width:0;flex:0 0 auto}
 .mva-home-adult-btn{width:auto;min-width:0}
 .mva-category-strip{
  height:39px;
 }
 .mva-category-inner{
  width:100%;
  max-width:none;
  height:39px;
  min-height:39px;
  padding:0 6px;
 }
 .mva-category-inner>a{
  min-height:39px;
  padding:0 11px;
  font-size:9px;
 }
 .mva-category-inner>a:first-child{
  padding-left:11px;
 }
 .mva-category-inner>a.active::after{
  left:9px;
  right:9px;
 }
 .mva-main button,.mva-main input,.mva-main select,.mva-main textarea{
  min-height:40px;
 }
}
@media(max-width:360px){
 .mva-drawer-panel{width:calc(100vw - 40px);max-width:calc(100vw - 40px)}
 .mva-home-adult-callout{grid-template-columns:1fr;align-items:stretch}
 .mva-home-adult-form,.mva-home-adult-btn{width:100%}
}
