/* ═══ v5.27.13 · Community: one tab style, the feed's place line, Members tidy-up ═══
   Loaded on every page (small). Uses the theme's variables, so light mode follows. */

/* ── Page tabs (Feed · Members · Challenges · Lists · Rewards…) — phones and tablets; the desktop left menu stays ── */
@media (max-width: 1099px) {
  html body .cm .cm-subnav, html body main.x .cm-subnav {
    display: flex !important; flex-direction: row !important; gap: 18px !important; width: auto !important; max-width: none !important;
    margin: 2px -16px 0 !important; padding: 0 16px !important; overflow-x: auto !important; overflow-y: hidden; scrollbar-width: none;
    border: 0 !important; border-bottom: 1px solid var(--v-line, #2a3438) !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
  }
  html body .cm .cm-subnav::before, html body main.x .cm-subnav::before { display: none !important; }
  html body .cm .cm-subnav a, html body main.x .cm-subnav a {
    position: relative; flex: none; padding: 14px 0 11px !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
    font: 700 11.5px/1 var(--v-sans) !important; letter-spacing: .07em !important; text-transform: uppercase; white-space: nowrap; color: var(--v-muted, #9c9fa1) !important;
  }
  html body .cm .cm-subnav a.is-on, html body main.x .cm-subnav a.is-on { color: var(--v-amber-ink, #ffb800) !important; font-weight: 800 !important; background: none !important; }
  html body .cm .cm-subnav a.is-on::before, html body main.x .cm-subnav a.is-on::before { display: none !important; }
  html body .cm .cm-subnav a.is-on::after, html body main.x .cm-subnav a.is-on::after {
    content: "" !important; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px !important; border-radius: 0 !important; background: var(--v-amber, #ffb800) !important;
  }
}
.cm-subnav::-webkit-scrollbar, .x-chips::-webkit-scrollbar, .mbx-seg::-webkit-scrollbar { display: none; }
/* rows that scroll sideways fade at the right edge while there is more (inc/community-more.php ht_cm_fade_js) */
[data-cm-fade] { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
[data-cm-fade].is-end { -webkit-mask-image: none; mask-image: none; }
html body main.mbx.cmx .mbx-seg { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
html body main.mbx.cmx .mbx-seg > button { flex: none; white-space: nowrap; }
@media (min-width: 1100px) { html body main.x .x-left .cm-subnav[data-cm-fade] { -webkit-mask-image: none; mask-image: none; } }

/* ── Feed (v5.27.14: one spacing system; everything lines up on two columns — the text column after the avatar,
   and the film-title column after the poster) ── */
main.x .x-post, .x-post { gap: 12px; }
main.x .x-post-bd, .x-post-bd { gap: 10px; }
/* header: who + what on the left, time on the right */
.x-line { display: flex; align-items: baseline; gap: 10px; }
.x-line-m { flex: 1; min-width: 0; }
.x-line-m > a:not(.x-line-n) { font-weight: 700; color: var(--v-text, #e8e8e8); text-decoration: none; }
.x-line-m > a:not(.x-line-n):hover { color: var(--v-amber-ink, #ffb800); }
.x-line-m .x-vf { display: inline-block; vertical-align: -2px; margin-left: 3px; }
.x-line > .x-line-t { flex: none; margin-left: auto; font-size: 12.5px; color: var(--v-dim, #80868a); white-space: nowrap; }
.x-line > .x-line-t::before { content: none !important; }
/* film card: poster | title + rating · place block · badges */
main.x .x-tk, .x-tk { align-items: flex-start !important; gap: 12px !important; }
main.x .x-tk-i, .x-tk-i { width: 52px !important; }
main.x .x-tk-t, .x-tk-t { gap: 7px !important; padding-top: 1px; }
.x-tk-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
main.x .x-tk-h b, .x-tk-h b { font-size: 15px; line-height: 1.25; }
.x-sc.is-num { font-size: 13px !important; letter-spacing: 0 !important; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--v-amber-ink, #ffb800); white-space: nowrap; }
.x-psc i { letter-spacing: 0 !important; font-weight: 700; font-style: normal; font-variant-numeric: tabular-nums; color: var(--v-text-2, #c8cacb); }
/* place block: logo · theatre (bold) over "Audi 4 · Row C" */
.x-pl { display: flex; align-items: center; gap: 8px; min-width: 0; }
.x-pl-lg { flex: none; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--v-raised, #1c2427); box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
.x-pl-lg.is-ini { display: inline-grid; place-items: center; font: 800 9px/1 var(--v-sans); font-style: normal; color: var(--v-text, #e8e8e8); }
.x-pl-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.x-pl-n { font-size: 13px; font-weight: 700; color: var(--v-text, #e8e8e8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-pl-s { font-size: 12px; color: var(--v-muted, #9c9fa1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-pl-b { display: flex; flex-wrap: wrap; gap: 4px; }
.x-pl-b .sc-tg { font-size: 9.5px; }
[data-theme="light"] .x-pl-lg { box-shadow: 0 0 0 1px rgba(20, 26, 28, .15); }
/* the screen they rated: two rows, on the film-title column (poster 52 + gap 12) */
.x-scr1 { padding-left: 64px; }
.x-scr1 > p { margin: 0; font-size: 13px; color: var(--v-muted, #9c9fa1); }
.x-scr1 > p > a { color: var(--v-text-2, #c8cacb) !important; font-weight: 600; }
.x-scr1 .x-psc { display: flex; flex-wrap: wrap; gap: 0 6px; margin-top: 2px; font-size: 12.5px; color: var(--v-muted, #9c9fa1); }
.x-scr1 .x-psc em { font-style: normal; color: var(--v-dim, #80868a); }
main.x .x-scrv, .x-scrv { padding-left: 64px !important; }
/* which film the words are about, when a post has several */
.x-onf { display: block; margin: 0 0 -6px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--v-dim, #80868a); }
/* "Watched Aug 2025" under a film logged long after */
.x-bf { display: block; margin: -3px 0 0; font-size: 12px; color: var(--v-dim, #80868a); }
/* tiles: one-line captions; the shared place block sits right under them */
.x-tile > small { display: block !important; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset !important; }
.x-tiles + .x-pl { margin-top: -2px; }

/* ── Members ── */
html body main.mbx.cmx .mbx-pop { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important; }
html body main.mbx.cmx .mbx-card .mbx-ava { width: 58px; height: 58px; }
@media (min-width: 900px) { html body main.mbx.cmx .mbx-card .mbx-ava { width: 88px; height: 88px; } }
/* stats in words; a wrap falls between items, never inside one */
html body main.mbx.cmx .mbx-st { display: flex; flex-wrap: wrap; gap: 0; font-size: 12px; color: var(--v-muted, #9c9fa1) !important; }
html body main.mbx.cmx .mbx-st span { display: inline; white-space: nowrap; color: inherit !important; }
html body main.mbx.cmx .mbx-st b { display: inline !important; color: var(--v-text, #e8e8e8); font-weight: 700; font-size: inherit !important; }
html body main.mbx.cmx .mbx-st .is-vf b { color: var(--v-green, #4ade80); }
html body main.mbx.cmx .mbx-st > i { font-style: normal; white-space: pre; color: var(--v-dim, #80868a); }
/* the orange dot now says what it means */
.mbx-act-wk { display: inline-flex; align-items: center; gap: 4px; color: #ff8a00; font-weight: 600; white-space: nowrap; }
.mbx-act-wk .mbx-live { position: static !important; display: inline-block; width: 6px; height: 6px; margin: 0 !important; border-radius: 50%; background: #ff8a00; }
[data-theme="light"] .mbx-act-wk { color: #b45309; }
/* v5.27.14: screen scores — the dot belongs to the next item, so a wrap never leaves "Sound 3.5 ·" at a line end */
.x-scr1 .x-psc em { display: none; }
.x-scr1 .x-psc > span { white-space: nowrap; }
.x-scr1 .x-psc > span + span::before { content: "· "; color: var(--v-dim, #80868a); }
/* two/three film tiles: one-line titles, so the ratings line up */
.x-tile > b { -webkit-line-clamp: 1 !important; display: block !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* v5.27.15: the rating flows at the end of the title, so it stays on the title's last line (never a line of its own) */
.x-tk-h { display: block !important; }
.x-tk-h b { display: inline !important; }
.x-tk-h .x-sc.is-num { display: inline-block; margin-left: 6px; vertical-align: baseline; }
.x-tk-nw { white-space: nowrap; }
