/*
Theme Name: MangaOps Reader
Theme URI: https://mangaops.com/
Version: 2.0.0
Author: MangaOps
Text Domain: mangaops
*/

/* =========================================================================
   Design tokens. --accent / --ink / --cover are injected inline in <head>
   from the Customizer + featured image (see inc/customizer.php).
   ========================================================================= */
:root {
  --surface: rgba(28, 24, 38, 0.66);
  --surface-2: rgba(44, 38, 60, 0.72);
  --surface-3: #2c2640;
  --surface-solid: #1a1723;
  --line: rgba(255, 255, 255, 0.10);
  --text: #f1eef8;
  --muted: #a49bb8;
  --muted-2: #7a7190;
  --accent-deep: #c9821a;
  --accent-light: #ffe6b0;
  --accent-soft: rgba(240, 169, 43, 0.14);
  --accent-glow: rgba(240, 169, 43, 0.34);
  --hot: #ff4b6e;
  --good: #35d29a;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --rail: 322px;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: ui-serif, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink, #0d0b13);
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent, #f0a92b); color: #1a1200; }
.tnum { font-variant-numeric: tabular-nums; }

.wrap, .container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---- Full-page cover backdrop ---- */
.page-bg { position: fixed; inset: 0; z-index: -3; background: var(--cover) center top / cover no-repeat; filter: blur(40px) saturate(1.15) brightness(0.62); transform: scale(1.18); }
.page-bg-grad { position: fixed; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(13,11,19,0.30) 0%, rgba(13,11,19,0.62) 52%, rgba(13,11,19,0.92) 82%, var(--ink, #0d0b13) 100%); }
.page-bg-tone { position: fixed; inset: 0; z-index: -1; opacity: 0.3; mix-blend-mode: overlay; background-image: radial-gradient(circle, rgba(255,255,255,0.10) 0.7px, transparent 1.3px); background-size: 5px 5px; }
body.reading .page-bg { filter: blur(48px) saturate(0.9) brightness(0.28); }

/* ---- Header (static, scrolls away — not sticky) ---- */
.site-head { position: static; background: rgba(13,11,19,0.5); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; height: 58px; }
.logo { font-weight: 900; font-size: 20px; letter-spacing: 0.14em; text-transform: uppercase; background: linear-gradient(180deg, var(--accent-light), var(--accent, #f0a92b) 62%, var(--accent-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-flex; align-items: center; gap: 7px; }
.logo .glyph { -webkit-text-fill-color: var(--accent, #f0a92b); font-size: 17px; }

/* =========================================================================
   Primary navigation.

   The header is a flex row, so the nav takes margin-left:auto and sits hard
   right of the wordmark. On phones the same markup becomes a drop panel under
   the bar - no duplicate menu in the DOM, which is what usually rots.
   ========================================================================= */
.site-head { position: relative; }
.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list li { position: relative; }
.nav-list a {
  display: block; padding: 8px 13px; border-radius: 9px;
  color: var(--muted); font-size: 14px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-list a:hover { color: var(--text); background: var(--surface-2); }
.nav-list a:focus-visible { outline: 2px solid var(--accent, #f0a92b); outline-offset: 2px; }
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list .current-menu-ancestor > a {
  color: var(--accent, #f0a92b); background: var(--accent-soft);
}
/* One level of submenu. Opened on focus-within as well as hover, so it is
   reachable by keyboard without any JavaScript. */
.nav-list .sub-menu {
  position: absolute; top: calc(100% + 7px); left: 0; z-index: 40;
  min-width: 194px; list-style: none; margin: 0; padding: 6px;
  background: var(--surface-solid); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.42);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-list .menu-item-has-children > a::after {
  content: ''; display: inline-block; width: 5px; height: 5px; margin-left: 7px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg); opacity: .7;
}

.nav-toggle { display: none; }
.nav-toggle .i-close { display: none; }

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-grid; place-items: center; margin-left: auto;
    width: 40px; height: 38px; flex: none;
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
    color: var(--text); cursor: pointer; padding: 0;
  }
  .nav-toggle:hover { border-color: var(--accent, #f0a92b); }
  body.nav-open .nav-toggle .i-open { display: none; }
  body.nav-open .nav-toggle .i-close { display: block; }

  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 45;
    margin: 0; padding: 10px 16px 16px;
    background: var(--surface-solid); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 34px rgba(0,0,0,.4);
    display: none;
  }
  body.nav-open .site-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { padding: 12px 12px; font-size: 15px; }
  /* Submenus flatten into an indented group: a hover-only dropdown is
     unreachable on a touchscreen. */
  .nav-list .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    min-width: 0; margin: 2px 0 6px; padding: 0 0 0 14px;
    background: none; border: none; border-left: 2px solid var(--line);
    border-radius: 0; box-shadow: none;
  }
  .nav-list .menu-item-has-children > a::after { display: none; }
}

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; padding: 13px 18px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14.5px; transition: transform .12s, box-shadow .18s, background .18s, border-color .16s, color .16s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, var(--accent, #f0a92b), var(--accent-deep)); color: #1a1200; box-shadow: 0 10px 26px var(--accent-glow); }
.btn.primary:hover { box-shadow: 0 16px 36px var(--accent-glow); }
.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent, #f0a92b); color: var(--accent, #f0a92b); }
.btn.block { width: 100%; }
.btn .k { font-size: 12px; opacity: .72; font-weight: 600; }

/* ---- Shared series bits ---- */
.series-alt { color: var(--muted); font-size: 13.5px; }
.series-title { font-weight: 900; letter-spacing: -0.01em; line-height: 1.02; background: linear-gradient(180deg, #fff 0%, var(--accent-light) 60%, var(--accent, #f0a92b) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.genres { display: flex; flex-wrap: wrap; gap: 8px; }
.genre { font-size: 12.5px; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; transition: .15s; }
.genre:hover { border-color: var(--accent, #f0a92b); color: var(--accent, #f0a92b); }
.status-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(8,7,13,0.72); backdrop-filter: blur(6px); color: var(--good); padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(53,210,154,0.35); }
.status-flag i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.cover-rating { position: absolute; left: 11px; bottom: 11px; display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 13.5px; background: rgba(8,7,13,0.74); backdrop-filter: blur(6px); color: #fff; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); }
.cover-rating svg { color: var(--accent, #f0a92b); }
.rating-max { color: var(--muted); font-weight: 600; font-size: 0.8em; margin-left: 1px; }
.cover-img { background: var(--cover) center/cover no-repeat; background-color: var(--surface-3); }

.synopsis { font-family: var(--serif); font-size: 16.5px; line-height: 1.75; color: #ddd7ea; }
.synopsis p { margin: 0 0 14px; }
.synopsis p:last-child { margin-bottom: 0; }
.credits { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 20px; }
.credit .k { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.credit .v { font-weight: 700; margin-top: 2px; }
.sec-title { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; margin-bottom: 16px; color: var(--muted); }

/* ---- Chapter browser (shared toolbar) ---- */
.mangaops-chapters { margin-top: 4px; }
.ch-toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.ch-search { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 15px; }
.ch-search svg { flex: none; color: var(--muted-2); }
.ch-search input { border: 0; background: transparent; color: var(--text); outline: none; width: 100%; font-size: 14px; }
.ch-search input::placeholder { color: var(--muted-2); }
.sort-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); padding: 0 15px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; white-space: nowrap; }
.sort-btn:hover { color: var(--text); border-color: var(--accent, #f0a92b); }
.no-hits { color: var(--muted); text-align: center; padding: 26px; }
.badge { font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hot); border: 1px solid rgba(255,75,110,0.4); background: rgba(255,75,110,0.1); padding: 2px 6px; border-radius: 5px; margin-left: 8px; vertical-align: 1px; }

main.site-main { padding: 30px 0 70px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted-2); font-size: 13px; position: relative; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer p { margin: 0; }

/* ---- Generic fallback pages (index.php / page.php / search) ---- */
.site-main .page-title, .site-main .entry-title { color: var(--text); font-size: 26px; margin: 0 0 16px; }
.entry-content { color: var(--text); line-height: 1.7; }
.entry-content a { color: var(--accent, #f0a92b); }
.post-item, .page-content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.search-form { display: flex; gap: 8px; margin-top: 12px; }
.search-form .search-field { flex: 1; background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: var(--radius-sm); padding: 11px 14px; }
.search-form .search-submit { background: var(--accent, #f0a92b); color: #1a1200; border: 0; border-radius: var(--radius-sm); padding: 0 16px; font-weight: 700; }

/* ---- Ads ---- */
.mangaops-ad { margin: 18px auto; text-align: center; max-width: 100%; overflow: hidden; }

/* ---- Mobile bottom nav (app-style; phones only, off the reader) ---- */
.mobile-nav { display: none; }
@media (max-width: 700px) {
  .mobile-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    justify-content: space-around; align-items: center;
    background: rgba(9,8,14,0.94); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }
  .mobile-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted-2); font-size: 10.5px; font-weight: 600; }
  .mobile-nav a.is-active, .mobile-nav a:active { color: var(--accent, #f0a92b); }
  body:not(.reading) .site-footer { margin-bottom: 62px; }
}

/* ---- Utilities ---- */
[hidden] { display: none !important; }
.is-disabled { opacity: .4; pointer-events: none; }

html { scroll-behavior: smooth; }

@media (max-width: 440px) {
  .wrap, .container { padding: 0 15px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================================
   Programmatic-SEO content blocks (about / FAQ / breadcrumbs / related / intro).
   Uses the theme's existing tokens so generated sites stay on-brand.
   ========================================================================== */
/* Width follows the chosen homepage layout: sidebar/hero fill .wrap (--maxw),
   poster matches its narrower .s3-wrap — so the FAQ never sits narrower than
   the content above it. .wrap already supplies the horizontal padding. */
.series-about { margin: 40px auto 8px; }
.home-poster .series-about { max-width: 900px; margin-left: auto; margin-right: auto; }
.sc-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.sc-h { font-family: var(--serif); font-size: 22px; margin: 0 0 14px; color: var(--text); }
.sc-lead { color: var(--text); line-height: 1.7; margin: 0 0 14px; }
.sc-lead .sc-status, .sc-lead .sc-count { color: var(--accent-light); font-weight: 600; }
.sc-synopsis { color: var(--muted); line-height: 1.75; margin: 0 0 18px; }
.sc-synopsis p { margin: 0 0 12px; }
.sc-genres-wrap { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
.sc-genres-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sc-genres { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.sc-genre { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-light); border: 1px solid var(--line); font-size: 13px; text-decoration: none; }
a.sc-genre:hover { border-color: var(--accent-glow); }
.sc-info { width: 100%; border-collapse: collapse; margin: 4px 0 20px; font-size: 14.5px; }
.sc-info th, .sc-info td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sc-info th { color: var(--muted); font-weight: 600; width: 190px; }
.sc-info td { color: var(--text); }
.sc-faq { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 8px; }
.sc-faq-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.sc-faq-q { font-size: 16px; margin: 0 0 6px; color: var(--text); }
.sc-faq-a { margin: 0; color: var(--muted); line-height: 1.7; }

/* Breadcrumbs (chapter + archive) */
.breadcrumbs { max-width: var(--maxw); margin: 10px auto; padding: 0 20px; font-size: 13px; color: var(--muted); text-align: center; }
.breadcrumbs .crumb { color: var(--accent-light); text-decoration: none; }
.breadcrumbs .crumb:hover { text-decoration: underline; }
.breadcrumbs .crumb-sep { margin: 0 8px; opacity: .5; }
.breadcrumbs [aria-current] { color: var(--text); }

/* Chapter unique text */
.sc-chapter-intro { max-width: 820px; margin: 6px auto 14px; padding: 0 20px; color: var(--muted); line-height: 1.7; font-size: 14.5px; text-align: center; }
.sc-chapter-intro strong { color: var(--text); }
.sc-chapter-footer { max-width: 820px; margin: 18px auto; padding: 18px 20px 6px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); text-align: center; }
.sc-chapter-footer .scf-line { margin: 0 0 6px; }
.sc-chapter-footer .scf-cta { margin: 0; }
.sc-chapter-footer a { color: var(--accent-light); text-decoration: none; font-weight: 600; }
.sc-chapter-footer a:hover { text-decoration: underline; }

/* Related chapters (internal linking) */
.related-chapters { max-width: 820px; margin: 22px auto; padding: 0 20px; }
.related-chapters .rc-h { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.rc-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; padding: 0; }
.rc-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-size: 13.5px; transition: border-color .15s; }
.rc-item:hover { border-color: var(--accent-glow); }
.rc-item .rc-num { font-weight: 700; color: var(--accent-light); }
.rc-item .rc-tag { font-size: 11px; color: var(--muted); margin-left: auto; }
.rc-item .rc-date { font-size: 11px; color: var(--muted); }

/* In-content homepage deep links */
.chapter-deeplinks { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.chapter-deeplinks a { padding: 8px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid var(--line); color: var(--accent-light); text-decoration: none; font-size: 14px; }
.chapter-deeplinks a:hover { border-color: var(--accent-glow); }

/* =========================================================================
   Novel chapter list (single-novel sites).

   Novels force the ROW layout no matter which homepage style is active,
   because a prose chapter has no art for a card or a chip. But the row SHELL
   - .ch-list and .ch-row's surface, border, radius and padding - is only
   defined in home-sidebar.css. On a hero or poster site those rows therefore
   arrived with no container at all: flush, borderless, four words on a hairline.

   So the novel list defines everything it needs HERE, in the always-loaded
   sheet, and scopes it to .is-novel. The explicit background/border resets
   below matter on sidebar sites, where the generic .ch-row would otherwise
   add a second box around every row.
   ========================================================================= */
.mangaops-chapters.is-novel .ch-list {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.mangaops-chapters.is-novel .ch-row--text {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 18px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  transform: none;
  color: var(--text);
  transition: background .13s;
}
.mangaops-chapters.is-novel .ch-row--text:last-child { border-bottom: none; }
.mangaops-chapters.is-novel a.ch-row--text:hover {
  background: var(--surface-2);
  border-color: var(--line);
  transform: none;
}
.mangaops-chapters.is-novel .ch-row--text .ch-n {
  grid-column: 1;
  font-variant-numeric: tabular-nums; color: var(--muted-2);
  font-size: 12.5px; font-weight: 700; min-width: 52px;
}
.mangaops-chapters.is-novel .ch-row--text .ch-main { grid-column: 2; min-width: 0; }
.mangaops-chapters.is-novel .ch-row--text .num {
  font-size: 14px; font-weight: 550; display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Each row is its own grid, so an `auto` column is only as wide as THAT row's
   own text - "62 words" and "1,911 words" then start at different x positions
   and the column reads as ragged. A min-width plus right alignment gives the
   whole list one edge without needing a shared grid. */
.mangaops-chapters.is-novel .ch-row--text .ch-words {
  grid-column: 3;
  color: var(--muted-2); font-size: 12px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 86px; text-align: right;
}
/* Pinned to the last column explicitly: the "next chapter" placeholder has no
   word count, and auto-placement would slide its date into column 3 - one row
   out of alignment with every real chapter above it. */
.mangaops-chapters.is-novel .ch-row--text .date {
  grid-column: 4;
  color: var(--muted-2); font-size: 12px; white-space: nowrap;
  min-width: 74px; text-align: right;
}
.mangaops-chapters.is-novel .ch-row--text.upcoming {
  opacity: .62; border-style: solid;
}
.mangaops-chapters.is-novel .ch-row--text.upcoming .num small {
  color: var(--accent, #f0a92b); font-weight: 700; font-size: 11px; margin-left: 7px;
}
.mangaops-chapters.is-novel .ch-row--text.upcoming .date { color: var(--accent, #f0a92b); }

/* =========================================================================
   Boxed chapter list.

   A 3,000-chapter series made the home page about 140,000px tall. Every
   chapter still ships in the page - the search box reaches all of them and
   every one is a crawlable link - the LIST is what gets a height.

   480px is nine rows, which is what was approved. min() with 62vh keeps it
   from swallowing a short phone screen.

   Two things this rule has to get right:

   1. `overflow: hidden auto`, not `overflow-y: auto`. The .is-novel panel rule
      above sets `overflow: hidden` to clip rows to its rounded corners, at the
      same specificity as this one. A bare overflow-y lost to it and the box
      clipped instead of scrolling. Keeping x hidden preserves the clipping.

   2. This block must stay BELOW that panel rule. Equal specificity means
      source order decides the winner.
   ========================================================================= */
.mangaops-chapters.is-boxed .ch-list,
.mangaops-chapters.is-boxed .ch-grid,
.mangaops-chapters.is-boxed .ch-chips {
  max-height: min(480px, 62vh);
  overflow: hidden auto;
  /* Fades the last row so the list reads as "more below" rather than "cut off". */
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 34px), transparent);
          mask-image: linear-gradient(180deg, #000 calc(100% - 34px), transparent);
}
/* At the bottom there is nothing more to hint at, so the fade goes. */
.mangaops-chapters.is-boxed .ch-list.at-end,
.mangaops-chapters.is-boxed .ch-grid.at-end,
.mangaops-chapters.is-boxed .ch-chips.at-end {
  -webkit-mask-image: none; mask-image: none;
}
.mangaops-chapters.is-boxed .ch-list::-webkit-scrollbar,
.mangaops-chapters.is-boxed .ch-grid::-webkit-scrollbar,
.mangaops-chapters.is-boxed .ch-chips::-webkit-scrollbar { width: 10px; }
.mangaops-chapters.is-boxed .ch-list::-webkit-scrollbar-track,
.mangaops-chapters.is-boxed .ch-grid::-webkit-scrollbar-track,
.mangaops-chapters.is-boxed .ch-chips::-webkit-scrollbar-track { background: transparent; }
.mangaops-chapters.is-boxed .ch-list::-webkit-scrollbar-thumb,
.mangaops-chapters.is-boxed .ch-grid::-webkit-scrollbar-thumb,
.mangaops-chapters.is-boxed .ch-chips::-webkit-scrollbar-thumb {
  background: var(--line); border-radius: 99px;
  border: 2px solid transparent; background-clip: padding-box;
}
.mangaops-chapters.is-boxed .ch-list:hover::-webkit-scrollbar-thumb,
.mangaops-chapters.is-boxed .ch-grid:hover::-webkit-scrollbar-thumb,
.mangaops-chapters.is-boxed .ch-chips:hover::-webkit-scrollbar-thumb {
  background: var(--accent, #f0a92b); background-clip: padding-box;
}

@media (max-width: 640px) {
  /* Two lines: title on top, the meta pair beneath it, still one row. */
  .mangaops-chapters.is-novel .ch-row--text {
    grid-template-columns: auto 1fr; gap: 3px 12px; padding: 11px 14px;
  }
  .mangaops-chapters.is-novel .ch-row--text .ch-words,
  .mangaops-chapters.is-novel .ch-row--text .date {
    grid-column: 2; grid-row: 2; font-size: 11.5px; min-width: 0;
  }
  .mangaops-chapters.is-novel .ch-row--text .ch-words { text-align: left; }
  .mangaops-chapters.is-novel .ch-row--text .date { justify-self: end; }
}
