/* /movies /music /audiobooks and their record pages (_app/media.php); reuses .find/.rail/.res-bar/.results/.pager from app.css */
.mediapage{width:100%}   /* full width, like /games (the finder) */
.mtabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;margin:0 0 10px}
.mtabs a{flex:none;text-decoration:none;border:1px solid var(--line);background:var(--raised);color:var(--fg);padding:6px 12px;border-radius:6px}
.mtabs a[aria-current="page"]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.msearch{display:flex;gap:6px;margin:0 0 12px;max-width:640px}
.msearch input{flex:1;min-width:0;font:inherit;padding:7px 10px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--fg)}
.msearch button{font:inherit;padding:7px 14px;border:1px solid var(--accent);background:var(--accent);color:var(--on-accent);border-radius:6px;cursor:pointer}
.chip.off{opacity:.5;cursor:default}
a.chip{text-decoration:none}
.mnote{margin:0 0 12px;font-size:13px;color:var(--muted)}
/* day over day */
.mdod{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mdod ul{margin:0 0 6px;padding-left:18px}
.mdod li{margin:2px 0;overflow-wrap:anywhere}
/* compact title lists (media_mini): small cover, title, one meta line */
.mdod ul.mis{padding:0;list-style:none}
.mi{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:center;margin:0;padding:5px 0;border-top:1px solid var(--line)}
.mi:first-child{border-top:0}
.mi .mt{width:34px;height:46px;border-radius:3px}.mi .mt b{font-size:15px}.mi .mt i{display:none}
.mi .mt-music{height:34px;margin:0}
.mi-n{font-weight:600;line-height:1.25;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.mi-m{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
.mi-at{color:var(--c-shelf);font-weight:600}
.mdod h3 .n{font:600 12px var(--mono);color:var(--accent);margin-left:4px}
.mdod-n{margin:6px 0 14px}
/* ?preview=wanted: a third box, and the /<section>/show/wanted list (media_mini rows, two columns on wide screens) */
.mdod.mdod3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:1000px){.mdod.mdod3{grid-template-columns:1fr 1fr}}
@media (max-width:700px){.mdod,.mdod.mdod3{grid-template-columns:minmax(0,1fr)}}
.mwant-f{display:flex;gap:6px;margin:0 0 8px}
.mwant-f select{font:inherit;max-width:100%;min-width:0;padding:6px 8px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--fg)}
.mwant .chips{margin:0 0 8px}
ul.mwant-l{list-style:none;padding:0;margin:0;columns:2 420px;column-gap:24px}
.mwant-l .mi{break-inside:avoid;border-top:0;border-bottom:1px solid var(--line)}
.mwant-n{margin:10px 0 0}
/* result rows */
.mr{display:grid;grid-template-columns:44px minmax(0,1.7fr) minmax(0,1.3fr);gap:12px;align-items:start;padding:10px 12px;border-top:1px solid var(--line)}
.mr:first-child{border-top:0}
.mr:hover{background:var(--raised)}
.mr .t{font-weight:600;line-height:1.25;overflow-wrap:anywhere}
.mr .yr{font-weight:400;color:var(--muted);font-size:12px}
.mr .sub,.mr-a .sub{font-size:12px;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}
.mr-a b{font-weight:600}
.ok{color:var(--c-shelf)} .wait{color:var(--c-out)} .no{color:var(--c-unav)}
.back{color:var(--c-shelf);font-weight:600}
/* text tile in place of a cover */
.mt{display:flex;flex-direction:column;align-items:center;justify-content:center;width:44px;height:58px;border-radius:4px;border:1px solid var(--line);
    background:linear-gradient(160deg,var(--accent-soft),var(--raised));color:var(--accent);line-height:1;user-select:none}
.mt b{font:700 20px var(--sans)}
.mt i{font:600 9px var(--mono);font-style:normal;letter-spacing:.06em;margin-top:5px;color:var(--muted)}
.mt-music{border-radius:50%/40%;height:44px;margin-top:7px}
.mt.big{width:96px;height:128px}.mt.big b{font-size:40px}.mt.big i{font-size:12px}
.mt-music.big{height:96px}
@media (max-width:700px){
  .mr{grid-template-columns:44px minmax(0,1fr);gap:4px 10px;padding:10px}
  .mr .mt{grid-row:span 2}
  .mr-a{grid-column:2}
  .mr .t{font-size:15px}
  .msearch input,.msearch button,.mtabs a{min-height:44px;font-size:16px}
  .mtabs a{display:inline-flex;align-items:center}
}
/* record page */
.mrec{max-width:none}
.mback{margin:0 0 10px}
.mrec-h{display:flex;gap:16px;align-items:flex-start;margin-bottom:12px}
.mrec-h h1,.mrec-h h2{margin:0 0 4px;font-size:22px;line-height:1.2;overflow-wrap:anywhere}
.mrec-h>div{min-width:0}
.mreq{display:inline-block;margin-top:6px;text-decoration:none;font-weight:600;padding:8px 14px;border-radius:6px;background:var(--accent);color:var(--on-accent)}
.mfmt{margin-bottom:12px}
.mfmt h3 .back{text-transform:none;letter-spacing:0;font-size:12px;margin-left:6px}
.med{margin:0 0 6px;padding-left:18px;font-size:13px}
.mlibs{width:100%;border-collapse:collapse;margin:6px 0;font-size:13px}
.mlibs th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:600;padding:4px 6px;border-bottom:1px solid var(--line)}
.mlibs td{padding:6px;border-bottom:1px solid var(--line);vertical-align:top}
.mlibs td.ok,.mlibs td.wait{font-weight:600;white-space:nowrap}
.mids{font-family:var(--mono);font-size:11px;overflow-wrap:anywhere}
@media (max-width:600px){.mrec-h{gap:12px}.mt.big{width:72px;height:96px}.mt.big b{font-size:30px}.mrec-h h1,.mrec-h h2{font-size:19px}.mreq{min-height:44px;display:inline-flex;align-items:center}}
/* the staged-changes bar (.mstage) and the active-filter pills (.fpills): app.css, shared with the games finder */
/* genres */
.mr .mg{font-size:11.5px;color:var(--muted)}
.mgen{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.mgen .chip{font-size:11.5px;padding:2px 8px}
/* covers over the text tile (cover.php fetches each once; a missing one removes the img and the tile shows) */
.mt{position:relative;overflow:hidden}
.mt img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:var(--raised)}
.mt-music img{object-fit:cover}
/* Amazon-derived bits: present, but quieter than the catalog's */
.amz{font-size:10.5px;font-weight:400;color:var(--muted);text-transform:none;letter-spacing:0;border:1px dashed var(--line);border-radius:3px;padding:0 5px;margin-left:6px;vertical-align:middle}
.mcast-r{margin:4px 0;font-size:13px;line-height:1.5}
.mcast-r>.meta:first-child{display:inline-block;min-width:70px}
/* the parsed search query under the box */
.mq{margin:-4px 0 12px;align-items:center}
.mq .hint{margin-left:4px}
/* ratings */
.tag.mrt{font-weight:700;color:var(--fg)}
.mrating{margin-top:6px;font-size:13px}
.mrt-big{display:inline-block;font-weight:700;border:1.5px solid var(--fg);color:var(--fg);border-radius:3px;padding:1px 6px;text-decoration:none;font-size:12px}
/* TMDB: lookup boxes in the rail, the record-page block and the attribution */
.rail .mtext{font:inherit;padding:7px 8px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--fg);width:100%}
.mov{margin:4px 0 8px;font-size:13.5px;line-height:1.5}
.mlinks a{margin-right:12px;font-size:13px}
.mtmdb-credit{display:flex;align-items:center;gap:10px;margin:18px 0 0;font-size:11.5px;color:var(--muted)}
.mtmdb-credit img{width:56px;height:24px;flex:none}
@media (max-width:700px){.rail .mtext{min-height:44px;font-size:16px}}
/* titles with no usable copy: found by search only, listed last */
.mnone-h{font-size:14px;margin:18px 0 4px}
.mr-none{opacity:.75}
.notice.mnone{border-color:var(--c-over)}
.notice.mheld{border-color:var(--c-held,var(--accent))}
/* per-copy statuses (media_items.py) */
.mcopies{margin:6px 0}
.mcopies summary{cursor:pointer;font-size:13px;font-weight:600}
.mcall{font-family:var(--mono);font-size:11px}
/* landing page rows (/<section>/home): sideways-scrolling cover cards; arrows on wide screens (media.js) */
.mland{display:flex;flex-direction:column;gap:18px;margin-top:4px}
.mrow-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 0 6px}
.mrow-h h2{margin:0;font-size:17px}
.mrow-all{font-size:13px;white-space:nowrap}
.mrow-w{position:relative}
.mrow-track{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0 2px;padding:2px 2px 8px;scrollbar-width:thin;overscroll-behavior-x:contain}
.mrow-track:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.mcard{flex:0 0 132px;scroll-snap-align:start;display:flex;flex-direction:column;gap:5px;min-width:0;color:var(--fg)}
.mcard-a{display:flex;flex-direction:column;gap:4px;text-decoration:none;color:var(--fg);min-width:0}
.mcard-a:hover .mcard-t{text-decoration:underline}
.mcard-f{display:flex;flex-wrap:wrap;align-items:center;gap:2px 3px;white-space:normal}
.mcard-f .tag{font-size:9.5px;padding:0 3px;margin:0;line-height:1.35}
.mt.card{width:132px;height:188px;border-radius:6px}
.mt.card b{font-size:42px}.mt.card i{font-size:12px}
.mt-music.card{height:132px;border-radius:50%/50%}
.mcard-t{font-size:13px;font-weight:600;line-height:1.25;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.mcard-s{font-size:11.5px;color:var(--muted)}.mcard-s.ok{color:var(--c-shelf)}
.mcard-m{font-size:11.5px;color:var(--muted);line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:-2px}
.mrow-btn{position:absolute;top:70px;z-index:2;width:36px;height:52px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--fg);font-size:26px;line-height:1;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.mrow-btn.prev{left:-6px}.mrow-btn.next{right:-6px}
@media (max-width:700px){.mrow-btn{display:none!important}.mcard{flex-basis:108px}.mt.card{width:108px;height:154px}.mt-music.card{height:108px}.mrow-track{gap:10px}}
/* result-row tags (default): up to 5 filter chips, the rest behind an inline "+N more"; three-state like the rail */
.mrich{display:flex;flex-wrap:wrap;gap:8px 4px;margin-top:7px;align-items:center}   /* row gap: room for an excluded chip's "not" tab */
.mrich-more{row-gap:8px}
.chip.mc .n{font-size:10.5px;margin-left:3px;opacity:.75}
.chip.mc-rt{font-weight:700}
.chip.mc-p{border-style:dashed}
.chip.mc-star{color:var(--c-out)}
.mrich-more{display:inline-flex;flex-wrap:wrap;gap:4px;align-items:center}
.mrich-more>summary{cursor:pointer;list-style:none;font-size:11.5px;color:var(--accent);padding:2px 4px}
.mrich-more>summary::-webkit-details-marker{display:none}
.mrich-more[open]>summary{display:none}
/* the compact tag strip on cards and compact rows: 2-3 small chips + "+N" (a <details>), the Similar link last */
.mtags{display:flex;flex-wrap:wrap;gap:3px;align-items:center;min-width:0;font-size:11px}
.mtags .chip.mc{font-size:10.5px;padding:1px 6px;line-height:1.35;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mtags-more{display:inline-flex;flex-wrap:wrap;gap:3px;align-items:center;max-width:100%}
.mtags-more[open]{display:flex}
.mtags-more>summary{cursor:pointer;list-style:none;font-size:11px;color:var(--accent);padding:1px 4px;border:1px dashed var(--line);border-radius:999px}
.mtags-more>summary::-webkit-details-marker{display:none}
.mtags-more[open]>summary{display:none}
.mtags .msim{font-size:11px;padding:1px 2px}
.mi-c{margin-top:3px}
.mi-s{color:var(--muted);margin-right:3px}.mi-s.ok{color:var(--c-shelf)}
.chip.mc-sc{font-family:var(--mono);font-weight:600}.chip.mc-sc.g{color:var(--c-shelf)}.chip.mc-sc.m{color:var(--c-move)}.chip.mc-sc.b{color:var(--c-over)}
@media (max-width:700px){.mtags .chip.mc,.mtags-more>summary{min-height:24px;display:inline-flex;align-items:center}.mtags-more[open]>summary{display:none}}
/* a work's lines (audiobooks: one per physical type) */
.mline{font-size:12.5px;line-height:1.5;margin-bottom:3px}
.mline .sub{color:var(--muted);font-size:12px}
.mline .tag{font-weight:600}
.mline-req{font-size:12px;white-space:nowrap}
/* staged filters: a chip that would give no results */
.chip.zero{opacity:.45}
.chip.zero .n{text-decoration:line-through}
/* rail: "+N more" chip groups and the ⓘ caveats (no prose in the rail) */
.more-chips{margin-top:6px}
.more-chips>summary{cursor:pointer;font-size:12px;color:var(--accent);list-style:none;display:inline-block;padding:2px 0}
.more-chips>summary::-webkit-details-marker{display:none}
.more-chips[open]>summary{margin-bottom:6px}
.fl .info{cursor:help;display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border:1px solid currentColor;border-radius:50%;font:600 9.5px/1 var(--sans);font-style:normal;text-transform:none;letter-spacing:0;color:var(--muted);margin-left:auto}
/* desk-only editions (a library lends them at its own circulation desk; never sent to another library) */
.tag.desk{border-color:var(--c-over, #b45309);color:var(--c-over, #b45309);font-weight:600}
.mdesk{margin:4px 0 8px}
.desk-b{display:inline-flex;align-items:center;min-height:32px;padding:3px 10px;border-radius:6px;border:1px solid var(--c-over, #b45309);color:var(--c-over, #b45309);font-weight:600;text-decoration:none}
.desk-b:hover{text-decoration:underline}
.desk-n{margin-top:4px;font-size:12.5px;color:var(--muted)}
.desk-n summary{cursor:pointer;width:max-content}
@media (max-width:700px){.desk-b{min-height:44px}}
/* ==== W6 record-page extras (_app/media_extras.php): length line, badges, trailer, summary, seasons, track/episode lists ==== */
.mxh{font-size:13px;margin-top:3px;color:var(--fg)}
.mxh a{color:inherit}
.mxbadges{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.tag.mxb{font-size:11px}
.tag.mxa{font-weight:700;border-color:var(--fg);color:var(--fg)}
.tag.mxe{font-weight:700}
a.tag.mxw{text-decoration:none;color:var(--accent);border-color:var(--accent)}
.tag.mxfmt{font-size:10.5px;vertical-align:middle;margin-left:4px;text-transform:none;letter-spacing:0}
.mtrl{display:inline-block;margin:6px 0 0 8px;padding:7px 12px;border:1px solid var(--line);border-radius:6px;background:var(--raised);color:var(--fg);text-decoration:none;font-weight:600;font-size:14px}
.mtrl[aria-expanded="true"]{border-color:var(--accent);color:var(--accent)}
.mtrl-box{position:relative;width:100%;max-width:720px;aspect-ratio:16/9;margin:0 0 12px;background:#000;border-radius:6px;overflow:hidden}
.mtrl-box iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.mxabout{margin-bottom:12px}
.msum-p{margin:4px 0 8px;font-size:13.5px;line-height:1.5}
.msum{margin:4px 0 8px;font-size:13.5px;line-height:1.5}
.msum>summary{list-style:none;cursor:pointer}
.msum>summary::-webkit-details-marker{display:none}
.msum-t{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;white-space:pre-line}
.msum[open] .msum-t{display:block}
.msum-m::after{content:"more";color:var(--accent);font-size:12.5px}
.msum[open] .msum-m::after{content:"less"}
.mxaw{display:inline}
.mxaw>summary{cursor:pointer;display:inline}
.mxaw ul{margin:4px 0 0;padding-left:18px}
.mxed{margin:0 0 4px}
.mlist{margin:4px 0 8px;font-size:13px}
.mlist>summary,.mlist-h{cursor:pointer;font-weight:600}
.mlist>summary{list-style:none}.mlist>summary::-webkit-details-marker{display:none}
.mlist>summary::before{content:"\25B8";display:inline-block;width:1em;color:var(--muted)}.mlist[open]>summary::before{content:"\25BE"}
.mlist-h{cursor:default}
.mtr{list-style:none;margin:4px 0 0;padding:0}
.mtr li{display:flex;gap:8px;align-items:baseline;padding:2px 0;border-bottom:1px solid var(--line);line-height:1.35}
.mtr li:last-child{border-bottom:0}
.mtr .n{flex:none;min-width:1.6em;text-align:right;font:12px var(--mono);color:var(--muted)}
.mtr .t{flex:1;min-width:0;overflow-wrap:anywhere}
.mtr .by{font-size:11.5px;color:var(--muted)}
.mtr .d{flex:none;font:12px var(--mono);color:var(--muted)}
.mtr li.mdk{display:block;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);padding-top:6px}
.mtr-more>summary{cursor:pointer;color:var(--accent);font-size:12.5px;padding:4px 0}
@media (max-width:600px){.mtrl{min-height:44px;display:inline-flex;align-items:center;margin-left:0}.mlist>summary{min-height:36px;display:flex;align-items:center;gap:4px}.mtr li{padding:4px 0}}
.mxcred{margin:0 0 12px}
/* ==== end W6 ==== */
/* ?preview=seasons-a|b|c (media_lines_compact): a work's many lines, compact */
.mseas{margin-top:4px}
.mseas>summary{cursor:pointer;list-style:none}
.mseas>summary::-webkit-details-marker{display:none}
.mseas>summary::after{content:"▾";color:var(--accent);font-size:11px;margin-left:4px}
.mseas[open]>summary::after{content:"▴"}
.mseas[open]>.mline:first-of-type{margin-top:6px}
.mseas-a>summary{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.msc{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:600;line-height:1;padding:4px 7px;border:1px solid var(--line);border-radius:999px;background:var(--surface);white-space:nowrap}
.msc::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--c-unav)}
.msc.ok::before,.msg.ok::before{background:var(--c-shelf)}
.msc.here::before,.msg.here::before{background:var(--c-shelf);box-shadow:0 0 0 2px var(--accent-soft)}
.msc.wait::before,.msg.wait::before{background:var(--c-out)}
.msc.more{color:var(--accent)}.msc.more::before{display:none}
.msc i,.msg i{font-style:normal;font-weight:400;color:var(--muted)}
.mseas-b>summary{font-size:12.5px;color:var(--accent);font-weight:600;padding:2px 0}
.msgrid{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.msg{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;line-height:1;padding:4px 7px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--fg);text-decoration:none;white-space:nowrap}
.msg::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--c-unav)}
.msg b{font-weight:600}
.msg:hover{border-color:var(--accent)}
.avail .msc,.avail .msg{color:var(--fg)}.avail .msc.more{color:var(--accent)}
@media (max-width:700px){.msc,.msg{min-height:28px;padding:0 8px;font-size:12px}.mseas-b>summary{min-height:32px;display:flex;align-items:center}}
/* media map (?preview=mediamap, _app/media_map.php + assets/media-map.js): the games map's #map / #map-links / .map-head look */
.mmap{position:relative;margin-bottom:10px}
.mmap #map{cursor:pointer}
.map-head i.k-none{background:none;box-shadow:inset 0 0 0 1px var(--muted)}
.mmap-rec h3{margin-bottom:6px}
.mmap .mmap-more{white-space:nowrap}
.mmap-table{margin:8px 0 10px;font-size:13px}.mmap-table summary{cursor:pointer;color:var(--muted)}
/* coming soon (_app/soon.php): the list's status line and the record page's "On order at" note */
.soon{color:var(--accent);font-weight:600}
.msoon .mr-a .n{font:600 11px var(--mono);color:var(--muted)}
.msoon-note{margin:8px 0 0;padding:6px 10px;background:var(--accent-soft);border-radius:6px;overflow-wrap:anywhere}
.msoon-note b{color:var(--accent)}
.mmap .map-head .info{margin-left:4px}
/* map tooltip: a small spinner while a square's titles load (media-map.js sqHtml) */
.mmap-load{display:inline-flex;align-items:center;gap:6px}
.mmap-load .spin{width:12px;height:12px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--accent);animation:mmspin .7s linear infinite;flex:none}
@keyframes mmspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.mmap-load .spin{animation-duration:2s}}
/* ?preview=fold: the day-over-day boxes as <details>; headers only on phones, tap to open */
.mfold>summary{list-style:none;cursor:pointer}
.mfold>summary::-webkit-details-marker{display:none}
.mfold>summary h3{display:flex;align-items:center;margin:0}
.mfold[open]>summary h3{margin-bottom:8px}
.mfold>summary h3::after{content:"";margin-left:auto;width:7px;height:7px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);transition:transform .15s}
.mfold[open]>summary h3::after{transform:rotate(-135deg)}
@media (min-width:701px){.mfold>summary{pointer-events:none}.mfold>summary h3::after{display:none}}
@media (max-width:700px){.mdod:has(.mfold){gap:6px}.mfold:not([open]){padding:10px 12px}}
/* /things (?preview=things): the category icon in place of the initial, In-house / Bookmobile badges */
.mt-things{background:linear-gradient(160deg,color-mix(in oklab,var(--sec-things) 14%,var(--surface)),var(--raised));color:var(--sec-things)}
.mt-things svg{width:24px;height:24px;flex:none}
.mt-things.big svg,.mt-things.card svg{width:48px;height:48px}.mt-things.mini svg{width:20px;height:20px}
.mt-things i{letter-spacing:.04em}
.mt-things img{object-fit:contain;background:var(--surface)}
.tag.tih{border-color:var(--sec-things);color:var(--sec-things);font-weight:600}
.tag.tbm{border-color:var(--c-shelf);color:var(--c-shelf);font-weight:600}
.mthing{margin-top:6px;line-height:1.7}
.moff{white-space:nowrap}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* /manga (_app/manga.php) */
.mt-manga{background:linear-gradient(160deg,color-mix(in oklab,var(--sec-manga) 14%,var(--surface)),var(--raised));color:var(--sec-manga)}
.tag.mg-kr,.tag.mg-cn,.tag.mg-ln{border-color:var(--sec-manga);color:var(--sec-manga)}
.mg-pub{font-size:12px}
.mg-facts{margin:4px 0}
.mg-anime{margin:8px 0 0}
.mg-rd{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:10px}
.mg-rd select{max-width:9em}
.mg-next{border-left:4px solid var(--sec-manga)}
.mg-next h2{margin:0 0 6px;font-size:18px}
.mg-next-b{display:flex;gap:12px;align-items:flex-start}
.mg-next-b .mt.mini{flex:none;width:52px;height:74px}
.mg-near{margin:4px 0;padding-left:18px}
.mg-near li{margin:2px 0}
.mg-gridw{overflow-x:auto;max-width:100%;border:1px solid var(--line);border-radius:8px;-webkit-overflow-scrolling:touch}
.mg-grid{border-collapse:separate;border-spacing:0;font-size:13px;min-width:100%}
.mg-grid th,.mg-grid td{padding:5px 7px;border-bottom:1px solid var(--line);white-space:nowrap;text-align:center}
.mg-grid thead th{text-transform:none;letter-spacing:0;position:sticky;top:0;background:var(--raised);font-size:12px;font-weight:600;z-index:1}
.mg-grid tbody th{text-transform:none;letter-spacing:0;position:sticky;left:0;background:var(--surface);text-align:left;font-weight:400;z-index:1;box-shadow:1px 0 0 var(--line);min-width:150px;max-width:210px}
.mg-grid thead th.mg-c0{left:0;z-index:2}
.mg-grid td.ok{color:var(--ok,#1b7f3b);font-weight:600}
.mg-grid td.wait{color:var(--warn,#a15c00)}
.mg-grid td.no{color:var(--muted)}
.mg-grid .mg-home{background:color-mix(in oklab,var(--sec-manga) 10%,var(--surface))}
.mg-grid tr.mg-nextrow th,.mg-grid tr.mg-nextrow td{background:color-mix(in oklab,var(--sec-manga) 16%,var(--surface))}
.mg-vh{display:flex;gap:7px;align-items:center}
.mg-vh>span:last-child{display:flex;flex-direction:column;min-width:0;white-space:normal}
.mg-vc{flex:none;width:30px;height:43px;border-radius:3px;overflow:hidden}
.mg-vc.mt{margin:0}
.mg-vc img{width:100%;height:100%;object-fit:cover}
.mg-vc0{background:var(--raised)}
.mg-sub{font-size:11.5px;overflow:hidden;text-overflow:ellipsis}
.mg-cat{font-size:11.5px}
@media (max-width:560px){.mg-grid tbody th{min-width:118px;max-width:140px}.mg-grid th,.mg-grid td{padding:4px 5px}}
.mg-hero{display:flex;justify-content:center;align-items:center;height:100%;padding:18px 8px}
.mg-hero .mg-fan{width:22%;max-width:130px;height:auto;aspect-ratio:2/3;margin:0 -3%;box-shadow:0 6px 18px rgb(0 0 0/.25);border-radius:6px;overflow:hidden}
.mg-hero .mg-fan:nth-child(odd){transform:rotate(-4deg)}.mg-hero .mg-fan:nth-child(even){transform:rotate(3deg) translateY(8px)}
.mg-hero .mg-fan img{width:100%;height:100%;object-fit:cover}

/* manga: the publisher and imprint chips (rows and the series header) */
.chip.mc-pb{font-weight:600;border-color:color-mix(in oklab,var(--sec-manga) 45%,var(--line))}
.chip.mc-im{border-style:dashed;border-color:color-mix(in oklab,var(--sec-manga) 45%,var(--line))}

/* manga: the network overview (bands of 10 volumes) and the collapsed grid */
.mgo-read{margin:2px 0 6px}
.mgo-list{list-style:none;margin:6px 0;padding:0;display:grid;gap:6px}
.mgo-b a{display:block;text-decoration:none;color:inherit;padding:5px 6px;border-radius:8px;border:1px solid transparent}
.mgo-b a:hover,.mgo-b a:focus-visible{border-color:var(--line);background:var(--raised)}
.mgo-focus a{border-color:color-mix(in oklab,var(--sec-manga) 40%,var(--line))}
.mgo-l{display:block;font-size:13px;margin-bottom:3px}
.mgo-hs{color:var(--muted)}
.mgo-s,.mgo-hl{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:3px;max-width:420px}
.mgo-c{display:flex;align-items:center;justify-content:center;height:24px;border-radius:4px;font:600 11px var(--mono,monospace);border:1px solid transparent}
.mgo-in,.mgo-k.mgo-in{background:color-mix(in oklab,#1f9d55 26%,var(--surface));color:color-mix(in oklab,#1f9d55 80%,var(--fg));border-color:color-mix(in oklab,#1f9d55 45%,transparent)}
.mgo-out,.mgo-k.mgo-out{background:color-mix(in oklab,#d68a00 26%,var(--surface));color:color-mix(in oklab,#a15c00 85%,var(--fg));border-color:color-mix(in oklab,#d68a00 50%,transparent)}
.mgo-none,.mgo-k.mgo-none{background:var(--raised);color:var(--muted);border-color:var(--line)}
.mgo-unk,.mgo-k.mgo-unk{background:repeating-linear-gradient(135deg,var(--raised) 0 4px,color-mix(in oklab,var(--muted) 30%,var(--surface)) 4px 6px);color:var(--muted);border-color:var(--line)}
.mgo-c.mgo-next{outline:2px solid var(--sec-manga);outline-offset:1px}
.mgo-pad{visibility:hidden}
.mgo-hl{margin-top:2px}
.mgo-h{height:4px;border-radius:2px;background:var(--line)}
.mgo-h-ok{background:#1f9d55}.mgo-h-wait{background:#d68a00}.mgo-h-unk{background:repeating-linear-gradient(90deg,var(--muted) 0 2px,transparent 2px 4px)}
.mgo-k{display:inline-flex;width:18px;height:16px;align-items:center;justify-content:center;border-radius:3px;font:600 10px var(--mono,monospace);border:1px solid transparent;margin-left:6px}
.mgo-kh{display:inline-block;width:18px;height:4px;border-radius:2px;background:#1f9d55;margin:0 2px 2px 8px;vertical-align:middle}
.mg-collapsed tr.mg-off{display:none}
.mg-gridtog{margin:0 0 6px}

/* the PO-box line on a record page (media_po_line): on a shelf at N libraries -> sent to your library */
.mrec .po-get{margin:6px 0 0;font-size:14px;line-height:1.45}
