.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
:root{
  --red:#c0392b;
  --bg:#0d0d0d;--bg2:#111;--bg3:#161616;--bg4:#1a1a1a;
  --border:#2a2a2a;--text:#e0e0e0;--muted:#888;
}
*{margin:0;padding:0;box-sizing:border-box}
body{background:var(--bg);color:var(--text);font-family:'Segoe UI',sans-serif;line-height:1.6}
body.has-sticky-ad{padding-bottom:75px}
a{color:inherit;text-decoration:none}
img{max-width:100%}
button{cursor:pointer}

/* HEADER */
.hdr{background:#111111;border-bottom:2px solid var(--red);position:sticky;top:0;z-index:200}
.hdr-inner{max-width:1200px;margin:auto;display:flex;align-items:center;gap:20px;padding:0 20px;height:62px}
.logo{display:flex;flex-direction:column;justify-content:center;text-decoration:none;flex-shrink:0;line-height:1}
.logo-name{font-size:20px;font-weight:700;color:#fff;line-height:1.2}
.logo-ico{height:20px;width:20px;object-fit:contain;vertical-align:-3px;margin-right:7px}
.logo-ico-em{margin-right:7px;font-size:.9em;opacity:.9}
.logo-name em{color:var(--red);font-style:normal}
.logo-tagline{font-size:10px;color:#666;letter-spacing:1.5px;text-transform:uppercase;margin-top:2px}
.logo-tag{font-size:10px;background:var(--red);color:#fff;padding:1px 6px;border-radius:3px;margin-left:6px;vertical-align:middle}
/* Nav takes the leftover width and scrolls sideways instead of wrapping or
   pushing the search box off the bar — a site with a dozen links stays usable
   at every width instead of breaking at one specific one. */
.hdr-nav{display:flex;gap:2px;margin-left:4px;flex:1 1 auto;min-width:0;white-space:nowrap}
.hdr-nav.is-scroll{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;-webkit-mask-image:linear-gradient(90deg,#000 92%,transparent);mask-image:linear-gradient(90deg,#000 92%,transparent)}
.hdr-nav.is-scroll::-webkit-scrollbar{display:none}
.hdr-nav a{flex:0 0 auto}
.hdr-shop{display:inline-flex;align-items:center;gap:5px}
.hdr-dc{display:inline-flex;align-items:center;gap:6px;background:rgba(88,101,242,.14);color:#a5b0f8 !important;border:1px solid rgba(88,101,242,.35)}
.hdr-dc:hover{background:#5865f2 !important;color:#fff !important;border-color:#5865f2}
.mob-dc{display:flex !important;align-items:center;gap:8px;color:#a5b0f8 !important}
.hdr-nav a{padding:6px 14px;border-radius:5px;font-size:13px;color:#bbb;transition:color .2s;font-weight:400}
.hdr-nav a:hover,.hdr-nav a.active{color:#fff;background:rgba(255,255,255,.08)}
.hdr-bm{position:relative;display:inline-flex;align-items:center}
.hdr-bm.active{color:#a78bfa !important;background:rgba(124,58,237,.12) !important}
.hdr-bm.active svg{fill:#a78bfa;stroke:#a78bfa}
.hdr-bm:hover::after{
  content:attr(data-tooltip);
  position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);
  background:#0d0d0d;border:1px solid var(--border);border-radius:5px;
  padding:5px 10px;font-size:11px;color:#ccc;white-space:nowrap;
  pointer-events:none;z-index:300;box-shadow:0 4px 12px rgba(0,0,0,.5)
}
.hdr-search{display:flex;align-items:center;margin-left:auto;flex:0 0 auto;border:1px solid var(--border);border-radius:6px;overflow:hidden;background:var(--bg4);transition:border-color .2s}
.hdr-search:focus-within{border-color:var(--red)}
.hdr-search input{background:none;border:none;color:#eee;padding:7px 12px;font-size:13px;outline:none;width:180px}
.hdr-search button{background:var(--red);border:none;color:#fff;padding:7px 12px;font-size:13px}
.hdr-burger{display:none;flex-direction:column;gap:5px;background:none;border:none;padding:6px;cursor:pointer;margin-left:auto}
.hdr-burger span{width:22px;height:2px;background:#eee;border-radius:2px;display:block;transition:transform .22s,opacity .18s}
.hdr-burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hdr-burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.hdr-burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
/* Capped height + its own scroll: a long menu on a short phone screen must
   not push the page down or strand the last links below the fold. */
.mob-menu{display:none;background:var(--bg2);border-top:1px solid var(--border);max-height:calc(100vh - 62px);overflow-y:auto;overscroll-behavior:contain}
.mob-menu.open{display:block}
.mob-menu a{display:block;padding:13px 20px;border-bottom:1px solid #1e1e1e;color:#eee;font-size:14px}
.mob-menu a:hover{background:var(--bg4);color:var(--red)}
.mob-search{display:flex;gap:8px;padding:12px 20px;border-bottom:1px solid var(--border)}
.mob-search input{flex:1;background:var(--bg4);border:1px solid var(--border);color:#eee;padding:9px 12px;border-radius:5px;font-size:14px;outline:none}
.mob-search button{background:var(--red);border:none;color:#fff;padding:9px 14px;border-radius:5px;font-size:14px}
.ann-bar{padding:9px 16px;text-align:center;font-size:13px;color:#fff;position:relative;display:flex;align-items:center;justify-content:center;gap:10px}
.ann-bar a{color:#fff;font-weight:700;text-decoration:underline}
.ann-close{position:absolute;right:12px;background:rgba(0,0,0,.3);border:none;color:#fff;width:22px;height:22px;border-radius:50%;font-size:12px}

/* READER */
.wrap{max-width:1200px;margin:0 auto;padding:16px}
.breadcrumb{font-size:13px;color:var(--muted);margin-bottom:12px}
.breadcrumb a{color:var(--muted)}
.breadcrumb a:hover{color:var(--red)}

/* CHAPTER HEAD */
.ch-head{text-align:center;margin:4px 0 12px}
.ch-head h1{font-size:28px;font-weight:800;color:#fff;line-height:1.25;letter-spacing:-.4px}
.ch-head .ch-sub{font-size:13px;color:var(--muted);margin-top:6px}
.ch-head .ch-sub a{color:var(--red);font-weight:700}
.crumb-box{background:var(--bg3);border:1px solid var(--border);border-radius:8px;padding:11px 16px;margin:14px 0;font-size:13px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px}
.crumb-box a{color:#aaa;transition:color .2s}
.crumb-box a:hover{color:var(--red)}
.crumb-box .sep{color:#444}
.crumb-box .cur{color:#eee;font-weight:600}
.ch-intro{font-size:14.5px;color:#9c9c9c;line-height:1.8;text-align:center;max-width:760px;margin:0 auto 16px}

/* READER NAV BAR */
.reader-bar{background:linear-gradient(180deg,var(--bg4),var(--bg3));border:1px solid var(--border);border-radius:10px;padding:9px;margin-bottom:16px;display:flex;align-items:center;gap:8px;box-shadow:0 2px 10px rgba(0,0,0,.35)}
.reader-bar.is-bottom{margin:20px 0}
.rb-side{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.rb-mid{flex:1 1 auto;min-width:0;display:flex;justify-content:center}
.ch-sel-wrap{position:relative;width:100%;max-width:320px}
.ch-sel-wrap .caret{position:absolute;right:11px;top:50%;transform:translateY(-50%);pointer-events:none;color:#777}
.ch-sel{-webkit-appearance:none;appearance:none;width:100%;background:var(--bg2);border:1px solid var(--border);color:#eee;padding:9px 34px 9px 13px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;outline:none;text-overflow:ellipsis;transition:border-color .2s,box-shadow .2s}
.ch-sel:hover{border-color:#3d3d3d}
.ch-sel:focus{border-color:var(--red);box-shadow:0 0 0 2px rgba(0,0,0,.35)}
.ch-sel option{background:#111;color:#eee}
.r-nav-btn{display:inline-flex;align-items:center;gap:6px;background:var(--bg2);border:1px solid var(--border);color:#c9c9c9;padding:9px 13px;border-radius:8px;font-size:12.5px;font-weight:600;white-space:nowrap;transition:background .18s,border-color .18s,color .18s,transform .18s}
.r-nav-btn svg{flex-shrink:0}
.r-nav-btn:hover{background:var(--red);border-color:var(--red);color:#fff;transform:translateY(-1px)}
.r-nav-btn.is-primary{background:var(--red);border-color:var(--red);color:#fff}
.r-nav-btn.is-primary:hover{filter:brightness(1.12)}
.r-nav-btn.is-off{opacity:.32;pointer-events:none}
@media(max-width:680px){
  .reader-bar{flex-wrap:wrap;gap:6px}
  .rb-mid{order:3;flex:1 0 100%}
  .ch-sel-wrap{max-width:none}
  .rb-side{flex:1 1 auto}
  .rb-side.right{justify-content:flex-end}
  .r-nav-btn .opt-lbl{display:none}
  .r-nav-btn{padding:9px 11px}
}



/* DISCORD BOX */
.dcb-wrap{max-width:1100px;margin:18px auto 0;padding:0 20px}
.dcb-wrap.dcb-bottom{max-width:100%;margin:18px 0 0;padding:0}
.dcb{display:flex;align-items:center;gap:20px;background:linear-gradient(135deg,rgba(88,101,242,.10),rgba(0,0,0,0) 55%),var(--bg3);border:1px solid var(--red);border-radius:12px;padding:18px 22px}
.dcb-txt{flex:1;min-width:0}
.dcb-kick{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase;color:var(--red);margin-bottom:6px}
.dcb-title{font-size:19px;font-weight:800;color:#fff;line-height:1.3}
.dcb-desc{font-size:14px;color:#9a9a9a;margin-top:6px;line-height:1.6}
.dcb-btn{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;background:var(--red);color:#fff;font-size:14px;font-weight:700;padding:13px 24px;border-radius:8px;white-space:nowrap;transition:filter .18s,transform .18s}
.dcb-btn:hover{filter:brightness(1.12);transform:translateY(-1px)}
@media(max-width:640px){
  .dcb{flex-direction:column;align-items:stretch;gap:14px;padding:16px}
  .dcb-title{font-size:17px}
  .dcb-desc{font-size:13px}
  .dcb-btn{width:100%}
}

/* CHAPTER TAGS */
.ch-tags{background:var(--bg3);border:1px solid var(--border);border-radius:8px;padding:12px 16px;margin:16px 0;font-size:12.5px;color:#8a8a8a;line-height:1.95}
.ch-tags b{color:#ddd;font-weight:700;margin-right:5px}
.pages{background:#000000;padding:8px 0}
.page-img{width:100%;max-width:1200px;margin:0 auto;display:block}
.page-img img{width:100%;display:block}
.no-pages{text-align:center;padding:60px 20px;color:var(--muted)}
.r-bottom{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:20px 0}
.btn{display:inline-flex;align-items:center;gap:6px;padding:9px 20px;border-radius:7px;font-size:13px;font-weight:600;border:none;cursor:pointer;text-decoration:none;transition:opacity .2s}
.btn:hover{opacity:.85}
.btn-red{background:var(--red);color:#fff}
.btn-dk{background:var(--bg4);border:1px solid var(--border);color:#ccc}

/* SHARE BAR */
.share-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:10px 14px;background:var(--bg3);border:1px solid var(--border);border-radius:8px;margin-top:12px}
.share-label{font-size:11px;color:#777;font-weight:600;text-transform:uppercase;letter-spacing:.5px;margin-right:4px;flex-shrink:0}
.s-btn{display:inline-flex;align-items:center;gap:4px;padding:5px 10px;border-radius:5px;font-size:12px;font-weight:600;cursor:pointer;border:none;text-decoration:none;color:#fff;transition:opacity .2s;white-space:nowrap}
.s-btn:hover{opacity:.85}
.s-btn.fb{background:#1877f2}.s-btn.tw{background:#000}.s-btn.wa{background:#25d366}
.s-btn.tg{background:#0088cc}.s-btn.cp{background:var(--bg4);border:1px solid #444;color:#eee}
.s-btn.pin{background:#e60023}.s-btn.nat{background:#2563eb}
.share-bar.is-top{justify-content:center;margin-top:0;background:none;border:none;padding:6px 0 0}
@media(max-width:520px){.share-bar.is-top{gap:5px}.share-bar.is-top .s-btn{padding:6px 9px}}
.s-lbl{font-size:11px;opacity:.85}

/* COMMENTS */
.cmts-section{margin-top:32px;border-top:2px solid var(--border);padding-top:24px}
.cmts-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.cmts-heading h2{font-size:17px;font-weight:700}
.cmt-card{padding:14px 0;border-bottom:1px solid rgba(255,255,255,.06);display:flex;gap:12px}
.cmt-card:last-child{border:none}
.cmt-av{width:36px;height:36px;border-radius:50%;background:var(--red);display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;flex-shrink:0;color:#fff}
.cmt-body{flex:1;min-width:0}
.cmt-name{font-size:13px;font-weight:600;color:#ddd}
.cmt-date{font-size:11px;color:#555;margin-left:8px}
.cmt-txt{font-size:14px;color:#ccc;margin-top:5px;line-height:1.7;word-break:break-word}
.cmt-actions{display:flex;gap:10px;margin-top:8px}
.cmt-action-btn{background:none;border:none;color:#555;font-size:12px;padding:2px 0;transition:color .2s}
.cmt-action-btn:hover{color:var(--red)}
.cmts-empty{text-align:center;padding:40px 20px;color:var(--muted);font-size:14px}
.cmt-msg{padding:10px 14px;border-radius:6px;font-size:13px;margin-bottom:16px}
.cmt-msg.ok{background:#1a3a1a;color:#4caf50;border:1px solid #2a5a2a}
.cmt-msg.error{background:#3a1a1a;color:#f87171;border:1px solid #5a2a2a}
.cmt-msg.pending{background:#2a2a1a;color:#fbbf24;border:1px solid #4a4a2a}
.cmt-editor{min-height:80px;background:var(--bg3);border:1.5px solid var(--border);border-radius:6px;padding:10px;font-size:14px;color:#eee;outline:none;line-height:1.7}
.cmt-editor:focus{border-color:var(--red)}
.cmt-editor[data-placeholder]:empty::before{content:attr(data-placeholder);color:#555;pointer-events:none}
.cmt-toolbar{display:flex;gap:4px;margin-bottom:6px}
.cmt-tbtn{background:var(--bg4);border:1px solid var(--border);color:#aaa;padding:4px 9px;border-radius:4px;font-size:12px}
.cmt-tbtn:hover{background:var(--red);border-color:var(--red);color:#fff}
.cmt-meta-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}
.cmt-name-input{flex:1;min-width:120px;background:var(--bg4);border:1px solid var(--border);color:#eee;padding:7px 10px;border-radius:5px;font-size:13px;outline:none}
.cmt-name-input:focus{border-color:var(--red)}
.cmt-submit-btn{background:var(--red);border:none;color:#fff;padding:8px 20px;border-radius:6px;font-size:13px;font-weight:600}
.cmt-load-more{background:rgba(255,255,255,.06);border:none;color:#b5bac1;border-radius:6px;padding:10px 20px;font-size:13px;width:100%;margin-top:14px}
.spoiler-toggle{display:inline-block;background:#333;color:transparent;border-radius:3px;cursor:pointer;user-select:none;transition:color .2s,background .2s}
.spoiler-toggle:hover,.spoiler-toggle.revealed{background:#1a1a1a;color:#eee}

/* REPORT MODAL */
.report-modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.75);z-index:1000;align-items:center;justify-content:center;padding:20px}
.report-modal-box{background:var(--bg4);border:1px solid var(--border);border-radius:12px;padding:24px;max-width:400px;width:100%}

/* AD */
.ad-label{font-size:10px;color:#444;letter-spacing:2px;margin-bottom:3px;text-align:center}
.ad-empty{background:var(--bg3);border:1px dashed var(--border);border-radius:4px;min-height:50px;display:flex;align-items:center;justify-content:center;color:#444;font-size:12px;width:100%}
.ad-wrap{text-align:center;margin:10px auto 14px;max-width:100%;overflow:hidden}
.ad-wrap ins,.ad-wrap iframe,.ad-wrap>div{max-width:100%!important;display:block!important}
.sticky-ad{position:fixed;bottom:0;left:0;right:0;z-index:150;background:var(--bg2);border-top:1px solid var(--border);text-align:center;padding:8px 0 6px;min-height:60px;box-shadow:0 -4px 12px rgba(0,0,0,.4)}
.sticky-ad-inner{max-width:728px;margin:0 auto;padding:0 30px;overflow:hidden}
.sticky-ad ins,.sticky-ad iframe,.sticky-ad>div{max-width:100%!important;display:inline-block!important;margin:0 auto}
.sticky-close{position:absolute;top:4px;right:8px;background:rgba(0,0,0,.7);border:1px solid var(--border);border-radius:50%;width:22px;height:22px;color:#fff;font-size:12px;cursor:pointer;line-height:1;z-index:10}

/* HOME */
.hero-banner{position:relative;height:360px;overflow:hidden;margin-bottom:0}
.hero-bg{position:absolute;inset:0;background-size:cover;background-position:center top;filter:none;transform:none;opacity:1}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(to bottom,rgba(13,13,13,.1) 0%,rgba(13,13,13,.15) 50%,rgba(13,13,13,.85) 100%)}
/* The manga card sits 140px OVER the hero by design, which is fine for a
   background image and wrong for a slider: the caption, price and button all
   live in that bottom strip. With a slider the hero grows and the overlap is
   dropped, so nothing covers the thing being advertised. */
/* Height is set further down on .hero-banner.hero-has-slider, where it can
   outrank the phone breakpoints. Only the overlap fix belongs here. */
.hero-has-slider ~ .home-wrap .manga-section{margin-top:24px}
.hero-has-slider + .home-wrap{margin-top:12px}
/* Mobile sizing lives with the other .hero-banner.hero-has-slider rules
   further down, where it can outrank the phone breakpoints. */
.home-wrap{max-width:1100px;margin:0 auto;padding:0 20px}
.manga-section{display:flex;gap:24px;margin-top:-140px;position:relative;z-index:10;align-items:flex-start}
.left-col{width:250px;flex-shrink:0}
.cover-box img,.cover-box .no-cover{width:100%;height:340px;object-fit:cover;border-radius:10px 10px 0 0;display:block}
.cover-box .no-cover{background:var(--bg4);display:flex;align-items:center;justify-content:center;color:#444;font-size:13px}
.meta-box{background:var(--bg4);border-radius:0 0 10px 10px;padding:14px 16px;border:1px solid var(--border);border-top:none}
.bookmark-btn{display:flex;align-items:center;justify-content:center;gap:8px;background:var(--red);color:#fff;border:none;border-radius:6px;padding:11px;width:100%;font-size:14px;font-weight:600;margin-bottom:10px;cursor:pointer;transition:all .15s}
.bookmark-btn:hover{opacity:.9;transform:translateY(-1px)}
.followers{font-size:12px;color:#666;text-align:center;margin-bottom:12px}
.star-line{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.stars-big{color:#f59e0b;font-size:22px}
.star-score{font-size:16px;font-weight:600;color:#ddd}
.meta-row{display:flex;justify-content:space-between;padding:8px 0;border-top:1px solid #222;font-size:13px}
.meta-lbl{color:#666}.meta-val{color:#ddd;text-align:right}
.sidebar-ads-desktop{margin-top:16px}
.sidebar-ads-mobile{display:none}
.right-col{flex:1;min-width:0}
.desc-box{background:rgba(22,22,22,.92);border:1px solid var(--border);border-radius:10px;padding:24px;backdrop-filter:blur(8px)}
.desc-box h1{font-size:26px;font-weight:700;color:#fff;margin-bottom:6px;line-height:1.3}
.genre-pills{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.pill{background:transparent;border:1.5px solid #444;border-radius:6px;padding:6px 14px;font-size:13px;color:#ccc}
.synopsis-title{font-size:14px;font-weight:700;color:#eee;margin-bottom:10px}
.synopsis-body{font-size:14px;line-height:1.85;color:#bbb}
/* Clamped by line count, not by cutting the string server-side: the full text
   stays in the HTML for search engines and for anyone with JS off, who then
   simply sees all of it rather than a truncated paragraph with a dead button. */
.synopsis-body.is-clamped{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;
  overflow:hidden;position:relative}
.syn-toggle{background:none;border:none;padding:4px 0 0;margin:0;cursor:pointer;
  color:var(--red);font-size:13px;font-weight:700;font-family:inherit}
.syn-toggle:hover{text-decoration:underline}
@media(max-width:600px){.synopsis-body.is-clamped{-webkit-line-clamp:3}}
.ch-wrap{margin-top:28px}
.ch-cards{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-bottom:4px}
.ch-card{background:var(--red);border-radius:8px;padding:18px;text-align:center;text-decoration:none;display:block;transition:opacity .2s}
.ch-card:hover{opacity:.88}
.ch-card .card-label{font-size:11px;color:rgba(255,255,255,.75);margin-bottom:6px;text-transform:uppercase}
.ch-card .card-num{font-size:17px;font-weight:700;color:#fff}
.ch-search{width:100%;background:var(--bg3);border:1.5px solid var(--border);border-radius:8px;color:#eee;padding:10px 16px;font-size:13px;outline:none;margin:4px 0}
.ch-search:focus{border-color:var(--red)}
/* Hotlinked pages have no stored dimensions (pages_measure only reads local
   files), so they arrive with no width/height attribute.

   They used to get `aspect-ratio:2/3; object-fit:contain`, which forces EVERY
   such page into a portrait box. A credits page or a magazine cover is wide,
   so `contain` letterboxed it — reader background above and below the image,
   on every chapter. The ratio also never released after load, because
   aspect-ratio outranks an image's intrinsic ratio.

   contain-intrinsic-size does the same anti-collapse job properly: it is only
   a placeholder for content that has not been rendered yet, and gives way to
   the real height as soon as it has. */
.page-img img{width:100%;height:auto;display:block}
.page-img{content-visibility:auto;contain-intrinsic-size:auto 1200px}
.ch-list-box{background:var(--bg3);border:1px solid var(--border);border-radius:8px;overflow:hidden;margin-top:4px}
.ch-list-head{display:flex;align-items:center;justify-content:space-between;padding:13px 18px;border-bottom:1px solid var(--border)}
.ch-list-head span{font-size:13px;color:#aaa}
.ch-sort-btn{background:var(--bg2);border:1px solid #333;color:#aaa;padding:5px 12px;border-radius:5px;font-size:12px}
.ch-list-inner{max-height:640px;overflow-y:auto}
.ch-row{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid #1a1a1a;transition:background .15s;text-decoration:none;color:#eee}
.ch-row:hover{background:var(--bg4)}
.ch-row:hover .ch-n{color:var(--red)}
.ch-n{font-size:14px;font-weight:600}
.new-badge{background:var(--red);color:#fff;font-size:10px;padding:2px 6px;border-radius:3px;margin-left:7px;font-weight:700}
.ch-date{font-size:12px;color:#555}
.ch-arr{color:#333;font-size:13px}

/* READ ALSO */
.read-also{margin:32px 0 0}
.read-also-head{padding:12px 18px;margin-bottom:14px;background:linear-gradient(90deg,#5b2fc9 0%,#8b5cf6 60%,rgba(139,92,246,.1) 100%);border-radius:8px}
.read-also-head h3{font-size:17px;font-weight:700;color:#fff;margin:0}
.ra-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.ra-card{background:var(--bg4);border-radius:8px;overflow:hidden;text-decoration:none;display:block;transition:transform .2s,box-shadow .2s}
.ra-card:hover{transform:translateY(-3px);box-shadow:0 6px 20px rgba(0,0,0,.6)}
.ra-cover{position:relative;width:100%;padding-top:140%;overflow:hidden;background:#111}
.ra-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.ra-cover .no-img{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#444;font-size:12px}
.ra-badge{position:absolute;bottom:8px;left:8px;background:#7c3aed;color:#fff;font-size:10px;font-weight:700;padding:3px 9px;border-radius:4px;text-transform:uppercase}
.ra-info{padding:8px 10px 10px}
.ra-title{font-size:13px;font-weight:700;color:#f0f0f0;line-height:1.35;margin-bottom:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ra-chapter{font-size:12px;color:#888;margin-bottom:4px}
.ra-score-row{display:flex;align-items:center;gap:5px}
.ra-stars{color:#f59e0b;font-size:13px}
.ra-score{font-size:13px;font-weight:600;color:#ddd}

/* FOOTER */
footer{background:var(--bg2);border-top:1px solid var(--border);margin-top:50px;padding:22px 20px;text-align:center;font-size:12px;color:#555}
footer a{color:#666;margin:0 8px}
footer a:hover{color:var(--red)}

/* RESPONSIVE */
@media(max-width:900px){
  .hero-banner{height:260px}
  .manga-section{flex-direction:column;margin-top:0;padding-top:16px;gap:16px}
  /* Cover: vertical portrait, centered — like MangaDex/other manga sites */
  .left-col{width:100%;display:flex;flex-direction:column;align-items:center;gap:0}
  .cover-box{width:180px;flex-shrink:0}
  .cover-box img,.cover-box .no-cover{
    width:180px;height:260px;
    object-fit:cover;object-position:center top;
    border-radius:10px;display:block;
    box-shadow:0 8px 32px rgba(0,0,0,.6)
  }
  .meta-box{
    width:100%;border-radius:10px;
    border:1px solid var(--border);
    margin-top:0;padding:16px
  }
  .right-col{width:100%}
  .sidebar-ads-desktop{display:none!important}
  .sidebar-ads-mobile{display:block;margin-top:20px}
  .ra-grid{grid-template-columns:repeat(2,1fr)}
}
/* Tablets and small laptops: keep the full nav, just give the search less
   room — losing navigation at 1000px is far worse than a shorter input. */
@media(max-width:1024px){
  .hdr-inner{gap:12px}
  .hdr-search input{width:130px}
  .hdr-nav a{padding:6px 11px}
}
@media(max-width:880px){
  .hdr-search{display:none}   /* search lives in the menu from here down */
  .hdr-burger{display:flex}
}
@media(max-width:768px){
  .hdr-nav{display:none}
  .hdr-burger{display:flex}
  .logo-tag{display:none}
  .home-wrap{padding:0 14px}
  .manga-section{gap:16px}
  body{padding-bottom:70px}
}
@media(max-width:480px){
  .cover-box{width:160px}
  .cover-box img,.cover-box .no-cover{width:160px;height:230px}
  .meta-box{padding:14px}
  .hero-banner{height:200px}

/* Two classes (0,2,0) so it outranks the plain .hero-banner height rules
   above AND below this point. Written with one class it tied with them and
   lost on order: the phone breakpoints pinned the hero to 200px, the stacked
   slide needs ~376px, and everything past the first strip was clipped. */
.hero-banner.hero-has-slider{overflow:visible}
@media(min-width:641px){.hero-banner.hero-has-slider{height:auto}}
@media(max-width:640px){.hero-banner.hero-has-slider{height:auto}}
}
@media(min-width:700px){.ra-grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:900px){.ra-grid{grid-template-columns:repeat(4,1fr)}}
@media(min-width:1100px){.ra-grid{grid-template-columns:repeat(5,1fr)}}

/* Reader-specific Read Also — max 4 cols to fit narrow reader */
.read-also-reader .ra-grid{grid-template-columns:repeat(2,1fr)}
@media(min-width:600px){.read-also-reader .ra-grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:800px){.read-also-reader .ra-grid{grid-template-columns:repeat(4,1fr)}}
.read-also-reader{margin-bottom:18px}
.read-also-reader .read-also-head{padding:10px 16px}
.read-also-reader .read-also-head h3{font-size:15px}

/* assets/site/header.css */
/* Public navigation: responsive, keyboard accessible and direction-aware. */
.hdr{border-bottom:1px solid var(--border);box-shadow:0 5px 25px #0002;isolation:isolate}
.hdr-inner{max-width:1440px;min-height:80px;height:auto;padding:16px 28px;gap:24px;min-width:0}
.hdr .logo{flex:0 1 260px;min-width:0;max-width:30%;text-decoration:none;align-items:flex-start}
.hdr .logo-name{font-size:23px;line-height:1.25;letter-spacing:-.5px;white-space:normal;overflow-wrap:anywhere}
.hdr .logo-tagline{font-size:10px;line-height:1.5;letter-spacing:1.3px;margin-top:4px;white-space:normal}
.hdr .logo img{max-width:100%;height:auto;max-height:48px;object-fit:contain}
.hdr-nav{margin:0;gap:4px;align-items:center;min-width:0}
.hdr-nav a{padding:11px 14px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;font-weight:600;font-size:13px}
.hdr-nav a.active{background:var(--red);color:#fff}
.hdr-nav a:hover{background:var(--bg4)}
.hdr-search{margin:0;margin-inline-start:auto;border-radius:12px;min-height:44px;max-width:240px}
.hdr-search input{width:170px;min-width:0;padding:12px;font:inherit;font-size:13px}
.hdr-search button,.mob-search button{min-width:44px;min-height:44px;cursor:pointer}
.hdr-burger{min-width:44px;min-height:44px;margin-inline-start:auto;border-radius:10px;flex-shrink:0}
.hdr a:focus-visible,.hdr button:focus-visible,.hdr input:focus-visible{outline:2px solid var(--red);outline-offset:4px}
.mob-menu{max-height:calc(100dvh - 80px);padding:8px 16px 20px;border-bottom:1px solid var(--border)}
.mob-menu a{padding:14px 16px;border-radius:8px;border-bottom:0;min-height:46px;overflow-wrap:anywhere}
.mob-search{margin:8px 0 12px;min-width:0;display:flex}
.mob-search input{min-width:0;width:100%;font-size:16px}
[dir=rtl] .hdr-nav{margin-left:0;margin-right:0}
[dir=rtl] .hdr-search{margin-left:0;margin-right:auto}
[dir=rtl] .hdr-nav.is-scroll{mask-image:none;-webkit-mask-image:none}
[dir=rtl] .logo-tagline{letter-spacing:0}
[dir=rtl] .right-col,[dir=rtl] .desc-box{text-align:start}
@media(max-width:1100px){.hdr-inner{gap:14px;padding:14px 20px}.hdr-nav a{padding:10px}.hdr-search{display:none}.hdr .logo{flex-basis:220px}}
@media(max-width:880px){.hdr-inner{min-height:72px;padding:12px 18px}.hdr-nav{display:none}.hdr-burger{display:flex}.hdr .logo{max-width:calc(100% - 62px);flex-basis:auto}.hdr .logo-name{font-size:21px}.hdr .logo-tagline{font-size:9px}.mob-menu{max-height:calc(100dvh - 72px)}}
@media(min-width:881px){.mob-menu.open{display:none}.hdr-burger{display:none}}
@media(max-width:380px){.hdr-inner{padding:12px;gap:10px}.hdr .logo-name{font-size:19px}.hdr .logo-tagline{letter-spacing:.3px}}
@media(prefers-reduced-motion:reduce){.hdr *{transition:none!important;scroll-behavior:auto!important}}

/* User palette, scoped to the manga header and its nested mobile menu. */
.hdr{background:var(--header-bg);border-color:var(--header-border);color:var(--header-text)}
.hdr .logo-name{color:var(--header-logo)}
.hdr .logo-name em{color:var(--header-accent)}
.hdr .logo-tagline{color:var(--header-tagline)}
.hdr .logo-tag{background:var(--header-active-bg);color:var(--header-active-text)}
.hdr .hdr-nav a,.hdr .mob-menu a{color:var(--header-text)}
.hdr .hdr-nav a.active{background:var(--header-active-bg);color:var(--header-active-text)}
.hdr .hdr-nav a:hover,.hdr .mob-menu a:hover{background:var(--header-hover-bg);color:var(--header-hover-text)}
.hdr .hdr-nav a.hdr-bm,.hdr .hdr-nav a.hdr-bm.active{background:var(--header-bookmark-bg)!important;color:var(--header-bookmark-text)!important}
.hdr .hdr-bm.active svg{fill:currentColor;stroke:currentColor}
.hdr .hdr-search,.hdr .mob-search{background:var(--header-search-bg);border-color:var(--header-border)}
.hdr .hdr-search input,.hdr .mob-search input{background:var(--header-search-bg);color:var(--header-search-text)}
.hdr .hdr-search input::placeholder,.hdr .mob-search input::placeholder{color:var(--header-search-placeholder);opacity:1}
.hdr .hdr-search button,.hdr .mob-search button{background:var(--header-search-button);color:var(--header-search-icon)}
.hdr .hdr-burger span{background:var(--header-text)}
.hdr .mob-menu{background:var(--header-bg);border-color:var(--header-border)}
.hdr #mob-bm-status{color:var(--header-tagline)!important}
.hdr a:focus-visible,.hdr button:focus-visible,.hdr input:focus-visible{outline-color:var(--header-accent)}

/* assets/chapters/list.css */
.chapter-panel{background:#171a1e;border:1px solid #30363e;border-radius:14px;padding:24px;margin-top:12px;color:#eef0f3}
.chapter-panel h2{font-size:27px;line-height:1.2;margin:0 0 8px}.chapter-caption{color:#aeb7c4;font-size:13px;margin:0 0 22px}
.chapter-panel .chapter-toolbar{display:flex;gap:12px;margin:18px 0}.chapter-panel .ch-search{flex:1;min-width:0;margin:0;background:#14171b;border:1px solid #39414b;border-radius:8px;height:46px;padding:12px 16px;color:#f3f4f6;font-size:14px}
.chapter-panel .ch-sort-btn{min-height:46px;background:#14171b;border:1px solid #39414b;color:#e7ebef;padding:10px 16px;border-radius:8px;white-space:nowrap}
.chapter-panel .ch-list-box{border:0;background:none;margin:0;overflow:visible}.chapter-panel .ch-list-inner{max-height:660px;padding:0 3px;overflow:auto}
.chapter-panel .ch-row{display:grid;grid-template-columns:46px minmax(0,1fr) auto 16px;gap:18px;align-items:center;background:#1c2025;border:1px solid #303841;border-radius:9px;padding:16px;margin-bottom:8px;min-height:78px;color:#f3f4f6;text-decoration:none}
.chapter-panel .ch-row:hover{background:#252a31;border-color:#697586}.chapter-panel .chapter-latest{border-inline-start:4px solid #c43a2b}
.chapter-number{display:grid;place-items:center;min-height:42px;background:#292f37;border-radius:7px;font-size:15px;font-weight:700;overflow-wrap:anywhere}.chapter-panel .ch-n{font-size:15px;line-height:1.5;overflow-wrap:anywhere}.chapter-panel .ch-date{font-size:12px;color:#aeb7c4}.chapter-arrow{font-size:24px;color:#acb8c7}.chapter-panel .new-badge{background:#c43a2b;font-size:10px;padding:4px 8px;border-radius:14px;margin-inline-start:8px}
.chapter-resume{display:flex;align-items:center;gap:8px;border:1px solid #69332d;background:#2b1d1c;border-radius:9px;padding:16px;color:#fff}.chapter-resume[hidden]{display:none}.resume-link{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1;min-width:0;color:inherit;text-decoration:none}.resume-link strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.resume-close{flex:none;width:30px;height:30px;display:grid;place-items:center;background:rgba(255,255,255,.06);border:1px solid #69332d;border-radius:50%;color:#f08c7f;cursor:pointer;padding:0;-webkit-appearance:none;appearance:none;transition:background .15s,color .15s,border-color .15s}.resume-close svg{width:13px;height:13px;display:block}.resume-close:hover{background:#ce5747;border-color:#ce5747;color:#fff}.resume-close:focus-visible{outline:2px solid #f08c7f;outline-offset:2px}.chapter-resume small{display:block;color:#f08c7f;font-size:13px;margin-bottom:6px}.chapter-resume strong{font-size:17px}.resume-action{border:1px solid #ce5747;color:#f5998c;padding:12px 16px;border-radius:7px;white-space:nowrap}.chapter-count{border-top:1px solid #303841;margin:16px 0 0;padding-top:16px}.chapter-panel :is(a,button,input):focus-visible{outline:2px solid #f08c7f;outline-offset:2px}
@media(max-width:600px){.chapter-panel{padding:16px}.chapter-panel h2{font-size:24px}.chapter-toolbar{flex-direction:column}.chapter-panel .ch-row{grid-template-columns:42px minmax(0,1fr) 12px;gap:5px 12px;padding:13px;min-height:80px}.chapter-number{grid-row:1/3}.chapter-panel .ch-date{grid-column:2;grid-row:2}.chapter-arrow{grid-column:3;grid-row:1/3}.chapter-panel .ch-n{font-size:14px}.resume-action{padding:10px;font-size:12px}}

/* Chapter number on the first line, title on the second, inside the same cell.
   The badge column, row height and colours are untouched — only the name cell
   stacks, so rows keep the size they have now instead of growing. */
.chapter-panel .ch-n{display:flex;flex-direction:column;gap:2px;min-width:0}
.chapter-panel .ch-n-line{display:flex;align-items:center;gap:8px;font-weight:700;white-space:nowrap}
.chapter-panel .ch-n-sub{color:#9aa3ad;font-weight:400;font-size:13.5px;line-height:1.3;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chapter-panel .ch-row:hover .ch-n-sub{color:#c9d1d9}
/* The badge sat on a line of its own once the cell became a column. */
.chapter-panel .ch-n-line .new-badge{margin-inline-start:0;flex:0 0 auto}
@media(max-width:600px){
  .chapter-panel .ch-n-sub{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
}

/* assets/site/manga-theme.css */
/* Shared charcoal palette taken from the homepage chapter list. */
body.manga-theme{--bg:#14171b;--bg2:#171a1e;--bg3:#171a1e;--bg4:#1c2025;--border:#303841;--text:#eef0f3;--muted:#aeb7c4;background:var(--bg);color:var(--text)}
.manga-theme .desc-box,.manga-theme .meta-box,.manga-theme .faq-box .ch-list-box,.manga-theme .crumb-box,.manga-theme .ch-tags,.manga-theme .share-bar,.manga-theme .reader-bar{background:#171a1e;border-color:#303841}
.manga-theme .pages{background:#171a1e}
.manga-theme .ch-sel,.manga-theme .ch-sel option,.manga-theme .cmt-editor,.manga-theme .cmt-name-input,.manga-theme .cmt-tbtn,.manga-theme .btn-dk{background:#1c2025;border-color:#39414b;color:#eef0f3}
.manga-theme .r-nav-btn:not(.is-primary){background:#1c2025;border-color:#39414b;color:#eef0f3}
.manga-theme .r-nav-btn:hover{background:var(--red);color:#fff}
.manga-theme .meta-row{border-color:#303841}
.manga-theme .meta-lbl,.manga-theme .followers,.manga-theme .rr-date,.manga-theme .cmt-action-btn,.manga-theme .faq-item p,.manga-theme .desc-text{color:#aeb7c4}
.manga-theme .pill{background:#1c2025;border-color:#39414b;color:#eef0f3}
.manga-theme .rr-heading{background:#171a1e;border:1px solid #303841}
.manga-theme .rr-card{background:#1c2025;border-color:#303841}
.manga-theme .rr-card:hover{background:#252a31;border-color:#697586}
.manga-theme .rr-chnum{color:#eef0f3}
.manga-theme footer{background:#171a1e;border-color:#303841;color:#aeb7c4}
.manga-theme footer a{color:#aeb7c4}
.manga-theme footer a:hover{color:#eef0f3}
.manga-theme .cmt-editor:empty:before,.manga-theme input::placeholder{color:#aeb7c4}

/* Homepage slider: match the charcoal chapter cards. */
.manga-theme .hero-banner.hero-has-slider,
.manga-theme .hero-has-slider .hslider{
  --hsl-bg:#171a1e;
  --hsl-title:#ffffff;
  --hsl-price:#22c55e;
  background:#171a1e;
}
@media(max-width:640px){
  .manga-theme .hero-has-slider + .home-wrap{margin-top:0}
  .manga-theme .hero-has-slider ~ .home-wrap .manga-section{margin-top:12px;padding-top:0}
}

/* assets/site/wp.css */
/* WordPress pages, the merch strip and WooCommerce, in the reader's palette. */
.mbt-page{max-width:900px;margin:0 auto;padding:28px 16px 56px}
.mbt-title{font-size:clamp(24px,4vw,32px);line-height:1.2;color:#fff;margin:0 0 18px;font-weight:700}
.mbt-title-sm{font-size:20px;margin:0 0 6px}
.mbt-title-sm a:hover{color:var(--red)}
.mbt-article+.mbt-article{margin-top:28px;padding-top:24px;border-top:1px solid var(--border)}
.mbt-content{color:#cfcfcf;font-size:16px;line-height:1.75;max-width:72ch}
.mbt-content>*+*{margin-top:1em}
.mbt-content h2,.mbt-content h3{color:#fff;line-height:1.3;margin-top:1.6em}
.mbt-content a{color:var(--red);text-decoration:underline;text-underline-offset:3px}
.mbt-content ul,.mbt-content ol{padding-left:1.4em}
.mbt-content img{height:auto;border-radius:8px}
.mbt-btn{display:inline-block;background:var(--red);color:#fff;padding:10px 18px;border-radius:8px;font-weight:600}
.mbt-404 p{margin:0 0 14px;color:#aaa}
.mbt-pager .nav-links{display:flex;gap:8px;margin-top:28px}
.mbt-pager .page-numbers{padding:6px 12px;border:1px solid var(--border);border-radius:6px}
.mbt-pager .current{background:var(--red);border-color:var(--red);color:#fff}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--red);outline-offset:2px}

/* Merch strip (reader + home) */
.mbt-merch{max-width:1100px;margin:28px auto;padding:0 16px}
.mbt-merch-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}
.mbt-merch-head h2{font-size:18px;color:#fff;margin:0}
.mbt-merch-head a{font-size:13px;color:var(--muted)}
.mbt-merch-head a:hover{color:#fff}
.mbt-merch-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.mbt-merch-card{display:flex;flex-direction:column;gap:6px;background:var(--bg3);border:1px solid var(--border);border-radius:10px;padding:8px;transition:border-color .15s}
.mbt-merch-card:hover{border-color:var(--red)}
.mbt-merch-img{aspect-ratio:1;border-radius:6px;overflow:hidden;background:#fff}
.mbt-merch-img img{width:100%;height:100%;object-fit:cover;display:block}
.mbt-merch-name{font-size:13px;color:#ddd;line-height:1.35}
.mbt-merch-price{font-size:14px;font-weight:700;color:#fff}
.mbt-merch-price del{color:var(--muted);font-weight:400;margin-right:4px}
.mbt-merch-reader{max-width:var(--reader-w,800px)}

/* WooCommerce */
.mbt-shop{max-width:1100px}
.woocommerce .woocommerce-breadcrumb{color:var(--muted);font-size:13px}
.woocommerce .woocommerce-breadcrumb a{color:#bbb}
.woocommerce ul.products li.product .woocommerce-loop-product__title,.woocommerce div.product .product_title{color:#fff}
.woocommerce ul.products li.product .price,.woocommerce div.product p.price,.woocommerce div.product span.price{color:#fff}
.woocommerce span.onsale{background:var(--red)}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt,
.wc-block-components-button:not(.is-link){background:var(--red)!important;color:#fff!important;border-radius:8px}
.woocommerce a.button:hover,.woocommerce button.button:hover{filter:brightness(1.1)}
.woocommerce div.product .woocommerce-tabs ul.tabs li{background:var(--bg3);border-color:var(--border)}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:var(--bg);border-bottom-color:var(--bg)}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{color:#ddd}
.woocommerce table.shop_table,.woocommerce-cart table.cart td,.woocommerce table.shop_table th{border-color:var(--border)}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,
.woocommerce .quantity .qty,.select2-container .select2-selection{background:var(--bg3);color:#eee;border:1px solid var(--border);border-radius:6px}
.woocommerce-info,.woocommerce-message,.woocommerce-error{background:var(--bg3);color:#ddd;border-top-color:var(--red)}
.woocommerce ul.products li.product a img{border-radius:8px}
.woocommerce .woocommerce-ordering select,.woocommerce select.orderby{background:var(--bg3);color:#eee;border:1px solid var(--border);border-radius:6px;padding:6px 10px}
.woocommerce .woocommerce-result-count{color:var(--muted)}
.woocommerce ul.products li.product .price del{color:var(--muted)}
.woocommerce ul.products li.product .price ins{text-decoration:none}
.woocommerce div.product form.cart .variations select{background:var(--bg3);color:#eee;border:1px solid var(--border)}
.wc-block-cart,.wc-block-checkout{color:#ddd}
.wc-block-components-text-input input,.wc-block-components-combobox .wc-block-components-combobox-control input{background:var(--bg3)!important;color:#eee!important;border-color:var(--border)!important}
