/* x2 t440: framework paged list modules (modules/_paged.ftl + x2-paged.js) — Despani red, thin scrollbar */
.pm-scroll{position:relative}
.pm-capped .pm-scroll{max-height:var(--pm-maxh);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#e2cccc transparent;padding-right:4px;margin-right:-4px}
.pm-capped .pm-scroll::-webkit-scrollbar{width:6px}
.pm-capped .pm-scroll::-webkit-scrollbar-track{background:transparent}
.pm-capped .pm-scroll::-webkit-scrollbar-thumb{background:#e2cccc;border-radius:6px}
.pm-capped .pm-scroll:hover::-webkit-scrollbar-thumb{background:#b98a8a}
.pm-scroll:focus-visible{outline:2px solid #c8102e;outline-offset:2px;border-radius:6px}
.pm-sentinel{height:1px}
.pm-foot{display:flex;justify-content:center;margin:8px 0 2px}
.pm-foot[hidden]{display:none}
.pm-more{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:5px 14px 5px 11px;border:1px solid #ecd6d6;border-radius:999px;background:#fff;color:#7d0001;font:600 12px/1.2 inherit;font-family:inherit;cursor:pointer;box-shadow:0 1px 2px rgba(125,0,1,.06);transition:background .15s,color .15s,border-color .15s,box-shadow .15s}
.pm-more:hover{background:#7d0001;border-color:#7d0001;color:#fff;box-shadow:0 3px 10px rgba(125,0,1,.18)}
.pm-more:focus-visible{outline:2px solid #c8102e;outline-offset:2px}
.pm-more:disabled{cursor:progress;opacity:.85}
.pm-ic{width:13px;height:13px;flex:none;transition:transform .2s}
.pm-more:hover .pm-ic{transform:translateY(1px)}
.pm-busy .pm-ic{border:2px solid currentColor;border-right-color:transparent;border-radius:50%;width:9px;height:9px;animation:pmspin .7s linear infinite}
.pm-busy .pm-ic path{display:none}
.pm-end{margin:8px 0 0;text-align:center;font-size:11px;color:#a59a9a;letter-spacing:.3px}
.pm-end::before,.pm-end::after{content:"";display:inline-block;width:22px;height:1px;background:#e6dcdc;vertical-align:middle;margin:0 8px}
.pm-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pm{position:relative}
.pm-new{animation:pmin .35s ease both}
.pm-skel{display:flex;gap:10px;align-items:center;padding:8px 0;list-style:none}
.pm-skel i{flex:none;width:38px;height:38px;border-radius:8px}
.pm-skel span{flex:1;display:flex;flex-direction:column;gap:6px}
.pm-skel b{display:block;height:9px;border-radius:5px;width:85%}.pm-skel b+b{width:35%}
.pm-skel i,.pm-skel b{background:linear-gradient(90deg,#f3eded 25%,#fbf7f7 50%,#f3eded 75%);background-size:200% 100%;animation:pmsh 1.1s linear infinite}
@keyframes pmspin{to{transform:rotate(360deg)}}
@keyframes pmin{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes pmsh{from{background-position:200% 0}to{background-position:-200% 0}}
@media (max-width:760px){.pm-more{min-height:40px;padding:8px 18px 8px 14px;font-size:13.5px}.pm-capped .pm-scroll{max-height:min(var(--pm-maxh),60vh)}}
@media (prefers-reduced-motion:reduce){.pm-new,.pm-skel i,.pm-skel b,.pm-busy .pm-ic{animation:none}.pm-more,.pm-ic{transition:none}}
/* t442: side lists (alx), 1.5 table rows, compact skeleton */
.pm-items.alx-list{margin-bottom:0}
tr.pm-skel{display:table-row}tr.pm-skel td{padding:6px 0}
.pm-capped .pm-items.latestx{width:100%}
.alx-mod .pm-foot,.j10-mod .pm-foot{margin-top:6px}
/* t443: forum popular topics (original 1.5 icons) */
.fpop-list{list-style:none;margin:0;padding:0}
.fpop{display:flex;align-items:center;gap:8px;padding:7px 2px;border-bottom:1px solid #f0e8e6}
.fpop:last-child{border-bottom:0}
.fpop-r{flex:none;min-width:20px;height:20px;padding:0 4px;box-sizing:border-box;border-radius:5px;background:#f4eeed;color:#6d4b47;font:700 11px/20px Tahoma,sans-serif;text-align:center}
.fpop-top .fpop-r{background:#7d0001;color:#fff}
.fpop-i{flex:none;width:16px;height:16px}
.fpop-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.fpop-t{font-weight:600;color:#222!important;text-decoration:none!important;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere;line-height:1.3}
.fpop-t:hover{color:#7d0001!important;text-decoration:underline!important}
.fpop-tx small{font-size:11px;color:#8a8a8a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fpop-tx small a{color:#7d0001!important}
.fpop-last{flex:none;opacity:.55;padding:6px 2px;line-height:0}.fpop-last:hover{opacity:1}
.fpop.pm-skel{border-bottom:0}
@media (max-width:760px){.fpop{padding:9px 2px}.fpop-t{font-size:14px}}
.cbp-pm{flex:1;padding:4px 10px}.cbp-pm .fpop-tx small a{display:inline}.cbp-pm .pm-foot{margin:4px 0}
html .cbp-side li.fpop{padding:6px 2px}html .cbp-side .fpop a.fpop-t{display:-webkit-box;font-size:12px}html .cbp-side .fpop a.fpop-last{display:inline-block}html .cbp-side .fpop small a{display:inline;font-weight:400}html .cbp-side ul.fpop-list{padding:0}
/* t444: popular topics - compact stat chips, #1 highlight, relative popularity bar */
.fpop-st{display:flex;align-items:center;gap:5px;min-width:0;flex-wrap:nowrap;overflow:hidden}
.fpop-c{flex:none;display:inline-flex;align-items:center;gap:3px;padding:1px 6px 1px 5px;border-radius:999px;background:#f6f1f0;color:#6f5a57;font:600 10.5px/16px Tahoma,sans-serif;white-space:nowrap}
.fpop-c svg{width:11px;height:11px;opacity:.7}
.fpop-c .sr,.fpop .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.fpop-cat{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px;color:#9a6b67!important}
.fpop-bar{display:block;height:3px;border-radius:3px;background:#f3ecea;overflow:hidden;margin-top:2px}
.fpop-bar i{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,#c9a2a0,#9c3b37)}
.fpop-top .fpop-bar i{background:linear-gradient(90deg,#b5302a,#7d0001)}
.fpop-1{background:linear-gradient(90deg,#fff7e6,#fff 85%);margin:0 -6px;padding-left:8px!important;padding-right:8px!important;border-radius:8px;box-shadow:inset 3px 0 0 #d4a017}
.fpop-1 .fpop-r{min-width:26px;height:26px;line-height:26px;font-size:14px;border-radius:50%;background:linear-gradient(145deg,#f3c84b,#c8901a);color:#4a2c00;box-shadow:0 1px 3px rgba(160,110,0,.35),inset 0 1px 0 rgba(255,255,255,.5)}
.fpop-1 .fpop-t{font-size:1.06em}
.fpop-1 .fpop-c{background:#fbeccb;color:#7a5200}
.fpop-1 .fpop-bar{background:#f6e6c2}.fpop-1 .fpop-bar i{background:linear-gradient(90deg,#e0b23a,#b8860b)}
html .cbp-side .fpop-1{margin:0 -4px}
html .cbp-side .fpop-c{font-size:10px}
/* t444 fit: no bleed past the scroll box, chips wrap in narrow columns, band header icon room */
.fpop-1,html .cbp-side .fpop-1{margin:0}
.fpop-st{flex-wrap:wrap;row-gap:3px}
.fpop-cat{max-width:100%}
html .cbp-side.dp-kind-forum>h3{padding-left:30px}
@media (min-width:761px){.j10-right .fpop-cat{display:none}.j10-right .fpop-i{display:none}.j10-right .fpop{gap:7px}}
/* t445: views + replies chips always side by side on one line */
.fpop-st{flex-wrap:nowrap;gap:4px}
.fpop-c{padding:0 5px 0 4px;gap:2px;font-size:10px;line-height:15px}
.fpop-c svg{width:10px;height:10px}
.fpop-1 .fpop-c{font-size:10.5px}
.fpop-cat{flex:1 1 auto;min-width:0}
/* t446: popular games rows (same look as forum popular) */
.gpop-ic{flex:none;line-height:0;border-radius:5px;overflow:hidden;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.gpop-ic img{width:40px;height:23px;object-fit:cover;display:block}
html .cbp-side .gpop a.gpop-ic{display:block}

/* t447: band games box = sibling band box structure; body fixed, no visible scrollbar, "more" lives in the footer row */
html .cbp-mods .cbp-side>.pm{flex:1 1 auto;min-height:0}
.pm-ext .pm-end{display:none}
html .cbp-games .pm-capped .pm-scroll{margin:0;padding:0 2px 0 0}
html .cbp-side li .gband-ic{float:left;width:28px;height:16px;margin:1px 7px 0 0;border-radius:3px;object-fit:cover;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
html .cbp-side ul.gband small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html .cbp-side .cbp-more-row{display:flex;justify-content:space-between;align-items:center}
html .cbp-side .cbp-more-row a{color:#7d0001!important;text-decoration:none!important}
html .cbp-side .cbp-pm-more{border:0;background:none;padding:0;cursor:pointer;color:#7d0001;font:inherit}
html .cbp-side .cbp-pm-more:hover,html .cbp-side .cbp-more-row a:hover{text-decoration:underline!important}
html .cbp-side .cbp-pm-more:focus-visible{outline:2px solid #c8102e;outline-offset:2px}
html .cbp-side .cbp-pm-more[hidden]{display:none}
html .cbp-games .pm-busy .cbp-pm-more{opacity:.6}
html .cbp-side .cbp-more-row a{margin-left:auto}

/* x2 module consistency: "more" keeps the module height (x2-paged.js locks .pm-scroll on the first click) and the
   new rows scroll inside it, in every module that uses this control (home, rails, band, blog). Visible thin scrollbar
   plus a soft fade on the edge that has more rows, so it is obvious the box scrolls (macOS hides idle scrollbars). */
.pm-capped .pm-scroll{scrollbar-color:#d6b9b9 transparent}
.pm-capped .pm-scroll::-webkit-scrollbar-thumb{background:#d6b9b9}
.pm-locked .pm-scroll{overflow-y:auto}
.pm-capped.pm-below .pm-scroll{-webkit-mask-image:linear-gradient(#000 calc(100% - 26px),transparent);mask-image:linear-gradient(#000 calc(100% - 26px),transparent)}
.pm-capped.pm-above.pm-below .pm-scroll{-webkit-mask-image:linear-gradient(transparent,#000 18px,#000 calc(100% - 26px),transparent);mask-image:linear-gradient(transparent,#000 18px,#000 calc(100% - 26px),transparent)}
.pm-capped.pm-above:not(.pm-below) .pm-scroll{-webkit-mask-image:linear-gradient(transparent,#000 18px);mask-image:linear-gradient(transparent,#000 18px)}
.pm-new{animation-fill-mode:backwards} /* never leave rows stuck at the faded first frame (seen in rails below the fold) */
/* the pill keeps its frame inside page resets such as "#phpbb_area *" (forum pages) */
:is(html,#x2-pm) .pm-more{border:1px solid #ecd6d6;padding:5px 14px 5px 11px;margin:0}
:is(html,#x2-pm) .pm-more:hover{border-color:#7d0001}
:is(html,#x2-pm) .pm-foot{margin:8px 0 2px}
@media (max-width:760px){:is(html,#x2-pm) .pm-more{padding:8px 18px 8px 14px}}

/* x2 t622: scroll up / down buttons (x2-paged.js adds .pm-nav to the footer row when the box scrolls inside) and a scrollbar
   that stays visible on macOS (custom ::-webkit-scrollbar is never an overlay bar) */
:is(html,#x2-pm) .pm-foot.pm-has-nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:6px}
:is(html,#x2-pm) .pm-foot.pm-has-nav[hidden]{display:none}
:is(html,#x2-pm) .pm-foot.pm-has-nav .pm-more{grid-column:2}
:is(html,#x2-pm) .pm-nav{grid-column:3;justify-self:end;display:inline-flex;gap:4px}
:is(html,#x2-pm) .pm-nav[hidden]{display:none}
:is(html,#x2-pm) .pm-nav-b{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;margin:0;padding:0;box-sizing:border-box;border:1px solid #ecd6d6;border-radius:50%;background:#fff;color:#7d0001;cursor:pointer;line-height:0;transition:background .15s,color .15s,border-color .15s,opacity .15s}
:is(html,#x2-pm) .pm-nav-b:hover:not(:disabled){background:#7d0001;border-color:#7d0001;color:#fff}
:is(html,#x2-pm) .pm-nav-b:focus-visible{outline:2px solid #c8102e;outline-offset:2px}
:is(html,#x2-pm) .pm-nav-b:disabled{opacity:.35;cursor:default}
:is(html,#x2-pm) .pm-nav-b svg{width:12px;height:12px;display:block}
@media (max-width:760px),(pointer:coarse){:is(html,#x2-pm) .pm-nav-b{width:36px;height:36px}:is(html,#x2-pm) .pm-nav{gap:6px}}
/* Chrome/Safari: the standard scrollbar-* props switch off ::-webkit-scrollbar (and give an overlay bar on macOS), so reset them there */
@supports selector(::-webkit-scrollbar){.pm-capped .pm-scroll{scrollbar-width:auto;scrollbar-color:auto}}
@supports not selector(::-webkit-scrollbar){.pm-capped .pm-scroll{scrollbar-width:thin;scrollbar-color:#c9a7a7 #f6efee}}
.pm-capped .pm-scroll::-webkit-scrollbar{width:8px}
.pm-capped .pm-scroll::-webkit-scrollbar-track{background:#f6efee;border-radius:8px}
.pm-capped .pm-scroll::-webkit-scrollbar-thumb{background:#c9a7a7;border-radius:8px;border:2px solid #f6efee}
.pm-capped .pm-scroll:hover::-webkit-scrollbar-thumb{background:#9c5a5a}

/* x2 t624: one footer at one height. A list module box is a column: title, the list body (fixed height for its Height setting,
   even with few rows or an exhausted list), then the footer (more + arrows, always present, disabled when there is nothing to do)
   and the "all →" link pinned to the bottom. Boxes in the same row stretch to equal heights, so footers and links line up. */
:is(html,#x2-pm) :is(.j10-mod,.alx-mod,.blg-mod):has(.pm-fixed){display:flex;flex-direction:column}
:is(html,#x2-pm) :is(.j10-mod,.alx-mod,.blg-mod):has(.pm-fixed)>:is(.j10-mod-b,.alx-mod-b,.blg-mod-b){flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
:is(html,#x2-pm) .pm.pm-fixed{flex:1 1 auto;display:flex;flex-direction:column;position:relative}
:is(html,#x2-pm) .pm-fixed .pm-scroll{height:var(--pm-maxh);max-height:var(--pm-maxh);flex:none;overflow-y:auto}
:is(html,#x2-pm) .pm-fixed .pm-foot{margin-top:auto;padding-top:8px}
:is(html,#x2-pm) .pm-fixed .pm-foot[hidden]{display:none}
:is(html,#x2-pm) .pm-fixed .pm-foot:not(.pm-has-nav){display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
:is(html,#x2-pm) .pm-fixed .pm-foot:not(.pm-has-nav) .pm-more{grid-column:2}
:is(html,#x2-pm) .pm-fixed .pm-more{white-space:nowrap}
:is(html,#x2-pm) .pm-more:disabled:not([aria-busy]){opacity:.45;cursor:default;box-shadow:none;background:#fff;color:#7d0001}
:is(html,#x2-pm) .pm-fixed .pm-end{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0}
:is(html,#x2-pm) :is(.j10-mod,.alx-mod,.blg-mod):has(.pm-fixed) :is(a.hm-more,a.alx-more,a.fm-more,a.cbp-side-more){display:block;flex:none;margin:6px 0 0;text-align:right;font-size:11.5px;font-weight:600;line-height:16px;height:16px}
@media (max-width:760px){:is(html,#x2-pm) .pm-fixed .pm-scroll{height:min(var(--pm-maxh),60vh);max-height:min(var(--pm-maxh),60vh)}}
