/* Layout refinement 1.1 — presentation only; Original mode is untouched. */
.as-layout {
  --as-page: #f4f5f6; --as-surface: #fff; --as-text: #333;
  --as-muted: #777; --as-border: #e5e5e5; --as-accent: #00b9df;
  --as-radius: 6px;
  background: var(--as-page); color: var(--as-text);
}
.as-layout.lightmode, .as-layout.darkmode { background: var(--as-page); color: var(--as-text); }
.as-layout a { color: inherit; }
.as-layout .th { position: relative; z-index: 20; height: auto; padding: 0; }
.as-layout .mngentwo .centernav { position: relative; margin: 0 auto; box-sizing: border-box; }
.as-layout .mngentwo .centernav .mainheader { float: none; width: auto; }
.as-layout .mngentwo .centernav .logos { width: auto; margin: 0; line-height: 1; }
.as-layout .mngentwo .centernav .logos img { display: block; max-width: 160px; max-height: 46px; width: auto; height: auto; object-fit: contain; }
.as-layout .mngentwo .centernav .searchx #form { position: relative; margin: 0; }
.as-layout .mngentwo .centernav .searchx #form #s { box-sizing: border-box; margin: 0; font: inherit; padding: 0 40px 0 14px; }
.as-layout .mngentwo .centernav .searchx #form #submitsearch { top: 0; right: 0; bottom: 0; height: 100%; width: 40px; padding: 0; line-height: normal; color: inherit; font-size: 15px; }
.as-layout #menutwo .inmenu { min-width: 210px; z-index: 30; }
.as-layout #menutwo .inmenu > div { background: var(--as-surface); }
.as-layout #menutwo .inmenu > div > div { background: var(--as-surface); }
.as-layout #menutwo .inmenu > ul { box-shadow: 0 8px 25px #0003; }
.as-layout #menutwo .inmenu > ul > li > a { color: var(--as-text); }
.as-layout #menutwo .inmenu > ul > li > a:hover { color: var(--as-accent); }
.as-layout #content { max-width: 1160px !important; width: 100%; margin: 20px auto 0; }
.as-layout #content > .wrapper { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; margin: 0 auto; padding: 0 18px; max-width: 1160px; box-sizing: border-box; }
.as-layout .postbody { min-width: 0; float: none; width: auto; flex: 1 1 0; }
.as-layout #sidebar { min-width: 0; float: none; width: 270px; flex: 0 0 270px; }
.as-layout #sidebar .section { margin: 0 0 18px !important; }
.as-layout .bixbox { border: 1px solid var(--as-border); border-radius: var(--as-radius); box-shadow: none; background: var(--as-surface); color: var(--as-text); }
.as-layout .releases { border-color: var(--as-border); }
.as-layout .listupd { overflow: hidden; }
.as-layout .bs .bsx { position: relative; margin: 0; }
.as-layout .bs .bsx > a { display: block; }
.as-layout .bs .bsx .limit { overflow: hidden; position: relative; isolation: isolate; }
.as-layout .bs .bsx .limit img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
/* The badges belong to .limit, NEVER to the title or the whole article.
   Explicitly reset style-3/style-8 and legacy float/percentage offsets. */
.as-layout .bs .bsx .limit .bt,
.as-layout .stylesix .bsx .thumb .bt,
.as-layout .seventh .main-seven .limit .bt {
  position: absolute; inset: auto 7px 7px; z-index: 3;
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 4px;
  width: auto; height: auto; min-height: 0; padding: 0; margin: 0;
  background: none; overflow: visible; transform: none; line-height: normal;
}
.as-layout .bs .bsx .limit .bt span.epx,
.as-layout .bs .bsx .limit .bt span.sb,
.as-layout .stylesix .bsx .thumb .bt .epx,
.as-layout .seventh .main-seven .limit .bt span {
  position: static; display: block; float: none; flex: 0 1 auto;
  width: auto; max-width: 100%; margin: 0; padding: 1px 6px;
  border: 0; border-radius: 4px; font-size: 11px; font-weight: 600; line-height: 18px;
  white-space: nowrap; text-overflow: ellipsis; overflow: hidden;
  color: #fff; background: #252525e8; text-shadow: none; transform: none;
}
.as-layout .bs .bsx .limit .bt span.sb { margin-left: auto; flex-shrink: 0; }
.as-layout .bs .bsx .limit .bt span:empty { display: none; }
.as-layout .bs .bsx .tt { position: static; height: auto; min-height: 32px; margin: 7px 0 0; padding: 0; font-size: 13px; font-weight: 500; line-height: 16px; text-align: left; overflow: hidden; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--as-text); }
/* h2 is existing SEO metadata; do not turn it into a second visible title. */
.as-layout .bs .bsx .tt h2 { height: 0; margin: 0; padding: 0; font-size: .1px; overflow: hidden; }
.as-layout .bs .bsx .limit .ply { z-index: 2; background: #0004; }
.as-layout .bs .bsx .limit .typez { top: 6px; right: 6px; z-index: 3; font-size: 10px; padding: 2px 5px; border-radius: 3px; line-height: 15px; }
.as-layout .stylesix .bsx .thumb,
.as-layout .stylefiv .bsx .thumb,
.as-layout .stylenine .bsx .thumb { position: relative; }
.as-layout .stylesix .bsx .thumb img,
.as-layout .stylefiv .bsx .thumb img,
.as-layout .stylenine .bsx .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.as-layout .bbnofrm, .as-layout .bbnofrm .bixbox { border-color: var(--as-border); }
.as-layout #sidebar .section > div:nth-child(2),
.as-layout #sidebar .section > ul,
.as-layout #sidebar .section > #wpop-items,
.as-layout #sidebar .section .ongoingseries,
.as-layout .bixbox.bbnfrm { background: var(--as-surface) !important; color: var(--as-text); box-shadow: none; }
.as-layout #sidebar .section .ongoingseries ul li a { color: var(--as-text); }
.as-layout .serieslist ul li { border-color: var(--as-border); }
.as-layout .serieslist ul li .leftseries h2 a { color: var(--as-text); }
.as-layout .pagination a, .as-layout .hpage a { border-radius: 4px; }
.as-layout #footer { margin-top: 36px; }
.as-layout #footer .footercopyright { box-sizing: border-box; }
.as-layout #content > .wrapper > .announ { flex: 0 0 100%; order: -10; margin-bottom: 0; box-sizing: border-box; }
.as-layout #content > .wrapper > .clear { flex: 0 0 100%; height: 0; order: 10; }
.as-layout #content > .wrapper > :not(.postbody):not(#sidebar):not(.announ):not(.clear) { width: 100%; }
.as-layout a:focus-visible, .as-layout button:focus-visible, .as-layout input:focus-visible { outline: 2px solid var(--as-accent); outline-offset: 3px; }
/* Keep original watch-page expansion geometry. */
.as-layout-watch #content > .wrapper { display: block; }
.as-layout-watch .postbody { float: left; width: 70%; }
.as-layout-watch #sidebar { float: right; width: 30%; padding-left: 24px; box-sizing: border-box; }
@media (max-width: 800px) {
  .as-layout #content > .wrapper { display: block; padding: 0 12px; }
  .as-layout .postbody, .as-layout #sidebar { width: 100%; max-width: none; }
  .as-layout #sidebar { margin-top: 24px; }
  .as-layout-watch .postbody, .as-layout-watch #sidebar { float: none; width: 100%; padding-left: 0; }
}
@media (max-width: 680px) {
  .as-layout .mngentwo .centernav .searchdesk { display: none; }
  .as-layout .mngentwo .centernav .twoscmob { display: block; float: none; margin: 0; color: #eee; cursor: pointer; }
  .as-layout .mngentwo .centernav .searchx.searchmobi { display: block; position: absolute; inset: 100% 0 auto; width: 100%; max-width: none; margin: 0; padding: 10px 12px; box-sizing: border-box; background: var(--as-surface); color: var(--as-text); box-shadow: 0 7px 15px #0003; z-index: 31; }
  .as-layout .mngentwo .centernav .searchx.searchmobi #form { margin: 0; }
  .as-layout .mngentwo .centernav .searchx.searchmobi #form #s { background: var(--as-surface); color: var(--as-text); border: 1px solid var(--as-border); }
}
@media (max-width: 480px) {
  .as-layout #content { margin-top: 12px; }
  .as-layout #content > .wrapper { padding: 0 10px; }
  .as-layout .bs .bsx .limit .bt { left: 5px; right: 5px; bottom: 5px; gap: 3px; }
  .as-layout .bs .bsx .limit .bt span.epx,
  .as-layout .bs .bsx .limit .bt span.sb { padding: 1px 5px; font-size: 10px; line-height: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .as-layout .bs .bsx .limit img, .as-layout .bs .bsx .limit .ply { transition: none; }
}

/* Homogeneous poster collections must align by rows, not legacy float heights. */
.as-layout .postbody .listupd .excstf:has(> .bs):not(:has(> :not(.bs))) { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 10px; }
.as-layout .postbody .listupd .excstf:has(> .bs):not(:has(> :not(.bs))) > .bs { float: none; width: auto; padding: 0; margin: 0; min-width: 0; }
.as-layout .postbody .listupd .excstf:has(> .bs):not(:has(> :not(.bs))) { margin: 0 5px; }
.as-layout .postbody .listupd .excstf:has(> .stylesix):not(:has(> :not(.stylesix))),
.as-layout .postbody .listupd .excstf:has(> .stylefiv):not(:has(> :not(.stylefiv))),
.as-layout .postbody .listupd .excstf:has(> .stylenine):not(:has(> :not(.stylenine))) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.as-layout .postbody .listupd .excstf > .stylesix,
.as-layout .postbody .listupd .excstf > .stylefiv,
.as-layout .postbody .listupd .excstf > .stylenine { min-width: 0; }
.as-layout .stylesix .bsx .upscore { background: var(--as-surface); color: var(--as-text); border-color: var(--as-border); }
.as-layout .stylesix .bsx .upscore .scr { color: var(--as-accent); }
.as-layout .hpage a { background: var(--as-accent); color: #fff; border-radius: 4px; }
.as-layout #footer, .as-layout #footer .footermenu { box-shadow: none; border-radius: 0; }
.as-layout #footer .footermenu { background: transparent !important; }
@media (max-width: 1000px) {
  .as-layout .postbody .listupd .excstf:has(> .bs):not(:has(> :not(.bs))) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .as-layout .postbody .listupd .excstf:has(> .bs):not(:has(> :not(.bs))) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-layout .postbody .listupd .excstf:has(> .stylesix):not(:has(> :not(.stylesix))),
  .as-layout .postbody .listupd .excstf:has(> .stylefiv):not(:has(> :not(.stylefiv))),
  .as-layout .postbody .listupd .excstf:has(> .stylenine):not(:has(> :not(.stylenine))) { grid-template-columns: minmax(0, 1fr); }
}

.as-layout .postbody .listupd .excstf:has(> .stylefiv):not(:has(> :not(.stylefiv))) > .stylefiv,
.as-layout .postbody .listupd .excstf:has(> .stylesix):not(:has(> :not(.stylesix))) > .stylesix,
.as-layout .postbody .listupd .excstf:has(> .stylenine):not(:has(> :not(.stylenine))) > .stylenine { float: none; width: auto; max-width: 100%; }
.as-layout .quickfilter .filters .filter button { background: var(--as-surface) !important; color: var(--as-text); box-shadow: none; font-family: inherit; }
.as-layout #singlepisode .headlist { background: var(--as-surface) !important; color: var(--as-text); box-shadow: none; }

/* Legacy height:18px clipped the caption once padding was refined. */
.as-layout .bixbox .releases .vl { height: auto; min-height: 24px; line-height: 20px; box-sizing: border-box; margin: 0; white-space: nowrap; align-self: center; }

/* Style 8 owns a separate .egghead episode row: keep Sub above it. */
.as-layout .postbody .listupd .bs.styleegg .bsx .limit .bt { inset: 7px 7px auto; }

